From 9dd346af31bc3a2fd70b8aa50d87abd5eaa0fd29 Mon Sep 17 00:00:00 2001 From: Huaweicloud-SDK Date: Thu, 9 May 2024 16:29:50 +0800 Subject: [PATCH] release 3.1.95 source code --- CHANGELOG.md | 360 +++++++++++++ CHANGELOG_CN.md | 360 +++++++++++++ README.md | 16 +- README_CN.md | 16 +- VERSION | 2 +- VulnerabilityFixingDescription.md | 3 +- 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/BasicCredentials.java | 71 +-- .../huaweicloud/sdk/core/http/HttpConfig.java | 72 ++- .../sdk/core/impl/DefaultHttpClient.java | 6 +- .../sdk/core/internal/InnerIamMeta.java | 10 + .../sdk/core/invoker/BaseInvoker.java | 22 +- .../huaweicloud/sdk/core/region/Region.java | 5 + .../huaweicloud/sdk/core/TestNewRegion.java | 43 ++ .../sdk/core/TestRegionCreateProject.java | 136 ----- .../com/huaweicloud/sdk/core/TestRetry.java | 356 +++++++++++++ .../com/huaweicloud/sdk/core/TestUtils.java | 2 +- pom.xml | 4 +- services/aad/pom.xml | 6 +- services/antiddos/pom.xml | 6 +- services/aom/pom.xml | 6 +- services/aos/pom.xml | 6 +- services/apig/pom.xml | 6 +- services/apm/pom.xml | 6 +- services/as/pom.xml | 6 +- 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 +- .../sdk/bssintl/v2/BssintlAsyncClient.java | 64 +++ .../sdk/bssintl/v2/BssintlClient.java | 62 +++ .../sdk/bssintl/v2/BssintlMeta.java | 49 ++ .../sdk/bssintl/v2/model/BudgetInfo.java | 218 ++++++++ .../CreateEnterpriseProjectAuthRequest.java | 34 ++ .../CreateEnterpriseProjectAuthResponse.java | 36 ++ .../v2/model/ListSubCustomerBudgetReq.java | 115 ++++ .../model/ListSubCustomerBudgetRequest.java | 82 +++ .../model/ListSubCustomerBudgetResponse.java | 139 +++++ services/cae/pom.xml | 6 +- .../sdk/cae/v1/CaeAsyncClient.java | 93 ++++ .../com/huaweicloud/sdk/cae/v1/CaeClient.java | 92 ++++ .../com/huaweicloud/sdk/cae/v1/CaeMeta.java | 106 ++++ .../CreateEnvironmentRequestBodyMetadata.java | 2 +- .../cae/v1/model/CreateVpcEgressRequest.java | 133 +++++ .../cae/v1/model/CreateVpcEgressResponse.java | 130 +++++ .../cae/v1/model/DeleteVpcEgressRequest.java | 124 +++++ .../cae/v1/model/DeleteVpcEgressResponse.java | 36 ++ .../sdk/cae/v1/model/EgressCidr.java | 119 +++++ .../cae/v1/model/ListVpcEgressRequest.java | 100 ++++ .../cae/v1/model/ListVpcEgressResponse.java | 130 +++++ .../sdk/cae/v1/model/VpcEgressKindObj.java | 72 +++ .../cae/v1/model/VpcEgressRequestBody.java | 129 +++++ .../v1/model/VpcEgressRequestBodySpec.java | 91 ++++ .../v1/model/VpcEgressResponseBodySpec.java | 138 +++++ services/campusgo/pom.xml | 6 +- services/cbh/pom.xml | 6 +- .../model/ChangeInstanceNetworkResponse.java | 75 +-- .../com/huaweicloud/sdk/cbh/v2/CbhMeta.java | 2 +- 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 +- 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 +- .../cloudpond/v1/CloudPondAsyncClient.java | 33 ++ .../sdk/cloudpond/v1/CloudPondClient.java | 33 ++ .../sdk/cloudpond/v1/CloudPondMeta.java | 45 ++ .../v1/model/ListSupportedZonesRequest.java | 298 +++++++++++ .../v1/model/ListSupportedZonesResponse.java | 124 +++++ .../sdk/cloudpond/v1/model/ZoneDetail.java | 95 ++++ services/cloudrtc/pom.xml | 6 +- services/cloudtable/pom.xml | 6 +- services/cloudtest/pom.xml | 6 +- 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 +- 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 +- 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 +- services/dis/pom.xml | 6 +- services/dlf/pom.xml | 6 +- services/dli/pom.xml | 6 +- .../sdk/dli/v1/DliAsyncClient.java | 64 +++ .../com/huaweicloud/sdk/dli/v1/DliClient.java | 62 +++ .../com/huaweicloud/sdk/dli/v1/DliMeta.java | 80 ++- .../model/BatchDeleteFlinkJobsResponse.java | 58 +- .../v1/model/BatchRunFlinkJobsResponse.java | 12 +- .../v1/model/BatchStopFlinkJobsResponse.java | 12 +- .../model/CreateConnectivityTaskResponse.java | 8 +- .../dli/v1/model/DeleteFlinkJobResponse.java | 8 +- .../ExecuteFlinkJobSavepointRequest.java | 105 ++++ .../ExecuteFlinkJobSavepointRequestBody.java | 164 ++++++ .../ExecuteFlinkJobSavepointResponse.java | 96 ++++ .../dli/v1/model/ExportFlinkJobsResponse.java | 8 +- .../sdk/dli/v1/model/FlinkJobConfig.java | 8 +- .../sdk/dli/v1/model/FlinkJobList.java | 8 +- ...esponse.java => FlinkSuccessResponse.java} | 18 +- .../model/ImportFlinkJobSavepointRequest.java | 105 ++++ .../ImportFlinkJobSavepointRequestBody.java | 95 ++++ .../ImportFlinkJobSavepointResponse.java | 96 ++++ .../dli/v1/model/ImportFlinkJobsResponse.java | 8 +- ...asticResourcePoolScaleRecordsResponse.java | 8 +- .../ShowFlinkJobExecutionGraphResponse.java | 8 +- .../dli/v1/model/ShowSparkJobLogResponse.java | 8 +- .../dli/v1/model/UpdateQueuePlanResponse.java | 8 +- services/dns/pom.xml | 6 +- services/dris/pom.xml | 6 +- services/drs/pom.xml | 6 +- .../sdk/drs/v3/DrsAsyncClient.java | 192 +++++++ .../com/huaweicloud/sdk/drs/v3/DrsClient.java | 189 +++++++ .../com/huaweicloud/sdk/drs/v3/DrsMeta.java | 303 +++++++++++ .../sdk/drs/v3/model/BatchJobActionReq.java | 4 +- .../sdk/drs/v3/model/ChildrenJobInfo.java | 6 +- .../v3/model/CompareJobContentDetailInfo.java | 179 +++++++ .../model/CreateCompareResultFileRequest.java | 229 ++++++++ .../CreateCompareResultFileResponse.java | 73 +++ .../v3/model/CreateObjectCompareJobReq.java | 72 +++ .../CreateObjectLevelCompareJobRequest.java | 206 +++++++ .../CreateObjectLevelCompareJobResponse.java | 73 +++ .../DownloadCompareResultFileRequest.java | 303 +++++++++++ .../DownloadCompareResultFileResponse.java | 36 ++ .../sdk/drs/v3/model/Endpoint.java | 39 +- .../drs/v3/model/ExportCompareResultReq.java | 119 +++++ .../sdk/drs/v3/model/KafkaSecurity.java | 302 +++++++++-- .../ListContentCompareDetailRequest.java | 4 +- .../ListContentCompareDifferenceRequest.java | 292 ++++++++++ .../ListContentCompareDifferenceResponse.java | 188 +++++++ .../ListContentCompareOverviewRequest.java | 4 +- .../model/ListDataCompareDetailRequest.java | 4 +- .../model/ListDataCompareOverviewRequest.java | 4 +- .../ListDataLevelTableCompareJobsRequest.java | 4 +- .../ListObejectLevelCompareDetailRequest.java | 269 ++++++++++ ...ListObejectLevelCompareDetailResponse.java | 116 ++++ ...istObejectLevelCompareOverviewRequest.java | 172 ++++++ ...stObejectLevelCompareOverviewResponse.java | 265 +++++++++ .../v3/model/ObjectsCompareDetailInfo.java | 191 +++++++ .../v3/model/ObjectsCompareOverviewInfo.java | 142 +++++ .../sdk/drs/v5/DrsAsyncClient.java | 95 ++++ .../com/huaweicloud/sdk/drs/v5/DrsClient.java | 94 ++++ .../com/huaweicloud/sdk/drs/v5/DrsMeta.java | 118 ++++ .../sdk/drs/v5/model/ActionParams.java | 38 +- .../sdk/drs/v5/model/ActionReq.java | 16 +- .../sdk/drs/v5/model/ChildrenJobListResp.java | 4 +- .../sdk/drs/v5/model/CompareResultInfo.java | 38 +- .../v5/model/ContentCompareOverviewInfo.java | 16 +- .../drs/v5/model/ContentDiffDetailInfo.java | 186 +++++++ .../sdk/drs/v5/model/ContentDiffDetailVO.java | 179 +++++++ .../sdk/drs/v5/model/HealthCompareJob.java | 6 +- .../sdk/drs/v5/model/JobDetailResp.java | 101 +++- .../sdk/drs/v5/model/JobListResp.java | 4 +- .../drs/v5/model/ModifyComparePolicyReq.java | 233 ++++++++ .../ObjectsHealthCompareOverviewInfo.java | 142 +++++ .../sdk/drs/v5/model/ReplayConfigInfo.java | 370 +++++++++++++ .../v5/model/ShowComparePolicyResponse.java | 2 +- .../ShowHealthCompareJobDetailRequest.java | 196 +++++++ .../ShowHealthCompareJobDetailResponse.java | 190 +++++++ ...HealthObjectCompareJobOverviewRequest.java | 196 +++++++ ...ealthObjectCompareJobOverviewResponse.java | 95 ++++ .../drs/v5/model/ShowJobDetailRequest.java | 16 +- .../v5/model/UpdateComparePolicyRequest.java | 206 +++++++ .../v5/model/UpdateComparePolicyResponse.java | 73 +++ .../sdk/drs/v5/model/UpdateJobReq.java | 10 +- services/dsc/pom.xml | 6 +- services/dss/pom.xml | 6 +- services/dwr/pom.xml | 6 +- services/dws/pom.xml | 6 +- services/ec/pom.xml | 6 +- services/ecs/pom.xml | 6 +- .../sdk/ecs/v2/EcsAsyncClient.java | 30 ++ .../com/huaweicloud/sdk/ecs/v2/EcsClient.java | 30 ++ .../com/huaweicloud/sdk/ecs/v2/EcsMeta.java | 30 ++ .../sdk/ecs/v2/model/ChangeVpcNicBody.java | 153 ++++++ .../sdk/ecs/v2/model/ChangeVpcRequest.java | 105 ++++ .../ecs/v2/model/ChangeVpcRequestBody.java | 105 ++++ .../sdk/ecs/v2/model/ChangeVpcResponse.java | 73 +++ .../ecs/v2/model/ChangeVpcSecurityGroups.java | 72 +++ services/edgesec/pom.xml | 6 +- services/eds/pom.xml | 6 +- services/eg/pom.xml | 6 +- services/eihealth/pom.xml | 6 +- .../sdk/eihealth/v1/EiHealthAsyncClient.java | 469 ++++++++++++++++ .../sdk/eihealth/v1/EiHealthClient.java | 463 ++++++++++++++++ .../sdk/eihealth/v1/EiHealthMeta.java | 503 ++++++++++++++++-- .../v1/model/AddDrugDatabaseFileReq.java | 105 ++++ .../v1/model/AddDrugDatabaseFileRequest.java | 105 ++++ .../v1/model/AddDrugDatabaseFileResponse.java | 36 ++ .../sdk/eihealth/v1/model/BindSiteDto.java | 30 +- .../v1/model/CreateCssClusterReq.java | 119 +++++ .../v1/model/CreateCssClusterRequest.java | 82 +++ .../v1/model/CreateCssClusterResponse.java | 73 +++ .../eihealth/v1/model/CreateDatabaseReq2.java | 217 ++++++++ .../v1/model/CreateDrugDatabaseRequest.java | 82 +++ .../v1/model/CreateDrugDatabaseResponse.java | 73 +++ .../model/CreateMolBatchDownloadTaskReq.java | 161 ++++++ .../CreateMolBatchDownloadTaskRequest.java | 105 ++++ .../CreateMolBatchDownloadTaskResponse.java | 73 +++ .../eihealth/v1/model/CreateOptmJobReq.java | 41 ++ .../eihealth/v1/model/CreateSearchJobReq.java | 299 +++++++++++ .../v1/model/CreateSearchJobRequest.java | 105 ++++ .../v1/model/CreateSearchJobResponse.java | 96 ++++ .../sdk/eihealth/v1/model/CssClusterDto.java | 142 +++++ .../sdk/eihealth/v1/model/DatabaseFile.java | 119 +++++ .../eihealth/v1/model/DatabaseFileSource.java | 78 +++ .../v1/model/DeleteCssClusterRequest.java | 72 +++ .../v1/model/DeleteCssClusterResponse.java | 36 ++ .../v1/model/DeleteDrugDatabaseRequest.java | 72 +++ .../v1/model/DeleteDrugDatabaseResponse.java | 36 ++ .../eihealth/v1/model/DetailDatabaseFile.java | 166 ++++++ .../eihealth/v1/model/DownloadDataReq.java | 55 +- .../eihealth/v1/model/DrugDatabaseDto.java | 450 ++++++++++++++++ .../v1/model/GetArchiveConfigRsp.java | 28 +- .../v1/model/ListCssClusterRequest.java | 99 ++++ .../v1/model/ListCssClusterResponse.java | 115 ++++ .../v1/model/ListDrugDatabaseRequest.java | 193 +++++++ .../v1/model/ListDrugDatabaseResponse.java | 115 ++++ .../ListTermTenantCssClusterRequest.java | 99 ++++ .../ListTermTenantCssClusterResponse.java | 115 ++++ .../sdk/eihealth/v1/model/SearchType.java | 78 +++ .../ShowMolBatchDownloadTaskRequest.java | 96 ++++ .../ShowMolBatchDownloadTaskResponse.java | 120 +++++ .../v1/model/ShowOptmJobResponse.java | 41 ++ .../v1/model/ShowSearchJobRequest.java | 95 ++++ .../v1/model/ShowSearchJobResponse.java | 348 ++++++++++++ .../v1/model/TermTenantCssClusterDto.java | 119 +++++ .../v1/model/UpdateDrugDatabaseReq.java | 72 +++ .../v1/model/UpdateDrugDatabaseRequest.java | 105 ++++ .../v1/model/UpdateDrugDatabaseResponse.java | 36 ++ .../eihealth/v1/model/UpdateDrugJobReq.java | 91 ++++ .../v1/model/UpdateDrugJobRequest.java | 129 +++++ .../v1/model/UpdateDrugJobResponse.java | 36 ++ .../eihealth/v1/model/UploadDataRequest.java | 150 +----- .../v1/model/UploadDataRequestBody.java | 164 +++++- .../model/ValidateCssConnectionRequest.java | 82 +++ .../model/ValidateCssConnectionResponse.java | 96 ++++ services/eip/pom.xml | 6 +- services/elb/pom.xml | 6 +- services/eps/pom.xml | 6 +- 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 +- .../v2/model/CreateFunctionRequestBody.java | 29 +- .../v2/model/ShowFunctionConfigResponse.java | 57 +- .../model/UpdateFunctionCodeRequestBody.java | 42 +- .../UpdateFunctionConfigRequestBody.java | 55 +- services/ga/pom.xml | 6 +- services/gaussdb/pom.xml | 6 +- .../sdk/gaussdb/v3/GaussDBAsyncClient.java | 254 +++++++++ .../sdk/gaussdb/v3/GaussDBClient.java | 252 +++++++++ .../sdk/gaussdb/v3/GaussDBMeta.java | 329 ++++++++++++ .../v3/model/CheckDataBaseConfigRequest.java | 131 +++++ .../v3/model/CheckDataBaseConfigResponse.java | 214 ++++++++ .../v3/model/CheckTableConfigRequest.java | 131 +++++ .../v3/model/CheckTableConfigResponse.java | 165 ++++++ .../model/CreateStarRocksDataReplication.java | 167 ++++++ ...CreateStarRocksDataReplicationRequest.java | 131 +++++ ...reateStarRocksDataReplicationResponse.java | 73 +++ .../sdk/gaussdb/v3/model/DataBaseInfo.java | 115 ++++ .../sdk/gaussdb/v3/model/DbConfig.java | 95 ++++ .../v3/model/DbConfigCheckRequestV3.java | 249 +++++++++ .../gaussdb/v3/model/DbConfigCheckResult.java | 194 +++++++ .../sdk/gaussdb/v3/model/DbParameter.java | 166 ++++++ .../model/DeleteStarRocksDataReplication.java | 72 +++ ...DeleteStarRocksDataReplicationRequest.java | 131 +++++ ...eleteStarRocksDataReplicationResponse.java | 73 +++ .../model/ListStarRocksDataBasesRequest.java | 168 ++++++ .../model/ListStarRocksDataBasesResponse.java | 143 +++++ ...StarRocksDataReplicationConfigRequest.java | 121 +++++ ...tarRocksDataReplicationConfigResponse.java | 321 +++++++++++ .../ListStarRocksDataReplicationsRequest.java | 144 +++++ ...ListStarRocksDataReplicationsResponse.java | 140 +++++ .../ListStarRocksDbParametersRequest.java | 97 ++++ .../ListStarRocksDbParametersResponse.java | 92 ++++ .../v3/model/StarRocksReplicationInfo.java | 489 +++++++++++++++++ .../v3/model/TableConfigCheckRequestV3.java | 265 +++++++++ .../v3/model/TableConfigCheckResult.java | 119 +++++ .../sdk/gaussdb/v3/model/TableReplConfig.java | 283 ++++++++++ .../sdk/gaussdb/v3/model/TablesConfig.java | 95 ++++ services/gaussdbfornosql/pom.xml | 6 +- services/gaussdbforopengauss/pom.xml | 6 +- services/geip/pom.xml | 6 +- services/ges/pom.xml | 6 +- .../com/huaweicloud/sdk/ges/v2/GesMeta.java | 5 + .../sdk/ges/v2/model/CreateGraphReqGraph.java | 29 +- .../sdk/ges/v2/model/DeleteGraph2Request.java | 28 +- 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 +- 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 +- 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 +- .../v1/model/BackgroundConfigInfo.java | 4 +- .../v1/model/CreateSmartChatRoomReq.java | 110 +++- .../v1/model/CreateVideoScriptsReq.java | 96 +++- .../v1/model/ShowSmartChatJobResponse.java | 104 +++- .../v1/model/ShowSmartChatRoomResponse.java | 111 +++- .../v1/model/ShowVideoScriptResponse.java | 96 +++- .../v1/model/SmartImageLayerConfig.java | 2 +- .../metastudio/v1/model/SmartLayerConfig.java | 47 +- .../v1/model/SmartTextLayerConfig.java | 269 ++++++++++ .../v1/model/SmartVideoLayerConfig.java | 2 +- .../v1/model/StartSmartChatJobResponse.java | 110 +++- .../metastudio/v1/model/TriggerProcess.java | 42 +- .../v1/model/UpdateSmartChatRoomResponse.java | 111 +++- .../v1/model/UpdateVideoScriptsReq.java | 96 +++- .../v1/model/VideoScriptsCreateInfo.java | 96 +++- .../v1/model/VideoScriptsShowInfo.java | 96 +++- .../v1/model/VideoScriptsSimpleInfo.java | 96 +++- services/moderation/pom.xml | 6 +- services/mpc/pom.xml | 6 +- .../sdk/mpc/v1/model/VideoProcess.java | 99 +++- 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 | 292 +++++----- services/projectman/pom.xml | 6 +- services/rabbitmq/pom.xml | 6 +- services/ram/pom.xml | 6 +- services/rds/pom.xml | 6 +- 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 +- services/sis/pom.xml | 6 +- services/smn/pom.xml | 6 +- services/sms/pom.xml | 6 +- services/sts/pom.xml | 6 +- services/swr/pom.xml | 6 +- services/tics/pom.xml | 6 +- services/tms/pom.xml | 6 +- 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 +- services/vpcep/pom.xml | 6 +- services/vpn/pom.xml | 6 +- services/waf/pom.xml | 6 +- .../v1/model/CreatePremiumHostResponse.java | 2 +- .../sdk/waf/v1/model/ResourceResponse.java | 2 +- .../sdk/waf/v1/model/ShowHostResponse.java | 2 +- .../waf/v1/model/ShowPremiumHostResponse.java | 2 +- .../sdk/waf/v1/model/UpdateHostResponse.java | 2 +- .../v1/model/UpdatePremiumHostResponse.java | 2 +- .../sdk/waf/v1/region/WafRegion.java | 3 + services/workspace/pom.xml | 6 +- services/workspaceapp/pom.xml | 6 +- 427 files changed, 27114 insertions(+), 1655 deletions(-) create mode 100644 core/src/test/java/com/huaweicloud/sdk/core/TestNewRegion.java delete mode 100644 core/src/test/java/com/huaweicloud/sdk/core/TestRegionCreateProject.java create mode 100644 core/src/test/java/com/huaweicloud/sdk/core/TestRetry.java create mode 100644 services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/BudgetInfo.java create mode 100644 services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/CreateEnterpriseProjectAuthRequest.java create mode 100644 services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/CreateEnterpriseProjectAuthResponse.java create mode 100644 services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListSubCustomerBudgetReq.java create mode 100644 services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListSubCustomerBudgetRequest.java create mode 100644 services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListSubCustomerBudgetResponse.java create mode 100644 services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateVpcEgressRequest.java create mode 100644 services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateVpcEgressResponse.java create mode 100644 services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/DeleteVpcEgressRequest.java create mode 100644 services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/DeleteVpcEgressResponse.java create mode 100644 services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/EgressCidr.java create mode 100644 services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ListVpcEgressRequest.java create mode 100644 services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ListVpcEgressResponse.java create mode 100644 services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/VpcEgressKindObj.java create mode 100644 services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/VpcEgressRequestBody.java create mode 100644 services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/VpcEgressRequestBodySpec.java create mode 100644 services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/VpcEgressResponseBodySpec.java create mode 100644 services/cloudpond/src/main/java/com/huaweicloud/sdk/cloudpond/v1/model/ListSupportedZonesRequest.java create mode 100644 services/cloudpond/src/main/java/com/huaweicloud/sdk/cloudpond/v1/model/ListSupportedZonesResponse.java create mode 100644 services/cloudpond/src/main/java/com/huaweicloud/sdk/cloudpond/v1/model/ZoneDetail.java create mode 100644 services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ExecuteFlinkJobSavepointRequest.java create mode 100644 services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ExecuteFlinkJobSavepointRequestBody.java create mode 100644 services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ExecuteFlinkJobSavepointResponse.java rename services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/{SuccessResponse.java => FlinkSuccessResponse.java} (82%) create mode 100644 services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ImportFlinkJobSavepointRequest.java create mode 100644 services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ImportFlinkJobSavepointRequestBody.java create mode 100644 services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ImportFlinkJobSavepointResponse.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/CompareJobContentDetailInfo.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/CreateCompareResultFileRequest.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/CreateCompareResultFileResponse.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/CreateObjectCompareJobReq.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/CreateObjectLevelCompareJobRequest.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/CreateObjectLevelCompareJobResponse.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/DownloadCompareResultFileRequest.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/DownloadCompareResultFileResponse.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ExportCompareResultReq.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListContentCompareDifferenceRequest.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListContentCompareDifferenceResponse.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListObejectLevelCompareDetailRequest.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListObejectLevelCompareDetailResponse.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListObejectLevelCompareOverviewRequest.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListObejectLevelCompareOverviewResponse.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ObjectsCompareDetailInfo.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ObjectsCompareOverviewInfo.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ContentDiffDetailInfo.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ContentDiffDetailVO.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ModifyComparePolicyReq.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ObjectsHealthCompareOverviewInfo.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ReplayConfigInfo.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ShowHealthCompareJobDetailRequest.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ShowHealthCompareJobDetailResponse.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ShowHealthObjectCompareJobOverviewRequest.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ShowHealthObjectCompareJobOverviewResponse.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UpdateComparePolicyRequest.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UpdateComparePolicyResponse.java create mode 100644 services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeVpcNicBody.java create mode 100644 services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeVpcRequest.java create mode 100644 services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeVpcRequestBody.java create mode 100644 services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeVpcResponse.java create mode 100644 services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeVpcSecurityGroups.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/AddDrugDatabaseFileReq.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/AddDrugDatabaseFileRequest.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/AddDrugDatabaseFileResponse.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateCssClusterReq.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateCssClusterRequest.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateCssClusterResponse.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateDatabaseReq2.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateDrugDatabaseRequest.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateDrugDatabaseResponse.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateMolBatchDownloadTaskReq.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateMolBatchDownloadTaskRequest.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateMolBatchDownloadTaskResponse.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateSearchJobReq.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateSearchJobRequest.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateSearchJobResponse.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CssClusterDto.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DatabaseFile.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DatabaseFileSource.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DeleteCssClusterRequest.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DeleteCssClusterResponse.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DeleteDrugDatabaseRequest.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DeleteDrugDatabaseResponse.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DetailDatabaseFile.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DrugDatabaseDto.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListCssClusterRequest.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListCssClusterResponse.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListDrugDatabaseRequest.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListDrugDatabaseResponse.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListTermTenantCssClusterRequest.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListTermTenantCssClusterResponse.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/SearchType.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowMolBatchDownloadTaskRequest.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowMolBatchDownloadTaskResponse.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowSearchJobRequest.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowSearchJobResponse.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/TermTenantCssClusterDto.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UpdateDrugDatabaseReq.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UpdateDrugDatabaseRequest.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UpdateDrugDatabaseResponse.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UpdateDrugJobReq.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UpdateDrugJobRequest.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UpdateDrugJobResponse.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ValidateCssConnectionRequest.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ValidateCssConnectionResponse.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CheckDataBaseConfigRequest.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CheckDataBaseConfigResponse.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CheckTableConfigRequest.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CheckTableConfigResponse.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CreateStarRocksDataReplication.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CreateStarRocksDataReplicationRequest.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CreateStarRocksDataReplicationResponse.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DataBaseInfo.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DbConfig.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DbConfigCheckRequestV3.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DbConfigCheckResult.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DbParameter.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarRocksDataReplication.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarRocksDataReplicationRequest.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarRocksDataReplicationResponse.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDataBasesRequest.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDataBasesResponse.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDataReplicationConfigRequest.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDataReplicationConfigResponse.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDataReplicationsRequest.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDataReplicationsResponse.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDbParametersRequest.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDbParametersResponse.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksReplicationInfo.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/TableConfigCheckRequestV3.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/TableConfigCheckResult.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/TableReplConfig.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/TablesConfig.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SmartTextLayerConfig.java diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c476e2de0..1a464abcff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,363 @@ +# 3.1.95 2024-05-09 + +### HuaweiCloud SDK Core + +- _Features_ + - Open read time out configuration. +- _Bug Fix_ + - None +- _Change_ + - Remove the feature where calling an api in a non-existing region will attempt to automatically create a project. + +### HuaweiCloud SDK BSSINTL + +- _Features_ + - Support the APIs `CreateEnterpriseProjectAuth`, `ListSubCustomerBudget` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK CAE + +- _Features_ + - Support the APIs `ListVpcEgress`, `CreateVpcEgress`, `DeleteVpcEgress` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK CBH + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ChangeInstanceNetwork** + - changes of response param + - `- nics` + - `- public_eip_statu` + - `* status: string -> boolean` + - `* security_grp_status: string -> boolean` + +### HuaweiCloud SDK CloudPond + +- _Features_ + - Support the API `ListSupportedZones` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DLI + +- _Features_ + - Support the APIs `ImportFlinkJobSavepoint`, `ExecuteFlinkJobSavepoint` +- _Bug Fix_ + - None +- _Change_ + - **ShowSparkJobLog** + - changes of response param + - `* from: string -> int32` + - **CreateConnectivityTask** + - changes of response param + - `* task_id: string -> int64` + - **UpdateQueuePlan** + - changes of response param + - `* plan_id: string -> int64` + - **BatchRunFlinkJobs** + - changes of response param + - `* is_success: boolean -> string` + - `* : list -> list` + - **BatchStopFlinkJobs** + - changes of response param + - `* is_success: boolean -> string` + - `* : list -> list` + - **BatchDeleteFlinkJobs** + - changes of response param + - `- is_success` + - `- message` + - **ExportFlinkJobs** + - changes of response param + - `* is_success: boolean -> string` + - **ListElasticResourcePoolScaleRecords** + - changes of response param + - `* count: int32 -> int64` + - **ShowFlinkJobExecutionGraph** + - changes of response param + - `* is_success: boolean -> string` + - **ImportFlinkJobs** + - changes of response param + - `* is_success: boolean -> string` + - **DeleteFlinkJob** + - changes of response param + - `* is_success: boolean -> string` + - **ShowFlinkJob** + - changes of response param + - `* job_detail.job_config.root_id: int32 -> int64` + - **ListFlinkJobs** + - changes of response param + - `* job_list.total_count: int32 -> int64` + - `* job_list.jobs.job_config.root_id: int32 -> int64` + +### HuaweiCloud SDK DRS + +- _Features_ + - Support the following APIs: + - `ListObejectLevelCompareOverview` + - `CreateObjectLevelCompareJob` + - `ListObejectLevelCompareDetail` + - `ListContentCompareDifference` + - `DownloadCompareResultFile` + - `CreateCompareResultFile` + - `ShowHealthCompareJobDetail` + - `ShowHealthObjectCompareJobOverview` + - `UpdateComparePolicy` +- _Bug Fix_ + - None +- _Change_ + - **BatchCreateJobs** + - changes of request param + - `+ jobs.source_endpoint.kafka_security_config` + - **BatchValidateConnections** + - changes of request param + - `+ jobs.kafka_security_config.endpoint_algorithm` + - `+ jobs.kafka_security_config.sasl_mechanism` + - `+ jobs.kafka_security_config.delegation_tokens` + - `+ jobs.kafka_security_config.enable_key_store` + - `+ jobs.kafka_security_config.key_store_key` + - `+ jobs.kafka_security_config.key_store_key_name` + - `+ jobs.kafka_security_config.key_store_password` + - `+ jobs.kafka_security_config.set_private_key_password` + - `+ jobs.kafka_security_config.key_password` + - `+ jobs.kafka_security_config.type: enum value [SASL_PLAINTEXT,SSL]` + - **ShowJobList** + - changes of response param + - `+ jobs.children.job_direction: enum value [no-dbs]` + - `- jobs.children.job_direction: enum value [non-dbs]` + - **BatchUpdateJob** + - changes of request param + - `+ jobs.source_endpoint.kafka_security_config` + - **BatchListJobDetails** + - changes of response param + - `+ results.source_endpoint.kafka_security_config` + - **ListAsyncJobDetail** + - changes of response param + - `+ jobs.is_writable` + - `+ jobs.compare_result.content_diff_detail_info` + - `+ jobs.compare_result.content_compare_overview_infos.status: enum value [WAIT_FOR_COMPARE,CANCELED]` + - **UpdateBatchAsyncJobs** + - changes of request param + - `+ jobs.type: enum value [notify]` + - **ShowJobDetail** + - changes of request param + - `+ type: enum value [is_writable,cloud_connection]` + - changes of response param + - `+ job.is_writable` + - `+ job.compare_result.content_diff_detail_info` + - `+ job.compare_result.content_compare_overview_infos.status: enum value [WAIT_FOR_COMPARE,CANCELED]` + - **UpdateJob** + - changes of request param + - `+ job.type: enum value [notify]` + - **ExecuteJobAction** + - changes of request param + - `+ job.action_name: enum value [set_writable,cloud_connection]` + - `+ job.action_params.replay_config` + - **BatchExecuteJobActions** + - changes of request param + - `+ jobs.action_name: enum value [set_writable,cloud_connection]` + - `+ jobs.action_params.replay_config` + +### HuaweiCloud SDK ECS + +- _Features_ + - Support the API `ChangeVpc` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK eiHealth + +- _Features_ + - Support the following APIs: + - `CreateSearchJob` + - `ShowSearchJob` + - `CreateMolBatchDownloadTask` + - `ShowMolBatchDownloadTask` + - `ListDrugDatabase` + - `CreateDrugDatabase` + - `UpdateDrugDatabase` + - `DeleteDrugDatabase` + - `AddDrugDatabaseFile` + - `ListCssCluster` + - `CreateCssCluster` + - `ListTermTenantCssCluster` + - `ValidateCssConnection` + - `DeleteCssCluster` + - `UpdateDrugJob` +- _Bug Fix_ + - None +- _Change_ + - **UploadData** + - changes of request param + - `- target_folder` + - `- part_number` + - `- total_part` + - `- multipart_id` + - `- file_name` + - `- md5` + - `+ target_folder` + - `+ part_number` + - `+ total_part` + - `+ multipart_id` + - `+ file_name` + - `+ md5` + - **DownloadData** + - changes of request param + - `+ range_start` + - `+ range_end` + - **ListArchiveConfigs** + - changes of response param + - `- configs.bucket_name` + - **CreateOptmJob** + - changes of request param + - `+ binding_sites` + - `+ binding_site.name` + - **ShowOptmJob** + - changes of response param + - `+ binding_sites` + - `+ binding_site.name` + +### HuaweiCloud SDK FunctionGraph + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **UpdateFunctionCode** + - changes of request param + - `- depend_list` + - **CreateFunction** + - changes of request param + - `+ gpu_type` + +### HuaweiCloud SDK GaussDB + +- _Features_ + - Support the following APIs: + - `ListStarRocksDataReplications` + - `CreateStarRocksDataReplication` + - `DeleteStarRocksDataReplication` + - `CheckDataBaseConfig` + - `CheckTableConfig` + - `ListStarRocksDataReplicationConfig` + - `ListStarRocksDbParameters` + - `ListStarRocksDataBases` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK GES + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateGraph2** + - changes of request param + - `+ graph.is_dynamic_graph` + - **DeleteGraph2** + - changes of request param + - `+ delete_eip` + +### HuaweiCloud SDK MetaStudio + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **StartSmartChatJob** + - changes of response param + - `+ chat_video_type` + - **ShowSmartChatJob** + - changes of response param + - `+ chat_video_type` + - **CreateSmartChatRoom** + - changes of request param + - `+ chat_video_type` + - **ShowSmartChatRoom** + - changes of response param + - `+ chat_video_type` + - **UpdateSmartChatRoom** + - changes of request param + - `+ chat_video_type` + - changes of response param + - `+ chat_video_type` + - **CreateSmartLiveRoom** + - changes of request param + - `+ interaction_rules.trigger.extra_layer_config` + - `+ interaction_rules.trigger.layer_config.text_config` + - `+ interaction_rules.trigger.layer_config.layer_type: enum value [TEXT]` + - **ShowSmartLiveRoom** + - changes of response param + - `+ interaction_rules.trigger.extra_layer_config` + - `+ interaction_rules.trigger.layer_config.text_config` + - `+ interaction_rules.trigger.layer_config.layer_type: enum value [TEXT]` + - **UpdateSmartLiveRoom** + - changes of request param + - `+ interaction_rules.trigger.extra_layer_config` + - `+ interaction_rules.trigger.layer_config.text_config` + - `+ interaction_rules.trigger.layer_config.layer_type: enum value [TEXT]` + - changes of response param + - `+ interaction_rules.trigger.extra_layer_config` + - `+ interaction_rules.trigger.layer_config.text_config` + - `+ interaction_rules.trigger.layer_config.layer_type: enum value [TEXT]` + - **UpdateInteractionRuleGroup** + - changes of request param + - `+ interaction_rules.trigger.extra_layer_config` + - `+ interaction_rules.trigger.layer_config.text_config` + - `+ interaction_rules.trigger.layer_config.layer_type: enum value [TEXT]` + - changes of response param + - `+ interaction_rules.trigger.extra_layer_config` + - `+ interaction_rules.trigger.layer_config.text_config` + - `+ interaction_rules.trigger.layer_config.layer_type: enum value [TEXT]` + - **CreateVideoScripts** + - changes of request param + - `+ view_mode` + - **ShowVideoScript** + - changes of response param + - `+ view_mode` + - **UpdateVideoScript** + - changes of request param + - `+ view_mode` + - **CreateInteractionRuleGroup** + - changes of request param + - `+ interaction_rules.trigger.extra_layer_config` + - `+ interaction_rules.trigger.layer_config.text_config` + - `+ interaction_rules.trigger.layer_config.layer_type: enum value [TEXT]` + - **ListInteractionRuleGroups** + - changes of response param + - `+ interaction_rule_groups.interaction_rules.trigger.extra_layer_config` + - `+ interaction_rule_groups.interaction_rules.trigger.layer_config.text_config` + - `+ interaction_rule_groups.interaction_rules.trigger.layer_config.layer_type: enum value [TEXT]` + +### HuaweiCloud SDK MPC + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateTranscodingTask** + - changes of request param + - `+ video_process.hls_segment_type` + # 3.1.94 2024-04-30 ### HuaweiCloud SDK AOS diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 807013c711..209df6ac60 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,363 @@ +# 3.1.95 2024-05-09 + +### HuaweiCloud SDK Core + +- _新增特性_ + - 开放读取超时配置 +- _解决问题_ + - 无 +- _特性变更_ + - 移除在不存在的区域调用接口会尝试自动创建项目的特性 + +### HuaweiCloud SDK BSSINTL + +- _新增特性_ + - 支持接口`CreateEnterpriseProjectAuth`、`ListSubCustomerBudget` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK CAE + +- _新增特性_ + - 支持接口`ListVpcEgress`、`CreateVpcEgress`、`DeleteVpcEgress` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK CBH + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ChangeInstanceNetwork** + - 响应参数变更 + - `- nics` + - `- public_eip_statu` + - `* status: string -> boolean` + - `* security_grp_status: string -> boolean` + +### HuaweiCloud SDK CloudPond + +- _新增特性_ + - 支持接口`ListSupportedZones` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DLI + +- _新增特性_ + - 支持接口`ImportFlinkJobSavepoint`、`ExecuteFlinkJobSavepoint` +- _解决问题_ + - 无 +- _特性变更_ + - **ShowSparkJobLog** + - 响应参数变更 + - `* from: string -> int32` + - **CreateConnectivityTask** + - 响应参数变更 + - `* task_id: string -> int64` + - **UpdateQueuePlan** + - 响应参数变更 + - `* plan_id: string -> int64` + - **BatchRunFlinkJobs** + - 响应参数变更 + - `* is_success: boolean -> string` + - `* : list -> list` + - **BatchStopFlinkJobs** + - 响应参数变更 + - `* is_success: boolean -> string` + - `* : list -> list` + - **BatchDeleteFlinkJobs** + - 响应参数变更 + - `- is_success` + - `- message` + - **ExportFlinkJobs** + - 响应参数变更 + - `* is_success: boolean -> string` + - **ListElasticResourcePoolScaleRecords** + - 响应参数变更 + - `* count: int32 -> int64` + - **ShowFlinkJobExecutionGraph** + - 响应参数变更 + - `* is_success: boolean -> string` + - **ImportFlinkJobs** + - 响应参数变更 + - `* is_success: boolean -> string` + - **DeleteFlinkJob** + - 响应参数变更 + - `* is_success: boolean -> string` + - **ShowFlinkJob** + - 响应参数变更 + - `* job_detail.job_config.root_id: int32 -> int64` + - **ListFlinkJobs** + - 响应参数变更 + - `* job_list.total_count: int32 -> int64` + - `* job_list.jobs.job_config.root_id: int32 -> int64` + +### HuaweiCloud SDK DRS + +- _新增特性_ + - 支持以下接口: + - `ListObejectLevelCompareOverview` + - `CreateObjectLevelCompareJob` + - `ListObejectLevelCompareDetail` + - `ListContentCompareDifference` + - `DownloadCompareResultFile` + - `CreateCompareResultFile` + - `ShowHealthCompareJobDetail` + - `ShowHealthObjectCompareJobOverview` + - `UpdateComparePolicy` +- _解决问题_ + - 无 +- _特性变更_ + - **BatchCreateJobs** + - 请求参数变更 + - `+ jobs.source_endpoint.kafka_security_config` + - **BatchValidateConnections** + - 请求参数变更 + - `+ jobs.kafka_security_config.endpoint_algorithm` + - `+ jobs.kafka_security_config.sasl_mechanism` + - `+ jobs.kafka_security_config.delegation_tokens` + - `+ jobs.kafka_security_config.enable_key_store` + - `+ jobs.kafka_security_config.key_store_key` + - `+ jobs.kafka_security_config.key_store_key_name` + - `+ jobs.kafka_security_config.key_store_password` + - `+ jobs.kafka_security_config.set_private_key_password` + - `+ jobs.kafka_security_config.key_password` + - `+ jobs.kafka_security_config.type: enum value [SASL_PLAINTEXT,SSL]` + - **ShowJobList** + - 响应参数变更 + - `+ jobs.children.job_direction: enum value [no-dbs]` + - `- jobs.children.job_direction: enum value [non-dbs]` + - **BatchUpdateJob** + - 请求参数变更 + - `+ jobs.source_endpoint.kafka_security_config` + - **BatchListJobDetails** + - 响应参数变更 + - `+ results.source_endpoint.kafka_security_config` + - **ListAsyncJobDetail** + - 响应参数变更 + - `+ jobs.is_writable` + - `+ jobs.compare_result.content_diff_detail_info` + - `+ jobs.compare_result.content_compare_overview_infos.status: enum value [WAIT_FOR_COMPARE,CANCELED]` + - **UpdateBatchAsyncJobs** + - 请求参数变更 + - `+ jobs.type: enum value [notify]` + - **ShowJobDetail** + - 请求参数变更 + - `+ type: enum value [is_writable,cloud_connection]` + - 响应参数变更 + - `+ job.is_writable` + - `+ job.compare_result.content_diff_detail_info` + - `+ job.compare_result.content_compare_overview_infos.status: enum value [WAIT_FOR_COMPARE,CANCELED]` + - **UpdateJob** + - 请求参数变更 + - `+ job.type: enum value [notify]` + - **ExecuteJobAction** + - 请求参数变更 + - `+ job.action_name: enum value [set_writable,cloud_connection]` + - `+ job.action_params.replay_config` + - **BatchExecuteJobActions** + - 请求参数变更 + - `+ jobs.action_name: enum value [set_writable,cloud_connection]` + - `+ jobs.action_params.replay_config` + +### HuaweiCloud SDK ECS + +- _新增特性_ + - 支持接口`ChangeVpc` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK eiHealth + +- _新增特性_ + - 支持以下接口: + - `CreateSearchJob` + - `ShowSearchJob` + - `CreateMolBatchDownloadTask` + - `ShowMolBatchDownloadTask` + - `ListDrugDatabase` + - `CreateDrugDatabase` + - `UpdateDrugDatabase` + - `DeleteDrugDatabase` + - `AddDrugDatabaseFile` + - `ListCssCluster` + - `CreateCssCluster` + - `ListTermTenantCssCluster` + - `ValidateCssConnection` + - `DeleteCssCluster` + - `UpdateDrugJob` +- _解决问题_ + - 无 +- _特性变更_ + - **UploadData** + - 请求参数变更 + - `- target_folder` + - `- part_number` + - `- total_part` + - `- multipart_id` + - `- file_name` + - `- md5` + - `+ target_folder` + - `+ part_number` + - `+ total_part` + - `+ multipart_id` + - `+ file_name` + - `+ md5` + - **DownloadData** + - 请求参数变更 + - `+ range_start` + - `+ range_end` + - **ListArchiveConfigs** + - 响应参数变更 + - `- configs.bucket_name` + - **CreateOptmJob** + - 请求参数变更 + - `+ binding_sites` + - `+ binding_site.name` + - **ShowOptmJob** + - 响应参数变更 + - `+ binding_sites` + - `+ binding_site.name` + +### HuaweiCloud SDK FunctionGraph + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **UpdateFunctionCode** + - 请求参数变更 + - `- depend_list` + - **CreateFunction** + - 请求参数变更 + - `+ gpu_type` + +### HuaweiCloud SDK GaussDB + +- _新增特性_ + - 支持以下接口: + - `ListStarRocksDataReplications` + - `CreateStarRocksDataReplication` + - `DeleteStarRocksDataReplication` + - `CheckDataBaseConfig` + - `CheckTableConfig` + - `ListStarRocksDataReplicationConfig` + - `ListStarRocksDbParameters` + - `ListStarRocksDataBases` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK GES + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateGraph2** + - 请求参数变更 + - `+ graph.is_dynamic_graph` + - **DeleteGraph2** + - 请求参数变更 + - `+ delete_eip` + +### HuaweiCloud SDK MetaStudio + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **StartSmartChatJob** + - 响应参数变更 + - `+ chat_video_type` + - **ShowSmartChatJob** + - 响应参数变更 + - `+ chat_video_type` + - **CreateSmartChatRoom** + - 请求参数变更 + - `+ chat_video_type` + - **ShowSmartChatRoom** + - 响应参数变更 + - `+ chat_video_type` + - **UpdateSmartChatRoom** + - 请求参数变更 + - `+ chat_video_type` + - 响应参数变更 + - `+ chat_video_type` + - **CreateSmartLiveRoom** + - 请求参数变更 + - `+ interaction_rules.trigger.extra_layer_config` + - `+ interaction_rules.trigger.layer_config.text_config` + - `+ interaction_rules.trigger.layer_config.layer_type: enum value [TEXT]` + - **ShowSmartLiveRoom** + - 响应参数变更 + - `+ interaction_rules.trigger.extra_layer_config` + - `+ interaction_rules.trigger.layer_config.text_config` + - `+ interaction_rules.trigger.layer_config.layer_type: enum value [TEXT]` + - **UpdateSmartLiveRoom** + - 请求参数变更 + - `+ interaction_rules.trigger.extra_layer_config` + - `+ interaction_rules.trigger.layer_config.text_config` + - `+ interaction_rules.trigger.layer_config.layer_type: enum value [TEXT]` + - 响应参数变更 + - `+ interaction_rules.trigger.extra_layer_config` + - `+ interaction_rules.trigger.layer_config.text_config` + - `+ interaction_rules.trigger.layer_config.layer_type: enum value [TEXT]` + - **UpdateInteractionRuleGroup** + - 请求参数变更 + - `+ interaction_rules.trigger.extra_layer_config` + - `+ interaction_rules.trigger.layer_config.text_config` + - `+ interaction_rules.trigger.layer_config.layer_type: enum value [TEXT]` + - 响应参数变更 + - `+ interaction_rules.trigger.extra_layer_config` + - `+ interaction_rules.trigger.layer_config.text_config` + - `+ interaction_rules.trigger.layer_config.layer_type: enum value [TEXT]` + - **CreateVideoScripts** + - 请求参数变更 + - `+ view_mode` + - **ShowVideoScript** + - 响应参数变更 + - `+ view_mode` + - **UpdateVideoScript** + - 请求参数变更 + - `+ view_mode` + - **CreateInteractionRuleGroup** + - 请求参数变更 + - `+ interaction_rules.trigger.extra_layer_config` + - `+ interaction_rules.trigger.layer_config.text_config` + - `+ interaction_rules.trigger.layer_config.layer_type: enum value [TEXT]` + - **ListInteractionRuleGroups** + - 响应参数变更 + - `+ interaction_rule_groups.interaction_rules.trigger.extra_layer_config` + - `+ interaction_rule_groups.interaction_rules.trigger.layer_config.text_config` + - `+ interaction_rule_groups.interaction_rules.trigger.layer_config.layer_type: enum value [TEXT]` + +### HuaweiCloud SDK MPC + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateTranscodingTask** + - 请求参数变更 + - `+ video_process.hls_segment_type` + # 3.1.94 2024-04-30 ### HuaweiCloud SDK AOS diff --git a/README.md b/README.md index 675a737eb9..b50248c53b 100644 --- a/README.md +++ b/README.md @@ -189,8 +189,12 @@ public class Application { HttpConfig httpConfig = HttpConfig.getDefaultHttpConfig(); // Configure whether to ignore the SSL certificate verification, default is false httpConfig.withIgnoreSSLVerification(true); - // Configure timeout as needed, default timeout is 60 seconds + // Configure connection time out as needed, default is 60 seconds (v3.1.94 and earlier versions) httpConfig.withTimeout(60); + // Configure connection time out as needed, default is 60 seconds (since v3.1.95, withConnectionTimeout is preferred) + httpConfig.withConnectionTimeout(60); + // Configure read time out as needed, default is 120 seconds + httpConfig.withReadTimeout(120); // Configure proxy as needed, the default protocol is `http` // Replace the proxy host and port in the example according to the actual situation httpConfig.withProxyHost("proxy.huaweicloud.com") @@ -344,8 +348,14 @@ VpcClient client = VpcClient.newBuilder() #### 1.3 Timeout Configuration [:top:](#user-manual-top) ``` java -// The default connection timeout is 60 seconds, change it if needed -HttpConfig httpConfig = HttpConfig.getDefaultHttpConfig().withTimeout(60); + +HttpConfig httpConfig = HttpConfig.getDefaultHttpConfig() +// The default connection time out is 60 seconds, change it if needed (v3.1.94 and earlier versions) +.withTimeout(60) +// The default connection time out is 60 seconds, change it if needed (since v3.1.95, withConnectionTimeout is preferred) +.withConnectionTimeout(60) +// The default read time out is 120 seconds, change it if needed +.withReadTimeout(120); VpcClient client = VpcClient.newBuilder() .withHttpConfig(httpConfig) diff --git a/README_CN.md b/README_CN.md index fd904eedb0..cba5f36aa6 100644 --- a/README_CN.md +++ b/README_CN.md @@ -190,8 +190,12 @@ public class Application { HttpConfig httpConfig = HttpConfig.getDefaultHttpConfig(); // 配置是否忽略SSL证书校验, 默认不忽略 httpConfig.withIgnoreSSLVerification(true); - // 默认超时时间为60秒,可根据需要配置 + // 默认连接超时时间为60秒,可根据需要配置(v3.1.94及之前的版本) httpConfig.withTimeout(60); + // 默认连接超时时间为60秒,可根据需要配置(v3.1.95版本起,优先使用withConnectionTimeout) + httpConfig.withConnectionTimeout(60); + // 默认读取超时时间为120秒,可根据需要配置 + httpConfig.withReadTimeout(120); // 根据需要配置网络代理,网络代理默认的协议为 `http` 协议 // 请根据实际情况替换示例中的代理地址和端口号 httpConfig.withProxyHost("proxy.huaweicloud.com") @@ -345,8 +349,14 @@ VpcClient client = VpcClient.newBuilder() #### 1.3 超时配置 [:top:](#用户手册-top) ``` java -// 默认连接超时时间为60秒,可根据需要调整 -HttpConfig httpConfig = HttpConfig.getDefaultHttpConfig().withTimeout(60); + +HttpConfig httpConfig = HttpConfig.getDefaultHttpConfig() +// 默认连接超时时间为60秒,可根据需要配置(v3.1.94及之前的版本) +.withTimeout(60); +// 默认连接超时时间为60秒,可根据需要调整(v3.1.95版本起,优先使用withConnectionTimeout) +.withConnectionTimeout(60) +// 默认读取超时时间为120秒,可根据需要调整 +.withReadTimeout(120); VpcClient client = VpcClient.newBuilder() .withHttpConfig(httpConfig) diff --git a/VERSION b/VERSION index 9c10daca75..f6fc1dc0f8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.94 +3.1.95 diff --git a/VulnerabilityFixingDescription.md b/VulnerabilityFixingDescription.md index a860afe183..591b7634e5 100644 --- a/VulnerabilityFixingDescription.md +++ b/VulnerabilityFixingDescription.md @@ -3,4 +3,5 @@ | org.yaml:snakeyaml-1.32 | CVE-2022-1471 | [https://nvd.nist.gov/vuln/detail/CVE-2022-1471](https://nvd.nist.gov/vuln/detail/CVE-2022-1471) | com.huaweicloud.sdk:huaweicloud-sdk-core-3.1.30 | | org.openeuler:jsse-1.0.3 | CVE-2003-1229 | [https://nvd.nist.gov/vuln/detail/CVE-2003-1229](https://nvd.nist.gov/vuln/detail/CVE-2003-1229) | com.huaweicloud.sdk:huaweicloud-sdk-core-3.1.36 | | com.squareup.okio:okio-3.2.0 | CVE-2023-3635 | [https://nvd.nist.gov/vuln/detail/CVE-2023-3635](https://nvd.nist.gov/vuln/detail/CVE-2023-3635) | com.huaweicloud.sdk:huaweicloud-sdk-core-3.1.53 | -| com.github.tomakehurst:wiremock-jre8-2.33.2 | CVE-2023-41327 | [https://nvd.nist.gov/vuln/detail/CVE-2023-41327](https://nvd.nist.gov/vuln/detail/CVE-2023-41327) | com.huaweicloud.sdk:huaweicloud-sdk-core-3.1.59 | \ No newline at end of file +| com.github.tomakehurst:wiremock-jre8-2.33.2 | CVE-2023-41327 | [https://nvd.nist.gov/vuln/detail/CVE-2023-41327](https://nvd.nist.gov/vuln/detail/CVE-2023-41327) | com.huaweicloud.sdk:huaweicloud-sdk-core-3.1.59 | +| org.bouncycastle:bcprov-jdk18on-1.75 | CVE-2023-41327 | [https://nvd.nist.gov/vuln/detail/CVE-2024-34447](https://nvd.nist.gov/vuln/detail/CVE-2024-34447) | com.huaweicloud.sdk:huaweicloud-sdk-core-3.1.95 | \ No newline at end of file diff --git a/all/pom.xml b/all/pom.xml index 3b50b4e04a..bb8c64de2b 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.94 + 3.1.95 huaweicloud-sdk 4.0.0 huaweicloud-sdk-all - 3.1.94 + 3.1.95 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.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-orgid - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-cfw - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-antiddos - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-oa - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-aom - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-apig - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-as - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-asm - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-bcs - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-bms - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-bss - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-bssintl - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-cbr - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-cce - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-ces - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-classroom - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-cloudrtc - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-cloudide - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-codeartspipeline - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-cloudpond - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-cloudtest - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-codeartscheck - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-cts - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-das - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-dcs - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-ddm - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-dds - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-dis - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-devstar - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-dlf - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-dgc - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-dli - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-dns - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-drs - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-ecs - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-eihealth - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-eip - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-geip - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-elb - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-eps - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-evs - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-dss - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-functiongraph - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-gaussdbfornosql - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-hss - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-cgs - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-iam - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-iec - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-ief - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-image - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-ims - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-iotda - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-iotedge - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-kafka - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-kms - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-kps - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-live - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-meeting - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-moderation - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-mpc - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-mrs - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-nat - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-oms - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-osm - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-projectman - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-rabbitmq - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-rds - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-rms - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-roma - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-sa - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-secmaster - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-scm - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-servicestage - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-smn - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-sms - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-swr - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-tms - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-vpc - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-vpcep - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-cdn - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-ugo - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-ocr - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-waf - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-optverse - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-oroas - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-vod - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-lts - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-gaussdb - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-ccm - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-csms - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-codeartsdeploy - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-frs - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-codecraft - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-imagesearch - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-cbs - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-cpts - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-ivs - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-gsl - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-cdm - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-sdrs - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-dbss - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-dsc - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-codeartsinspector - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-nlp - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-gaussdbforopengauss - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-campusgo - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-codehub - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-vas - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-cbh - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-ges - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-sfsturbo - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-sis - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-cloudtable - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-deh - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-res - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-hilens - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-iotanalytics - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-expert - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-css - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-dws - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-vcm - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-cc - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-cse - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-cae - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-rocketmq - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-apm - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-cph - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-eg - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-er - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-ga - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-workspace - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-workspaceapp - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-codeartsartifact - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-koomessage - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-koophone - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-koomap - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-devsecurity - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-dc - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-aos - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-mas - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-dwr - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-dris - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-mapds - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-codeartsbuild - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-lakeformation - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-dataartsinsight - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-organizations - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-ram - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-idme - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-idmeclassicapi - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-metastudio - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-cms - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-msgsms - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-eds - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-obs - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-dataartsstudio - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-tics - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-config - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-identitycenter - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-identitycenterstore - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-pangulargemodels - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-edgesec - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-ec - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-kvs - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-vpn - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-aad - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-rgc - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-iamaccessanalyzer - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-sts - 3.1.94 + 3.1.95 - ${project.artifactId}-3.1.94 + ${project.artifactId}-3.1.95 maven-dependency-plugin diff --git a/bundle/pom.xml b/bundle/pom.xml index fca4378793..28f9d5124b 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.94 + 3.1.95 huaweicloud-sdk 4.0.0 huaweicloud-sdk-bundle - 3.1.94 + 3.1.95 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.94 + 3.1.95 diff --git a/core-bson/pom.xml b/core-bson/pom.xml index 2702b6db9d..ba9b1672a3 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.94 + 3.1.95 huaweicloud-sdk 4.0.0 jar huaweicloud-sdk-core-bson - 3.1.94 + 3.1.95 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.94 + 3.1.95 ch.qos.logback diff --git a/core-xml/pom.xml b/core-xml/pom.xml index 0f65602de6..f03258494a 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.94 + 3.1.95 huaweicloud-sdk 4.0.0 jar huaweicloud-sdk-core-xml - 3.1.94 + 3.1.95 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.94 + 3.1.95 ch.qos.logback diff --git a/core/pom.xml b/core/pom.xml index 514465d13d..16e078b4f3 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -5,14 +5,14 @@ com.huaweicloud.sdk - 3.1.94 + 3.1.95 huaweicloud-sdk 4.0.0 jar huaweicloud-sdk-core - 3.1.94 + 3.1.95 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/BasicCredentials.java b/core/src/main/java/com/huaweicloud/sdk/core/auth/BasicCredentials.java index 2131047252..00ba5dd26b 100644 --- a/core/src/main/java/com/huaweicloud/sdk/core/auth/BasicCredentials.java +++ b/core/src/main/java/com/huaweicloud/sdk/core/auth/BasicCredentials.java @@ -29,14 +29,8 @@ import com.huaweicloud.sdk.core.internal.Iam; import com.huaweicloud.sdk.core.internal.InnerIamMeta; import com.huaweicloud.sdk.core.internal.model.CreateTokenWithIdTokenResponse; -import com.huaweicloud.sdk.core.internal.model.KeystoneCreateProjectRequest; -import com.huaweicloud.sdk.core.internal.model.KeystoneCreateProjectResponse; -import com.huaweicloud.sdk.core.internal.model.KeystoneListAuthDomainsRequest; -import com.huaweicloud.sdk.core.internal.model.KeystoneListAuthDomainsResponse; import com.huaweicloud.sdk.core.internal.model.KeystoneListProjectsRequest; import com.huaweicloud.sdk.core.internal.model.KeystoneListProjectsResponse; -import com.huaweicloud.sdk.core.internal.model.KeystoneListRegionsRequest; -import com.huaweicloud.sdk.core.internal.model.KeystoneListRegionsResponse; import com.huaweicloud.sdk.core.internal.model.Project; import com.huaweicloud.sdk.core.utils.StringUtils; import org.slf4j.Logger; @@ -131,7 +125,9 @@ public CompletableFuture processAuthParams(HcClient hcClient, Strin if (projects.size() == 1) { projectId = projects.get(0).getId(); } else if (projects.size() < 1) { - projectId = keystoneCreateProject(inner, regionId); + throw new SdkException("no project id found, please specify one when initializing the credentials: " + + "BasicCredentials cred = " + + "new BasicCredentials().withAk(ak).withSk(sk).withProjectId(projectId)"); } else { String projectIds = projects.stream().map(Project::getId).collect(Collectors.joining(",")); throw new SdkException(String.format(Locale.ROOT, "multiple project ids found: [%s], " + @@ -148,67 +144,6 @@ public CompletableFuture processAuthParams(HcClient hcClient, Strin }, hcClient.getHttpConfig().getExecutorService()); } - private String keystoneCreateProject(HcClient client, String regionId) { - List supportedRegions = getSupportedRegions(client); - if (Objects.isNull(supportedRegions) || supportedRegions.size() == 0) { - throw new SdkException("failed to list regions"); - } - if (!supportedRegions.contains(regionId)) { - throw new SdkException("the region input is not supported to create project automatically"); - } - - String domainId = getDomainId(client); - if (StringUtils.isEmpty(domainId)) { - throw new SdkException(Constants.ErrorMessage.NO_DOMAIN_ID_FOUND); - } - - return getCreateProjectId(client, regionId, domainId); - } - - private List getSupportedRegions(HcClient hcClient) { - final String publicRegionType = "public"; - KeystoneListRegionsRequest request = new KeystoneListRegionsRequest(); - KeystoneListRegionsResponse response = hcClient.syncInvokeHttp(request, InnerIamMeta.KEYSTONE_LIST_REGIONS); - if (Objects.isNull(response)) { - throw new SdkException("failed to list all regions"); - } - - return response.getRegions().stream().map(region -> { - if (publicRegionType.equals(region.getType())) { - return region.getId(); - } - return null; - }).filter(Objects::nonNull).collect(Collectors.toList()); - } - - private String getDomainId(HcClient hcClient) { - KeystoneListAuthDomainsRequest request = new KeystoneListAuthDomainsRequest(); - KeystoneListAuthDomainsResponse response = hcClient.syncInvokeHttp(request, - InnerIamMeta.KEYSTONE_LIST_AUTH_DOMAINS); - if (Objects.isNull(response)) { - throw new SdkException(Constants.ErrorMessage.NO_DOMAIN_ID_FOUND); - } - return response.getDomains().get(0).getId(); - } - - private String getCreateProjectId(HcClient hcClient, String regionId, String domainId) { - GlobalCredentials globalCredentials = new GlobalCredentials().withAk(getAk()).withSk(getSk()) - .withDomainId(domainId); - HcClient innerGlobal = hcClient.overrideCredential(globalCredentials); - KeystoneCreateProjectRequest request = new KeystoneCreateProjectRequest() - .withBody(body -> body.withProject(project -> { - project.withName(regionId); - project.withDomainId(domainId); - })); - KeystoneCreateProjectResponse response = innerGlobal.syncInvokeHttp(request, - InnerIamMeta.KEYSTONE_CREATE_PROJECT); - - if (Objects.isNull(response.getProject())) { - throw new SdkException("failed to create project"); - } - return response.getProject().getId(); - } - @Override public CompletableFuture processAuthRequest(HttpRequest httpRequest, HttpClient httpClient) { return CompletableFuture.completedFuture(syncProcessAuthRequest(httpRequest, httpClient)); diff --git a/core/src/main/java/com/huaweicloud/sdk/core/http/HttpConfig.java b/core/src/main/java/com/huaweicloud/sdk/core/http/HttpConfig.java index f36762b236..e5bea9c262 100644 --- a/core/src/main/java/com/huaweicloud/sdk/core/http/HttpConfig.java +++ b/core/src/main/java/com/huaweicloud/sdk/core/http/HttpConfig.java @@ -44,7 +44,11 @@ public class HttpConfig { private static final int DEFAULT_CONNECTION_TIMEOUT = 60; - private int timeout = DEFAULT_CONNECTION_TIMEOUT; + private static final int DEFAULT_READ_TIMEOUT = 120; + + private int connectionTimeout = DEFAULT_CONNECTION_TIMEOUT; + + private int readTimeout = DEFAULT_READ_TIMEOUT; private boolean ignoreSSLVerification = false; @@ -80,17 +84,75 @@ public class HttpConfig { private HostnameVerifier hostnameVerifier; - + /** + * @deprecated + * use {@link #getConnectionTimeout()} instead + */ + @Deprecated public int getTimeout() { - return timeout; + return connectionTimeout; } + /** + * @deprecated + * use {@link #setConnectionTimeout(int connectionTimeout)} instead + */ + @Deprecated public void setTimeout(int timeout) { - this.timeout = timeout; + this.connectionTimeout = timeout; } + /** + * @deprecated + * use {@link #withConnectionTimeout(int connectionTimeout)} instead + */ + @Deprecated public HttpConfig withTimeout(int timeout) { - this.timeout = timeout; + this.connectionTimeout = timeout; + return this; + } + + /** + * @return Connection time out seconds. + */ + public int getConnectionTimeout() { + return connectionTimeout; + } + + /** + * @param connectionTimeout Set connection time out seconds. + */ + public void setConnectionTimeout(int connectionTimeout) { + this.connectionTimeout = connectionTimeout; + } + + /** + * @param connectionTimeout Set connection time out seconds. + */ + public HttpConfig withConnectionTimeout(int connectionTimeout) { + this.connectionTimeout = connectionTimeout; + return this; + } + + /** + * @return Read time out seconds. + */ + public int getReadTimeout() { + return readTimeout; + } + + /** + * @param readTimeout Set read time out seconds. + */ + public void setReadTimeout(int readTimeout) { + this.readTimeout = readTimeout; + } + + /** + * @param readTimeout Set read time out seconds. + */ + public HttpConfig withReadTimeout(int readTimeout) { + this.readTimeout = readTimeout; return this; } diff --git a/core/src/main/java/com/huaweicloud/sdk/core/impl/DefaultHttpClient.java b/core/src/main/java/com/huaweicloud/sdk/core/impl/DefaultHttpClient.java index 760a34f13e..1ab0464d8c 100644 --- a/core/src/main/java/com/huaweicloud/sdk/core/impl/DefaultHttpClient.java +++ b/core/src/main/java/com/huaweicloud/sdk/core/impl/DefaultHttpClient.java @@ -89,8 +89,6 @@ public class DefaultHttpClient implements HttpClient { private static final int PROXY_AUTHENTICATION_REQUIRED = 407; - private static final int DEFAULT_READ_TIMEOUT = 120; - private OkHttpClient client; private HttpConfig httpConfig; @@ -110,8 +108,8 @@ public DefaultHttpClient withHttpConfig(HttpConfig httpConfig) { if (Objects.nonNull(httpConfig.getDispatcher())) { clientBuilder.dispatcher(httpConfig.getDispatcher()); } - clientBuilder.connectTimeout(httpConfig.getTimeout(), TimeUnit.SECONDS).readTimeout(DEFAULT_READ_TIMEOUT, - TimeUnit.SECONDS); + clientBuilder.connectTimeout(httpConfig.getConnectionTimeout(), TimeUnit.SECONDS) + .readTimeout(httpConfig.getReadTimeout(), TimeUnit.SECONDS); if (Objects.nonNull(httpConfig.getSSLSocketFactory()) && Objects.nonNull(httpConfig.getX509TrustManager())) { clientBuilder.sslSocketFactory(httpConfig.getSSLSocketFactory(), httpConfig.getX509TrustManager()); diff --git a/core/src/main/java/com/huaweicloud/sdk/core/internal/InnerIamMeta.java b/core/src/main/java/com/huaweicloud/sdk/core/internal/InnerIamMeta.java index 217b2763ea..48d5551b51 100644 --- a/core/src/main/java/com/huaweicloud/sdk/core/internal/InnerIamMeta.java +++ b/core/src/main/java/com/huaweicloud/sdk/core/internal/InnerIamMeta.java @@ -42,9 +42,19 @@ public final class InnerIamMeta { public static final HttpRequestDef KEYSTONE_LIST_PROJECTS = genForKeystoneListProjects(); + /** + * @deprecated this method will be removed in the future version + * @since 3.1.89 + */ + @Deprecated public static final HttpRequestDef KEYSTONE_CREATE_PROJECT = genForKeystoneCreateProject(); + /** + * @deprecated this method will be removed in the future version + * @since 3.1.89 + */ + @Deprecated public static final HttpRequestDef KEYSTONE_LIST_REGIONS = genForKeystoneListRegions(); diff --git a/core/src/main/java/com/huaweicloud/sdk/core/invoker/BaseInvoker.java b/core/src/main/java/com/huaweicloud/sdk/core/invoker/BaseInvoker.java index caeb0ef4ab..f16b0dd687 100644 --- a/core/src/main/java/com/huaweicloud/sdk/core/invoker/BaseInvoker.java +++ b/core/src/main/java/com/huaweicloud/sdk/core/invoker/BaseInvoker.java @@ -68,15 +68,15 @@ public class BaseInvoker> { /** * The default constructor for BaseInvoker. * - * @param req original request - * @param meta definitions for request and response used to build original HttpRequest - * and extract original HttpResponse + * @param req original request + * @param meta definitions for request and response used to build original HttpRequest + * and extract original HttpResponse * @param hcClient encapsulated client before default http client */ public BaseInvoker(R req, HttpRequestDef meta, HcClient hcClient) { exchange = new SdkExchange().withApiReference(apiReference -> apiReference.withName(meta.getName()) - .withMethod(meta.getMethod().toString()) - .withUri(meta.getUri())); + .withMethod(meta.getMethod().toString()) + .withUri(meta.getUri())); this.hcClient = hcClient; this.meta = meta; this.req = req; @@ -85,9 +85,9 @@ public BaseInvoker(R req, HttpRequestDef meta, HcClient hcClient) { /** * 重新构造一个临时鉴权对象进行重置 * - * @param type of credential + * @param type of credential * @param clazz class of credential - * @param func function that handle credential + * @param func function that handle credential * @return DeriveT */ @SuppressWarnings("unchecked") @@ -103,7 +103,7 @@ public D replaceCredentialWhen(Class clazz, Consumer< /** * 在http请求中增加header * - * @param headerKey key of header + * @param headerKey key of header * @param headerValue value of header * @return DerivedT */ @@ -132,7 +132,7 @@ public D withExchange(Consumer func) { * The user could use .withRetry() method to set retry infos. * * @param retryTimes the max times could be retried - * @param func retry condition + * @param func retry condition * @return DerivedT */ public D withRetry(int retryTimes, BiFunction func) { @@ -142,8 +142,8 @@ public D withRetry(int retryTimes, BiFunction func) { /** * The user could use .withRetry() method to set retry infos. * - * @param retryTimes the max times could be retried - * @param func retry condition + * @param retryTimes the max times could be retried + * @param func retry condition * @param backoffStrategy strategy to be backoff * @return DerivedT */ diff --git a/core/src/main/java/com/huaweicloud/sdk/core/region/Region.java b/core/src/main/java/com/huaweicloud/sdk/core/region/Region.java index cdc22a236e..f4706bf0c8 100644 --- a/core/src/main/java/com/huaweicloud/sdk/core/region/Region.java +++ b/core/src/main/java/com/huaweicloud/sdk/core/region/Region.java @@ -32,6 +32,11 @@ public class Region { private List endpoints; + public Region(String id, String endpoint) { + this.id = id; + this.endpoints = Arrays.asList(endpoint); + } + public Region(String id, String... endpoints) { this.id = id; this.endpoints = Arrays.asList(endpoints); diff --git a/core/src/test/java/com/huaweicloud/sdk/core/TestNewRegion.java b/core/src/test/java/com/huaweicloud/sdk/core/TestNewRegion.java new file mode 100644 index 0000000000..03f420b5f2 --- /dev/null +++ b/core/src/test/java/com/huaweicloud/sdk/core/TestNewRegion.java @@ -0,0 +1,43 @@ +/* + * 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.region.Region; +import org.junit.Assert; +import org.junit.Test; + +public class TestNewRegion { + @Test + public void testNewRegionWithSingleEndpoint() { + Region region = new Region("id", "endpoint"); + Assert.assertEquals(1, region.getEndpoints().size()); + Assert.assertEquals("endpoint", region.getEndpoints().get(0)); + } + + @Test + public void testNewRegionWithMultiEndpoint() { + Region region = new Region("id", "endpoint1", "endpoint2", "endpoint3"); + Assert.assertEquals(3, region.getEndpoints().size()); + Assert.assertEquals("endpoint1", region.getEndpoints().get(0)); + Assert.assertEquals("endpoint2", region.getEndpoints().get(1)); + Assert.assertEquals("endpoint3", region.getEndpoints().get(2)); + } +} diff --git a/core/src/test/java/com/huaweicloud/sdk/core/TestRegionCreateProject.java b/core/src/test/java/com/huaweicloud/sdk/core/TestRegionCreateProject.java deleted file mode 100644 index 0fb76b2abc..0000000000 --- a/core/src/test/java/com/huaweicloud/sdk/core/TestRegionCreateProject.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Copyright (c) Huawei Technologies Co., Ltd. 2021-2021. 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.github.tomakehurst.wiremock.client.WireMock; -import com.github.tomakehurst.wiremock.junit.WireMockRule; -import com.huaweicloud.sdk.core.auth.BasicCredentials; -import com.huaweicloud.sdk.core.http.HttpConfig; -import com.huaweicloud.sdk.core.utils.JsonUtils; -import org.junit.After; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Rule; -import org.junit.Test; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import java.lang.reflect.Field; -import java.util.HashMap; -import java.util.Locale; -import java.util.Map; - -import static com.github.tomakehurst.wiremock.client.WireMock.equalTo; - -public class TestRegionCreateProject { - private static final Logger LOGGER = LoggerFactory.getLogger(TestRegionCreateProject.class); - - private static final String EXPECTED_PROJECT_ID = "123456789"; - private static final BasicCredentials CREDENTIALS = new BasicCredentials().withAk("ak").withSk("sk"); - private final HttpConfig config = HttpConfig.getDefaultHttpConfig().withIgnoreSSLVerification(true); - - @Rule - public WireMockRule wireMockRule; - - @Before - public void init() { - System.setProperty("org.eclipse.jetty.util.log.class", "org.eclipse.jetty.util.log.StdErrLog"); - System.setProperty("org.eclipse.jetty.LEVEL", "OFF"); - - wireMockRule = TestUtils.createWireMockRule(); - - // mock request: GET /v3/projects - wireMockRule.stubFor(WireMock.get("/v3/projects?name=cn-north-201") - .willReturn(WireMock.aResponse() - .withHeader("Content-Type", Constants.MEDIATYPE.APPLICATION_JSON) - .withBody("{\"projects\": []}") - .withStatus(200) - ) - ); - // mock request: GET /v3/regions - wireMockRule.stubFor(WireMock.get("/v3/regions") - .willReturn(WireMock.aResponse() - .withHeader("Content-Type", Constants.MEDIATYPE.APPLICATION_JSON) - .withBody("{\"regions\": [{\"id\": \"cn-north-201\", \"type\": \"public\"}]}") - .withStatus(200) - ) - ); - // mock request: GET /v3/auth/domains - wireMockRule.stubFor(WireMock.get("/v3/auth/domains") - .willReturn(WireMock.aResponse() - .withHeader("Content-Type", Constants.MEDIATYPE.APPLICATION_JSON) - .withBody("{\"domains\": [{\"id\": \"987654321\"}]}") - .withStatus(200) - ) - ); - // mock request: POST /v3/projects - Map map = new HashMap(2) { - private static final long serialVersionUID = -2035197336051896678L; - - { - put("name", "cn-north-201"); - put("domain_id", "987654321"); - } - }; - Map> body = new HashMap>(1) { - private static final long serialVersionUID = -1512744733365625026L; - - { - put("project", map); - } - }; - String bodyStr = JsonUtils.toJSON(body); - wireMockRule.stubFor(WireMock.post(WireMock.urlEqualTo("/v3/projects")) - .withRequestBody(equalTo(bodyStr)) - .willReturn(WireMock.aResponse() - .withHeader("Content-Type", Constants.MEDIATYPE.APPLICATION_JSON) - .withBody("{\"project\": {\"id\": \"123456789\"}}") - .withStatus(201) - ) - ); - wireMockRule.start(); - - CREDENTIALS.withIamEndpoint(String.format(Locale.ROOT, "http://127.0.0.1:%d", wireMockRule.port())); - } - - @After - public void stop() { - wireMockRule.stop(); - } - - @Test - public void testCreateProject() { - TestServiceClient.newBuilder() - .withCredential(CREDENTIALS) - .withHttpConfig(config) - .withRegion(TestRegion.CN_NORTH_201) - .build(); - - try { - Field projectId = BasicCredentials.class.getDeclaredField("projectId"); - projectId.setAccessible(true); - Assert.assertEquals(EXPECTED_PROJECT_ID, projectId.get(CREDENTIALS)); - } catch (NoSuchFieldException | IllegalAccessException e) { - LOGGER.error(e.getMessage()); - } - } -} \ No newline at end of file diff --git a/core/src/test/java/com/huaweicloud/sdk/core/TestRetry.java b/core/src/test/java/com/huaweicloud/sdk/core/TestRetry.java new file mode 100644 index 0000000000..5ec58ded12 --- /dev/null +++ b/core/src/test/java/com/huaweicloud/sdk/core/TestRetry.java @@ -0,0 +1,356 @@ +/* + * 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.github.tomakehurst.wiremock.client.WireMock; +import com.github.tomakehurst.wiremock.core.WireMockConfiguration; +import com.github.tomakehurst.wiremock.junit.WireMockRule; +import com.github.tomakehurst.wiremock.stubbing.Scenario; +import com.huaweicloud.sdk.core.auth.BasicCredentials; +import com.huaweicloud.sdk.core.exception.ServerResponseException; +import com.huaweicloud.sdk.core.http.HttpConfig; +import com.huaweicloud.sdk.core.http.HttpMethod; +import com.huaweicloud.sdk.core.http.HttpRequestDef; +import com.huaweicloud.sdk.core.invoker.AsyncInvoker; +import com.huaweicloud.sdk.core.invoker.SyncInvoker; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Rule; +import org.junit.Test; + +import java.util.Arrays; +import java.util.Locale; +import java.util.concurrent.ExecutionException; + +public class TestRetry { + private static final String PATH = "/invoker/retry"; + + @Rule + public WireMockRule wireMockRule = new WireMockRule( + WireMockConfiguration.options().dynamicPort().dynamicHttpsPort()); + + public static HttpRequestDef requestDef = HttpRequestDef.builder( + HttpMethod.GET, Object.class, SdkResponse.class) + .withName("TestRetry") + .withUri(PATH) + .withContentType("application/json").build(); + + public static HcClient mockClient(int port) { + return new HcClient(HttpConfig.getDefaultHttpConfig().withIgnoreSSLVerification(true)) + .withCredential(new BasicCredentials().withAk("ak").withSk("sk")) + .withEndpoints(Arrays.asList( + String.format(Locale.ROOT, "https://127.0.0.1:%d", port))); + } + + @Before + public void setUp() { + wireMockRule.start(); + } + + @After + public void tearDown() { + wireMockRule.stop(); + } + + // 当发生ServerResponseException(status_code>=500)时进行重试,最大重试次数设置为3 + // 预期状态码为502,调用次数为4(正常调用1次+请求重试3次) + @Test(expected = ServerResponseException.class) + public void testSyncRetry() { + wireMockRule.stubFor(WireMock.get(PATH).willReturn( + WireMock.aResponse() + .withStatus(502) + .withHeader("Content-Type", "application/json") + ) + ); + + HcClient hcClient = mockClient(wireMockRule.httpsPort()); + SyncInvoker syncInvoker = new SyncInvoker<>(new Object(), requestDef, hcClient) + .withRetry(3, (sdkResponse, e) -> e instanceof ServerResponseException); + try { + syncInvoker.invoke(); + } finally { + WireMock.verify(4, WireMock.getRequestedFor(WireMock.urlEqualTo(PATH))); + } + } + + // 当发生ServerResponseException(status_code>=500)时进行重试,最大重试次数设置为10,第一次重试成功 + // 预期状态码为200,调用次数为2(正常调用1次+请求重试1次) + @Test + public void testSyncRetry2() { + wireMockRule.stubFor(WireMock.get(PATH) + .inScenario("Retry Scenario") + .whenScenarioStateIs(Scenario.STARTED) + .willSetStateTo("Retry") + .willReturn( + WireMock.aResponse() + .withStatus(500) + .withHeader("Content-Type", "application/json") + ) + ); + wireMockRule.stubFor(WireMock.get(PATH) + .inScenario("Retry Scenario") + .whenScenarioStateIs("Retry") + .willReturn( + WireMock.aResponse() + .withStatus(200) + .withHeader("Content-Type", "application/json") + ) + ); + + HcClient hcClient = mockClient(wireMockRule.httpsPort()); + SyncInvoker syncInvoker = new SyncInvoker<>(new Object(), requestDef, hcClient) + .withRetry(10, (sdkResponse, e) -> e instanceof ServerResponseException); + + SdkResponse response = syncInvoker.invoke(); + Assert.assertEquals(200, response.getHttpStatusCode()); + WireMock.verify(2, WireMock.getRequestedFor(WireMock.urlEqualTo(PATH))); + + } + + // 在刚好达到最大重试次数时请求成功 + // 预期状态码为200,调用次数为3(正常调用1次+请求重试2次) + @Test + public void testSyncRetry3() { + wireMockRule.stubFor(WireMock.get(PATH) + .inScenario("Retry Scenario") + .whenScenarioStateIs(Scenario.STARTED) + .willSetStateTo("First Retry") + .willReturn( + WireMock.aResponse() + .withStatus(500) + .withHeader("Content-Type", "application/json") + ) + ); + wireMockRule.stubFor(WireMock.get(PATH) + .inScenario("Retry Scenario") + .whenScenarioStateIs("First Retry") + .willSetStateTo("Second Retry") + .willReturn( + WireMock.aResponse() + .withStatus(500) + .withHeader("Content-Type", "application/json") + ) + ); + wireMockRule.stubFor(WireMock.get(PATH) + .inScenario("Retry Scenario") + .whenScenarioStateIs("Second Retry") + .willReturn( + WireMock.aResponse() + .withStatus(200) + .withHeader("Content-Type", "application/json") + ) + ); + + HcClient hcClient = mockClient(wireMockRule.httpsPort()); + SyncInvoker syncInvoker = new SyncInvoker<>(new Object(), requestDef, hcClient) + .withRetry(2, (sdkResponse, e) -> e instanceof ServerResponseException); + + SdkResponse response = syncInvoker.invoke(); + Assert.assertEquals(200, response.getHttpStatusCode()); + WireMock.verify(3, WireMock.getRequestedFor(WireMock.urlEqualTo(PATH))); + + } + + // 重试一次,预期调用次数为2 (1次正常调用+1次重试) + @Test(expected = ServerResponseException.class) + public void testSyncRetry4() { + wireMockRule.stubFor(WireMock.get(PATH).willReturn( + WireMock.aResponse() + .withStatus(502) + .withHeader("Content-Type", "application/json") + ) + ); + + HcClient hcClient = mockClient(wireMockRule.httpsPort()); + SyncInvoker syncInvoker = new SyncInvoker<>(new Object(), requestDef, hcClient) + .withRetry(1, (sdkResponse, e) -> e instanceof ServerResponseException); + try { + syncInvoker.invoke(); + } finally { + WireMock.verify(2, WireMock.getRequestedFor(WireMock.urlEqualTo(PATH))); + } + } + + // 不满足重试条件不重试,预期调用次数为1 (1次正常调用+0次重试) + @Test(expected = ServerResponseException.class) + public void testSyncRetry5() { + wireMockRule.stubFor(WireMock.get(PATH).willReturn( + WireMock.aResponse() + .withStatus(502) + .withHeader("Content-Type", "application/json") + ) + ); + + HcClient hcClient = mockClient(wireMockRule.httpsPort()); + SyncInvoker syncInvoker = new SyncInvoker<>(new Object(), requestDef, hcClient) + .withRetry(10, (sdkResponse, e) -> false); + try { + syncInvoker.invoke(); + } finally { + WireMock.verify(1, WireMock.getRequestedFor(WireMock.urlEqualTo(PATH))); + } + } + + // 当发生ServerResponseException(status_code>=500)时进行重试,最大重试次数设置为3 + // 预期状态码为502,调用次数为4(正常调用1次+请求重试3次) + @Test(expected = ServerResponseException.class) + public void testAsyncRetry() throws Throwable { + wireMockRule.stubFor(WireMock.get(PATH).willReturn( + WireMock.aResponse() + .withStatus(502) + .withHeader("Content-Type", "application/json") + ) + ); + + HcClient hcClient = mockClient(wireMockRule.httpsPort()); + AsyncInvoker asyncInvoker = new AsyncInvoker<>(new Object(), requestDef, hcClient) + .withRetry(3, (sdkResponse, e) -> e instanceof ServerResponseException); + try { + asyncInvoker.invoke().get(); + } catch (ExecutionException e) { + throw e.getCause(); + } finally { + WireMock.verify(4, WireMock.getRequestedFor(WireMock.urlEqualTo(PATH))); + } + } + + // 当发生ServerResponseException(status_code>=500)时进行重试,最大重试次数设置为10,第一次重试成功 + // 预期状态码为200,调用次数为2(正常调用1次+请求重试1次) + @Test + public void testAsyncRetry2() throws ExecutionException, InterruptedException { + wireMockRule.stubFor(WireMock.get(PATH) + .inScenario("Retry Scenario") + .whenScenarioStateIs(Scenario.STARTED) + .willSetStateTo("Retry") + .willReturn( + WireMock.aResponse() + .withStatus(500) + .withHeader("Content-Type", "application/json") + ) + ); + wireMockRule.stubFor(WireMock.get(PATH) + .inScenario("Retry Scenario") + .whenScenarioStateIs("Retry") + .willReturn( + WireMock.aResponse() + .withStatus(200) + .withHeader("Content-Type", "application/json") + ) + ); + + HcClient hcClient = mockClient(wireMockRule.httpsPort()); + AsyncInvoker asyncInvoker = new AsyncInvoker<>(new Object(), requestDef, hcClient) + .withRetry(3, (sdkResponse, e) -> e instanceof ServerResponseException); + + SdkResponse response = asyncInvoker.invoke().get(); + Assert.assertEquals(200, response.getHttpStatusCode()); + WireMock.verify(2, WireMock.getRequestedFor(WireMock.urlEqualTo(PATH))); + } + + // 在刚好达到最大重试次数时请求成功 + // 预期状态码为200,调用次数为3(正常调用1次+请求重试2次) + @Test + public void testAsyncRetry3() throws ExecutionException, InterruptedException { + wireMockRule.stubFor(WireMock.get(PATH) + .inScenario("Retry Scenario") + .whenScenarioStateIs(Scenario.STARTED) + .willSetStateTo("First Retry") + .willReturn( + WireMock.aResponse() + .withStatus(500) + .withHeader("Content-Type", "application/json") + ) + ); + wireMockRule.stubFor(WireMock.get(PATH) + .inScenario("Retry Scenario") + .whenScenarioStateIs("First Retry") + .willSetStateTo("Second Retry") + .willReturn( + WireMock.aResponse() + .withStatus(500) + .withHeader("Content-Type", "application/json") + ) + ); + wireMockRule.stubFor(WireMock.get(PATH) + .inScenario("Retry Scenario") + .whenScenarioStateIs("Second Retry") + .willReturn( + WireMock.aResponse() + .withStatus(200) + .withHeader("Content-Type", "application/json") + ) + ); + + HcClient hcClient = mockClient(wireMockRule.httpsPort()); + AsyncInvoker asyncInvoker = new AsyncInvoker<>(new Object(), requestDef, hcClient) + .withRetry(2, (sdkResponse, e) -> e instanceof ServerResponseException); + + SdkResponse response = asyncInvoker.invoke().get(); + Assert.assertEquals(200, response.getHttpStatusCode()); + WireMock.verify(3, WireMock.getRequestedFor(WireMock.urlEqualTo(PATH))); + + } + + // 重试一次,预期调用次数为2 (1次正常调用+1次重试) + @Test(expected = ServerResponseException.class) + public void testAsyncRetry4() throws Throwable { + wireMockRule.stubFor(WireMock.get(PATH).willReturn( + WireMock.aResponse() + .withStatus(502) + .withHeader("Content-Type", "application/json") + ) + ); + + HcClient hcClient = mockClient(wireMockRule.httpsPort()); + AsyncInvoker asyncInvoker = new AsyncInvoker<>(new Object(), requestDef, hcClient) + .withRetry(1, (sdkResponse, e) -> e instanceof ServerResponseException); + try { + asyncInvoker.invoke().get(); + } catch (ExecutionException e) { + throw e.getCause(); + } finally { + WireMock.verify(2, WireMock.getRequestedFor(WireMock.urlEqualTo(PATH))); + } + } + + // 不满足重试条件不重试,预期调用次数为1 (1次正常调用+0次重试) + @Test(expected = ServerResponseException.class) + public void testAsyncRetry5() throws Throwable { + wireMockRule.stubFor(WireMock.get(PATH).willReturn( + WireMock.aResponse() + .withStatus(502) + .withHeader("Content-Type", "application/json") + ) + ); + + HcClient hcClient = mockClient(wireMockRule.httpsPort()); + AsyncInvoker asyncInvoker = new AsyncInvoker<>(new Object(), requestDef, hcClient) + .withRetry(10, (sdkResponse, e) -> false); + try { + asyncInvoker.invoke().get(); + } catch (ExecutionException e) { + throw e.getCause(); + } finally { + WireMock.verify(1, WireMock.getRequestedFor(WireMock.urlEqualTo(PATH))); + } + } +} diff --git a/core/src/test/java/com/huaweicloud/sdk/core/TestUtils.java b/core/src/test/java/com/huaweicloud/sdk/core/TestUtils.java index 21ff72a91f..71eb387425 100644 --- a/core/src/test/java/com/huaweicloud/sdk/core/TestUtils.java +++ b/core/src/test/java/com/huaweicloud/sdk/core/TestUtils.java @@ -41,7 +41,7 @@ public static WireMockRule createWireMockRule() { public static HcClient createHcClient(Logger logger, String endpoint) { return new HcClient(new HttpConfig().withIgnoreSSLVerification(true) - .withTimeout(600) + .withConnectionTimeout(600) .addHttpListener(HttpListener.forResponseListener( responseListener -> logger.debug("RESPONSE: [{} {}] {} {} {} {} {}ms", responseListener.exchange().getApiReference().getName(), diff --git a/pom.xml b/pom.xml index 81cefd333f..0fcab6951f 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ pom com.huaweicloud.sdk huaweicloud-sdk - 3.1.94 + 3.1.95 Huawei Cloud SDK for Java Parent Huawei Cloud SDK for Java https://github.com/huaweicloud/huaweicloud-sdk-java-v3 @@ -62,7 +62,7 @@ 2.35.1 3.12.11 2.7.12 - 1.75 + 1.78 diff --git a/services/aad/pom.xml b/services/aad/pom.xml index 187dd1a132..8aa8dda4ca 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-aad - 3.1.94 + 3.1.95 Huawei Cloud SDK for AAD 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/antiddos/pom.xml b/services/antiddos/pom.xml index b944465ac2..06a7d3bf33 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-antiddos - 3.1.94 + 3.1.95 Huawei Cloud SDK for ANTIDDOS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/aom/pom.xml b/services/aom/pom.xml index 80c3b5fbec..e9e11db7f2 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-aom - 3.1.94 + 3.1.95 Huawei Cloud SDK for AOM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/aos/pom.xml b/services/aos/pom.xml index 16f044e2df..a7876f728a 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-aos - 3.1.94 + 3.1.95 Huawei Cloud SDK for AOS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/apig/pom.xml b/services/apig/pom.xml index 3c07fb2931..aa4e9f899b 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-apig - 3.1.94 + 3.1.95 Huawei Cloud SDK for APIG 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/apm/pom.xml b/services/apm/pom.xml index b12545f6e2..2559526f90 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-apm - 3.1.94 + 3.1.95 Huawei Cloud SDK for APM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/as/pom.xml b/services/as/pom.xml index 489e4c2f6e..5197ad8361 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-as - 3.1.94 + 3.1.95 Huawei Cloud SDK for AS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/asm/pom.xml b/services/asm/pom.xml index 2bfe90c989..9aace89193 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-asm - 3.1.94 + 3.1.95 Huawei Cloud SDK for ASM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/bcs/pom.xml b/services/bcs/pom.xml index fe52ccd480..5871e666cd 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-bcs - 3.1.94 + 3.1.95 Huawei Cloud SDK for BCS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/bms/pom.xml b/services/bms/pom.xml index d75a3d82b5..b2227966e2 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-bms - 3.1.94 + 3.1.95 Huawei Cloud SDK for BMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/bss/pom.xml b/services/bss/pom.xml index 2d65fb350a..a94831066d 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-bss - 3.1.94 + 3.1.95 Huawei Cloud SDK for BSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/bssintl/pom.xml b/services/bssintl/pom.xml index 4d246959cf..1b2efed220 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-bssintl - 3.1.94 + 3.1.95 Huawei Cloud SDK for BSSINTL 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/BssintlAsyncClient.java b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/BssintlAsyncClient.java index adabbb2386..3016d84634 100644 --- a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/BssintlAsyncClient.java +++ b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/BssintlAsyncClient.java @@ -12,6 +12,8 @@ import com.huaweicloud.sdk.bssintl.v2.model.ChangeEnterpriseRealnameAuthenticationResponse; import com.huaweicloud.sdk.bssintl.v2.model.CheckUserIdentityRequest; import com.huaweicloud.sdk.bssintl.v2.model.CheckUserIdentityResponse; +import com.huaweicloud.sdk.bssintl.v2.model.CreateEnterpriseProjectAuthRequest; +import com.huaweicloud.sdk.bssintl.v2.model.CreateEnterpriseProjectAuthResponse; import com.huaweicloud.sdk.bssintl.v2.model.CreateEnterpriseRealnameAuthenticationRequest; import com.huaweicloud.sdk.bssintl.v2.model.CreateEnterpriseRealnameAuthenticationResponse; import com.huaweicloud.sdk.bssintl.v2.model.CreatePersonalRealnameAuthRequest; @@ -64,6 +66,8 @@ import com.huaweicloud.sdk.bssintl.v2.model.ListServiceResourcesResponse; import com.huaweicloud.sdk.bssintl.v2.model.ListServiceTypesRequest; import com.huaweicloud.sdk.bssintl.v2.model.ListServiceTypesResponse; +import com.huaweicloud.sdk.bssintl.v2.model.ListSubCustomerBudgetRequest; +import com.huaweicloud.sdk.bssintl.v2.model.ListSubCustomerBudgetResponse; import com.huaweicloud.sdk.bssintl.v2.model.ListSubCustomerCouponsRequest; import com.huaweicloud.sdk.bssintl.v2.model.ListSubCustomerCouponsResponse; import com.huaweicloud.sdk.bssintl.v2.model.ListSubCustomersRequest; @@ -290,6 +294,36 @@ public AsyncInvoker checkUs return new AsyncInvoker<>(request, BssintlMeta.checkUserIdentity, hcClient); } + /** + * 开通客户企业项目权限 + * + * 客户在自建平台开通客户企业项目权限。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateEnterpriseProjectAuthRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createEnterpriseProjectAuthAsync( + CreateEnterpriseProjectAuthRequest request) { + return hcClient.asyncInvokeHttp(request, BssintlMeta.createEnterpriseProjectAuth); + } + + /** + * 开通客户企业项目权限 + * + * 客户在自建平台开通客户企业项目权限。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateEnterpriseProjectAuthRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createEnterpriseProjectAuthAsyncInvoker( + CreateEnterpriseProjectAuthRequest request) { + return new AsyncInvoker<>(request, BssintlMeta.createEnterpriseProjectAuth, hcClient); + } + /** * 申请企业实名认证 * @@ -1062,6 +1096,36 @@ public AsyncInvoker listServi return new AsyncInvoker<>(request, BssintlMeta.listServiceTypes, hcClient); } + /** + * 批量查询客户预算 + * + * 功能描述:批量查询客户预算 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSubCustomerBudgetRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listSubCustomerBudgetAsync( + ListSubCustomerBudgetRequest request) { + return hcClient.asyncInvokeHttp(request, BssintlMeta.listSubCustomerBudget); + } + + /** + * 批量查询客户预算 + * + * 功能描述:批量查询客户预算 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSubCustomerBudgetRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listSubCustomerBudgetAsyncInvoker( + ListSubCustomerBudgetRequest request) { + return new AsyncInvoker<>(request, BssintlMeta.listSubCustomerBudget, hcClient); + } + /** * 查询优惠券列表 * diff --git a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/BssintlClient.java b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/BssintlClient.java index 4959f6e726..e504f85abc 100644 --- a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/BssintlClient.java +++ b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/BssintlClient.java @@ -12,6 +12,8 @@ import com.huaweicloud.sdk.bssintl.v2.model.ChangeEnterpriseRealnameAuthenticationResponse; import com.huaweicloud.sdk.bssintl.v2.model.CheckUserIdentityRequest; import com.huaweicloud.sdk.bssintl.v2.model.CheckUserIdentityResponse; +import com.huaweicloud.sdk.bssintl.v2.model.CreateEnterpriseProjectAuthRequest; +import com.huaweicloud.sdk.bssintl.v2.model.CreateEnterpriseProjectAuthResponse; import com.huaweicloud.sdk.bssintl.v2.model.CreateEnterpriseRealnameAuthenticationRequest; import com.huaweicloud.sdk.bssintl.v2.model.CreateEnterpriseRealnameAuthenticationResponse; import com.huaweicloud.sdk.bssintl.v2.model.CreatePersonalRealnameAuthRequest; @@ -64,6 +66,8 @@ import com.huaweicloud.sdk.bssintl.v2.model.ListServiceResourcesResponse; import com.huaweicloud.sdk.bssintl.v2.model.ListServiceTypesRequest; import com.huaweicloud.sdk.bssintl.v2.model.ListServiceTypesResponse; +import com.huaweicloud.sdk.bssintl.v2.model.ListSubCustomerBudgetRequest; +import com.huaweicloud.sdk.bssintl.v2.model.ListSubCustomerBudgetResponse; import com.huaweicloud.sdk.bssintl.v2.model.ListSubCustomerCouponsRequest; import com.huaweicloud.sdk.bssintl.v2.model.ListSubCustomerCouponsResponse; import com.huaweicloud.sdk.bssintl.v2.model.ListSubCustomersRequest; @@ -284,6 +288,35 @@ public SyncInvoker checkUse return new SyncInvoker<>(request, BssintlMeta.checkUserIdentity, hcClient); } + /** + * 开通客户企业项目权限 + * + * 客户在自建平台开通客户企业项目权限。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateEnterpriseProjectAuthRequest 请求对象 + * @return CreateEnterpriseProjectAuthResponse + */ + public CreateEnterpriseProjectAuthResponse createEnterpriseProjectAuth(CreateEnterpriseProjectAuthRequest request) { + return hcClient.syncInvokeHttp(request, BssintlMeta.createEnterpriseProjectAuth); + } + + /** + * 开通客户企业项目权限 + * + * 客户在自建平台开通客户企业项目权限。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateEnterpriseProjectAuthRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createEnterpriseProjectAuthInvoker( + CreateEnterpriseProjectAuthRequest request) { + return new SyncInvoker<>(request, BssintlMeta.createEnterpriseProjectAuth, hcClient); + } + /** * 申请企业实名认证 * @@ -1046,6 +1079,35 @@ public SyncInvoker listServic return new SyncInvoker<>(request, BssintlMeta.listServiceTypes, hcClient); } + /** + * 批量查询客户预算 + * + * 功能描述:批量查询客户预算 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSubCustomerBudgetRequest 请求对象 + * @return ListSubCustomerBudgetResponse + */ + public ListSubCustomerBudgetResponse listSubCustomerBudget(ListSubCustomerBudgetRequest request) { + return hcClient.syncInvokeHttp(request, BssintlMeta.listSubCustomerBudget); + } + + /** + * 批量查询客户预算 + * + * 功能描述:批量查询客户预算 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSubCustomerBudgetRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listSubCustomerBudgetInvoker( + ListSubCustomerBudgetRequest request) { + return new SyncInvoker<>(request, BssintlMeta.listSubCustomerBudget, hcClient); + } + /** * 查询优惠券列表 * diff --git a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/BssintlMeta.java b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/BssintlMeta.java index 5170033fed..4bb6abae06 100644 --- a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/BssintlMeta.java +++ b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/BssintlMeta.java @@ -18,6 +18,8 @@ import com.huaweicloud.sdk.bssintl.v2.model.CheckUserIdentityRequest; import com.huaweicloud.sdk.bssintl.v2.model.CheckUserIdentityResponse; import com.huaweicloud.sdk.bssintl.v2.model.CreateCustomerV2Req; +import com.huaweicloud.sdk.bssintl.v2.model.CreateEnterpriseProjectAuthRequest; +import com.huaweicloud.sdk.bssintl.v2.model.CreateEnterpriseProjectAuthResponse; import com.huaweicloud.sdk.bssintl.v2.model.CreateEnterpriseRealnameAuthenticationRequest; import com.huaweicloud.sdk.bssintl.v2.model.CreateEnterpriseRealnameAuthenticationResponse; import com.huaweicloud.sdk.bssintl.v2.model.CreatePersonalRealnameAuthRequest; @@ -75,6 +77,9 @@ import com.huaweicloud.sdk.bssintl.v2.model.ListServiceResourcesResponse; import com.huaweicloud.sdk.bssintl.v2.model.ListServiceTypesRequest; import com.huaweicloud.sdk.bssintl.v2.model.ListServiceTypesResponse; +import com.huaweicloud.sdk.bssintl.v2.model.ListSubCustomerBudgetReq; +import com.huaweicloud.sdk.bssintl.v2.model.ListSubCustomerBudgetRequest; +import com.huaweicloud.sdk.bssintl.v2.model.ListSubCustomerBudgetResponse; import com.huaweicloud.sdk.bssintl.v2.model.ListSubCustomerCouponsRequest; import com.huaweicloud.sdk.bssintl.v2.model.ListSubCustomerCouponsResponse; import com.huaweicloud.sdk.bssintl.v2.model.ListSubCustomersRequest; @@ -277,6 +282,27 @@ private static HttpRequestDef createEnterpriseProjectAuth = + genForCreateEnterpriseProjectAuth(); + + private static HttpRequestDef genForCreateEnterpriseProjectAuth() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + CreateEnterpriseProjectAuthRequest.class, + CreateEnterpriseProjectAuthResponse.class) + .withName("CreateEnterpriseProjectAuth") + .withUri("/v2/enterprises/enterprise-projects/authority") + .withContentType("application/json"); + + // requests + + // response + + return builder.build(); + } + public static final HttpRequestDef createEnterpriseRealnameAuthentication = genForCreateEnterpriseRealnameAuthentication(); @@ -1194,6 +1220,29 @@ private static HttpRequestDef return builder.build(); } + public static final HttpRequestDef listSubCustomerBudget = + genForListSubCustomerBudget(); + + private static HttpRequestDef genForListSubCustomerBudget() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, ListSubCustomerBudgetRequest.class, ListSubCustomerBudgetResponse.class) + .withName("ListSubCustomerBudget") + .withUri("/v2/partners/sub-customers/budget/query") + .withContentType("application/json"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ListSubCustomerBudgetReq.class), + f -> f.withMarshaller(ListSubCustomerBudgetRequest::getBody, ListSubCustomerBudgetRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listSubCustomerCoupons = genForListSubCustomerCoupons(); diff --git a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/BudgetInfo.java b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/BudgetInfo.java new file mode 100644 index 0000000000..54207b5109 --- /dev/null +++ b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/BudgetInfo.java @@ -0,0 +1,218 @@ +package com.huaweicloud.sdk.bssintl.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.math.BigDecimal; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * BudgetInfo + */ +public class BudgetInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "customer_id") + + private String customerId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "budget_amount") + + private BigDecimal budgetAmount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "used_amount") + + private BigDecimal usedAmount; + + /** + * |参数名称:预算模式| |参数的约束及描述:MONTHLY 月度预算 PACKAGE 一次性预算| + */ + public static final class BudgetTypeEnum { + + /** + * Enum MONTHLY for value: "MONTHLY" + */ + public static final BudgetTypeEnum MONTHLY = new BudgetTypeEnum("MONTHLY"); + + /** + * Enum PACKAGE for value: "PACKAGE" + */ + public static final BudgetTypeEnum PACKAGE = new BudgetTypeEnum("PACKAGE"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("MONTHLY", MONTHLY); + map.put("PACKAGE", PACKAGE); + return Collections.unmodifiableMap(map); + } + + private String value; + + BudgetTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static BudgetTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new BudgetTypeEnum(value)); + } + + public static BudgetTypeEnum 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 BudgetTypeEnum) { + return this.value.equals(((BudgetTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "budget_type") + + private BudgetTypeEnum budgetType; + + public BudgetInfo withCustomerId(String customerId) { + this.customerId = customerId; + return this; + } + + /** + * |参数名称:客户账号ID||参数的约束及描述:必填参数,范围限制:1-64| + * @return customerId + */ + public String getCustomerId() { + return customerId; + } + + public void setCustomerId(String customerId) { + this.customerId = customerId; + } + + public BudgetInfo withBudgetAmount(BigDecimal budgetAmount) { + this.budgetAmount = budgetAmount; + return this; + } + + /** + * |参数名称:初始预算金额。| |参数的约束及描述:非必填,初始预算金额。| + * @return budgetAmount + */ + public BigDecimal getBudgetAmount() { + return budgetAmount; + } + + public void setBudgetAmount(BigDecimal budgetAmount) { + this.budgetAmount = budgetAmount; + } + + public BudgetInfo withUsedAmount(BigDecimal usedAmount) { + this.usedAmount = usedAmount; + return this; + } + + /** + * |参数名称:已经使用的预算。| |参数的约束及描述:已经使用的预算。非必填,该预算存在一定的时延和误差。| + * @return usedAmount + */ + public BigDecimal getUsedAmount() { + return usedAmount; + } + + public void setUsedAmount(BigDecimal usedAmount) { + this.usedAmount = usedAmount; + } + + public BudgetInfo withBudgetType(BudgetTypeEnum budgetType) { + this.budgetType = budgetType; + return this; + } + + /** + * |参数名称:预算模式| |参数的约束及描述:MONTHLY 月度预算 PACKAGE 一次性预算| + * @return budgetType + */ + public BudgetTypeEnum getBudgetType() { + return budgetType; + } + + public void setBudgetType(BudgetTypeEnum budgetType) { + this.budgetType = budgetType; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BudgetInfo that = (BudgetInfo) obj; + return Objects.equals(this.customerId, that.customerId) && Objects.equals(this.budgetAmount, that.budgetAmount) + && Objects.equals(this.usedAmount, that.usedAmount) && Objects.equals(this.budgetType, that.budgetType); + } + + @Override + public int hashCode() { + return Objects.hash(customerId, budgetAmount, usedAmount, budgetType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BudgetInfo {\n"); + sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n"); + sb.append(" budgetAmount: ").append(toIndentedString(budgetAmount)).append("\n"); + sb.append(" usedAmount: ").append(toIndentedString(usedAmount)).append("\n"); + sb.append(" budgetType: ").append(toIndentedString(budgetType)).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/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/CreateEnterpriseProjectAuthRequest.java b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/CreateEnterpriseProjectAuthRequest.java new file mode 100644 index 0000000000..9886a1d24f --- /dev/null +++ b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/CreateEnterpriseProjectAuthRequest.java @@ -0,0 +1,34 @@ +package com.huaweicloud.sdk.bssintl.v2.model; + +import java.util.Objects; + +/** + * Request Object + */ +public class CreateEnterpriseProjectAuthRequest { + + @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 CreateEnterpriseProjectAuthRequest {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/CreateEnterpriseProjectAuthResponse.java b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/CreateEnterpriseProjectAuthResponse.java new file mode 100644 index 0000000000..725b991c65 --- /dev/null +++ b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/CreateEnterpriseProjectAuthResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.bssintl.v2.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class CreateEnterpriseProjectAuthResponse 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 CreateEnterpriseProjectAuthResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListSubCustomerBudgetReq.java b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListSubCustomerBudgetReq.java new file mode 100644 index 0000000000..3ca5dce5fc --- /dev/null +++ b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListSubCustomerBudgetReq.java @@ -0,0 +1,115 @@ +package com.huaweicloud.sdk.bssintl.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; + +/** + * ListSubCustomerBudgetReq + */ +public class ListSubCustomerBudgetReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "customer_ids") + + private List customerIds = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "indirect_partner_id") + + private String indirectPartnerId; + + public ListSubCustomerBudgetReq withCustomerIds(List customerIds) { + this.customerIds = customerIds; + return this; + } + + public ListSubCustomerBudgetReq addCustomerIdsItem(String customerIdsItem) { + if (this.customerIds == null) { + this.customerIds = new ArrayList<>(); + } + this.customerIds.add(customerIdsItem); + return this; + } + + public ListSubCustomerBudgetReq withCustomerIds(Consumer> customerIdsSetter) { + if (this.customerIds == null) { + this.customerIds = new ArrayList<>(); + } + customerIdsSetter.accept(this.customerIds); + return this; + } + + /** + * |参数名称:客户ID列表| |参数的约束及描述:必填,最大支持100个客户ID,如果其中有存在不是该伙伴的客户ID或者其中有存在与该伙伴不是转售关联类型的客户ID,在响应中不返回该客户信息。| + * @return customerIds + */ + public List getCustomerIds() { + return customerIds; + } + + public void setCustomerIds(List customerIds) { + this.customerIds = customerIds; + } + + public ListSubCustomerBudgetReq withIndirectPartnerId(String indirectPartnerId) { + this.indirectPartnerId = indirectPartnerId; + return this; + } + + /** + * |参数名称:云经销商ID| |参数约束及描述:非必填,范围限制:0-64,如果需要查询云经销商的子客户列表,必须携带该字段。除此之外,此参数不做处理。| + * @return indirectPartnerId + */ + public String getIndirectPartnerId() { + return indirectPartnerId; + } + + public void setIndirectPartnerId(String indirectPartnerId) { + this.indirectPartnerId = indirectPartnerId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListSubCustomerBudgetReq that = (ListSubCustomerBudgetReq) obj; + return Objects.equals(this.customerIds, that.customerIds) + && Objects.equals(this.indirectPartnerId, that.indirectPartnerId); + } + + @Override + public int hashCode() { + return Objects.hash(customerIds, indirectPartnerId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListSubCustomerBudgetReq {\n"); + sb.append(" customerIds: ").append(toIndentedString(customerIds)).append("\n"); + sb.append(" indirectPartnerId: ").append(toIndentedString(indirectPartnerId)).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/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListSubCustomerBudgetRequest.java b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListSubCustomerBudgetRequest.java new file mode 100644 index 0000000000..0d823d1c85 --- /dev/null +++ b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListSubCustomerBudgetRequest.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.bssintl.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 ListSubCustomerBudgetRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private ListSubCustomerBudgetReq body; + + public ListSubCustomerBudgetRequest withBody(ListSubCustomerBudgetReq body) { + this.body = body; + return this; + } + + public ListSubCustomerBudgetRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new ListSubCustomerBudgetReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ListSubCustomerBudgetReq getBody() { + return body; + } + + public void setBody(ListSubCustomerBudgetReq 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; + } + ListSubCustomerBudgetRequest that = (ListSubCustomerBudgetRequest) 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 ListSubCustomerBudgetRequest {\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/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListSubCustomerBudgetResponse.java b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListSubCustomerBudgetResponse.java new file mode 100644 index 0000000000..ff2ab28d05 --- /dev/null +++ b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListSubCustomerBudgetResponse.java @@ -0,0 +1,139 @@ +package com.huaweicloud.sdk.bssintl.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 ListSubCustomerBudgetResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "measure_id") + + private Integer measureId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "currency") + + private String currency; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "budget_infos") + + private List budgetInfos = null; + + public ListSubCustomerBudgetResponse withMeasureId(Integer measureId) { + this.measureId = measureId; + return this; + } + + /** + * |参数名称:金额单位。||参数的约束及描述:非必填参数| + * @return measureId + */ + public Integer getMeasureId() { + return measureId; + } + + public void setMeasureId(Integer measureId) { + this.measureId = measureId; + } + + public ListSubCustomerBudgetResponse withCurrency(String currency) { + this.currency = currency; + return this; + } + + /** + * |参数名称:货币,CNY:人民币,USD:美元||参数的约束及描述:非必填参数| + * @return currency + */ + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public ListSubCustomerBudgetResponse withBudgetInfos(List budgetInfos) { + this.budgetInfos = budgetInfos; + return this; + } + + public ListSubCustomerBudgetResponse addBudgetInfosItem(BudgetInfo budgetInfosItem) { + if (this.budgetInfos == null) { + this.budgetInfos = new ArrayList<>(); + } + this.budgetInfos.add(budgetInfosItem); + return this; + } + + public ListSubCustomerBudgetResponse withBudgetInfos(Consumer> budgetInfosSetter) { + if (this.budgetInfos == null) { + this.budgetInfos = new ArrayList<>(); + } + budgetInfosSetter.accept(this.budgetInfos); + return this; + } + + /** + * |参数名称:客户预算信息||参数的约束及描述:必填参数| + * @return budgetInfos + */ + public List getBudgetInfos() { + return budgetInfos; + } + + public void setBudgetInfos(List budgetInfos) { + this.budgetInfos = budgetInfos; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListSubCustomerBudgetResponse that = (ListSubCustomerBudgetResponse) obj; + return Objects.equals(this.measureId, that.measureId) && Objects.equals(this.currency, that.currency) + && Objects.equals(this.budgetInfos, that.budgetInfos); + } + + @Override + public int hashCode() { + return Objects.hash(measureId, currency, budgetInfos); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListSubCustomerBudgetResponse {\n"); + sb.append(" measureId: ").append(toIndentedString(measureId)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append(" budgetInfos: ").append(toIndentedString(budgetInfos)).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/pom.xml b/services/cae/pom.xml index 2b8d84ef4f..cb68000676 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-cae - 3.1.94 + 3.1.95 Huawei Cloud SDK for CAE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 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 29c87cbdbd..ea8b97f014 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 @@ -20,6 +20,8 @@ import com.huaweicloud.sdk.cae.v1.model.CreateTimerRuleResponse; import com.huaweicloud.sdk.cae.v1.model.CreateVolumeRequest; import com.huaweicloud.sdk.cae.v1.model.CreateVolumeResponse; +import com.huaweicloud.sdk.cae.v1.model.CreateVpcEgressRequest; +import com.huaweicloud.sdk.cae.v1.model.CreateVpcEgressResponse; import com.huaweicloud.sdk.cae.v1.model.DeleteApplicationRequest; import com.huaweicloud.sdk.cae.v1.model.DeleteApplicationResponse; import com.huaweicloud.sdk.cae.v1.model.DeleteCertificateRequest; @@ -36,6 +38,8 @@ import com.huaweicloud.sdk.cae.v1.model.DeleteTimerRuleResponse; import com.huaweicloud.sdk.cae.v1.model.DeleteVolumeRequest; import com.huaweicloud.sdk.cae.v1.model.DeleteVolumeResponse; +import com.huaweicloud.sdk.cae.v1.model.DeleteVpcEgressRequest; +import com.huaweicloud.sdk.cae.v1.model.DeleteVpcEgressResponse; import com.huaweicloud.sdk.cae.v1.model.ExecuteActionRequest; import com.huaweicloud.sdk.cae.v1.model.ExecuteActionResponse; import com.huaweicloud.sdk.cae.v1.model.ListAgenciesRequest; @@ -64,6 +68,8 @@ import com.huaweicloud.sdk.cae.v1.model.ListTimerRulesResponse; import com.huaweicloud.sdk.cae.v1.model.ListVolumesRequest; import com.huaweicloud.sdk.cae.v1.model.ListVolumesResponse; +import com.huaweicloud.sdk.cae.v1.model.ListVpcEgressRequest; +import com.huaweicloud.sdk.cae.v1.model.ListVpcEgressResponse; import com.huaweicloud.sdk.cae.v1.model.RetryJobRequest; import com.huaweicloud.sdk.cae.v1.model.RetryJobResponse; import com.huaweicloud.sdk.cae.v1.model.ShowApplicationRequest; @@ -1351,4 +1357,91 @@ public AsyncInvoker listVolumesAsyncInv return new AsyncInvoker<>(request, CaeMeta.listVolumes, hcClient); } + /** + * 创建CAE环境访问VPC配置 + * + * 创建CAE环境访问VPC配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateVpcEgressRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createVpcEgressAsync(CreateVpcEgressRequest request) { + return hcClient.asyncInvokeHttp(request, CaeMeta.createVpcEgress); + } + + /** + * 创建CAE环境访问VPC配置 + * + * 创建CAE环境访问VPC配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateVpcEgressRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createVpcEgressAsyncInvoker( + CreateVpcEgressRequest request) { + return new AsyncInvoker<>(request, CaeMeta.createVpcEgress, hcClient); + } + + /** + * 删除CAE环境访问VPC配置 + * + * 删除CAE环境访问VPC配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteVpcEgressRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteVpcEgressAsync(DeleteVpcEgressRequest request) { + return hcClient.asyncInvokeHttp(request, CaeMeta.deleteVpcEgress); + } + + /** + * 删除CAE环境访问VPC配置 + * + * 删除CAE环境访问VPC配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteVpcEgressRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteVpcEgressAsyncInvoker( + DeleteVpcEgressRequest request) { + return new AsyncInvoker<>(request, CaeMeta.deleteVpcEgress, hcClient); + } + + /** + * 获取CAE环境访问VPC配置 + * + * 获取CAE环境访问VPC配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListVpcEgressRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listVpcEgressAsync(ListVpcEgressRequest request) { + return hcClient.asyncInvokeHttp(request, CaeMeta.listVpcEgress); + } + + /** + * 获取CAE环境访问VPC配置 + * + * 获取CAE环境访问VPC配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListVpcEgressRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listVpcEgressAsyncInvoker( + ListVpcEgressRequest request) { + return new AsyncInvoker<>(request, CaeMeta.listVpcEgress, 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 cb2a9eea0e..b908edd148 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 @@ -20,6 +20,8 @@ import com.huaweicloud.sdk.cae.v1.model.CreateTimerRuleResponse; import com.huaweicloud.sdk.cae.v1.model.CreateVolumeRequest; import com.huaweicloud.sdk.cae.v1.model.CreateVolumeResponse; +import com.huaweicloud.sdk.cae.v1.model.CreateVpcEgressRequest; +import com.huaweicloud.sdk.cae.v1.model.CreateVpcEgressResponse; import com.huaweicloud.sdk.cae.v1.model.DeleteApplicationRequest; import com.huaweicloud.sdk.cae.v1.model.DeleteApplicationResponse; import com.huaweicloud.sdk.cae.v1.model.DeleteCertificateRequest; @@ -36,6 +38,8 @@ import com.huaweicloud.sdk.cae.v1.model.DeleteTimerRuleResponse; import com.huaweicloud.sdk.cae.v1.model.DeleteVolumeRequest; import com.huaweicloud.sdk.cae.v1.model.DeleteVolumeResponse; +import com.huaweicloud.sdk.cae.v1.model.DeleteVpcEgressRequest; +import com.huaweicloud.sdk.cae.v1.model.DeleteVpcEgressResponse; import com.huaweicloud.sdk.cae.v1.model.ExecuteActionRequest; import com.huaweicloud.sdk.cae.v1.model.ExecuteActionResponse; import com.huaweicloud.sdk.cae.v1.model.ListAgenciesRequest; @@ -64,6 +68,8 @@ import com.huaweicloud.sdk.cae.v1.model.ListTimerRulesResponse; import com.huaweicloud.sdk.cae.v1.model.ListVolumesRequest; import com.huaweicloud.sdk.cae.v1.model.ListVolumesResponse; +import com.huaweicloud.sdk.cae.v1.model.ListVpcEgressRequest; +import com.huaweicloud.sdk.cae.v1.model.ListVpcEgressResponse; import com.huaweicloud.sdk.cae.v1.model.RetryJobRequest; import com.huaweicloud.sdk.cae.v1.model.RetryJobResponse; import com.huaweicloud.sdk.cae.v1.model.ShowApplicationRequest; @@ -1338,4 +1344,90 @@ public SyncInvoker listVolumesInvoker(L return new SyncInvoker<>(request, CaeMeta.listVolumes, hcClient); } + /** + * 创建CAE环境访问VPC配置 + * + * 创建CAE环境访问VPC配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateVpcEgressRequest 请求对象 + * @return CreateVpcEgressResponse + */ + public CreateVpcEgressResponse createVpcEgress(CreateVpcEgressRequest request) { + return hcClient.syncInvokeHttp(request, CaeMeta.createVpcEgress); + } + + /** + * 创建CAE环境访问VPC配置 + * + * 创建CAE环境访问VPC配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateVpcEgressRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createVpcEgressInvoker( + CreateVpcEgressRequest request) { + return new SyncInvoker<>(request, CaeMeta.createVpcEgress, hcClient); + } + + /** + * 删除CAE环境访问VPC配置 + * + * 删除CAE环境访问VPC配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteVpcEgressRequest 请求对象 + * @return DeleteVpcEgressResponse + */ + public DeleteVpcEgressResponse deleteVpcEgress(DeleteVpcEgressRequest request) { + return hcClient.syncInvokeHttp(request, CaeMeta.deleteVpcEgress); + } + + /** + * 删除CAE环境访问VPC配置 + * + * 删除CAE环境访问VPC配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteVpcEgressRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteVpcEgressInvoker( + DeleteVpcEgressRequest request) { + return new SyncInvoker<>(request, CaeMeta.deleteVpcEgress, hcClient); + } + + /** + * 获取CAE环境访问VPC配置 + * + * 获取CAE环境访问VPC配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListVpcEgressRequest 请求对象 + * @return ListVpcEgressResponse + */ + public ListVpcEgressResponse listVpcEgress(ListVpcEgressRequest request) { + return hcClient.syncInvokeHttp(request, CaeMeta.listVpcEgress); + } + + /** + * 获取CAE环境访问VPC配置 + * + * 获取CAE环境访问VPC配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListVpcEgressRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listVpcEgressInvoker(ListVpcEgressRequest request) { + return new SyncInvoker<>(request, CaeMeta.listVpcEgress, 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 0895c20c31..bcecabf804 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 @@ -29,6 +29,8 @@ import com.huaweicloud.sdk.cae.v1.model.CreateVolumeReq; import com.huaweicloud.sdk.cae.v1.model.CreateVolumeRequest; import com.huaweicloud.sdk.cae.v1.model.CreateVolumeResponse; +import com.huaweicloud.sdk.cae.v1.model.CreateVpcEgressRequest; +import com.huaweicloud.sdk.cae.v1.model.CreateVpcEgressResponse; import com.huaweicloud.sdk.cae.v1.model.DeleteApplicationRequest; import com.huaweicloud.sdk.cae.v1.model.DeleteApplicationResponse; import com.huaweicloud.sdk.cae.v1.model.DeleteCertificateRequest; @@ -45,6 +47,8 @@ import com.huaweicloud.sdk.cae.v1.model.DeleteTimerRuleResponse; import com.huaweicloud.sdk.cae.v1.model.DeleteVolumeRequest; import com.huaweicloud.sdk.cae.v1.model.DeleteVolumeResponse; +import com.huaweicloud.sdk.cae.v1.model.DeleteVpcEgressRequest; +import com.huaweicloud.sdk.cae.v1.model.DeleteVpcEgressResponse; import com.huaweicloud.sdk.cae.v1.model.ExecuteActionRequest; import com.huaweicloud.sdk.cae.v1.model.ExecuteActionRequestBody; import com.huaweicloud.sdk.cae.v1.model.ExecuteActionResponse; @@ -74,6 +78,8 @@ import com.huaweicloud.sdk.cae.v1.model.ListTimerRulesResponse; import com.huaweicloud.sdk.cae.v1.model.ListVolumesRequest; import com.huaweicloud.sdk.cae.v1.model.ListVolumesResponse; +import com.huaweicloud.sdk.cae.v1.model.ListVpcEgressRequest; +import com.huaweicloud.sdk.cae.v1.model.ListVpcEgressResponse; import com.huaweicloud.sdk.cae.v1.model.MonitorSystemRequestBody; import com.huaweicloud.sdk.cae.v1.model.RetryJobRequest; import com.huaweicloud.sdk.cae.v1.model.RetryJobResponse; @@ -101,6 +107,7 @@ import com.huaweicloud.sdk.cae.v1.model.UpdateTimerRuleReq; import com.huaweicloud.sdk.cae.v1.model.UpdateTimerRuleRequest; import com.huaweicloud.sdk.cae.v1.model.UpdateTimerRuleResponse; +import com.huaweicloud.sdk.cae.v1.model.VpcEgressRequestBody; import com.huaweicloud.sdk.core.TypeCasts; import com.huaweicloud.sdk.core.http.FieldExistence; import com.huaweicloud.sdk.core.http.HttpMethod; @@ -1627,4 +1634,103 @@ private static HttpRequestDef genForLis return builder.build(); } + public static final HttpRequestDef createVpcEgress = + genForCreateVpcEgress(); + + private static HttpRequestDef genForCreateVpcEgress() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, CreateVpcEgressRequest.class, CreateVpcEgressResponse.class) + .withName("CreateVpcEgress") + .withUri("/v1/{project_id}/cae/vpc-egress") + .withContentType("application/json"); + + // requests + builder.withRequestField("X-Enterprise-Project-ID", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateVpcEgressRequest::getXEnterpriseProjectID, + CreateVpcEgressRequest::setXEnterpriseProjectID)); + builder.withRequestField("X-Environment-ID", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateVpcEgressRequest::getXEnvironmentID, + CreateVpcEgressRequest::setXEnvironmentID)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(VpcEgressRequestBody.class), + f -> f.withMarshaller(CreateVpcEgressRequest::getBody, CreateVpcEgressRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef deleteVpcEgress = + genForDeleteVpcEgress(); + + private static HttpRequestDef genForDeleteVpcEgress() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.DELETE, DeleteVpcEgressRequest.class, DeleteVpcEgressResponse.class) + .withName("DeleteVpcEgress") + .withUri("/v1/{project_id}/cae/vpc-egress/{vpc_egress_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("vpc_egress_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteVpcEgressRequest::getVpcEgressId, DeleteVpcEgressRequest::setVpcEgressId)); + builder.withRequestField("X-Enterprise-Project-ID", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteVpcEgressRequest::getXEnterpriseProjectID, + DeleteVpcEgressRequest::setXEnterpriseProjectID)); + builder.withRequestField("X-Environment-ID", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteVpcEgressRequest::getXEnvironmentID, + DeleteVpcEgressRequest::setXEnvironmentID)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listVpcEgress = + genForListVpcEgress(); + + private static HttpRequestDef genForListVpcEgress() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListVpcEgressRequest.class, ListVpcEgressResponse.class) + .withName("ListVpcEgress") + .withUri("/v1/{project_id}/cae/vpc-egress") + .withContentType("application/json"); + + // requests + builder.withRequestField("X-Enterprise-Project-ID", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListVpcEgressRequest::getXEnterpriseProjectID, + ListVpcEgressRequest::setXEnterpriseProjectID)); + builder.withRequestField("X-Environment-ID", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListVpcEgressRequest::getXEnvironmentID, ListVpcEgressRequest::setXEnvironmentID)); + + // response + + return builder.build(); + } + } diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateEnvironmentRequestBodyMetadata.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateEnvironmentRequestBodyMetadata.java index a331cc7432..1cc24295f7 100644 --- a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateEnvironmentRequestBodyMetadata.java +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateEnvironmentRequestBodyMetadata.java @@ -45,7 +45,7 @@ public CreateEnvironmentRequestBodyMetadata withAnnotations(Consumer getAnnotations() { diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateVpcEgressRequest.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateVpcEgressRequest.java new file mode 100644 index 0000000000..0b9f9be5fc --- /dev/null +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateVpcEgressRequest.java @@ -0,0 +1,133 @@ +package com.huaweicloud.sdk.cae.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 CreateVpcEgressRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Enterprise-Project-ID") + + private String xEnterpriseProjectID; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Environment-ID") + + private String xEnvironmentID; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private VpcEgressRequestBody body; + + public CreateVpcEgressRequest withXEnterpriseProjectID(String xEnterpriseProjectID) { + this.xEnterpriseProjectID = xEnterpriseProjectID; + return this; + } + + /** + * 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目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 CreateVpcEgressRequest 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 CreateVpcEgressRequest withBody(VpcEgressRequestBody body) { + this.body = body; + return this; + } + + public CreateVpcEgressRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new VpcEgressRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public VpcEgressRequestBody getBody() { + return body; + } + + public void setBody(VpcEgressRequestBody 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; + } + CreateVpcEgressRequest that = (CreateVpcEgressRequest) obj; + return 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(xEnterpriseProjectID, xEnvironmentID, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateVpcEgressRequest {\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/CreateVpcEgressResponse.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateVpcEgressResponse.java new file mode 100644 index 0000000000..7a8067c87d --- /dev/null +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateVpcEgressResponse.java @@ -0,0 +1,130 @@ +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.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class CreateVpcEgressResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "api_version") + + private ApiVersionObj apiVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "kind") + + private VpcEgressKindObj kind; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "spec") + + private VpcEgressResponseBodySpec spec; + + public CreateVpcEgressResponse 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 CreateVpcEgressResponse withKind(VpcEgressKindObj kind) { + this.kind = kind; + return this; + } + + /** + * Get kind + * @return kind + */ + public VpcEgressKindObj getKind() { + return kind; + } + + public void setKind(VpcEgressKindObj kind) { + this.kind = kind; + } + + public CreateVpcEgressResponse withSpec(VpcEgressResponseBodySpec spec) { + this.spec = spec; + return this; + } + + public CreateVpcEgressResponse withSpec(Consumer specSetter) { + if (this.spec == null) { + this.spec = new VpcEgressResponseBodySpec(); + specSetter.accept(this.spec); + } + + return this; + } + + /** + * Get spec + * @return spec + */ + public VpcEgressResponseBodySpec getSpec() { + return spec; + } + + public void setSpec(VpcEgressResponseBodySpec spec) { + this.spec = spec; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateVpcEgressResponse that = (CreateVpcEgressResponse) obj; + return Objects.equals(this.apiVersion, that.apiVersion) && Objects.equals(this.kind, that.kind) + && Objects.equals(this.spec, that.spec); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, spec); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateVpcEgressResponse {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).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/DeleteVpcEgressRequest.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/DeleteVpcEgressRequest.java new file mode 100644 index 0000000000..fa191b5bc6 --- /dev/null +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/DeleteVpcEgressRequest.java @@ -0,0 +1,124 @@ +package com.huaweicloud.sdk.cae.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class DeleteVpcEgressRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "vpc_egress_id") + + private String vpcEgressId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Enterprise-Project-ID") + + private String xEnterpriseProjectID; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Environment-ID") + + private String xEnvironmentID; + + public DeleteVpcEgressRequest withVpcEgressId(String vpcEgressId) { + this.vpcEgressId = vpcEgressId; + return this; + } + + /** + * CAE环境访问VPC配置ID。 + * @return vpcEgressId + */ + public String getVpcEgressId() { + return vpcEgressId; + } + + public void setVpcEgressId(String vpcEgressId) { + this.vpcEgressId = vpcEgressId; + } + + public DeleteVpcEgressRequest withXEnterpriseProjectID(String xEnterpriseProjectID) { + this.xEnterpriseProjectID = xEnterpriseProjectID; + return this; + } + + /** + * 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目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 DeleteVpcEgressRequest 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; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteVpcEgressRequest that = (DeleteVpcEgressRequest) obj; + return Objects.equals(this.vpcEgressId, that.vpcEgressId) + && Objects.equals(this.xEnterpriseProjectID, that.xEnterpriseProjectID) + && Objects.equals(this.xEnvironmentID, that.xEnvironmentID); + } + + @Override + public int hashCode() { + return Objects.hash(vpcEgressId, xEnterpriseProjectID, xEnvironmentID); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteVpcEgressRequest {\n"); + sb.append(" vpcEgressId: ").append(toIndentedString(vpcEgressId)).append("\n"); + sb.append(" xEnterpriseProjectID: ").append(toIndentedString(xEnterpriseProjectID)).append("\n"); + sb.append(" xEnvironmentID: ").append(toIndentedString(xEnvironmentID)).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/DeleteVpcEgressResponse.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/DeleteVpcEgressResponse.java new file mode 100644 index 0000000000..d40e7ba2d7 --- /dev/null +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/DeleteVpcEgressResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.cae.v1.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeleteVpcEgressResponse 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 DeleteVpcEgressResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/EgressCidr.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/EgressCidr.java new file mode 100644 index 0000000000..53169d2b2a --- /dev/null +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/EgressCidr.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.cae.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * CAE环境访问VPC配置。 + */ +public class EgressCidr { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cidr") + + private String cidr; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "route_table_id") + + private String routeTableId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + public EgressCidr withCidr(String cidr) { + this.cidr = cidr; + return this; + } + + /** + * 目的网络Cidr。 + * @return cidr + */ + public String getCidr() { + return cidr; + } + + public void setCidr(String cidr) { + this.cidr = cidr; + } + + public EgressCidr withRouteTableId(String routeTableId) { + this.routeTableId = routeTableId; + return this; + } + + /** + * 目的网络所属CAE环境VPC的路由表ID。 + * @return routeTableId + */ + public String getRouteTableId() { + return routeTableId; + } + + public void setRouteTableId(String routeTableId) { + this.routeTableId = routeTableId; + } + + public EgressCidr withId(String id) { + this.id = id; + return this; + } + + /** + * CAE环境访问VPC配置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; + } + EgressCidr that = (EgressCidr) obj; + return Objects.equals(this.cidr, that.cidr) && Objects.equals(this.routeTableId, that.routeTableId) + && Objects.equals(this.id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(cidr, routeTableId, id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EgressCidr {\n"); + sb.append(" cidr: ").append(toIndentedString(cidr)).append("\n"); + sb.append(" routeTableId: ").append(toIndentedString(routeTableId)).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/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ListVpcEgressRequest.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ListVpcEgressRequest.java new file mode 100644 index 0000000000..da75029b6b --- /dev/null +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ListVpcEgressRequest.java @@ -0,0 +1,100 @@ +package com.huaweicloud.sdk.cae.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListVpcEgressRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Enterprise-Project-ID") + + private String xEnterpriseProjectID; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Environment-ID") + + private String xEnvironmentID; + + public ListVpcEgressRequest withXEnterpriseProjectID(String xEnterpriseProjectID) { + this.xEnterpriseProjectID = xEnterpriseProjectID; + return this; + } + + /** + * 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目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 ListVpcEgressRequest 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; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListVpcEgressRequest that = (ListVpcEgressRequest) obj; + return Objects.equals(this.xEnterpriseProjectID, that.xEnterpriseProjectID) + && Objects.equals(this.xEnvironmentID, that.xEnvironmentID); + } + + @Override + public int hashCode() { + return Objects.hash(xEnterpriseProjectID, xEnvironmentID); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListVpcEgressRequest {\n"); + sb.append(" xEnterpriseProjectID: ").append(toIndentedString(xEnterpriseProjectID)).append("\n"); + sb.append(" xEnvironmentID: ").append(toIndentedString(xEnvironmentID)).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/ListVpcEgressResponse.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ListVpcEgressResponse.java new file mode 100644 index 0000000000..8279bd1e8c --- /dev/null +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ListVpcEgressResponse.java @@ -0,0 +1,130 @@ +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.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListVpcEgressResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "api_version") + + private ApiVersionObj apiVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "kind") + + private VpcEgressKindObj kind; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "spec") + + private VpcEgressResponseBodySpec spec; + + public ListVpcEgressResponse 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 ListVpcEgressResponse withKind(VpcEgressKindObj kind) { + this.kind = kind; + return this; + } + + /** + * Get kind + * @return kind + */ + public VpcEgressKindObj getKind() { + return kind; + } + + public void setKind(VpcEgressKindObj kind) { + this.kind = kind; + } + + public ListVpcEgressResponse withSpec(VpcEgressResponseBodySpec spec) { + this.spec = spec; + return this; + } + + public ListVpcEgressResponse withSpec(Consumer specSetter) { + if (this.spec == null) { + this.spec = new VpcEgressResponseBodySpec(); + specSetter.accept(this.spec); + } + + return this; + } + + /** + * Get spec + * @return spec + */ + public VpcEgressResponseBodySpec getSpec() { + return spec; + } + + public void setSpec(VpcEgressResponseBodySpec spec) { + this.spec = spec; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListVpcEgressResponse that = (ListVpcEgressResponse) obj; + return Objects.equals(this.apiVersion, that.apiVersion) && Objects.equals(this.kind, that.kind) + && Objects.equals(this.spec, that.spec); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, spec); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListVpcEgressResponse {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).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/VpcEgressKindObj.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/VpcEgressKindObj.java new file mode 100644 index 0000000000..adc2b0814c --- /dev/null +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/VpcEgressKindObj.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.cae.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; + +/** + * API类型,固定值“VpcEgress”,该值不可修改。 + */ +public class VpcEgressKindObj { + + /** + * Enum VPCEGRESS for value: "VpcEgress" + */ + public static final VpcEgressKindObj VPCEGRESS = new VpcEgressKindObj("VpcEgress"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("VpcEgress", VPCEGRESS); + return Collections.unmodifiableMap(map); + } + + private String value; + + VpcEgressKindObj(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static VpcEgressKindObj fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new VpcEgressKindObj(value)); + } + + public static VpcEgressKindObj 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 VpcEgressKindObj) { + return this.value.equals(((VpcEgressKindObj) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } +} diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/VpcEgressRequestBody.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/VpcEgressRequestBody.java new file mode 100644 index 0000000000..ab2fe10bf7 --- /dev/null +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/VpcEgressRequestBody.java @@ -0,0 +1,129 @@ +package com.huaweicloud.sdk.cae.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * VpcEgressRequestBody + */ +public class VpcEgressRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "api_version") + + private ApiVersionObj apiVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "kind") + + private VpcEgressKindObj kind; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "spec") + + private VpcEgressRequestBodySpec spec; + + public VpcEgressRequestBody 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 VpcEgressRequestBody withKind(VpcEgressKindObj kind) { + this.kind = kind; + return this; + } + + /** + * Get kind + * @return kind + */ + public VpcEgressKindObj getKind() { + return kind; + } + + public void setKind(VpcEgressKindObj kind) { + this.kind = kind; + } + + public VpcEgressRequestBody withSpec(VpcEgressRequestBodySpec spec) { + this.spec = spec; + return this; + } + + public VpcEgressRequestBody withSpec(Consumer specSetter) { + if (this.spec == null) { + this.spec = new VpcEgressRequestBodySpec(); + specSetter.accept(this.spec); + } + + return this; + } + + /** + * Get spec + * @return spec + */ + public VpcEgressRequestBodySpec getSpec() { + return spec; + } + + public void setSpec(VpcEgressRequestBodySpec spec) { + this.spec = spec; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + VpcEgressRequestBody that = (VpcEgressRequestBody) obj; + return Objects.equals(this.apiVersion, that.apiVersion) && Objects.equals(this.kind, that.kind) + && Objects.equals(this.spec, that.spec); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, spec); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VpcEgressRequestBody {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).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/VpcEgressRequestBodySpec.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/VpcEgressRequestBodySpec.java new file mode 100644 index 0000000000..ee6c1504aa --- /dev/null +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/VpcEgressRequestBodySpec.java @@ -0,0 +1,91 @@ +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; + +/** + * 创建CAE环境访问VPC配置。 + */ +public class VpcEgressRequestBodySpec { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cidrs") + + private List cidrs = null; + + public VpcEgressRequestBodySpec withCidrs(List cidrs) { + this.cidrs = cidrs; + return this; + } + + public VpcEgressRequestBodySpec addCidrsItem(EgressCidr cidrsItem) { + if (this.cidrs == null) { + this.cidrs = new ArrayList<>(); + } + this.cidrs.add(cidrsItem); + return this; + } + + public VpcEgressRequestBodySpec withCidrs(Consumer> cidrsSetter) { + if (this.cidrs == null) { + this.cidrs = new ArrayList<>(); + } + cidrsSetter.accept(this.cidrs); + return this; + } + + /** + * CAE环境访问VPC配置。 + * @return cidrs + */ + public List getCidrs() { + return cidrs; + } + + public void setCidrs(List cidrs) { + this.cidrs = cidrs; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + VpcEgressRequestBodySpec that = (VpcEgressRequestBodySpec) obj; + return Objects.equals(this.cidrs, that.cidrs); + } + + @Override + public int hashCode() { + return Objects.hash(cidrs); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VpcEgressRequestBodySpec {\n"); + sb.append(" cidrs: ").append(toIndentedString(cidrs)).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/VpcEgressResponseBodySpec.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/VpcEgressResponseBodySpec.java new file mode 100644 index 0000000000..3dd2debf99 --- /dev/null +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/VpcEgressResponseBodySpec.java @@ -0,0 +1,138 @@ +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; + +/** + * 创建CAE环境访问VPC配置。 + */ +public class VpcEgressResponseBodySpec { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "vpc_id") + + private String vpcId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "subnet_id") + + private String subnetId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cidrs") + + private List cidrs = null; + + public VpcEgressResponseBodySpec withVpcId(String vpcId) { + this.vpcId = vpcId; + return this; + } + + /** + * CAE环境VPCID。 + * @return vpcId + */ + public String getVpcId() { + return vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public VpcEgressResponseBodySpec withSubnetId(String subnetId) { + this.subnetId = subnetId; + return this; + } + + /** + * CAE环境子网ID。 + * @return subnetId + */ + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public VpcEgressResponseBodySpec withCidrs(List cidrs) { + this.cidrs = cidrs; + return this; + } + + public VpcEgressResponseBodySpec addCidrsItem(EgressCidr cidrsItem) { + if (this.cidrs == null) { + this.cidrs = new ArrayList<>(); + } + this.cidrs.add(cidrsItem); + return this; + } + + public VpcEgressResponseBodySpec withCidrs(Consumer> cidrsSetter) { + if (this.cidrs == null) { + this.cidrs = new ArrayList<>(); + } + cidrsSetter.accept(this.cidrs); + return this; + } + + /** + * CAE环境访问VPC配置。 + * @return cidrs + */ + public List getCidrs() { + return cidrs; + } + + public void setCidrs(List cidrs) { + this.cidrs = cidrs; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + VpcEgressResponseBodySpec that = (VpcEgressResponseBodySpec) obj; + return Objects.equals(this.vpcId, that.vpcId) && Objects.equals(this.subnetId, that.subnetId) + && Objects.equals(this.cidrs, that.cidrs); + } + + @Override + public int hashCode() { + return Objects.hash(vpcId, subnetId, cidrs); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VpcEgressResponseBodySpec {\n"); + sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n"); + sb.append(" subnetId: ").append(toIndentedString(subnetId)).append("\n"); + sb.append(" cidrs: ").append(toIndentedString(cidrs)).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 f5ca8cde84..691ce2f0cf 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-campusgo - 3.1.94 + 3.1.95 Huawei Cloud SDK for CAMPUSGO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/cbh/pom.xml b/services/cbh/pom.xml index 51e753a014..38b0c5bf6a 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-cbh - 3.1.94 + 3.1.95 Huawei Cloud SDK for CBH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/cbh/src/main/java/com/huaweicloud/sdk/cbh/v1/model/ChangeInstanceNetworkResponse.java b/services/cbh/src/main/java/com/huaweicloud/sdk/cbh/v1/model/ChangeInstanceNetworkResponse.java index acea8e0aa2..7a6dec5312 100644 --- a/services/cbh/src/main/java/com/huaweicloud/sdk/cbh/v1/model/ChangeInstanceNetworkResponse.java +++ b/services/cbh/src/main/java/com/huaweicloud/sdk/cbh/v1/model/ChangeInstanceNetworkResponse.java @@ -14,12 +14,12 @@ public class ChangeInstanceNetworkResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "status") - private String status; + private Boolean status; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "security_grp_status") - private String securityGrpStatus; + private Boolean securityGrpStatus; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "firewall_status") @@ -31,47 +31,37 @@ public class ChangeInstanceNetworkResponse extends SdkResponse { private Boolean publicEipStatus; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "nics") - - private Boolean nics; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "public_eip_statu") - - private Boolean publicEipStatu; - - public ChangeInstanceNetworkResponse withStatus(String status) { + public ChangeInstanceNetworkResponse withStatus(Boolean status) { this.status = status; return this; } /** - * 状态 + * 云堡垒机实例网络状态。下面3个正常则正常,有一个不正常,网络状态为失败。 * @return status */ - public String getStatus() { + public Boolean getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(Boolean status) { this.status = status; } - public ChangeInstanceNetworkResponse withSecurityGrpStatus(String securityGrpStatus) { + public ChangeInstanceNetworkResponse withSecurityGrpStatus(Boolean securityGrpStatus) { this.securityGrpStatus = securityGrpStatus; return this; } /** - * 安全组 + * 云堡垒机实例安全组状态。 - true 正常 - false 失败 * @return securityGrpStatus */ - public String getSecurityGrpStatus() { + public Boolean getSecurityGrpStatus() { return securityGrpStatus; } - public void setSecurityGrpStatus(String securityGrpStatus) { + public void setSecurityGrpStatus(Boolean securityGrpStatus) { this.securityGrpStatus = securityGrpStatus; } @@ -81,7 +71,7 @@ public ChangeInstanceNetworkResponse withFirewallStatus(Boolean firewallStatus) } /** - * 防火墙状态 + * 云堡垒机实例防火墙状态。 - true 正常 - false 失败 * @return firewallStatus */ public Boolean getFirewallStatus() { @@ -98,7 +88,7 @@ public ChangeInstanceNetworkResponse withPublicEipStatus(Boolean publicEipStatus } /** - * 公共EIP状态 + * 云堡垒机实例公网IP状态。 - true 正常 - false 失败 * @return publicEipStatus */ public Boolean getPublicEipStatus() { @@ -109,40 +99,6 @@ public void setPublicEipStatus(Boolean publicEipStatus) { this.publicEipStatus = publicEipStatus; } - public ChangeInstanceNetworkResponse withNics(Boolean nics) { - this.nics = nics; - return this; - } - - /** - * 防火墙状态(兼容) - * @return nics - */ - public Boolean getNics() { - return nics; - } - - public void setNics(Boolean nics) { - this.nics = nics; - } - - public ChangeInstanceNetworkResponse withPublicEipStatu(Boolean publicEipStatu) { - this.publicEipStatu = publicEipStatu; - return this; - } - - /** - * 公共EIP状态(兼容) - * @return publicEipStatu - */ - public Boolean getPublicEipStatu() { - return publicEipStatu; - } - - public void setPublicEipStatu(Boolean publicEipStatu) { - this.publicEipStatu = publicEipStatu; - } - @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -155,13 +111,12 @@ public boolean equals(java.lang.Object obj) { return Objects.equals(this.status, that.status) && Objects.equals(this.securityGrpStatus, that.securityGrpStatus) && Objects.equals(this.firewallStatus, that.firewallStatus) - && Objects.equals(this.publicEipStatus, that.publicEipStatus) && Objects.equals(this.nics, that.nics) - && Objects.equals(this.publicEipStatu, that.publicEipStatu); + && Objects.equals(this.publicEipStatus, that.publicEipStatus); } @Override public int hashCode() { - return Objects.hash(status, securityGrpStatus, firewallStatus, publicEipStatus, nics, publicEipStatu); + return Objects.hash(status, securityGrpStatus, firewallStatus, publicEipStatus); } @Override @@ -172,8 +127,6 @@ public String toString() { sb.append(" securityGrpStatus: ").append(toIndentedString(securityGrpStatus)).append("\n"); sb.append(" firewallStatus: ").append(toIndentedString(firewallStatus)).append("\n"); sb.append(" publicEipStatus: ").append(toIndentedString(publicEipStatus)).append("\n"); - sb.append(" nics: ").append(toIndentedString(nics)).append("\n"); - sb.append(" publicEipStatu: ").append(toIndentedString(publicEipStatu)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/cbh/src/main/java/com/huaweicloud/sdk/cbh/v2/CbhMeta.java b/services/cbh/src/main/java/com/huaweicloud/sdk/cbh/v2/CbhMeta.java index d98dba36a7..591da48fbe 100644 --- a/services/cbh/src/main/java/com/huaweicloud/sdk/cbh/v2/CbhMeta.java +++ b/services/cbh/src/main/java/com/huaweicloud/sdk/cbh/v2/CbhMeta.java @@ -170,7 +170,7 @@ private static HttpRequestDef gen // requests builder.withRequestField("instance_id", LocationType.Query, - FieldExistence.NULL_IGNORE, + FieldExistence.NON_NULL_NON_EMPTY, TypeCasts.uncheckedConversion(BigDecimal.class), f -> f.withMarshaller(DeleteInstanceRequest::getInstanceId, DeleteInstanceRequest::setInstanceId)); diff --git a/services/cbr/pom.xml b/services/cbr/pom.xml index 4ed10ad39b..5d019a0b45 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-cbr - 3.1.94 + 3.1.95 Huawei Cloud SDK for CBR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/cbs/pom.xml b/services/cbs/pom.xml index f90501bea0..5cab6e5212 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-cbs - 3.1.94 + 3.1.95 Huawei Cloud SDK for CBS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/cc/pom.xml b/services/cc/pom.xml index ab7a79e27d..7187810699 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-cc - 3.1.94 + 3.1.95 Huawei Cloud SDK for CC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/cce/pom.xml b/services/cce/pom.xml index c93194d9ac..8acdce260c 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-cce - 3.1.94 + 3.1.95 Huawei Cloud SDK for CCE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/ccm/pom.xml b/services/ccm/pom.xml index 3a5679132b..ed06639863 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-ccm - 3.1.94 + 3.1.95 Huawei Cloud SDK for CCM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/cdm/pom.xml b/services/cdm/pom.xml index 642b20968d..07a43ab0a9 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-cdm - 3.1.94 + 3.1.95 Huawei Cloud SDK for CDM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/cdn/pom.xml b/services/cdn/pom.xml index 319674a4d3..4009943f6f 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-cdn - 3.1.94 + 3.1.95 Huawei Cloud SDK for CDN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/ces/pom.xml b/services/ces/pom.xml index 3df79b91e3..03bbf53418 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-ces - 3.1.94 + 3.1.95 Huawei Cloud SDK for CES 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/cfw/pom.xml b/services/cfw/pom.xml index 4cf0dfe3aa..e967d13c2a 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-cfw - 3.1.94 + 3.1.95 Huawei Cloud SDK for CFW 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/cgs/pom.xml b/services/cgs/pom.xml index 90d0c818c5..cd809c96b8 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-cgs - 3.1.94 + 3.1.95 Huawei Cloud SDK for CGS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/classroom/pom.xml b/services/classroom/pom.xml index c43d00aab1..b499ad4675 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-classroom - 3.1.94 + 3.1.95 Huawei Cloud SDK for CLASSROOM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/cloudide/pom.xml b/services/cloudide/pom.xml index 035fd1d99c..d2f6c481d9 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-cloudide - 3.1.94 + 3.1.95 Huawei Cloud SDK for CLOUDIDE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 junit diff --git a/services/cloudpond/pom.xml b/services/cloudpond/pom.xml index df49c87fac..286aa4ade9 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-cloudpond - 3.1.94 + 3.1.95 Huawei Cloud SDK for CLOUDPOND 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/cloudpond/src/main/java/com/huaweicloud/sdk/cloudpond/v1/CloudPondAsyncClient.java b/services/cloudpond/src/main/java/com/huaweicloud/sdk/cloudpond/v1/CloudPondAsyncClient.java index 9c02731d73..2943645a2e 100644 --- a/services/cloudpond/src/main/java/com/huaweicloud/sdk/cloudpond/v1/CloudPondAsyncClient.java +++ b/services/cloudpond/src/main/java/com/huaweicloud/sdk/cloudpond/v1/CloudPondAsyncClient.java @@ -16,6 +16,8 @@ import com.huaweicloud.sdk.cloudpond.v1.model.ListStoragePoolsResponse; import com.huaweicloud.sdk.cloudpond.v1.model.ListSupportedRegionsRequest; import com.huaweicloud.sdk.cloudpond.v1.model.ListSupportedRegionsResponse; +import com.huaweicloud.sdk.cloudpond.v1.model.ListSupportedZonesRequest; +import com.huaweicloud.sdk.cloudpond.v1.model.ListSupportedZonesResponse; import com.huaweicloud.sdk.cloudpond.v1.model.ShowEdgeSiteRequest; import com.huaweicloud.sdk.cloudpond.v1.model.ShowEdgeSiteResponse; import com.huaweicloud.sdk.cloudpond.v1.model.ShowRackRequest; @@ -394,4 +396,35 @@ public AsyncInvoker showStorage return new AsyncInvoker<>(request, CloudPondMeta.showStoragePool, hcClient); } + /** + * 查询支持的地区列表 + * + * 查询支持智能边缘小站接入的华为云地区列表。 + * - 该接口支持企业项目细粒度权限的校验,具体细粒度请参见 ies:zone:list + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSupportedZonesRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listSupportedZonesAsync(ListSupportedZonesRequest request) { + return hcClient.asyncInvokeHttp(request, CloudPondMeta.listSupportedZones); + } + + /** + * 查询支持的地区列表 + * + * 查询支持智能边缘小站接入的华为云地区列表。 + * - 该接口支持企业项目细粒度权限的校验,具体细粒度请参见 ies:zone:list + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSupportedZonesRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listSupportedZonesAsyncInvoker( + ListSupportedZonesRequest request) { + return new AsyncInvoker<>(request, CloudPondMeta.listSupportedZones, hcClient); + } + } diff --git a/services/cloudpond/src/main/java/com/huaweicloud/sdk/cloudpond/v1/CloudPondClient.java b/services/cloudpond/src/main/java/com/huaweicloud/sdk/cloudpond/v1/CloudPondClient.java index 0ed5657765..6b860eac45 100644 --- a/services/cloudpond/src/main/java/com/huaweicloud/sdk/cloudpond/v1/CloudPondClient.java +++ b/services/cloudpond/src/main/java/com/huaweicloud/sdk/cloudpond/v1/CloudPondClient.java @@ -16,6 +16,8 @@ import com.huaweicloud.sdk.cloudpond.v1.model.ListStoragePoolsResponse; import com.huaweicloud.sdk.cloudpond.v1.model.ListSupportedRegionsRequest; import com.huaweicloud.sdk.cloudpond.v1.model.ListSupportedRegionsResponse; +import com.huaweicloud.sdk.cloudpond.v1.model.ListSupportedZonesRequest; +import com.huaweicloud.sdk.cloudpond.v1.model.ListSupportedZonesResponse; import com.huaweicloud.sdk.cloudpond.v1.model.ShowEdgeSiteRequest; import com.huaweicloud.sdk.cloudpond.v1.model.ShowEdgeSiteResponse; import com.huaweicloud.sdk.cloudpond.v1.model.ShowRackRequest; @@ -388,4 +390,35 @@ public SyncInvoker showStorageP return new SyncInvoker<>(request, CloudPondMeta.showStoragePool, hcClient); } + /** + * 查询支持的地区列表 + * + * 查询支持智能边缘小站接入的华为云地区列表。 + * - 该接口支持企业项目细粒度权限的校验,具体细粒度请参见 ies:zone:list + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSupportedZonesRequest 请求对象 + * @return ListSupportedZonesResponse + */ + public ListSupportedZonesResponse listSupportedZones(ListSupportedZonesRequest request) { + return hcClient.syncInvokeHttp(request, CloudPondMeta.listSupportedZones); + } + + /** + * 查询支持的地区列表 + * + * 查询支持智能边缘小站接入的华为云地区列表。 + * - 该接口支持企业项目细粒度权限的校验,具体细粒度请参见 ies:zone:list + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSupportedZonesRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listSupportedZonesInvoker( + ListSupportedZonesRequest request) { + return new SyncInvoker<>(request, CloudPondMeta.listSupportedZones, hcClient); + } + } diff --git a/services/cloudpond/src/main/java/com/huaweicloud/sdk/cloudpond/v1/CloudPondMeta.java b/services/cloudpond/src/main/java/com/huaweicloud/sdk/cloudpond/v1/CloudPondMeta.java index a052705a92..2d4a1a817a 100644 --- a/services/cloudpond/src/main/java/com/huaweicloud/sdk/cloudpond/v1/CloudPondMeta.java +++ b/services/cloudpond/src/main/java/com/huaweicloud/sdk/cloudpond/v1/CloudPondMeta.java @@ -17,6 +17,8 @@ import com.huaweicloud.sdk.cloudpond.v1.model.ListStoragePoolsResponse; import com.huaweicloud.sdk.cloudpond.v1.model.ListSupportedRegionsRequest; import com.huaweicloud.sdk.cloudpond.v1.model.ListSupportedRegionsResponse; +import com.huaweicloud.sdk.cloudpond.v1.model.ListSupportedZonesRequest; +import com.huaweicloud.sdk.cloudpond.v1.model.ListSupportedZonesResponse; import com.huaweicloud.sdk.cloudpond.v1.model.ShowEdgeSiteRequest; import com.huaweicloud.sdk.cloudpond.v1.model.ShowEdgeSiteResponse; import com.huaweicloud.sdk.cloudpond.v1.model.ShowRackRequest; @@ -412,4 +414,47 @@ private static HttpRequestDef g return builder.build(); } + public static final HttpRequestDef listSupportedZones = + genForListSupportedZones(); + + private static HttpRequestDef genForListSupportedZones() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListSupportedZonesRequest.class, ListSupportedZonesResponse.class) + .withName("ListSupportedZones") + .withUri("/v1/{domain_id}/zones") + .withContentType("application/json"); + + // requests + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListSupportedZonesRequest::getLimit, ListSupportedZonesRequest::setLimit)); + builder.withRequestField("marker", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListSupportedZonesRequest::getMarker, ListSupportedZonesRequest::setMarker)); + builder.>withRequestField("sort_key", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(List.class), + f -> f.withMarshaller(ListSupportedZonesRequest::getSortKey, ListSupportedZonesRequest::setSortKey)); + builder.>withRequestField("sort_dir", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(List.class), + f -> f.withMarshaller(ListSupportedZonesRequest::getSortDir, ListSupportedZonesRequest::setSortDir)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ListSupportedZonesRequest.XLanguageEnum.class), + f -> f.withMarshaller(ListSupportedZonesRequest::getXLanguage, ListSupportedZonesRequest::setXLanguage)); + + // response + + return builder.build(); + } + } diff --git a/services/cloudpond/src/main/java/com/huaweicloud/sdk/cloudpond/v1/model/ListSupportedZonesRequest.java b/services/cloudpond/src/main/java/com/huaweicloud/sdk/cloudpond/v1/model/ListSupportedZonesRequest.java new file mode 100644 index 0000000000..5039414bfb --- /dev/null +++ b/services/cloudpond/src/main/java/com/huaweicloud/sdk/cloudpond/v1/model/ListSupportedZonesRequest.java @@ -0,0 +1,298 @@ +package com.huaweicloud.sdk.cloudpond.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; + +/** + * Request Object + */ +public class ListSupportedZonesRequest { + + /** + * 选择接口返回信息的语言类型,默认为中文\"zh-cn\" + */ + 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"); + + /** + * Enum PT_BR for value: "pt-br" + */ + public static final XLanguageEnum PT_BR = new XLanguageEnum("pt-br"); + + /** + * Enum ES_US for value: "es-us" + */ + public static final XLanguageEnum ES_US = new XLanguageEnum("es-us"); + + /** + * Enum ES_ES for value: "es-es" + */ + public static final XLanguageEnum ES_ES = new XLanguageEnum("es-es"); + + 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); + map.put("pt-br", PT_BR); + map.put("es-us", ES_US); + map.put("es-es", ES_ES); + 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 = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "marker") + + private String marker; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sort_key") + + private List sortKey = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sort_dir") + + private List sortDir = null; + + public ListSupportedZonesRequest withXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 选择接口返回信息的语言类型,默认为中文\"zh-cn\" + * @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 ListSupportedZonesRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 每页的数量 + * minimum: 1 + * maximum: 2000 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListSupportedZonesRequest withMarker(String marker) { + this.marker = marker; + return this; + } + + /** + * 分页标识 + * @return marker + */ + public String getMarker() { + return marker; + } + + public void setMarker(String marker) { + this.marker = marker; + } + + public ListSupportedZonesRequest withSortKey(List sortKey) { + this.sortKey = sortKey; + return this; + } + + public ListSupportedZonesRequest addSortKeyItem(String sortKeyItem) { + if (this.sortKey == null) { + this.sortKey = new ArrayList<>(); + } + this.sortKey.add(sortKeyItem); + return this; + } + + public ListSupportedZonesRequest withSortKey(Consumer> sortKeySetter) { + if (this.sortKey == null) { + this.sortKey = new ArrayList<>(); + } + sortKeySetter.accept(this.sortKey); + return this; + } + + /** + * 排序字段 + * @return sortKey + */ + public List getSortKey() { + return sortKey; + } + + public void setSortKey(List sortKey) { + this.sortKey = sortKey; + } + + public ListSupportedZonesRequest withSortDir(List sortDir) { + this.sortDir = sortDir; + return this; + } + + public ListSupportedZonesRequest addSortDirItem(String sortDirItem) { + if (this.sortDir == null) { + this.sortDir = new ArrayList<>(); + } + this.sortDir.add(sortDirItem); + return this; + } + + public ListSupportedZonesRequest withSortDir(Consumer> sortDirSetter) { + if (this.sortDir == null) { + this.sortDir = new ArrayList<>(); + } + sortDirSetter.accept(this.sortDir); + return this; + } + + /** + * 排序方向,取值范围: - desc:降序 - acs:升序 + * @return sortDir + */ + public List getSortDir() { + return sortDir; + } + + public void setSortDir(List sortDir) { + this.sortDir = sortDir; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListSupportedZonesRequest that = (ListSupportedZonesRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.marker, that.marker) && Objects.equals(this.sortKey, that.sortKey) + && Objects.equals(this.sortDir, that.sortDir); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, limit, marker, sortKey, sortDir); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListSupportedZonesRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" marker: ").append(toIndentedString(marker)).append("\n"); + sb.append(" sortKey: ").append(toIndentedString(sortKey)).append("\n"); + sb.append(" sortDir: ").append(toIndentedString(sortDir)).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/cloudpond/src/main/java/com/huaweicloud/sdk/cloudpond/v1/model/ListSupportedZonesResponse.java b/services/cloudpond/src/main/java/com/huaweicloud/sdk/cloudpond/v1/model/ListSupportedZonesResponse.java new file mode 100644 index 0000000000..b8ebb70ebd --- /dev/null +++ b/services/cloudpond/src/main/java/com/huaweicloud/sdk/cloudpond/v1/model/ListSupportedZonesResponse.java @@ -0,0 +1,124 @@ +package com.huaweicloud.sdk.cloudpond.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 ListSupportedZonesResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "zones") + + private List zones = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_info") + + private PageInfo pageInfo; + + public ListSupportedZonesResponse withZones(List zones) { + this.zones = zones; + return this; + } + + public ListSupportedZonesResponse addZonesItem(ZoneDetail zonesItem) { + if (this.zones == null) { + this.zones = new ArrayList<>(); + } + this.zones.add(zonesItem); + return this; + } + + public ListSupportedZonesResponse withZones(Consumer> zonesSetter) { + if (this.zones == null) { + this.zones = new ArrayList<>(); + } + zonesSetter.accept(this.zones); + return this; + } + + /** + * 地区列表 + * @return zones + */ + public List getZones() { + return zones; + } + + public void setZones(List zones) { + this.zones = zones; + } + + public ListSupportedZonesResponse withPageInfo(PageInfo pageInfo) { + this.pageInfo = pageInfo; + return this; + } + + public ListSupportedZonesResponse 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; + } + ListSupportedZonesResponse that = (ListSupportedZonesResponse) obj; + return Objects.equals(this.zones, that.zones) && Objects.equals(this.pageInfo, that.pageInfo); + } + + @Override + public int hashCode() { + return Objects.hash(zones, pageInfo); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListSupportedZonesResponse {\n"); + sb.append(" zones: ").append(toIndentedString(zones)).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/cloudpond/src/main/java/com/huaweicloud/sdk/cloudpond/v1/model/ZoneDetail.java b/services/cloudpond/src/main/java/com/huaweicloud/sdk/cloudpond/v1/model/ZoneDetail.java new file mode 100644 index 0000000000..a342960526 --- /dev/null +++ b/services/cloudpond/src/main/java/com/huaweicloud/sdk/cloudpond/v1/model/ZoneDetail.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.cloudpond.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * ZoneDetail + */ +public class ZoneDetail { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "code") + + private String code; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + public ZoneDetail withCode(String code) { + this.code = code; + return this; + } + + /** + * 地区编码,如CN。不区分大小写,统一转为大写处理 + * @return code + */ + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public ZoneDetail 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; + } + ZoneDetail that = (ZoneDetail) obj; + return Objects.equals(this.code, that.code) && Objects.equals(this.name, that.name); + } + + @Override + public int hashCode() { + return Objects.hash(code, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ZoneDetail {\n"); + sb.append(" code: ").append(toIndentedString(code)).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/cloudrtc/pom.xml b/services/cloudrtc/pom.xml index f7e1812340..f6590746e8 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-cloudrtc - 3.1.94 + 3.1.95 Huawei Cloud SDK for CLOUDRTC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/cloudtable/pom.xml b/services/cloudtable/pom.xml index 23ef784634..f506b0b537 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-cloudtable - 3.1.94 + 3.1.95 Huawei Cloud SDK for CLOUDTABLE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/cloudtest/pom.xml b/services/cloudtest/pom.xml index 95a47f4086..118a81f738 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-cloudtest - 3.1.94 + 3.1.95 Huawei Cloud SDK for CLOUDTEST 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/cms/pom.xml b/services/cms/pom.xml index b029f71b37..ac4757b46b 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-cms - 3.1.94 + 3.1.95 Huawei Cloud SDK for CMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/codeartsartifact/pom.xml b/services/codeartsartifact/pom.xml index eb47e7d013..b7a5b62924 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsartifact - 3.1.94 + 3.1.95 Huawei Cloud SDK for CODEARTSARTIFACT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/codeartsbuild/pom.xml b/services/codeartsbuild/pom.xml index c0122a5af4..8e49b178e4 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsbuild - 3.1.94 + 3.1.95 Huawei Cloud SDK for CODEARTSBUILD 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/codeartscheck/pom.xml b/services/codeartscheck/pom.xml index dfc2cf3895..b0d18ea97c 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-codeartscheck - 3.1.94 + 3.1.95 Huawei Cloud SDK for CODEARTSCHECK 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/codeartsdeploy/pom.xml b/services/codeartsdeploy/pom.xml index fc986d3b31..256ab36cfe 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsdeploy - 3.1.94 + 3.1.95 Huawei Cloud SDK for CODEARTSDEPLOY 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/codeartsinspector/pom.xml b/services/codeartsinspector/pom.xml index 5d591e1f23..9ecf02b88a 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsinspector - 3.1.94 + 3.1.95 Huawei Cloud SDK for CODEARTSINSPECTOR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/codeartspipeline/pom.xml b/services/codeartspipeline/pom.xml index 44b8451fde..266fc58aa2 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-codeartspipeline - 3.1.94 + 3.1.95 Huawei Cloud SDK for CODEARTSPIPELINE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/codecraft/pom.xml b/services/codecraft/pom.xml index 87d0580537..38ad141119 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-codecraft - 3.1.94 + 3.1.95 Huawei Cloud SDK for CODECRAFT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/codehub/pom.xml b/services/codehub/pom.xml index 0fd559f94e..fab7c7bac1 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-codehub - 3.1.94 + 3.1.95 Huawei Cloud SDK for CODEHUB 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/config/pom.xml b/services/config/pom.xml index 8c5c329919..119b5519db 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-config - 3.1.94 + 3.1.95 Huawei Cloud SDK for CONFIG 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/cph/pom.xml b/services/cph/pom.xml index b914209928..cb88398d92 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-cph - 3.1.94 + 3.1.95 Huawei Cloud SDK for CPH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/cpts/pom.xml b/services/cpts/pom.xml index 5b4e3b1f7d..21defe946e 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-cpts - 3.1.94 + 3.1.95 Huawei Cloud SDK for CPTS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/cse/pom.xml b/services/cse/pom.xml index 2a116c53b2..0ac7e13f6f 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-cse - 3.1.94 + 3.1.95 Huawei Cloud SDK for CSE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/csms/pom.xml b/services/csms/pom.xml index ac33934bb1..f48c2c6f7f 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-csms - 3.1.94 + 3.1.95 Huawei Cloud SDK for CSMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/css/pom.xml b/services/css/pom.xml index 81d903d665..417fbc3c27 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-css - 3.1.94 + 3.1.95 Huawei Cloud SDK for CSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/cts/pom.xml b/services/cts/pom.xml index 86b9627551..ffec80949d 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-cts - 3.1.94 + 3.1.95 Huawei Cloud SDK for CTS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/das/pom.xml b/services/das/pom.xml index 383138a148..83fccc2842 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-das - 3.1.94 + 3.1.95 Huawei Cloud SDK for DAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/dataartsinsight/pom.xml b/services/dataartsinsight/pom.xml index 2bfd3fb414..84be0f6ec3 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-dataartsinsight - 3.1.94 + 3.1.95 Huawei Cloud SDK for DATAARTSINSIGHT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/dataartsstudio/pom.xml b/services/dataartsstudio/pom.xml index 68bcd72c62..1f2382f41a 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-dataartsstudio - 3.1.94 + 3.1.95 Huawei Cloud SDK for DATAARTSSTUDIO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/dbss/pom.xml b/services/dbss/pom.xml index 13892d6d5a..7a5b2a76c9 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-dbss - 3.1.94 + 3.1.95 Huawei Cloud SDK for DBSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/dc/pom.xml b/services/dc/pom.xml index 7e9a8b02f5..0eb823d97f 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-dc - 3.1.94 + 3.1.95 Huawei Cloud SDK for DC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/dcs/pom.xml b/services/dcs/pom.xml index bdc0f93df6..e6879be616 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-dcs - 3.1.94 + 3.1.95 Huawei Cloud SDK for DCS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/ddm/pom.xml b/services/ddm/pom.xml index 1471266e73..c142cceb33 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-ddm - 3.1.94 + 3.1.95 Huawei Cloud SDK for DDM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/dds/pom.xml b/services/dds/pom.xml index 850d3c2de7..ca34321feb 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-dds - 3.1.94 + 3.1.95 Huawei Cloud SDK for DDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/deh/pom.xml b/services/deh/pom.xml index 1eb270bc34..3baf5aa6f9 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-deh - 3.1.94 + 3.1.95 Huawei Cloud SDK for DEH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/devsecurity/pom.xml b/services/devsecurity/pom.xml index 92194e5976..169090bd68 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-devsecurity - 3.1.94 + 3.1.95 Huawei Cloud SDK for DEVSECURITY 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/devstar/pom.xml b/services/devstar/pom.xml index ec0c21bef0..4499b863fe 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-devstar - 3.1.94 + 3.1.95 Huawei Cloud SDK for DEVSTAR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/dgc/pom.xml b/services/dgc/pom.xml index ed93042cf4..2844910de4 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-dgc - 3.1.94 + 3.1.95 Huawei Cloud SDK for DGC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/dis/pom.xml b/services/dis/pom.xml index 2827ce120b..f8052b24e8 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-dis - 3.1.94 + 3.1.95 Huawei Cloud SDK for DIS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/dlf/pom.xml b/services/dlf/pom.xml index 3a9c8f553b..e1d4aac113 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-dlf - 3.1.94 + 3.1.95 Huawei Cloud SDK for DLF 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/dli/pom.xml b/services/dli/pom.xml index 981c2b4184..5fa40b3be5 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-dli - 3.1.94 + 3.1.95 Huawei Cloud SDK for DLI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 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 cff51e1b59..b254124e99 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 @@ -107,12 +107,16 @@ import com.huaweicloud.sdk.dli.v1.model.DeleteTableResponse; import com.huaweicloud.sdk.dli.v1.model.DisassociateQueueFromEnhancedConnectionRequest; import com.huaweicloud.sdk.dli.v1.model.DisassociateQueueFromEnhancedConnectionResponse; +import com.huaweicloud.sdk.dli.v1.model.ExecuteFlinkJobSavepointRequest; +import com.huaweicloud.sdk.dli.v1.model.ExecuteFlinkJobSavepointResponse; import com.huaweicloud.sdk.dli.v1.model.ExportFlinkJobsRequest; import com.huaweicloud.sdk.dli.v1.model.ExportFlinkJobsResponse; import com.huaweicloud.sdk.dli.v1.model.ExportSqlJobResultRequest; import com.huaweicloud.sdk.dli.v1.model.ExportSqlJobResultResponse; import com.huaweicloud.sdk.dli.v1.model.ExportTableRequest; import com.huaweicloud.sdk.dli.v1.model.ExportTableResponse; +import com.huaweicloud.sdk.dli.v1.model.ImportFlinkJobSavepointRequest; +import com.huaweicloud.sdk.dli.v1.model.ImportFlinkJobSavepointResponse; import com.huaweicloud.sdk.dli.v1.model.ImportFlinkJobsRequest; import com.huaweicloud.sdk.dli.v1.model.ImportFlinkJobsResponse; import com.huaweicloud.sdk.dli.v1.model.ImportTableRequest; @@ -2921,6 +2925,36 @@ public AsyncInvoker(request, DliMeta.deleteFlinkSqlJobTemplate, hcClient); } + /** + * 触发Flink作业保存点 + * + * 触发Flink作业保存点。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ExecuteFlinkJobSavepointRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture executeFlinkJobSavepointAsync( + ExecuteFlinkJobSavepointRequest request) { + return hcClient.asyncInvokeHttp(request, DliMeta.executeFlinkJobSavepoint); + } + + /** + * 触发Flink作业保存点 + * + * 触发Flink作业保存点。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ExecuteFlinkJobSavepointRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker executeFlinkJobSavepointAsyncInvoker( + ExecuteFlinkJobSavepointRequest request) { + return new AsyncInvoker<>(request, DliMeta.executeFlinkJobSavepoint, hcClient); + } + /** * flink作业导出 * @@ -2950,6 +2984,36 @@ public AsyncInvoker exportFlink return new AsyncInvoker<>(request, DliMeta.exportFlinkJobs, hcClient); } + /** + * 导入Flink作业保存点 + * + * 导入Flink作业保存点。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ImportFlinkJobSavepointRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture importFlinkJobSavepointAsync( + ImportFlinkJobSavepointRequest request) { + return hcClient.asyncInvokeHttp(request, DliMeta.importFlinkJobSavepoint); + } + + /** + * 导入Flink作业保存点 + * + * 导入Flink作业保存点。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ImportFlinkJobSavepointRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker importFlinkJobSavepointAsyncInvoker( + ImportFlinkJobSavepointRequest request) { + return new AsyncInvoker<>(request, DliMeta.importFlinkJobSavepoint, hcClient); + } + /** * flink作业导入 * 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 4c71fb65a6..04a764eb38 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 @@ -107,12 +107,16 @@ import com.huaweicloud.sdk.dli.v1.model.DeleteTableResponse; import com.huaweicloud.sdk.dli.v1.model.DisassociateQueueFromEnhancedConnectionRequest; import com.huaweicloud.sdk.dli.v1.model.DisassociateQueueFromEnhancedConnectionResponse; +import com.huaweicloud.sdk.dli.v1.model.ExecuteFlinkJobSavepointRequest; +import com.huaweicloud.sdk.dli.v1.model.ExecuteFlinkJobSavepointResponse; import com.huaweicloud.sdk.dli.v1.model.ExportFlinkJobsRequest; import com.huaweicloud.sdk.dli.v1.model.ExportFlinkJobsResponse; import com.huaweicloud.sdk.dli.v1.model.ExportSqlJobResultRequest; import com.huaweicloud.sdk.dli.v1.model.ExportSqlJobResultResponse; import com.huaweicloud.sdk.dli.v1.model.ExportTableRequest; import com.huaweicloud.sdk.dli.v1.model.ExportTableResponse; +import com.huaweicloud.sdk.dli.v1.model.ImportFlinkJobSavepointRequest; +import com.huaweicloud.sdk.dli.v1.model.ImportFlinkJobSavepointResponse; import com.huaweicloud.sdk.dli.v1.model.ImportFlinkJobsRequest; import com.huaweicloud.sdk.dli.v1.model.ImportFlinkJobsResponse; import com.huaweicloud.sdk.dli.v1.model.ImportTableRequest; @@ -2884,6 +2888,35 @@ public SyncInvoker(request, DliMeta.deleteFlinkSqlJobTemplate, hcClient); } + /** + * 触发Flink作业保存点 + * + * 触发Flink作业保存点。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ExecuteFlinkJobSavepointRequest 请求对象 + * @return ExecuteFlinkJobSavepointResponse + */ + public ExecuteFlinkJobSavepointResponse executeFlinkJobSavepoint(ExecuteFlinkJobSavepointRequest request) { + return hcClient.syncInvokeHttp(request, DliMeta.executeFlinkJobSavepoint); + } + + /** + * 触发Flink作业保存点 + * + * 触发Flink作业保存点。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ExecuteFlinkJobSavepointRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker executeFlinkJobSavepointInvoker( + ExecuteFlinkJobSavepointRequest request) { + return new SyncInvoker<>(request, DliMeta.executeFlinkJobSavepoint, hcClient); + } + /** * flink作业导出 * @@ -2913,6 +2946,35 @@ public SyncInvoker exportFlinkJ return new SyncInvoker<>(request, DliMeta.exportFlinkJobs, hcClient); } + /** + * 导入Flink作业保存点 + * + * 导入Flink作业保存点。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ImportFlinkJobSavepointRequest 请求对象 + * @return ImportFlinkJobSavepointResponse + */ + public ImportFlinkJobSavepointResponse importFlinkJobSavepoint(ImportFlinkJobSavepointRequest request) { + return hcClient.syncInvokeHttp(request, DliMeta.importFlinkJobSavepoint); + } + + /** + * 导入Flink作业保存点 + * + * 导入Flink作业保存点。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ImportFlinkJobSavepointRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker importFlinkJobSavepointInvoker( + ImportFlinkJobSavepointRequest request) { + return new SyncInvoker<>(request, DliMeta.importFlinkJobSavepoint, hcClient); + } + /** * flink作业导入 * 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 cecf28dc3d..adee0495fb 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 @@ -143,6 +143,9 @@ import com.huaweicloud.sdk.dli.v1.model.DisassociateQueueFromEnhancedConnectionRequest; import com.huaweicloud.sdk.dli.v1.model.DisassociateQueueFromEnhancedConnectionRequestBody; import com.huaweicloud.sdk.dli.v1.model.DisassociateQueueFromEnhancedConnectionResponse; +import com.huaweicloud.sdk.dli.v1.model.ExecuteFlinkJobSavepointRequest; +import com.huaweicloud.sdk.dli.v1.model.ExecuteFlinkJobSavepointRequestBody; +import com.huaweicloud.sdk.dli.v1.model.ExecuteFlinkJobSavepointResponse; import com.huaweicloud.sdk.dli.v1.model.ExportFlinkJobsRequest; import com.huaweicloud.sdk.dli.v1.model.ExportFlinkJobsRequestBody; import com.huaweicloud.sdk.dli.v1.model.ExportFlinkJobsResponse; @@ -152,6 +155,10 @@ import com.huaweicloud.sdk.dli.v1.model.ExportTableRequest; import com.huaweicloud.sdk.dli.v1.model.ExportTableRequestBody; import com.huaweicloud.sdk.dli.v1.model.ExportTableResponse; +import com.huaweicloud.sdk.dli.v1.model.FlinkSuccessResponse; +import com.huaweicloud.sdk.dli.v1.model.ImportFlinkJobSavepointRequest; +import com.huaweicloud.sdk.dli.v1.model.ImportFlinkJobSavepointRequestBody; +import com.huaweicloud.sdk.dli.v1.model.ImportFlinkJobSavepointResponse; import com.huaweicloud.sdk.dli.v1.model.ImportFlinkJobsRequest; import com.huaweicloud.sdk.dli.v1.model.ImportFlinkJobsRequestBody; import com.huaweicloud.sdk.dli.v1.model.ImportFlinkJobsResponse; @@ -282,7 +289,6 @@ import com.huaweicloud.sdk.dli.v1.model.ShowTableRequest; import com.huaweicloud.sdk.dli.v1.model.ShowTableResponse; import com.huaweicloud.sdk.dli.v1.model.StopFlinkJobsRequestBody; -import com.huaweicloud.sdk.dli.v1.model.SuccessResponse; import com.huaweicloud.sdk.dli.v1.model.UpdateAuthInfoRequest; import com.huaweicloud.sdk.dli.v1.model.UpdateAuthInfoRequestBody; import com.huaweicloud.sdk.dli.v1.model.UpdateAuthInfoResponse; @@ -2514,6 +2520,12 @@ private static HttpRequestDef f.withMarshaller(BatchDeleteFlinkJobsRequest::getBody, BatchDeleteFlinkJobsRequest::setBody)); // response + builder.>withResponseField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(List.class), + f -> f.withMarshaller(BatchDeleteFlinkJobsResponse::getBody, BatchDeleteFlinkJobsResponse::setBody) + .withInnerContainerType(FlinkSuccessResponse.class)); return builder.build(); } @@ -2537,12 +2549,12 @@ private static HttpRequestDef f.withMarshaller(BatchRunFlinkJobsRequest::getBody, BatchRunFlinkJobsRequest::setBody)); // response - builder.>withResponseField("body", + builder.>withResponseField("body", LocationType.Body, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(List.class), f -> f.withMarshaller(BatchRunFlinkJobsResponse::getBody, BatchRunFlinkJobsResponse::setBody) - .withInnerContainerType(SuccessResponse.class)); + .withInnerContainerType(FlinkSuccessResponse.class)); return builder.build(); } @@ -2566,12 +2578,12 @@ private static HttpRequestDef f.withMarshaller(BatchStopFlinkJobsRequest::getBody, BatchStopFlinkJobsRequest::setBody)); // response - builder.>withResponseField("body", + builder.>withResponseField("body", LocationType.Body, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(List.class), f -> f.withMarshaller(BatchStopFlinkJobsResponse::getBody, BatchStopFlinkJobsResponse::setBody) - .withInnerContainerType(SuccessResponse.class)); + .withInnerContainerType(FlinkSuccessResponse.class)); return builder.build(); } @@ -2773,6 +2785,36 @@ private static HttpRequestDef executeFlinkJobSavepoint = + genForExecuteFlinkJobSavepoint(); + + private static HttpRequestDef genForExecuteFlinkJobSavepoint() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, ExecuteFlinkJobSavepointRequest.class, ExecuteFlinkJobSavepointResponse.class) + .withName("ExecuteFlinkJobSavepoint") + .withUri("/v1.0/{project_id}/streaming/jobs/{job_id}/savepoint") + .withContentType("application/json"); + + // requests + builder.withRequestField("job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ExecuteFlinkJobSavepointRequest::getJobId, + ExecuteFlinkJobSavepointRequest::setJobId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ExecuteFlinkJobSavepointRequestBody.class), + f -> f.withMarshaller(ExecuteFlinkJobSavepointRequest::getBody, ExecuteFlinkJobSavepointRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef exportFlinkJobs = genForExportFlinkJobs(); @@ -2796,6 +2838,34 @@ private static HttpRequestDef g return builder.build(); } + public static final HttpRequestDef importFlinkJobSavepoint = + genForImportFlinkJobSavepoint(); + + private static HttpRequestDef genForImportFlinkJobSavepoint() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, ImportFlinkJobSavepointRequest.class, ImportFlinkJobSavepointResponse.class) + .withName("ImportFlinkJobSavepoint") + .withUri("/v1.0/{project_id}/streaming/jobs/{job_id}/import-savepoint") + .withContentType("application/json"); + + // requests + builder.withRequestField("job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ImportFlinkJobSavepointRequest::getJobId, ImportFlinkJobSavepointRequest::setJobId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ImportFlinkJobSavepointRequestBody.class), + f -> f.withMarshaller(ImportFlinkJobSavepointRequest::getBody, ImportFlinkJobSavepointRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef importFlinkJobs = genForImportFlinkJobs(); diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/BatchDeleteFlinkJobsResponse.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/BatchDeleteFlinkJobsResponse.java index dccf3fbe70..3224a04970 100644 --- a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/BatchDeleteFlinkJobsResponse.java +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/BatchDeleteFlinkJobsResponse.java @@ -4,7 +4,10 @@ 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 @@ -12,47 +15,41 @@ public class BatchDeleteFlinkJobsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "is_success") + @JsonProperty(value = "body") - private Boolean isSuccess; + private List body = null; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "message") - - private String message; - - public BatchDeleteFlinkJobsResponse withIsSuccess(Boolean isSuccess) { - this.isSuccess = isSuccess; + public BatchDeleteFlinkJobsResponse withBody(List body) { + this.body = body; return this; } - /** - * 执行请求是否成功。“true”表示请求执行成功。 - * @return isSuccess - */ - public Boolean getIsSuccess() { - return isSuccess; - } - - public void setIsSuccess(Boolean isSuccess) { - this.isSuccess = isSuccess; + public BatchDeleteFlinkJobsResponse addBodyItem(FlinkSuccessResponse bodyItem) { + if (this.body == null) { + this.body = new ArrayList<>(); + } + this.body.add(bodyItem); + return this; } - public BatchDeleteFlinkJobsResponse withMessage(String message) { - this.message = message; + public BatchDeleteFlinkJobsResponse withBody(Consumer> bodySetter) { + if (this.body == null) { + this.body = new ArrayList<>(); + } + bodySetter.accept(this.body); return this; } /** - * 系统提示信息,执行成功时,信息可能为空。 - * @return message + * Get body + * @return body */ - public String getMessage() { - return message; + public List getBody() { + return body; } - public void setMessage(String message) { - this.message = message; + public void setBody(List body) { + this.body = body; } @Override @@ -64,20 +61,19 @@ public boolean equals(java.lang.Object obj) { return false; } BatchDeleteFlinkJobsResponse that = (BatchDeleteFlinkJobsResponse) obj; - return Objects.equals(this.isSuccess, that.isSuccess) && Objects.equals(this.message, that.message); + return Objects.equals(this.body, that.body); } @Override public int hashCode() { - return Objects.hash(isSuccess, message); + return Objects.hash(body); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BatchDeleteFlinkJobsResponse {\n"); - sb.append(" isSuccess: ").append(toIndentedString(isSuccess)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/BatchRunFlinkJobsResponse.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/BatchRunFlinkJobsResponse.java index 219d95cb49..5b0eff6f15 100644 --- a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/BatchRunFlinkJobsResponse.java +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/BatchRunFlinkJobsResponse.java @@ -17,14 +17,14 @@ public class BatchRunFlinkJobsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "body") - private List body = null; + private List body = null; - public BatchRunFlinkJobsResponse withBody(List body) { + public BatchRunFlinkJobsResponse withBody(List body) { this.body = body; return this; } - public BatchRunFlinkJobsResponse addBodyItem(SuccessResponse bodyItem) { + public BatchRunFlinkJobsResponse addBodyItem(FlinkSuccessResponse bodyItem) { if (this.body == null) { this.body = new ArrayList<>(); } @@ -32,7 +32,7 @@ public BatchRunFlinkJobsResponse addBodyItem(SuccessResponse bodyItem) { return this; } - public BatchRunFlinkJobsResponse withBody(Consumer> bodySetter) { + public BatchRunFlinkJobsResponse withBody(Consumer> bodySetter) { if (this.body == null) { this.body = new ArrayList<>(); } @@ -44,11 +44,11 @@ public BatchRunFlinkJobsResponse withBody(Consumer> bodySe * Get body * @return body */ - public List getBody() { + public List getBody() { return body; } - public void setBody(List body) { + public void setBody(List body) { this.body = body; } diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/BatchStopFlinkJobsResponse.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/BatchStopFlinkJobsResponse.java index f7a3673c57..3d241460df 100644 --- a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/BatchStopFlinkJobsResponse.java +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/BatchStopFlinkJobsResponse.java @@ -17,14 +17,14 @@ public class BatchStopFlinkJobsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "body") - private List body = null; + private List body = null; - public BatchStopFlinkJobsResponse withBody(List body) { + public BatchStopFlinkJobsResponse withBody(List body) { this.body = body; return this; } - public BatchStopFlinkJobsResponse addBodyItem(SuccessResponse bodyItem) { + public BatchStopFlinkJobsResponse addBodyItem(FlinkSuccessResponse bodyItem) { if (this.body == null) { this.body = new ArrayList<>(); } @@ -32,7 +32,7 @@ public BatchStopFlinkJobsResponse addBodyItem(SuccessResponse bodyItem) { return this; } - public BatchStopFlinkJobsResponse withBody(Consumer> bodySetter) { + public BatchStopFlinkJobsResponse withBody(Consumer> bodySetter) { if (this.body == null) { this.body = new ArrayList<>(); } @@ -44,11 +44,11 @@ public BatchStopFlinkJobsResponse withBody(Consumer> bodyS * Get body * @return body */ - public List getBody() { + public List getBody() { return body; } - public void setBody(List body) { + public void setBody(List body) { this.body = body; } diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/CreateConnectivityTaskResponse.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/CreateConnectivityTaskResponse.java index 4dec274a29..eacfd0ab51 100644 --- a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/CreateConnectivityTaskResponse.java +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/CreateConnectivityTaskResponse.java @@ -24,7 +24,7 @@ public class CreateConnectivityTaskResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "task_id") - private String taskId; + private Long taskId; public CreateConnectivityTaskResponse withIsSuccess(Boolean isSuccess) { this.isSuccess = isSuccess; @@ -60,7 +60,7 @@ public void setMessage(String message) { this.message = message; } - public CreateConnectivityTaskResponse withTaskId(String taskId) { + public CreateConnectivityTaskResponse withTaskId(Long taskId) { this.taskId = taskId; return this; } @@ -69,11 +69,11 @@ public CreateConnectivityTaskResponse withTaskId(String taskId) { * 请求id * @return taskId */ - public String getTaskId() { + public Long getTaskId() { return taskId; } - public void setTaskId(String taskId) { + public void setTaskId(Long taskId) { this.taskId = taskId; } diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/DeleteFlinkJobResponse.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/DeleteFlinkJobResponse.java index 087d0f5e0c..d6d75f349c 100644 --- a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/DeleteFlinkJobResponse.java +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/DeleteFlinkJobResponse.java @@ -14,14 +14,14 @@ public class DeleteFlinkJobResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "is_success") - private Boolean isSuccess; + private String isSuccess; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "message") private String message; - public DeleteFlinkJobResponse withIsSuccess(Boolean isSuccess) { + public DeleteFlinkJobResponse withIsSuccess(String isSuccess) { this.isSuccess = isSuccess; return this; } @@ -30,11 +30,11 @@ public DeleteFlinkJobResponse withIsSuccess(Boolean isSuccess) { * 执行请求是否成功。“true”表示请求执行成功。 * @return isSuccess */ - public Boolean getIsSuccess() { + public String getIsSuccess() { return isSuccess; } - public void setIsSuccess(Boolean isSuccess) { + public void setIsSuccess(String isSuccess) { this.isSuccess = isSuccess; } diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ExecuteFlinkJobSavepointRequest.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ExecuteFlinkJobSavepointRequest.java new file mode 100644 index 0000000000..ec8be38803 --- /dev/null +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ExecuteFlinkJobSavepointRequest.java @@ -0,0 +1,105 @@ +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 ExecuteFlinkJobSavepointRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private ExecuteFlinkJobSavepointRequestBody body; + + public ExecuteFlinkJobSavepointRequest withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 正在运行的Flink作业的作业ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public ExecuteFlinkJobSavepointRequest withBody(ExecuteFlinkJobSavepointRequestBody body) { + this.body = body; + return this; + } + + public ExecuteFlinkJobSavepointRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new ExecuteFlinkJobSavepointRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ExecuteFlinkJobSavepointRequestBody getBody() { + return body; + } + + public void setBody(ExecuteFlinkJobSavepointRequestBody 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; + } + ExecuteFlinkJobSavepointRequest that = (ExecuteFlinkJobSavepointRequest) obj; + return Objects.equals(this.jobId, that.jobId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(jobId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExecuteFlinkJobSavepointRequest {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).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/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ExecuteFlinkJobSavepointRequestBody.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ExecuteFlinkJobSavepointRequestBody.java new file mode 100644 index 0000000000..f7c39ac015 --- /dev/null +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ExecuteFlinkJobSavepointRequestBody.java @@ -0,0 +1,164 @@ +package com.huaweicloud.sdk.dli.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; + +/** + * 创建savepoint请求体 + */ +public class ExecuteFlinkJobSavepointRequestBody { + + /** + * 操作类型 + */ + public static final class ActionEnum { + + /** + * Enum TRIGGER for value: "TRIGGER" + */ + public static final ActionEnum TRIGGER = new ActionEnum("TRIGGER"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("TRIGGER", TRIGGER); + 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 = "savepoint_path") + + private String savepointPath; + + public ExecuteFlinkJobSavepointRequestBody withAction(ActionEnum action) { + this.action = action; + return this; + } + + /** + * 操作类型 + * @return action + */ + public ActionEnum getAction() { + return action; + } + + public void setAction(ActionEnum action) { + this.action = action; + } + + public ExecuteFlinkJobSavepointRequestBody withSavepointPath(String savepointPath) { + this.savepointPath = savepointPath; + return this; + } + + /** + * Savepoint路径 + * @return savepointPath + */ + public String getSavepointPath() { + return savepointPath; + } + + public void setSavepointPath(String savepointPath) { + this.savepointPath = savepointPath; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ExecuteFlinkJobSavepointRequestBody that = (ExecuteFlinkJobSavepointRequestBody) obj; + return Objects.equals(this.action, that.action) && Objects.equals(this.savepointPath, that.savepointPath); + } + + @Override + public int hashCode() { + return Objects.hash(action, savepointPath); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExecuteFlinkJobSavepointRequestBody {\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append(" savepointPath: ").append(toIndentedString(savepointPath)).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/ExecuteFlinkJobSavepointResponse.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ExecuteFlinkJobSavepointResponse.java new file mode 100644 index 0000000000..b0ff7fc7f2 --- /dev/null +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ExecuteFlinkJobSavepointResponse.java @@ -0,0 +1,96 @@ +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; + +/** + * Response Object + */ +public class ExecuteFlinkJobSavepointResponse 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; + + public ExecuteFlinkJobSavepointResponse 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 ExecuteFlinkJobSavepointResponse 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; + } + ExecuteFlinkJobSavepointResponse that = (ExecuteFlinkJobSavepointResponse) obj; + return Objects.equals(this.isSuccess, that.isSuccess) && Objects.equals(this.message, that.message); + } + + @Override + public int hashCode() { + return Objects.hash(isSuccess, message); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExecuteFlinkJobSavepointResponse {\n"); + sb.append(" isSuccess: ").append(toIndentedString(isSuccess)).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/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ExportFlinkJobsResponse.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ExportFlinkJobsResponse.java index b01b0df7a0..5108d06a67 100644 --- a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ExportFlinkJobsResponse.java +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ExportFlinkJobsResponse.java @@ -17,7 +17,7 @@ public class ExportFlinkJobsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "is_success") - private Boolean isSuccess; + private String isSuccess; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "message") @@ -29,7 +29,7 @@ public class ExportFlinkJobsResponse extends SdkResponse { private List zipFile = null; - public ExportFlinkJobsResponse withIsSuccess(Boolean isSuccess) { + public ExportFlinkJobsResponse withIsSuccess(String isSuccess) { this.isSuccess = isSuccess; return this; } @@ -38,11 +38,11 @@ public ExportFlinkJobsResponse withIsSuccess(Boolean isSuccess) { * 执行请求是否成功。“true”表示请求执行成功。 * @return isSuccess */ - public Boolean getIsSuccess() { + public String getIsSuccess() { return isSuccess; } - public void setIsSuccess(Boolean isSuccess) { + public void setIsSuccess(String isSuccess) { this.isSuccess = isSuccess; } diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkJobConfig.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkJobConfig.java index dcb6d3a3f9..bd42afc26b 100644 --- a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkJobConfig.java +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkJobConfig.java @@ -51,7 +51,7 @@ public class FlinkJobConfig { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "root_id") - private Integer rootId; + private Long rootId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "manager_cu_number") @@ -323,7 +323,7 @@ public void setEdgeGroupIds(List edgeGroupIds) { this.edgeGroupIds = edgeGroupIds; } - public FlinkJobConfig withRootId(Integer rootId) { + public FlinkJobConfig withRootId(Long rootId) { this.rootId = rootId; return this; } @@ -332,11 +332,11 @@ public FlinkJobConfig withRootId(Integer rootId) { * 父作业ID。 * @return rootId */ - public Integer getRootId() { + public Long getRootId() { return rootId; } - public void setRootId(Integer rootId) { + public void setRootId(Long rootId) { this.rootId = rootId; } diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkJobList.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkJobList.java index 52f47e4158..fce34aed5f 100644 --- a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkJobList.java +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkJobList.java @@ -16,14 +16,14 @@ public class FlinkJobList { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "total_count") - private Integer totalCount; + private Long totalCount; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "jobs") private List jobs = null; - public FlinkJobList withTotalCount(Integer totalCount) { + public FlinkJobList withTotalCount(Long totalCount) { this.totalCount = totalCount; return this; } @@ -32,11 +32,11 @@ public FlinkJobList withTotalCount(Integer totalCount) { * 作业查询结果条数。 * @return totalCount */ - public Integer getTotalCount() { + public Long getTotalCount() { return totalCount; } - public void setTotalCount(Integer totalCount) { + public void setTotalCount(Long totalCount) { this.totalCount = totalCount; } diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/SuccessResponse.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkSuccessResponse.java similarity index 82% rename from services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/SuccessResponse.java rename to services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkSuccessResponse.java index a0a57cb2e7..3e95a368a5 100644 --- a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/SuccessResponse.java +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkSuccessResponse.java @@ -6,21 +6,21 @@ import java.util.Objects; /** - * SuccessResponse + * FlinkSuccessResponse */ -public class SuccessResponse { +public class FlinkSuccessResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "is_success") - private Boolean isSuccess; + private String isSuccess; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "message") private String message; - public SuccessResponse withIsSuccess(Boolean isSuccess) { + public FlinkSuccessResponse withIsSuccess(String isSuccess) { this.isSuccess = isSuccess; return this; } @@ -29,15 +29,15 @@ public SuccessResponse withIsSuccess(Boolean isSuccess) { * 执行请求是否成功。“true”表示请求执行成功。 * @return isSuccess */ - public Boolean getIsSuccess() { + public String getIsSuccess() { return isSuccess; } - public void setIsSuccess(Boolean isSuccess) { + public void setIsSuccess(String isSuccess) { this.isSuccess = isSuccess; } - public SuccessResponse withMessage(String message) { + public FlinkSuccessResponse withMessage(String message) { this.message = message; return this; } @@ -62,7 +62,7 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - SuccessResponse that = (SuccessResponse) obj; + FlinkSuccessResponse that = (FlinkSuccessResponse) obj; return Objects.equals(this.isSuccess, that.isSuccess) && Objects.equals(this.message, that.message); } @@ -74,7 +74,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class SuccessResponse {\n"); + sb.append("class FlinkSuccessResponse {\n"); sb.append(" isSuccess: ").append(toIndentedString(isSuccess)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append("}"); diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ImportFlinkJobSavepointRequest.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ImportFlinkJobSavepointRequest.java new file mode 100644 index 0000000000..3e43784658 --- /dev/null +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ImportFlinkJobSavepointRequest.java @@ -0,0 +1,105 @@ +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 ImportFlinkJobSavepointRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private ImportFlinkJobSavepointRequestBody body; + + public ImportFlinkJobSavepointRequest withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 非运行阶段的Flink作业的作业ID + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public ImportFlinkJobSavepointRequest withBody(ImportFlinkJobSavepointRequestBody body) { + this.body = body; + return this; + } + + public ImportFlinkJobSavepointRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new ImportFlinkJobSavepointRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ImportFlinkJobSavepointRequestBody getBody() { + return body; + } + + public void setBody(ImportFlinkJobSavepointRequestBody 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; + } + ImportFlinkJobSavepointRequest that = (ImportFlinkJobSavepointRequest) obj; + return Objects.equals(this.jobId, that.jobId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(jobId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ImportFlinkJobSavepointRequest {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).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/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ImportFlinkJobSavepointRequestBody.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ImportFlinkJobSavepointRequestBody.java new file mode 100644 index 0000000000..fbb5d995d2 --- /dev/null +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ImportFlinkJobSavepointRequestBody.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; + +/** + * 导入savepoint接口的请求体 + */ +public class ImportFlinkJobSavepointRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private Long jobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "savepoint_path") + + private String savepointPath; + + public ImportFlinkJobSavepointRequestBody withJobId(Long jobId) { + this.jobId = jobId; + return this; + } + + /** + * Flink作业的id + * @return jobId + */ + public Long getJobId() { + return jobId; + } + + public void setJobId(Long jobId) { + this.jobId = jobId; + } + + public ImportFlinkJobSavepointRequestBody withSavepointPath(String savepointPath) { + this.savepointPath = savepointPath; + return this; + } + + /** + * Savepoint路径 + * @return savepointPath + */ + public String getSavepointPath() { + return savepointPath; + } + + public void setSavepointPath(String savepointPath) { + this.savepointPath = savepointPath; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ImportFlinkJobSavepointRequestBody that = (ImportFlinkJobSavepointRequestBody) obj; + return Objects.equals(this.jobId, that.jobId) && Objects.equals(this.savepointPath, that.savepointPath); + } + + @Override + public int hashCode() { + return Objects.hash(jobId, savepointPath); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ImportFlinkJobSavepointRequestBody {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" savepointPath: ").append(toIndentedString(savepointPath)).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/ImportFlinkJobSavepointResponse.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ImportFlinkJobSavepointResponse.java new file mode 100644 index 0000000000..2cd857dbfa --- /dev/null +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ImportFlinkJobSavepointResponse.java @@ -0,0 +1,96 @@ +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; + +/** + * Response Object + */ +public class ImportFlinkJobSavepointResponse 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; + + public ImportFlinkJobSavepointResponse 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 ImportFlinkJobSavepointResponse 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; + } + ImportFlinkJobSavepointResponse that = (ImportFlinkJobSavepointResponse) obj; + return Objects.equals(this.isSuccess, that.isSuccess) && Objects.equals(this.message, that.message); + } + + @Override + public int hashCode() { + return Objects.hash(isSuccess, message); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ImportFlinkJobSavepointResponse {\n"); + sb.append(" isSuccess: ").append(toIndentedString(isSuccess)).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/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ImportFlinkJobsResponse.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ImportFlinkJobsResponse.java index 225fd91c6b..1678e96370 100644 --- a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ImportFlinkJobsResponse.java +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ImportFlinkJobsResponse.java @@ -17,7 +17,7 @@ public class ImportFlinkJobsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "is_success") - private Boolean isSuccess; + private String isSuccess; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "message") @@ -29,7 +29,7 @@ public class ImportFlinkJobsResponse extends SdkResponse { private List jobMapping = null; - public ImportFlinkJobsResponse withIsSuccess(Boolean isSuccess) { + public ImportFlinkJobsResponse withIsSuccess(String isSuccess) { this.isSuccess = isSuccess; return this; } @@ -38,11 +38,11 @@ public ImportFlinkJobsResponse withIsSuccess(Boolean isSuccess) { * 执行请求是否成功。“true”表示请求执行成功。 * @return isSuccess */ - public Boolean getIsSuccess() { + public String getIsSuccess() { return isSuccess; } - public void setIsSuccess(Boolean isSuccess) { + public void setIsSuccess(String isSuccess) { this.isSuccess = isSuccess; } diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ListElasticResourcePoolScaleRecordsResponse.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ListElasticResourcePoolScaleRecordsResponse.java index 4873e79b18..539f143290 100644 --- a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ListElasticResourcePoolScaleRecordsResponse.java +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ListElasticResourcePoolScaleRecordsResponse.java @@ -17,7 +17,7 @@ public class ListElasticResourcePoolScaleRecordsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "count") - private Integer count; + private Long count; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "items") @@ -29,7 +29,7 @@ public class ListElasticResourcePoolScaleRecordsResponse extends SdkResponse { private String xAuthToken; - public ListElasticResourcePoolScaleRecordsResponse withCount(Integer count) { + public ListElasticResourcePoolScaleRecordsResponse withCount(Long count) { this.count = count; return this; } @@ -38,11 +38,11 @@ public ListElasticResourcePoolScaleRecordsResponse withCount(Integer count) { * 返回数组长度 * @return count */ - public Integer getCount() { + public Long getCount() { return count; } - public void setCount(Integer count) { + public void setCount(Long count) { this.count = count; } diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ShowFlinkJobExecutionGraphResponse.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ShowFlinkJobExecutionGraphResponse.java index dfd562fb5c..ba883b0f69 100644 --- a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ShowFlinkJobExecutionGraphResponse.java +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ShowFlinkJobExecutionGraphResponse.java @@ -15,7 +15,7 @@ public class ShowFlinkJobExecutionGraphResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "is_success") - private Boolean isSuccess; + private String isSuccess; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "message") @@ -27,7 +27,7 @@ public class ShowFlinkJobExecutionGraphResponse extends SdkResponse { private FlinkJobExecutionGraph executeGraph; - public ShowFlinkJobExecutionGraphResponse withIsSuccess(Boolean isSuccess) { + public ShowFlinkJobExecutionGraphResponse withIsSuccess(String isSuccess) { this.isSuccess = isSuccess; return this; } @@ -36,11 +36,11 @@ public ShowFlinkJobExecutionGraphResponse withIsSuccess(Boolean isSuccess) { * 请求是否成功 * @return isSuccess */ - public Boolean getIsSuccess() { + public String getIsSuccess() { return isSuccess; } - public void setIsSuccess(Boolean isSuccess) { + public void setIsSuccess(String isSuccess) { this.isSuccess = isSuccess; } diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ShowSparkJobLogResponse.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ShowSparkJobLogResponse.java index 982106cc11..47ce968143 100644 --- a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ShowSparkJobLogResponse.java +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ShowSparkJobLogResponse.java @@ -22,7 +22,7 @@ public class ShowSparkJobLogResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "from") - private String from; + private Integer from; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "total") @@ -51,7 +51,7 @@ public void setId(String id) { this.id = id; } - public ShowSparkJobLogResponse withFrom(String from) { + public ShowSparkJobLogResponse withFrom(Integer from) { this.from = from; return this; } @@ -60,11 +60,11 @@ public ShowSparkJobLogResponse withFrom(String from) { * 日志起始索引。 * @return from */ - public String getFrom() { + public Integer getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(Integer from) { this.from = from; } diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/UpdateQueuePlanResponse.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/UpdateQueuePlanResponse.java index ae5d74f36d..66bc0ab13d 100644 --- a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/UpdateQueuePlanResponse.java +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/UpdateQueuePlanResponse.java @@ -19,7 +19,7 @@ public class UpdateQueuePlanResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "plan_id") - private String planId; + private Long planId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "is_success") @@ -48,7 +48,7 @@ public void setQueueName(String queueName) { this.queueName = queueName; } - public UpdateQueuePlanResponse withPlanId(String planId) { + public UpdateQueuePlanResponse withPlanId(Long planId) { this.planId = planId; return this; } @@ -57,11 +57,11 @@ public UpdateQueuePlanResponse withPlanId(String planId) { * 扩缩容计划的ID编号 * @return planId */ - public String getPlanId() { + public Long getPlanId() { return planId; } - public void setPlanId(String planId) { + public void setPlanId(Long planId) { this.planId = planId; } diff --git a/services/dns/pom.xml b/services/dns/pom.xml index 6a18a93589..55999b5f80 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-dns - 3.1.94 + 3.1.95 Huawei Cloud SDK for DNS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/dris/pom.xml b/services/dris/pom.xml index 08017ab0bf..640a6c8f4d 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-dris - 3.1.94 + 3.1.95 Huawei Cloud SDK for DRIS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/drs/pom.xml b/services/drs/pom.xml index 4446166c47..d287b11420 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-drs - 3.1.94 + 3.1.95 Huawei Cloud SDK for DRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/DrsAsyncClient.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/DrsAsyncClient.java index a30c7084a2..69909edc8a 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/DrsAsyncClient.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/DrsAsyncClient.java @@ -55,12 +55,18 @@ import com.huaweicloud.sdk.drs.v3.model.BatchValidateClustersConnectionsResponse; import com.huaweicloud.sdk.drs.v3.model.BatchValidateConnectionsRequest; import com.huaweicloud.sdk.drs.v3.model.BatchValidateConnectionsResponse; +import com.huaweicloud.sdk.drs.v3.model.CreateCompareResultFileRequest; +import com.huaweicloud.sdk.drs.v3.model.CreateCompareResultFileResponse; import com.huaweicloud.sdk.drs.v3.model.CreateCompareTaskRequest; import com.huaweicloud.sdk.drs.v3.model.CreateCompareTaskResponse; import com.huaweicloud.sdk.drs.v3.model.CreateDataLevelTableCompareJobRequest; import com.huaweicloud.sdk.drs.v3.model.CreateDataLevelTableCompareJobResponse; +import com.huaweicloud.sdk.drs.v3.model.CreateObjectLevelCompareJobRequest; +import com.huaweicloud.sdk.drs.v3.model.CreateObjectLevelCompareJobResponse; import com.huaweicloud.sdk.drs.v3.model.DeleteCompareJobRequest; import com.huaweicloud.sdk.drs.v3.model.DeleteCompareJobResponse; +import com.huaweicloud.sdk.drs.v3.model.DownloadCompareResultFileRequest; +import com.huaweicloud.sdk.drs.v3.model.DownloadCompareResultFileResponse; import com.huaweicloud.sdk.drs.v3.model.ListAvailableNodeTypesRequest; import com.huaweicloud.sdk.drs.v3.model.ListAvailableNodeTypesResponse; import com.huaweicloud.sdk.drs.v3.model.ListAvailableZoneRequest; @@ -69,6 +75,8 @@ import com.huaweicloud.sdk.drs.v3.model.ListCompareResultResponse; import com.huaweicloud.sdk.drs.v3.model.ListContentCompareDetailRequest; import com.huaweicloud.sdk.drs.v3.model.ListContentCompareDetailResponse; +import com.huaweicloud.sdk.drs.v3.model.ListContentCompareDifferenceRequest; +import com.huaweicloud.sdk.drs.v3.model.ListContentCompareDifferenceResponse; import com.huaweicloud.sdk.drs.v3.model.ListContentCompareOverviewRequest; import com.huaweicloud.sdk.drs.v3.model.ListContentCompareOverviewResponse; import com.huaweicloud.sdk.drs.v3.model.ListDataCompareDetailRequest; @@ -77,6 +85,10 @@ import com.huaweicloud.sdk.drs.v3.model.ListDataCompareOverviewResponse; import com.huaweicloud.sdk.drs.v3.model.ListDataLevelTableCompareJobsRequest; import com.huaweicloud.sdk.drs.v3.model.ListDataLevelTableCompareJobsResponse; +import com.huaweicloud.sdk.drs.v3.model.ListObejectLevelCompareDetailRequest; +import com.huaweicloud.sdk.drs.v3.model.ListObejectLevelCompareDetailResponse; +import com.huaweicloud.sdk.drs.v3.model.ListObejectLevelCompareOverviewRequest; +import com.huaweicloud.sdk.drs.v3.model.ListObejectLevelCompareOverviewResponse; import com.huaweicloud.sdk.drs.v3.model.ListUsersRequest; import com.huaweicloud.sdk.drs.v3.model.ListUsersResponse; import com.huaweicloud.sdk.drs.v3.model.ShowJobListRequest; @@ -879,6 +891,36 @@ public AsyncInvoker(request, DrsMeta.batchValidateConnections, hcClient); } + /** + * 导出对比任务结果文件 + * + * 导出对比任务结果文件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateCompareResultFileRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createCompareResultFileAsync( + CreateCompareResultFileRequest request) { + return hcClient.asyncInvokeHttp(request, DrsMeta.createCompareResultFile); + } + + /** + * 导出对比任务结果文件 + * + * 导出对比任务结果文件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateCompareResultFileRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createCompareResultFileAsyncInvoker( + CreateCompareResultFileRequest request) { + return new AsyncInvoker<>(request, DrsMeta.createCompareResultFile, hcClient); + } + /** * 创建对比任务 * @@ -938,6 +980,36 @@ public AsyncInvoker(request, DrsMeta.createDataLevelTableCompareJob, hcClient); } + /** + * 创建对象级对比任务 + * + * 创建对象级对比任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateObjectLevelCompareJobRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createObjectLevelCompareJobAsync( + CreateObjectLevelCompareJobRequest request) { + return hcClient.asyncInvokeHttp(request, DrsMeta.createObjectLevelCompareJob); + } + + /** + * 创建对象级对比任务 + * + * 创建对象级对比任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateObjectLevelCompareJobRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createObjectLevelCompareJobAsyncInvoker( + CreateObjectLevelCompareJobRequest request) { + return new AsyncInvoker<>(request, DrsMeta.createObjectLevelCompareJob, hcClient); + } + /** * 取消对比任务 * @@ -967,6 +1039,36 @@ public AsyncInvoker deleteCom return new AsyncInvoker<>(request, DrsMeta.deleteCompareJob, hcClient); } + /** + * 下载对比任务结果文件 + * + * 下载对比任务结果文件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DownloadCompareResultFileRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture downloadCompareResultFileAsync( + DownloadCompareResultFileRequest request) { + return hcClient.asyncInvokeHttp(request, DrsMeta.downloadCompareResultFile); + } + + /** + * 下载对比任务结果文件 + * + * 下载对比任务结果文件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DownloadCompareResultFileRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker downloadCompareResultFileAsyncInvoker( + DownloadCompareResultFileRequest request) { + return new AsyncInvoker<>(request, DrsMeta.downloadCompareResultFile, hcClient); + } + /** * 查询可用的Node规格 * @@ -1085,6 +1187,36 @@ public AsyncInvoker(request, DrsMeta.listContentCompareDetail, hcClient); } + /** + * 查询内容对比差异 + * + * 查询内容对比差异。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListContentCompareDifferenceRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listContentCompareDifferenceAsync( + ListContentCompareDifferenceRequest request) { + return hcClient.asyncInvokeHttp(request, DrsMeta.listContentCompareDifference); + } + + /** + * 查询内容对比差异 + * + * 查询内容对比差异。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListContentCompareDifferenceRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listContentCompareDifferenceAsyncInvoker( + ListContentCompareDifferenceRequest request) { + return new AsyncInvoker<>(request, DrsMeta.listContentCompareDifference, hcClient); + } + /** * 查询内容对比总览 * @@ -1205,6 +1337,66 @@ public AsyncInvoker(request, DrsMeta.listDataLevelTableCompareJobs, hcClient); } + /** + * 查询对象对比任务详情 + * + * 查询对象对比任务详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListObejectLevelCompareDetailRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listObejectLevelCompareDetailAsync( + ListObejectLevelCompareDetailRequest request) { + return hcClient.asyncInvokeHttp(request, DrsMeta.listObejectLevelCompareDetail); + } + + /** + * 查询对象对比任务详情 + * + * 查询对象对比任务详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListObejectLevelCompareDetailRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listObejectLevelCompareDetailAsyncInvoker( + ListObejectLevelCompareDetailRequest request) { + return new AsyncInvoker<>(request, DrsMeta.listObejectLevelCompareDetail, hcClient); + } + + /** + * 查询对象对比任务概览 + * + * 查询对象对比任务概览。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListObejectLevelCompareOverviewRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listObejectLevelCompareOverviewAsync( + ListObejectLevelCompareOverviewRequest request) { + return hcClient.asyncInvokeHttp(request, DrsMeta.listObejectLevelCompareOverview); + } + + /** + * 查询对象对比任务概览 + * + * 查询对象对比任务概览。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListObejectLevelCompareOverviewRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listObejectLevelCompareOverviewAsyncInvoker( + ListObejectLevelCompareOverviewRequest request) { + return new AsyncInvoker<>(request, DrsMeta.listObejectLevelCompareOverview, hcClient); + } + /** * 获取源库迁移用户列表 * diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/DrsClient.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/DrsClient.java index c5fa7d4060..d7d3ed82b9 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/DrsClient.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/DrsClient.java @@ -55,12 +55,18 @@ import com.huaweicloud.sdk.drs.v3.model.BatchValidateClustersConnectionsResponse; import com.huaweicloud.sdk.drs.v3.model.BatchValidateConnectionsRequest; import com.huaweicloud.sdk.drs.v3.model.BatchValidateConnectionsResponse; +import com.huaweicloud.sdk.drs.v3.model.CreateCompareResultFileRequest; +import com.huaweicloud.sdk.drs.v3.model.CreateCompareResultFileResponse; import com.huaweicloud.sdk.drs.v3.model.CreateCompareTaskRequest; import com.huaweicloud.sdk.drs.v3.model.CreateCompareTaskResponse; import com.huaweicloud.sdk.drs.v3.model.CreateDataLevelTableCompareJobRequest; import com.huaweicloud.sdk.drs.v3.model.CreateDataLevelTableCompareJobResponse; +import com.huaweicloud.sdk.drs.v3.model.CreateObjectLevelCompareJobRequest; +import com.huaweicloud.sdk.drs.v3.model.CreateObjectLevelCompareJobResponse; import com.huaweicloud.sdk.drs.v3.model.DeleteCompareJobRequest; import com.huaweicloud.sdk.drs.v3.model.DeleteCompareJobResponse; +import com.huaweicloud.sdk.drs.v3.model.DownloadCompareResultFileRequest; +import com.huaweicloud.sdk.drs.v3.model.DownloadCompareResultFileResponse; import com.huaweicloud.sdk.drs.v3.model.ListAvailableNodeTypesRequest; import com.huaweicloud.sdk.drs.v3.model.ListAvailableNodeTypesResponse; import com.huaweicloud.sdk.drs.v3.model.ListAvailableZoneRequest; @@ -69,6 +75,8 @@ import com.huaweicloud.sdk.drs.v3.model.ListCompareResultResponse; import com.huaweicloud.sdk.drs.v3.model.ListContentCompareDetailRequest; import com.huaweicloud.sdk.drs.v3.model.ListContentCompareDetailResponse; +import com.huaweicloud.sdk.drs.v3.model.ListContentCompareDifferenceRequest; +import com.huaweicloud.sdk.drs.v3.model.ListContentCompareDifferenceResponse; import com.huaweicloud.sdk.drs.v3.model.ListContentCompareOverviewRequest; import com.huaweicloud.sdk.drs.v3.model.ListContentCompareOverviewResponse; import com.huaweicloud.sdk.drs.v3.model.ListDataCompareDetailRequest; @@ -77,6 +85,10 @@ import com.huaweicloud.sdk.drs.v3.model.ListDataCompareOverviewResponse; import com.huaweicloud.sdk.drs.v3.model.ListDataLevelTableCompareJobsRequest; import com.huaweicloud.sdk.drs.v3.model.ListDataLevelTableCompareJobsResponse; +import com.huaweicloud.sdk.drs.v3.model.ListObejectLevelCompareDetailRequest; +import com.huaweicloud.sdk.drs.v3.model.ListObejectLevelCompareDetailResponse; +import com.huaweicloud.sdk.drs.v3.model.ListObejectLevelCompareOverviewRequest; +import com.huaweicloud.sdk.drs.v3.model.ListObejectLevelCompareOverviewResponse; import com.huaweicloud.sdk.drs.v3.model.ListUsersRequest; import com.huaweicloud.sdk.drs.v3.model.ListUsersResponse; import com.huaweicloud.sdk.drs.v3.model.ShowJobListRequest; @@ -871,6 +883,35 @@ public SyncInvoker(request, DrsMeta.batchValidateConnections, hcClient); } + /** + * 导出对比任务结果文件 + * + * 导出对比任务结果文件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateCompareResultFileRequest 请求对象 + * @return CreateCompareResultFileResponse + */ + public CreateCompareResultFileResponse createCompareResultFile(CreateCompareResultFileRequest request) { + return hcClient.syncInvokeHttp(request, DrsMeta.createCompareResultFile); + } + + /** + * 导出对比任务结果文件 + * + * 导出对比任务结果文件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateCompareResultFileRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createCompareResultFileInvoker( + CreateCompareResultFileRequest request) { + return new SyncInvoker<>(request, DrsMeta.createCompareResultFile, hcClient); + } + /** * 创建对比任务 * @@ -930,6 +971,35 @@ public SyncInvoker(request, DrsMeta.createDataLevelTableCompareJob, hcClient); } + /** + * 创建对象级对比任务 + * + * 创建对象级对比任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateObjectLevelCompareJobRequest 请求对象 + * @return CreateObjectLevelCompareJobResponse + */ + public CreateObjectLevelCompareJobResponse createObjectLevelCompareJob(CreateObjectLevelCompareJobRequest request) { + return hcClient.syncInvokeHttp(request, DrsMeta.createObjectLevelCompareJob); + } + + /** + * 创建对象级对比任务 + * + * 创建对象级对比任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateObjectLevelCompareJobRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createObjectLevelCompareJobInvoker( + CreateObjectLevelCompareJobRequest request) { + return new SyncInvoker<>(request, DrsMeta.createObjectLevelCompareJob, hcClient); + } + /** * 取消对比任务 * @@ -959,6 +1029,35 @@ public SyncInvoker deleteComp return new SyncInvoker<>(request, DrsMeta.deleteCompareJob, hcClient); } + /** + * 下载对比任务结果文件 + * + * 下载对比任务结果文件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DownloadCompareResultFileRequest 请求对象 + * @return DownloadCompareResultFileResponse + */ + public DownloadCompareResultFileResponse downloadCompareResultFile(DownloadCompareResultFileRequest request) { + return hcClient.syncInvokeHttp(request, DrsMeta.downloadCompareResultFile); + } + + /** + * 下载对比任务结果文件 + * + * 下载对比任务结果文件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DownloadCompareResultFileRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker downloadCompareResultFileInvoker( + DownloadCompareResultFileRequest request) { + return new SyncInvoker<>(request, DrsMeta.downloadCompareResultFile, hcClient); + } + /** * 查询可用的Node规格 * @@ -1075,6 +1174,36 @@ public SyncInvoker(request, DrsMeta.listContentCompareDetail, hcClient); } + /** + * 查询内容对比差异 + * + * 查询内容对比差异。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListContentCompareDifferenceRequest 请求对象 + * @return ListContentCompareDifferenceResponse + */ + public ListContentCompareDifferenceResponse listContentCompareDifference( + ListContentCompareDifferenceRequest request) { + return hcClient.syncInvokeHttp(request, DrsMeta.listContentCompareDifference); + } + + /** + * 查询内容对比差异 + * + * 查询内容对比差异。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListContentCompareDifferenceRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listContentCompareDifferenceInvoker( + ListContentCompareDifferenceRequest request) { + return new SyncInvoker<>(request, DrsMeta.listContentCompareDifference, hcClient); + } + /** * 查询内容对比总览 * @@ -1192,6 +1321,66 @@ public SyncInvoker(request, DrsMeta.listDataLevelTableCompareJobs, hcClient); } + /** + * 查询对象对比任务详情 + * + * 查询对象对比任务详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListObejectLevelCompareDetailRequest 请求对象 + * @return ListObejectLevelCompareDetailResponse + */ + public ListObejectLevelCompareDetailResponse listObejectLevelCompareDetail( + ListObejectLevelCompareDetailRequest request) { + return hcClient.syncInvokeHttp(request, DrsMeta.listObejectLevelCompareDetail); + } + + /** + * 查询对象对比任务详情 + * + * 查询对象对比任务详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListObejectLevelCompareDetailRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listObejectLevelCompareDetailInvoker( + ListObejectLevelCompareDetailRequest request) { + return new SyncInvoker<>(request, DrsMeta.listObejectLevelCompareDetail, hcClient); + } + + /** + * 查询对象对比任务概览 + * + * 查询对象对比任务概览。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListObejectLevelCompareOverviewRequest 请求对象 + * @return ListObejectLevelCompareOverviewResponse + */ + public ListObejectLevelCompareOverviewResponse listObejectLevelCompareOverview( + ListObejectLevelCompareOverviewRequest request) { + return hcClient.syncInvokeHttp(request, DrsMeta.listObejectLevelCompareOverview); + } + + /** + * 查询对象对比任务概览 + * + * 查询对象对比任务概览。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListObejectLevelCompareOverviewRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listObejectLevelCompareOverviewInvoker( + ListObejectLevelCompareOverviewRequest request) { + return new SyncInvoker<>(request, DrsMeta.listObejectLevelCompareOverview, hcClient); + } + /** * 获取源库迁移用户列表 * diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/DrsMeta.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/DrsMeta.java index dddcf93e86..36646973cc 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/DrsMeta.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/DrsMeta.java @@ -81,14 +81,22 @@ import com.huaweicloud.sdk.drs.v3.model.BatchValidateClustersConnectionsResponse; import com.huaweicloud.sdk.drs.v3.model.BatchValidateConnectionsRequest; import com.huaweicloud.sdk.drs.v3.model.BatchValidateConnectionsResponse; +import com.huaweicloud.sdk.drs.v3.model.CreateCompareResultFileRequest; +import com.huaweicloud.sdk.drs.v3.model.CreateCompareResultFileResponse; import com.huaweicloud.sdk.drs.v3.model.CreateCompareTaskReq; import com.huaweicloud.sdk.drs.v3.model.CreateCompareTaskRequest; import com.huaweicloud.sdk.drs.v3.model.CreateCompareTaskResponse; import com.huaweicloud.sdk.drs.v3.model.CreateDataLevelTableCompareJobReq; import com.huaweicloud.sdk.drs.v3.model.CreateDataLevelTableCompareJobRequest; import com.huaweicloud.sdk.drs.v3.model.CreateDataLevelTableCompareJobResponse; +import com.huaweicloud.sdk.drs.v3.model.CreateObjectCompareJobReq; +import com.huaweicloud.sdk.drs.v3.model.CreateObjectLevelCompareJobRequest; +import com.huaweicloud.sdk.drs.v3.model.CreateObjectLevelCompareJobResponse; import com.huaweicloud.sdk.drs.v3.model.DeleteCompareJobRequest; import com.huaweicloud.sdk.drs.v3.model.DeleteCompareJobResponse; +import com.huaweicloud.sdk.drs.v3.model.DownloadCompareResultFileRequest; +import com.huaweicloud.sdk.drs.v3.model.DownloadCompareResultFileResponse; +import com.huaweicloud.sdk.drs.v3.model.ExportCompareResultReq; import com.huaweicloud.sdk.drs.v3.model.ListAvailableNodeTypesRequest; import com.huaweicloud.sdk.drs.v3.model.ListAvailableNodeTypesResponse; import com.huaweicloud.sdk.drs.v3.model.ListAvailableZoneRequest; @@ -97,6 +105,8 @@ import com.huaweicloud.sdk.drs.v3.model.ListCompareResultResponse; import com.huaweicloud.sdk.drs.v3.model.ListContentCompareDetailRequest; import com.huaweicloud.sdk.drs.v3.model.ListContentCompareDetailResponse; +import com.huaweicloud.sdk.drs.v3.model.ListContentCompareDifferenceRequest; +import com.huaweicloud.sdk.drs.v3.model.ListContentCompareDifferenceResponse; import com.huaweicloud.sdk.drs.v3.model.ListContentCompareOverviewRequest; import com.huaweicloud.sdk.drs.v3.model.ListContentCompareOverviewResponse; import com.huaweicloud.sdk.drs.v3.model.ListDataCompareDetailRequest; @@ -105,6 +115,10 @@ import com.huaweicloud.sdk.drs.v3.model.ListDataCompareOverviewResponse; import com.huaweicloud.sdk.drs.v3.model.ListDataLevelTableCompareJobsRequest; import com.huaweicloud.sdk.drs.v3.model.ListDataLevelTableCompareJobsResponse; +import com.huaweicloud.sdk.drs.v3.model.ListObejectLevelCompareDetailRequest; +import com.huaweicloud.sdk.drs.v3.model.ListObejectLevelCompareDetailResponse; +import com.huaweicloud.sdk.drs.v3.model.ListObejectLevelCompareOverviewRequest; +import com.huaweicloud.sdk.drs.v3.model.ListObejectLevelCompareOverviewResponse; import com.huaweicloud.sdk.drs.v3.model.ListUsersRequest; import com.huaweicloud.sdk.drs.v3.model.ListUsersResponse; import com.huaweicloud.sdk.drs.v3.model.ModifyTargetParamsReq; @@ -870,6 +884,46 @@ private static HttpRequestDef createCompareResultFile = + genForCreateCompareResultFile(); + + private static HttpRequestDef genForCreateCompareResultFile() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, CreateCompareResultFileRequest.class, CreateCompareResultFileResponse.class) + .withName("CreateCompareResultFile") + .withUri("/v3/{project_id}/jobs/{job_id}/compare/result/file") + .withContentType("application/json"); + + // requests + builder.withRequestField("job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateCompareResultFileRequest::getJobId, CreateCompareResultFileRequest::setJobId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(CreateCompareResultFileRequest.XLanguageEnum.class), + f -> f.withMarshaller(CreateCompareResultFileRequest::getXLanguage, + CreateCompareResultFileRequest::setXLanguage)); + builder.withRequestField("Region", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateCompareResultFileRequest::getRegion, + CreateCompareResultFileRequest::setRegion)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ExportCompareResultReq.class), + f -> f.withMarshaller(CreateCompareResultFileRequest::getBody, CreateCompareResultFileRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef createCompareTask = genForCreateCompareTask(); @@ -937,6 +991,45 @@ private static HttpRequestDef createObjectLevelCompareJob = + genForCreateObjectLevelCompareJob(); + + private static HttpRequestDef genForCreateObjectLevelCompareJob() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + CreateObjectLevelCompareJobRequest.class, + CreateObjectLevelCompareJobResponse.class) + .withName("CreateObjectLevelCompareJob") + .withUri("/v3/{project_id}/jobs/{job_id}/object/compare") + .withContentType("application/json"); + + // requests + builder.withRequestField("job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateObjectLevelCompareJobRequest::getJobId, + CreateObjectLevelCompareJobRequest::setJobId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(CreateObjectLevelCompareJobRequest.XLanguageEnum.class), + f -> f.withMarshaller(CreateObjectLevelCompareJobRequest::getXLanguage, + CreateObjectLevelCompareJobRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateObjectCompareJobReq.class), + f -> f.withMarshaller(CreateObjectLevelCompareJobRequest::getBody, + CreateObjectLevelCompareJobRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef deleteCompareJob = genForDeleteCompareJob(); @@ -970,6 +1063,63 @@ private static HttpRequestDef return builder.build(); } + public static final HttpRequestDef downloadCompareResultFile = + genForDownloadCompareResultFile(); + + private static HttpRequestDef genForDownloadCompareResultFile() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + DownloadCompareResultFileRequest.class, + DownloadCompareResultFileResponse.class) + .withName("DownloadCompareResultFile") + .withUri("/v3/{project_id}/jobs/{job_id}/compare/result/file") + .withContentType("application/json"); + + // requests + builder.withRequestField("job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DownloadCompareResultFileRequest::getJobId, + DownloadCompareResultFileRequest::setJobId)); + builder.withRequestField("compare_type", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DownloadCompareResultFileRequest::getCompareType, + DownloadCompareResultFileRequest::setCompareType)); + builder.withRequestField("compare_job_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DownloadCompareResultFileRequest::getCompareJobId, + DownloadCompareResultFileRequest::setCompareJobId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(DownloadCompareResultFileRequest.XLanguageEnum.class), + f -> f.withMarshaller(DownloadCompareResultFileRequest::getXLanguage, + DownloadCompareResultFileRequest::setXLanguage)); + builder.withRequestField("Region", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DownloadCompareResultFileRequest::getRegion, + DownloadCompareResultFileRequest::setRegion)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ExportCompareResultReq.class), + f -> f.withMarshaller(DownloadCompareResultFileRequest::getBody, + DownloadCompareResultFileRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listAvailableNodeTypes = genForListAvailableNodeTypes(); @@ -1146,6 +1296,69 @@ private static HttpRequestDef listContentCompareDifference = + genForListContentCompareDifference(); + + private static HttpRequestDef genForListContentCompareDifference() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ListContentCompareDifferenceRequest.class, + ListContentCompareDifferenceResponse.class) + .withName("ListContentCompareDifference") + .withUri("/v3/{project_id}/jobs/{job_id}/compare/{compare_job_id}/content-difference") + .withContentType("application/json"); + + // requests + builder.withRequestField("job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListContentCompareDifferenceRequest::getJobId, + ListContentCompareDifferenceRequest::setJobId)); + builder.withRequestField("compare_job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListContentCompareDifferenceRequest::getCompareJobId, + ListContentCompareDifferenceRequest::setCompareJobId)); + builder.withRequestField("table_name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListContentCompareDifferenceRequest::getTableName, + ListContentCompareDifferenceRequest::setTableName)); + builder.withRequestField("db_name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListContentCompareDifferenceRequest::getDbName, + ListContentCompareDifferenceRequest::setDbName)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListContentCompareDifferenceRequest::getLimit, + ListContentCompareDifferenceRequest::setLimit)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListContentCompareDifferenceRequest::getOffset, + ListContentCompareDifferenceRequest::setOffset)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ListContentCompareDifferenceRequest.XLanguageEnum.class), + f -> f.withMarshaller(ListContentCompareDifferenceRequest::getXLanguage, + ListContentCompareDifferenceRequest::setXLanguage)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listContentCompareOverview = genForListContentCompareOverview(); @@ -1366,6 +1579,96 @@ private static HttpRequestDef listObejectLevelCompareDetail = + genForListObejectLevelCompareDetail(); + + private static HttpRequestDef genForListObejectLevelCompareDetail() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ListObejectLevelCompareDetailRequest.class, + ListObejectLevelCompareDetailResponse.class) + .withName("ListObejectLevelCompareDetail") + .withUri("/v3/{project_id}/jobs/{job_id}/object/compare/{compare_type}") + .withContentType("application/json"); + + // requests + builder.withRequestField("job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListObejectLevelCompareDetailRequest::getJobId, + ListObejectLevelCompareDetailRequest::setJobId)); + builder.withRequestField("compare_type", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListObejectLevelCompareDetailRequest::getCompareType, + ListObejectLevelCompareDetailRequest::setCompareType)); + builder.withRequestField("compare_job_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListObejectLevelCompareDetailRequest::getCompareJobId, + ListObejectLevelCompareDetailRequest::setCompareJobId)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListObejectLevelCompareDetailRequest::getLimit, + ListObejectLevelCompareDetailRequest::setLimit)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListObejectLevelCompareDetailRequest::getOffset, + ListObejectLevelCompareDetailRequest::setOffset)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ListObejectLevelCompareDetailRequest.XLanguageEnum.class), + f -> f.withMarshaller(ListObejectLevelCompareDetailRequest::getXLanguage, + ListObejectLevelCompareDetailRequest::setXLanguage)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listObejectLevelCompareOverview = + genForListObejectLevelCompareOverview(); + + private static HttpRequestDef genForListObejectLevelCompareOverview() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ListObejectLevelCompareOverviewRequest.class, + ListObejectLevelCompareOverviewResponse.class) + .withName("ListObejectLevelCompareOverview") + .withUri("/v3/{project_id}/jobs/{job_id}/object/compare") + .withContentType("application/json"); + + // requests + builder.withRequestField("job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListObejectLevelCompareOverviewRequest::getJobId, + ListObejectLevelCompareOverviewRequest::setJobId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ListObejectLevelCompareOverviewRequest.XLanguageEnum.class), + f -> f.withMarshaller(ListObejectLevelCompareOverviewRequest::getXLanguage, + ListObejectLevelCompareOverviewRequest::setXLanguage)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listUsers = genForListUsers(); private static HttpRequestDef genForListUsers() { diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/BatchJobActionReq.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/BatchJobActionReq.java index 51929fb413..9e89162867 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/BatchJobActionReq.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/BatchJobActionReq.java @@ -11,7 +11,7 @@ import java.util.Objects; /** - * 任务动作请求体 + * 任务动作请求体。 */ public class BatchJobActionReq { @@ -134,7 +134,7 @@ public BatchJobActionReq withProperty(String property) { } /** - * 操作对应的参数(API参考文档-批量测试连接-集群模式-property字段数据结构说明)[字段说明参考](https://support.huaweicloud.com/api-drs/zh-cn_topic_0295171516.html) + * 操作对应的参数(API参考文档-批量测试连接-集群模式-property字段数据结构说明)[字段说明参考](https://support.huaweicloud.com/api-drs/drs_03_0106.html) * @return property */ public String getProperty() { diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ChildrenJobInfo.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ChildrenJobInfo.java index 2d261cdf89..c22d214a4d 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ChildrenJobInfo.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ChildrenJobInfo.java @@ -233,9 +233,9 @@ public static final class JobDirectionEnum { public static final JobDirectionEnum DOWN = new JobDirectionEnum("down"); /** - * Enum NON_DBS for value: "non-dbs" + * Enum NO_DBS for value: "no-dbs" */ - public static final JobDirectionEnum NON_DBS = new JobDirectionEnum("non-dbs"); + public static final JobDirectionEnum NO_DBS = new JobDirectionEnum("no-dbs"); private static final Map STATIC_FIELDS = createStaticFields(); @@ -243,7 +243,7 @@ private static Map createStaticFields() { Map map = new HashMap<>(); map.put("up", UP); map.put("down", DOWN); - map.put("non-dbs", NON_DBS); + map.put("no-dbs", NO_DBS); return Collections.unmodifiableMap(map); } diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/CompareJobContentDetailInfo.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/CompareJobContentDetailInfo.java new file mode 100644 index 0000000000..5a8b5f43cc --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/CompareJobContentDetailInfo.java @@ -0,0 +1,179 @@ +package com.huaweicloud.sdk.drs.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 CompareJobContentDetailInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_key_value") + + private List sourceKeyValue = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_key_value") + + private List targetKeyValue = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "select_sql") + + private String selectSql; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_select_sql") + + private String targetSelectSql; + + public CompareJobContentDetailInfo withSourceKeyValue(List sourceKeyValue) { + this.sourceKeyValue = sourceKeyValue; + return this; + } + + public CompareJobContentDetailInfo addSourceKeyValueItem(String sourceKeyValueItem) { + if (this.sourceKeyValue == null) { + this.sourceKeyValue = new ArrayList<>(); + } + this.sourceKeyValue.add(sourceKeyValueItem); + return this; + } + + public CompareJobContentDetailInfo withSourceKeyValue(Consumer> sourceKeyValueSetter) { + if (this.sourceKeyValue == null) { + this.sourceKeyValue = new ArrayList<>(); + } + sourceKeyValueSetter.accept(this.sourceKeyValue); + return this; + } + + /** + * 源库KEY值列表。 + * @return sourceKeyValue + */ + public List getSourceKeyValue() { + return sourceKeyValue; + } + + public void setSourceKeyValue(List sourceKeyValue) { + this.sourceKeyValue = sourceKeyValue; + } + + public CompareJobContentDetailInfo withTargetKeyValue(List targetKeyValue) { + this.targetKeyValue = targetKeyValue; + return this; + } + + public CompareJobContentDetailInfo addTargetKeyValueItem(String targetKeyValueItem) { + if (this.targetKeyValue == null) { + this.targetKeyValue = new ArrayList<>(); + } + this.targetKeyValue.add(targetKeyValueItem); + return this; + } + + public CompareJobContentDetailInfo withTargetKeyValue(Consumer> targetKeyValueSetter) { + if (this.targetKeyValue == null) { + this.targetKeyValue = new ArrayList<>(); + } + targetKeyValueSetter.accept(this.targetKeyValue); + return this; + } + + /** + * 目标库KEY值列表。 + * @return targetKeyValue + */ + public List getTargetKeyValue() { + return targetKeyValue; + } + + public void setTargetKeyValue(List targetKeyValue) { + this.targetKeyValue = targetKeyValue; + } + + public CompareJobContentDetailInfo withSelectSql(String selectSql) { + this.selectSql = selectSql; + return this; + } + + /** + * 查询源库的SQL。 + * @return selectSql + */ + public String getSelectSql() { + return selectSql; + } + + public void setSelectSql(String selectSql) { + this.selectSql = selectSql; + } + + public CompareJobContentDetailInfo withTargetSelectSql(String targetSelectSql) { + this.targetSelectSql = targetSelectSql; + return this; + } + + /** + * 查询目标库的SQL。 + * @return targetSelectSql + */ + public String getTargetSelectSql() { + return targetSelectSql; + } + + public void setTargetSelectSql(String targetSelectSql) { + this.targetSelectSql = targetSelectSql; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CompareJobContentDetailInfo that = (CompareJobContentDetailInfo) obj; + return Objects.equals(this.sourceKeyValue, that.sourceKeyValue) + && Objects.equals(this.targetKeyValue, that.targetKeyValue) + && Objects.equals(this.selectSql, that.selectSql) + && Objects.equals(this.targetSelectSql, that.targetSelectSql); + } + + @Override + public int hashCode() { + return Objects.hash(sourceKeyValue, targetKeyValue, selectSql, targetSelectSql); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CompareJobContentDetailInfo {\n"); + sb.append(" sourceKeyValue: ").append(toIndentedString(sourceKeyValue)).append("\n"); + sb.append(" targetKeyValue: ").append(toIndentedString(targetKeyValue)).append("\n"); + sb.append(" selectSql: ").append(toIndentedString(selectSql)).append("\n"); + sb.append(" targetSelectSql: ").append(toIndentedString(targetSelectSql)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/CreateCompareResultFileRequest.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/CreateCompareResultFileRequest.java new file mode 100644 index 0000000000..5475c62a25 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/CreateCompareResultFileRequest.java @@ -0,0 +1,229 @@ +package com.huaweicloud.sdk.drs.v3.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; + +/** + * Request Object + */ +public class CreateCompareResultFileRequest { + + /** + * 请求语言类型。 + */ + public static final class XLanguageEnum { + + /** + * Enum EN_US for value: "en-us" + */ + public static final XLanguageEnum EN_US = new XLanguageEnum("en-us"); + + /** + * Enum ZH_CN for value: "zh-cn" + */ + public static final XLanguageEnum ZH_CN = new XLanguageEnum("zh-cn"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("en-us", EN_US); + map.put("zh-cn", ZH_CN); + 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 = "Region") + + private String region; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private ExportCompareResultReq body; + + public CreateCompareResultFileRequest withXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 请求语言类型。 + * @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 CreateCompareResultFileRequest withRegion(String region) { + this.region = region; + return this; + } + + /** + * 区域ID,例如:cn-north-4。 + * @return region + */ + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public CreateCompareResultFileRequest withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 任务ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public CreateCompareResultFileRequest withBody(ExportCompareResultReq body) { + this.body = body; + return this; + } + + public CreateCompareResultFileRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new ExportCompareResultReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ExportCompareResultReq getBody() { + return body; + } + + public void setBody(ExportCompareResultReq 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; + } + CreateCompareResultFileRequest that = (CreateCompareResultFileRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.region, that.region) + && Objects.equals(this.jobId, that.jobId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, region, jobId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateCompareResultFileRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/CreateCompareResultFileResponse.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/CreateCompareResultFileResponse.java new file mode 100644 index 0000000000..8d5f31c580 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/CreateCompareResultFileResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.drs.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 CreateCompareResultFileResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private Object body; + + public CreateCompareResultFileResponse withBody(Object body) { + this.body = body; + return this; + } + + /** + * 空响应体。 + * @return body + */ + public Object getBody() { + return body; + } + + public void setBody(Object 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; + } + CreateCompareResultFileResponse that = (CreateCompareResultFileResponse) 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 CreateCompareResultFileResponse {\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/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/CreateObjectCompareJobReq.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/CreateObjectCompareJobReq.java new file mode 100644 index 0000000000..accbc41e0f --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/CreateObjectCompareJobReq.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.drs.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 创建对象级对比任务请求。 + */ +public class CreateObjectCompareJobReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "compare_task_num") + + private Integer compareTaskNum; + + public CreateObjectCompareJobReq withCompareTaskNum(Integer compareTaskNum) { + this.compareTaskNum = compareTaskNum; + return this; + } + + /** + * 对比任务线程数量,当前仅cloudDataGuard-cassandra和cloudDataGuard-gausscassandra-to-gausscassandra链路支持。 + * @return compareTaskNum + */ + public Integer getCompareTaskNum() { + return compareTaskNum; + } + + public void setCompareTaskNum(Integer compareTaskNum) { + this.compareTaskNum = compareTaskNum; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateObjectCompareJobReq that = (CreateObjectCompareJobReq) obj; + return Objects.equals(this.compareTaskNum, that.compareTaskNum); + } + + @Override + public int hashCode() { + return Objects.hash(compareTaskNum); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateObjectCompareJobReq {\n"); + sb.append(" compareTaskNum: ").append(toIndentedString(compareTaskNum)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/CreateObjectLevelCompareJobRequest.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/CreateObjectLevelCompareJobRequest.java new file mode 100644 index 0000000000..1d501f1dc8 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/CreateObjectLevelCompareJobRequest.java @@ -0,0 +1,206 @@ +package com.huaweicloud.sdk.drs.v3.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; + +/** + * Request Object + */ +public class CreateObjectLevelCompareJobRequest { + + /** + * 请求语言类型。 + */ + public static final class XLanguageEnum { + + /** + * Enum EN_US for value: "en-us" + */ + public static final XLanguageEnum EN_US = new XLanguageEnum("en-us"); + + /** + * Enum ZH_CN for value: "zh-cn" + */ + public static final XLanguageEnum ZH_CN = new XLanguageEnum("zh-cn"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("en-us", EN_US); + map.put("zh-cn", ZH_CN); + 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 = "job_id") + + private String jobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateObjectCompareJobReq body; + + public CreateObjectLevelCompareJobRequest withXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 请求语言类型。 + * @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 CreateObjectLevelCompareJobRequest withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 任务ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public CreateObjectLevelCompareJobRequest withBody(CreateObjectCompareJobReq body) { + this.body = body; + return this; + } + + public CreateObjectLevelCompareJobRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateObjectCompareJobReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateObjectCompareJobReq getBody() { + return body; + } + + public void setBody(CreateObjectCompareJobReq 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; + } + CreateObjectLevelCompareJobRequest that = (CreateObjectLevelCompareJobRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.jobId, that.jobId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, jobId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateObjectLevelCompareJobRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/CreateObjectLevelCompareJobResponse.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/CreateObjectLevelCompareJobResponse.java new file mode 100644 index 0000000000..8a9af490f0 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/CreateObjectLevelCompareJobResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.drs.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 CreateObjectLevelCompareJobResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private Object body; + + public CreateObjectLevelCompareJobResponse withBody(Object body) { + this.body = body; + return this; + } + + /** + * 空响应体。 + * @return body + */ + public Object getBody() { + return body; + } + + public void setBody(Object 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; + } + CreateObjectLevelCompareJobResponse that = (CreateObjectLevelCompareJobResponse) 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 CreateObjectLevelCompareJobResponse {\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/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/DownloadCompareResultFileRequest.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/DownloadCompareResultFileRequest.java new file mode 100644 index 0000000000..8cf092228d --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/DownloadCompareResultFileRequest.java @@ -0,0 +1,303 @@ +package com.huaweicloud.sdk.drs.v3.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.progress.ProgressListener; +import com.huaweicloud.sdk.core.progress.ProgressRequest; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class DownloadCompareResultFileRequest implements ProgressRequest { + + /** + * 请求语言类型。 + */ + public static final class XLanguageEnum { + + /** + * Enum EN_US for value: "en-us" + */ + public static final XLanguageEnum EN_US = new XLanguageEnum("en-us"); + + /** + * Enum ZH_CN for value: "zh-cn" + */ + public static final XLanguageEnum ZH_CN = new XLanguageEnum("zh-cn"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("en-us", EN_US); + map.put("zh-cn", ZH_CN); + 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 = "job_id") + + private String jobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "compare_type") + + private String compareType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "compare_job_id") + + private String compareJobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Region") + + private String region; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private ExportCompareResultReq body; + + private ProgressListener progressListener; + + private long progressInterval; + + @Override + public void setProgressListener(ProgressListener progressListener) { + this.progressListener = progressListener; + } + + @Override + public ProgressListener getProgressListener() { + return progressListener; + } + + @Override + public void setProgressInterval(long progressInterval) { + this.progressInterval = progressInterval; + } + + @Override + public long getProgressInterval() { + return progressInterval; + } + + public DownloadCompareResultFileRequest withXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 请求语言类型。 + * @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 DownloadCompareResultFileRequest withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 任务ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public DownloadCompareResultFileRequest withCompareType(String compareType) { + this.compareType = compareType; + return this; + } + + /** + * 对比任务类型: - contents: 内容对比。 - lines:行数对比。 - random:抽样对比。 - objects_comparison:对象对比。 + * @return compareType + */ + public String getCompareType() { + return compareType; + } + + public void setCompareType(String compareType) { + this.compareType = compareType; + } + + public DownloadCompareResultFileRequest withCompareJobId(String compareJobId) { + this.compareJobId = compareJobId; + return this; + } + + /** + * 对比任务的ID,内容对比、抽样对比、行数对比场景必填。 + * @return compareJobId + */ + public String getCompareJobId() { + return compareJobId; + } + + public void setCompareJobId(String compareJobId) { + this.compareJobId = compareJobId; + } + + public DownloadCompareResultFileRequest withRegion(String region) { + this.region = region; + return this; + } + + /** + * 区域ID,例如:cn-north-4。 + * @return region + */ + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public DownloadCompareResultFileRequest withBody(ExportCompareResultReq body) { + this.body = body; + return this; + } + + public DownloadCompareResultFileRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new ExportCompareResultReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ExportCompareResultReq getBody() { + return body; + } + + public void setBody(ExportCompareResultReq 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; + } + DownloadCompareResultFileRequest that = (DownloadCompareResultFileRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.jobId, that.jobId) + && Objects.equals(this.compareType, that.compareType) + && Objects.equals(this.compareJobId, that.compareJobId) && Objects.equals(this.region, that.region) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, jobId, compareType, compareJobId, region, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DownloadCompareResultFileRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" compareType: ").append(toIndentedString(compareType)).append("\n"); + sb.append(" compareJobId: ").append(toIndentedString(compareJobId)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/DownloadCompareResultFileResponse.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/DownloadCompareResultFileResponse.java new file mode 100644 index 0000000000..83cd701384 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/DownloadCompareResultFileResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.drs.v3.model; + +import com.huaweicloud.sdk.core.SdkStreamResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DownloadCompareResultFileResponse extends SdkStreamResponse { + + @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 DownloadCompareResultFileResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/Endpoint.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/Endpoint.java index 053300bfad..464de6a0dd 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/Endpoint.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/Endpoint.java @@ -9,6 +9,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import java.util.function.Consumer; /** * 数据库信息体 @@ -294,6 +295,11 @@ public int hashCode() { private ClusterModeEnum clusterMode; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "kafka_security_config") + + private KafkaSecurity kafkaSecurityConfig; + public Endpoint withDbType(DbTypeEnum dbType) { this.dbType = dbType; return this; @@ -685,6 +691,32 @@ public void setClusterMode(ClusterModeEnum clusterMode) { this.clusterMode = clusterMode; } + public Endpoint withKafkaSecurityConfig(KafkaSecurity kafkaSecurityConfig) { + this.kafkaSecurityConfig = kafkaSecurityConfig; + return this; + } + + public Endpoint withKafkaSecurityConfig(Consumer kafkaSecurityConfigSetter) { + if (this.kafkaSecurityConfig == null) { + this.kafkaSecurityConfig = new KafkaSecurity(); + kafkaSecurityConfigSetter.accept(this.kafkaSecurityConfig); + } + + return this; + } + + /** + * Get kafkaSecurityConfig + * @return kafkaSecurityConfig + */ + public KafkaSecurity getKafkaSecurityConfig() { + return kafkaSecurityConfig; + } + + public void setKafkaSecurityConfig(KafkaSecurity kafkaSecurityConfig) { + this.kafkaSecurityConfig = kafkaSecurityConfig; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -707,7 +739,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.sslCertCheckSum, that.sslCertCheckSum) && Objects.equals(this.sslCertKey, that.sslCertKey) && Objects.equals(this.sslCertName, that.sslCertName) && Objects.equals(this.sslLink, that.sslLink) && Objects.equals(this.topic, that.topic) - && Objects.equals(this.clusterMode, that.clusterMode); + && Objects.equals(this.clusterMode, that.clusterMode) + && Objects.equals(this.kafkaSecurityConfig, that.kafkaSecurityConfig); } @Override @@ -734,7 +767,8 @@ public int hashCode() { sslCertName, sslLink, topic, - clusterMode); + clusterMode, + kafkaSecurityConfig); } @Override @@ -764,6 +798,7 @@ public String toString() { sb.append(" sslLink: ").append(toIndentedString(sslLink)).append("\n"); sb.append(" topic: ").append(toIndentedString(topic)).append("\n"); sb.append(" clusterMode: ").append(toIndentedString(clusterMode)).append("\n"); + sb.append(" kafkaSecurityConfig: ").append(toIndentedString(kafkaSecurityConfig)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ExportCompareResultReq.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ExportCompareResultReq.java new file mode 100644 index 0000000000..1a2157b7c8 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ExportCompareResultReq.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.drs.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 生成对比任务结果文件请求体。 + */ +public class ExportCompareResultReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "compare_type") + + private String compareType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "compare_job_id") + + private String compareJobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "time_zone") + + private String timeZone; + + public ExportCompareResultReq withCompareType(String compareType) { + this.compareType = compareType; + return this; + } + + /** + * 对比任务类型: - contents: 内容对比。 - lines:行数对比。 - random:抽样对比。 - objects_comparison:对象对比。 + * @return compareType + */ + public String getCompareType() { + return compareType; + } + + public void setCompareType(String compareType) { + this.compareType = compareType; + } + + public ExportCompareResultReq withCompareJobId(String compareJobId) { + this.compareJobId = compareJobId; + return this; + } + + /** + * 对比任务的ID,内容对比、抽样对比、行数对比场景必填。 + * @return compareJobId + */ + public String getCompareJobId() { + return compareJobId; + } + + public void setCompareJobId(String compareJobId) { + this.compareJobId = compareJobId; + } + + public ExportCompareResultReq withTimeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * 时区,如GMT+08:00,用于生成当前时间标识,拼接到文件名称中。 + * @return timeZone + */ + public String getTimeZone() { + return timeZone; + } + + public void setTimeZone(String timeZone) { + this.timeZone = timeZone; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ExportCompareResultReq that = (ExportCompareResultReq) obj; + return Objects.equals(this.compareType, that.compareType) + && Objects.equals(this.compareJobId, that.compareJobId) && Objects.equals(this.timeZone, that.timeZone); + } + + @Override + public int hashCode() { + return Objects.hash(compareType, compareJobId, timeZone); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExportCompareResultReq {\n"); + sb.append(" compareType: ").append(toIndentedString(compareType)).append("\n"); + sb.append(" compareJobId: ").append(toIndentedString(compareJobId)).append("\n"); + sb.append(" timeZone: ").append(toIndentedString(timeZone)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/KafkaSecurity.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/KafkaSecurity.java index fa10e74b2e..f2ec4f63df 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/KafkaSecurity.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/KafkaSecurity.java @@ -15,23 +15,8 @@ */ public class KafkaSecurity { - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "trust_store_key_name") - - private String trustStoreKeyName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "trust_store_key") - - private String trustStoreKey; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "trust_store_password") - - private String trustStorePassword; - /** - * 认证类型,PLAINTEXT为无认证,,使用安全认证时必填。 + * 安全协议,安全认证时必填,对应Kafka字段:security.protocol。 - PLAINTEXT:无安全认证方式,仅需输入IP和端口进行连接。 - SASL_PLAINTEXT:使用SASL机制连接Kafka,需要设置SASL相关配置。 - SSL:使用SSL加密方式连接Kafka,需要设置SSL相关配置。 - SASL_SSL:使用SASL及SSL加密认证方式,需要设置SSL及SASL相关参数配置信息。 */ public static final class TypeEnum { @@ -40,17 +25,29 @@ public static final class TypeEnum { */ public static final TypeEnum PLAINTEXT = new TypeEnum("PLAINTEXT"); + /** + * Enum SASL_PLAINTEXT for value: "SASL_PLAINTEXT" + */ + public static final TypeEnum SASL_PLAINTEXT = new TypeEnum("SASL_PLAINTEXT"); + /** * Enum SASL_SSL for value: "SASL_SSL" */ public static final TypeEnum SASL_SSL = new TypeEnum("SASL_SSL"); + /** + * Enum SSL for value: "SSL" + */ + public static final TypeEnum SSL = new TypeEnum("SSL"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { Map map = new HashMap<>(); map.put("PLAINTEXT", PLAINTEXT); + map.put("SASL_PLAINTEXT", SASL_PLAINTEXT); map.put("SASL_SSL", SASL_SSL); + map.put("SSL", SSL); return Collections.unmodifiableMap(map); } @@ -105,13 +102,90 @@ public int hashCode() { private TypeEnum type; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "trust_store_key_name") + + private String trustStoreKeyName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "trust_store_key") + + private String trustStoreKey; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "trust_store_password") + + private String trustStorePassword; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "endpoint_algorithm") + + private String endpointAlgorithm; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sasl_mechanism") + + private String saslMechanism; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "delegation_tokens") + + private Boolean delegationTokens; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enable_key_store") + + private Boolean enableKeyStore; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key_store_key") + + private String keyStoreKey; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key_store_key_name") + + private String keyStoreKeyName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key_store_password") + + private String keyStorePassword; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "set_private_key_password") + + private Boolean setPrivateKeyPassword; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key_password") + + private String keyPassword; + + public KafkaSecurity withType(TypeEnum type) { + this.type = type; + return this; + } + + /** + * 安全协议,安全认证时必填,对应Kafka字段:security.protocol。 - PLAINTEXT:无安全认证方式,仅需输入IP和端口进行连接。 - SASL_PLAINTEXT:使用SASL机制连接Kafka,需要设置SASL相关配置。 - SSL:使用SSL加密方式连接Kafka,需要设置SSL相关配置。 - SASL_SSL:使用SASL及SSL加密认证方式,需要设置SSL及SASL相关参数配置信息。 + * @return type + */ + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + public KafkaSecurity withTrustStoreKeyName(String trustStoreKeyName) { this.trustStoreKeyName = trustStoreKeyName; return this; } /** - * 证书名称,使用安全认证时必填。 + * 证书名称,安全协议为SSL、SASL_SSL时必填。 * @return trustStoreKeyName */ public String getTrustStoreKeyName() { @@ -128,7 +202,7 @@ public KafkaSecurity withTrustStoreKey(String trustStoreKey) { } /** - * 安全证书base64转码后的值,使用安全认证时必填。 + * 安全证书base64转码后的值,安全协议为SSL、SASL_SSL时必填。 * @return trustStoreKey */ public String getTrustStoreKey() { @@ -145,7 +219,7 @@ public KafkaSecurity withTrustStorePassword(String trustStorePassword) { } /** - * 证书密码,使用安全认证时必填。 + * 证书密码,证书设置了密码时必填。 * @return trustStorePassword */ public String getTrustStorePassword() { @@ -156,21 +230,157 @@ public void setTrustStorePassword(String trustStorePassword) { this.trustStorePassword = trustStorePassword; } - public KafkaSecurity withType(TypeEnum type) { - this.type = type; + public KafkaSecurity withEndpointAlgorithm(String endpointAlgorithm) { + this.endpointAlgorithm = endpointAlgorithm; return this; } /** - * 认证类型,PLAINTEXT为无认证,,使用安全认证时必填。 - * @return type + * 主机名端点识别算法,指定通过服务端证书验证服务端主机名的端点识别算法,不填表示禁用主机名验证。对应Kafka字段:ssl.endpoint.identification.algorithm。 + * @return endpointAlgorithm */ - public TypeEnum getType() { - return type; + public String getEndpointAlgorithm() { + return endpointAlgorithm; } - public void setType(TypeEnum type) { - this.type = type; + public void setEndpointAlgorithm(String endpointAlgorithm) { + this.endpointAlgorithm = endpointAlgorithm; + } + + public KafkaSecurity withSaslMechanism(String saslMechanism) { + this.saslMechanism = saslMechanism; + return this; + } + + /** + * SASL机制,用于客户端连接的SASL机制,对应Kafka字段:sasl.mechanism,支持以下四项,取值: - GSSAPI - PLAIN - SCRAM-SHA-256 - SCRAM-SHA-512 + * @return saslMechanism + */ + public String getSaslMechanism() { + return saslMechanism; + } + + public void setSaslMechanism(String saslMechanism) { + this.saslMechanism = saslMechanism; + } + + public KafkaSecurity withDelegationTokens(Boolean delegationTokens) { + this.delegationTokens = delegationTokens; + return this; + } + + /** + * 是否为委托令牌鉴权,安全协议为SASL_SSL和SASL_PLAINTEXT时,SASL机制选择“SCRAM-SHA-256”或者“SCRAM-SHA-512”时生效。 + * @return delegationTokens + */ + public Boolean getDelegationTokens() { + return delegationTokens; + } + + public void setDelegationTokens(Boolean delegationTokens) { + this.delegationTokens = delegationTokens; + } + + public KafkaSecurity withEnableKeyStore(Boolean enableKeyStore) { + this.enableKeyStore = enableKeyStore; + return this; + } + + /** + * 是否开启SSL双向认证。 + * @return enableKeyStore + */ + public Boolean getEnableKeyStore() { + return enableKeyStore; + } + + public void setEnableKeyStore(Boolean enableKeyStore) { + this.enableKeyStore = enableKeyStore; + } + + public KafkaSecurity withKeyStoreKey(String keyStoreKey) { + this.keyStoreKey = keyStoreKey; + return this; + } + + /** + * Keystore证书,开启SSL双向认证时需要。 + * @return keyStoreKey + */ + public String getKeyStoreKey() { + return keyStoreKey; + } + + public void setKeyStoreKey(String keyStoreKey) { + this.keyStoreKey = keyStoreKey; + } + + public KafkaSecurity withKeyStoreKeyName(String keyStoreKeyName) { + this.keyStoreKeyName = keyStoreKeyName; + return this; + } + + /** + * Keystore证书名称,开启SSL双向认证时需要。 + * @return keyStoreKeyName + */ + public String getKeyStoreKeyName() { + return keyStoreKeyName; + } + + public void setKeyStoreKeyName(String keyStoreKeyName) { + this.keyStoreKeyName = keyStoreKeyName; + } + + public KafkaSecurity withKeyStorePassword(String keyStorePassword) { + this.keyStorePassword = keyStorePassword; + return this; + } + + /** + * Keystore证书密码,证书设置了密码时需要。对应Kafka字段:ssl.keystore.password。 + * @return keyStorePassword + */ + public String getKeyStorePassword() { + return keyStorePassword; + } + + public void setKeyStorePassword(String keyStorePassword) { + this.keyStorePassword = keyStorePassword; + } + + public KafkaSecurity withSetPrivateKeyPassword(Boolean setPrivateKeyPassword) { + this.setPrivateKeyPassword = setPrivateKeyPassword; + return this; + } + + /** + * 是否设置Keystore私钥密码,默认为false。 + * @return setPrivateKeyPassword + */ + public Boolean getSetPrivateKeyPassword() { + return setPrivateKeyPassword; + } + + public void setSetPrivateKeyPassword(Boolean setPrivateKeyPassword) { + this.setPrivateKeyPassword = setPrivateKeyPassword; + } + + public KafkaSecurity withKeyPassword(String keyPassword) { + this.keyPassword = keyPassword; + return this; + } + + /** + * Keystore私钥密码,开启SSL双向认证时,set_private_key_password为true时必填。对应Kafka字段:ssl.key.password。 + * @return keyPassword + */ + public String getKeyPassword() { + return keyPassword; + } + + public void setKeyPassword(String keyPassword) { + this.keyPassword = keyPassword; } @Override @@ -182,24 +392,54 @@ public boolean equals(java.lang.Object obj) { return false; } KafkaSecurity that = (KafkaSecurity) obj; - return Objects.equals(this.trustStoreKeyName, that.trustStoreKeyName) + return Objects.equals(this.type, that.type) && Objects.equals(this.trustStoreKeyName, that.trustStoreKeyName) && Objects.equals(this.trustStoreKey, that.trustStoreKey) - && Objects.equals(this.trustStorePassword, that.trustStorePassword) && Objects.equals(this.type, that.type); + && Objects.equals(this.trustStorePassword, that.trustStorePassword) + && Objects.equals(this.endpointAlgorithm, that.endpointAlgorithm) + && Objects.equals(this.saslMechanism, that.saslMechanism) + && Objects.equals(this.delegationTokens, that.delegationTokens) + && Objects.equals(this.enableKeyStore, that.enableKeyStore) + && Objects.equals(this.keyStoreKey, that.keyStoreKey) + && Objects.equals(this.keyStoreKeyName, that.keyStoreKeyName) + && Objects.equals(this.keyStorePassword, that.keyStorePassword) + && Objects.equals(this.setPrivateKeyPassword, that.setPrivateKeyPassword) + && Objects.equals(this.keyPassword, that.keyPassword); } @Override public int hashCode() { - return Objects.hash(trustStoreKeyName, trustStoreKey, trustStorePassword, type); + return Objects.hash(type, + trustStoreKeyName, + trustStoreKey, + trustStorePassword, + endpointAlgorithm, + saslMechanism, + delegationTokens, + enableKeyStore, + keyStoreKey, + keyStoreKeyName, + keyStorePassword, + setPrivateKeyPassword, + keyPassword); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class KafkaSecurity {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" trustStoreKeyName: ").append(toIndentedString(trustStoreKeyName)).append("\n"); sb.append(" trustStoreKey: ").append(toIndentedString(trustStoreKey)).append("\n"); sb.append(" trustStorePassword: ").append(toIndentedString(trustStorePassword)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" endpointAlgorithm: ").append(toIndentedString(endpointAlgorithm)).append("\n"); + sb.append(" saslMechanism: ").append(toIndentedString(saslMechanism)).append("\n"); + sb.append(" delegationTokens: ").append(toIndentedString(delegationTokens)).append("\n"); + sb.append(" enableKeyStore: ").append(toIndentedString(enableKeyStore)).append("\n"); + sb.append(" keyStoreKey: ").append(toIndentedString(keyStoreKey)).append("\n"); + sb.append(" keyStoreKeyName: ").append(toIndentedString(keyStoreKeyName)).append("\n"); + sb.append(" keyStorePassword: ").append(toIndentedString(keyStorePassword)).append("\n"); + sb.append(" setPrivateKeyPassword: ").append(toIndentedString(setPrivateKeyPassword)).append("\n"); + sb.append(" keyPassword: ").append(toIndentedString(keyPassword)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListContentCompareDetailRequest.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListContentCompareDetailRequest.java index 3274017e65..e735dad823 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListContentCompareDetailRequest.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListContentCompareDetailRequest.java @@ -235,7 +235,9 @@ public ListContentCompareDetailRequest withLimit(Integer limit) { } /** - * 每页显示的条目数量。 + * 每页显示的条目数量,最大值1000。 + * minimum: 1 + * maximum: 1000 * @return limit */ public Integer getLimit() { diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListContentCompareDifferenceRequest.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListContentCompareDifferenceRequest.java new file mode 100644 index 0000000000..e31ddd7bea --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListContentCompareDifferenceRequest.java @@ -0,0 +1,292 @@ +package com.huaweicloud.sdk.drs.v3.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; + +/** + * Request Object + */ +public class ListContentCompareDifferenceRequest { + + /** + * 请求语言类型。 + */ + public static final class XLanguageEnum { + + /** + * Enum EN_US for value: "en-us" + */ + public static final XLanguageEnum EN_US = new XLanguageEnum("en-us"); + + /** + * Enum ZH_CN for value: "zh-cn" + */ + public static final XLanguageEnum ZH_CN = new XLanguageEnum("zh-cn"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("en-us", EN_US); + map.put("zh-cn", ZH_CN); + 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 = "job_id") + + private String jobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "compare_job_id") + + private String compareJobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "table_name") + + private String tableName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "db_name") + + private String dbName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + public ListContentCompareDifferenceRequest withXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 请求语言类型。 + * @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 ListContentCompareDifferenceRequest withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 任务ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public ListContentCompareDifferenceRequest withCompareJobId(String compareJobId) { + this.compareJobId = compareJobId; + return this; + } + + /** + * 对比任务ID。 + * @return compareJobId + */ + public String getCompareJobId() { + return compareJobId; + } + + public void setCompareJobId(String compareJobId) { + this.compareJobId = compareJobId; + } + + public ListContentCompareDifferenceRequest withTableName(String tableName) { + this.tableName = tableName; + return this; + } + + /** + * 表名。 + * @return tableName + */ + public String getTableName() { + return tableName; + } + + public void setTableName(String tableName) { + this.tableName = tableName; + } + + public ListContentCompareDifferenceRequest withDbName(String dbName) { + this.dbName = dbName; + return this; + } + + /** + * 源库名称。 + * @return dbName + */ + public String getDbName() { + return dbName; + } + + public void setDbName(String dbName) { + this.dbName = dbName; + } + + public ListContentCompareDifferenceRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 每页显示的条目数量,最大值1000。 + * minimum: 1 + * maximum: 1000 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListContentCompareDifferenceRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 偏移量,表示从此偏移量开始查询, offset大于等于0。 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListContentCompareDifferenceRequest that = (ListContentCompareDifferenceRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.jobId, that.jobId) + && Objects.equals(this.compareJobId, that.compareJobId) && Objects.equals(this.tableName, that.tableName) + && Objects.equals(this.dbName, that.dbName) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.offset, that.offset); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, jobId, compareJobId, tableName, dbName, limit, offset); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListContentCompareDifferenceRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" compareJobId: ").append(toIndentedString(compareJobId)).append("\n"); + sb.append(" tableName: ").append(toIndentedString(tableName)).append("\n"); + sb.append(" dbName: ").append(toIndentedString(dbName)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListContentCompareDifferenceResponse.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListContentCompareDifferenceResponse.java new file mode 100644 index 0000000000..03380061c0 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListContentCompareDifferenceResponse.java @@ -0,0 +1,188 @@ +package com.huaweicloud.sdk.drs.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 ListContentCompareDifferenceResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "count") + + private Long count; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_meta_is_null") + + private Long targetMetaIsNull; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_meta_is_null") + + private Long sourceMetaIsNull; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_target_meta_not_null") + + private Long sourceTargetMetaNotNull; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "contents_infos") + + private List contentsInfos = null; + + public ListContentCompareDifferenceResponse withCount(Long count) { + this.count = count; + return this; + } + + /** + * 总数量。 + * @return count + */ + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ListContentCompareDifferenceResponse withTargetMetaIsNull(Long targetMetaIsNull) { + this.targetMetaIsNull = targetMetaIsNull; + return this; + } + + /** + * 对比不一致详情数量:只有源库存在。 + * @return targetMetaIsNull + */ + public Long getTargetMetaIsNull() { + return targetMetaIsNull; + } + + public void setTargetMetaIsNull(Long targetMetaIsNull) { + this.targetMetaIsNull = targetMetaIsNull; + } + + public ListContentCompareDifferenceResponse withSourceMetaIsNull(Long sourceMetaIsNull) { + this.sourceMetaIsNull = sourceMetaIsNull; + return this; + } + + /** + * 对比不一致详情数量:只有目标库存在。 + * @return sourceMetaIsNull + */ + public Long getSourceMetaIsNull() { + return sourceMetaIsNull; + } + + public void setSourceMetaIsNull(Long sourceMetaIsNull) { + this.sourceMetaIsNull = sourceMetaIsNull; + } + + public ListContentCompareDifferenceResponse withSourceTargetMetaNotNull(Long sourceTargetMetaNotNull) { + this.sourceTargetMetaNotNull = sourceTargetMetaNotNull; + return this; + } + + /** + * 对比不一致详情数量:源和目标端均存在。 + * @return sourceTargetMetaNotNull + */ + public Long getSourceTargetMetaNotNull() { + return sourceTargetMetaNotNull; + } + + public void setSourceTargetMetaNotNull(Long sourceTargetMetaNotNull) { + this.sourceTargetMetaNotNull = sourceTargetMetaNotNull; + } + + public ListContentCompareDifferenceResponse withContentsInfos(List contentsInfos) { + this.contentsInfos = contentsInfos; + return this; + } + + public ListContentCompareDifferenceResponse addContentsInfosItem(CompareJobContentDetailInfo contentsInfosItem) { + if (this.contentsInfos == null) { + this.contentsInfos = new ArrayList<>(); + } + this.contentsInfos.add(contentsInfosItem); + return this; + } + + public ListContentCompareDifferenceResponse withContentsInfos( + Consumer> contentsInfosSetter) { + if (this.contentsInfos == null) { + this.contentsInfos = new ArrayList<>(); + } + contentsInfosSetter.accept(this.contentsInfos); + return this; + } + + /** + * 详细内容信息列表。 + * @return contentsInfos + */ + public List getContentsInfos() { + return contentsInfos; + } + + public void setContentsInfos(List contentsInfos) { + this.contentsInfos = contentsInfos; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListContentCompareDifferenceResponse that = (ListContentCompareDifferenceResponse) obj; + return Objects.equals(this.count, that.count) && Objects.equals(this.targetMetaIsNull, that.targetMetaIsNull) + && Objects.equals(this.sourceMetaIsNull, that.sourceMetaIsNull) + && Objects.equals(this.sourceTargetMetaNotNull, that.sourceTargetMetaNotNull) + && Objects.equals(this.contentsInfos, that.contentsInfos); + } + + @Override + public int hashCode() { + return Objects.hash(count, targetMetaIsNull, sourceMetaIsNull, sourceTargetMetaNotNull, contentsInfos); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListContentCompareDifferenceResponse {\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" targetMetaIsNull: ").append(toIndentedString(targetMetaIsNull)).append("\n"); + sb.append(" sourceMetaIsNull: ").append(toIndentedString(sourceMetaIsNull)).append("\n"); + sb.append(" sourceTargetMetaNotNull: ").append(toIndentedString(sourceTargetMetaNotNull)).append("\n"); + sb.append(" contentsInfos: ").append(toIndentedString(contentsInfos)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListContentCompareOverviewRequest.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListContentCompareOverviewRequest.java index af90a66c8d..89b87dfa4f 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListContentCompareOverviewRequest.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListContentCompareOverviewRequest.java @@ -169,7 +169,9 @@ public ListContentCompareOverviewRequest withLimit(Integer limit) { } /** - * 每页显示的条目数量。 + * 每页显示的条目数量,最大值1000。 + * minimum: 1 + * maximum: 1000 * @return limit */ public Integer getLimit() { diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListDataCompareDetailRequest.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListDataCompareDetailRequest.java index 64d4e38c74..e077842802 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListDataCompareDetailRequest.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListDataCompareDetailRequest.java @@ -279,7 +279,9 @@ public ListDataCompareDetailRequest withLimit(Integer limit) { } /** - * 每页显示的条目数量。 + * 每页显示的条目数量,最大值1000。 + * minimum: 1 + * maximum: 1000 * @return limit */ public Integer getLimit() { diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListDataCompareOverviewRequest.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListDataCompareOverviewRequest.java index be92fe570f..544fb8158d 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListDataCompareOverviewRequest.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListDataCompareOverviewRequest.java @@ -191,7 +191,9 @@ public ListDataCompareOverviewRequest withLimit(Integer limit) { } /** - * 每页显示的条目数量。 + * 每页显示的条目数量,最大值1000。 + * minimum: 1 + * maximum: 1000 * @return limit */ public Integer getLimit() { diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListDataLevelTableCompareJobsRequest.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListDataLevelTableCompareJobsRequest.java index f10ec82d15..d454220981 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListDataLevelTableCompareJobsRequest.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListDataLevelTableCompareJobsRequest.java @@ -147,7 +147,9 @@ public ListDataLevelTableCompareJobsRequest withLimit(Integer limit) { } /** - * 每页显示的条目数量。 + * 每页显示的条目数量,最大值1000。 + * minimum: 1 + * maximum: 1000 * @return limit */ public Integer getLimit() { diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListObejectLevelCompareDetailRequest.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListObejectLevelCompareDetailRequest.java new file mode 100644 index 0000000000..70182c0751 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListObejectLevelCompareDetailRequest.java @@ -0,0 +1,269 @@ +package com.huaweicloud.sdk.drs.v3.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; + +/** + * Request Object + */ +public class ListObejectLevelCompareDetailRequest { + + /** + * 请求语言类型。 + */ + public static final class XLanguageEnum { + + /** + * Enum EN_US for value: "en-us" + */ + public static final XLanguageEnum EN_US = new XLanguageEnum("en-us"); + + /** + * Enum ZH_CN for value: "zh-cn" + */ + public static final XLanguageEnum ZH_CN = new XLanguageEnum("zh-cn"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("en-us", EN_US); + map.put("zh-cn", ZH_CN); + 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 = "job_id") + + private String jobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "compare_type") + + private String compareType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "compare_job_id") + + private String compareJobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + public ListObejectLevelCompareDetailRequest withXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 请求语言类型。 + * @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 ListObejectLevelCompareDetailRequest withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 任务ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public ListObejectLevelCompareDetailRequest withCompareType(String compareType) { + this.compareType = compareType; + return this; + } + + /** + * 对象类型: - DB:数据库。 - TABLE:表。 - VIEW:视图。 - EVENT:事件。 - ROUTINE:存储过程和函数。 - INDEX:索引。 - TRIGGER:触发器。 - SYNONYM:同义词。 - FUNCTION:函数。 - PROCEDURE:存储过程。 - TYPE:自定义类型。 - RULE:规则。 - DEFAULT_TYPE:缺省值。 - PLAN_GUIDE:执行计划。 - CONSTRAINT:约束。 - FILE_GROUP:文件组。 - PARTITION_FUNCTION:分区函数。 - PARTITION_SCHEME:分区方案。 - TABLE_COLLATION:表的排序规则。 + * @return compareType + */ + public String getCompareType() { + return compareType; + } + + public void setCompareType(String compareType) { + this.compareType = compareType; + } + + public ListObejectLevelCompareDetailRequest withCompareJobId(String compareJobId) { + this.compareJobId = compareJobId; + return this; + } + + /** + * 对比任务ID,不填写时默认返回最新的对比任务信息。 + * @return compareJobId + */ + public String getCompareJobId() { + return compareJobId; + } + + public void setCompareJobId(String compareJobId) { + this.compareJobId = compareJobId; + } + + public ListObejectLevelCompareDetailRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 每页显示的条目数量,最大值1000。 + * minimum: 1 + * maximum: 1000 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListObejectLevelCompareDetailRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 偏移量,表示从此偏移量开始查询, offset大于等于0。 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListObejectLevelCompareDetailRequest that = (ListObejectLevelCompareDetailRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.jobId, that.jobId) + && Objects.equals(this.compareType, that.compareType) + && Objects.equals(this.compareJobId, that.compareJobId) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.offset, that.offset); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, jobId, compareType, compareJobId, limit, offset); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListObejectLevelCompareDetailRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" compareType: ").append(toIndentedString(compareType)).append("\n"); + sb.append(" compareJobId: ").append(toIndentedString(compareJobId)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListObejectLevelCompareDetailResponse.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListObejectLevelCompareDetailResponse.java new file mode 100644 index 0000000000..03bce273d8 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListObejectLevelCompareDetailResponse.java @@ -0,0 +1,116 @@ +package com.huaweicloud.sdk.drs.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 ListObejectLevelCompareDetailResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "count") + + private Integer count; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "compare_detail") + + private List compareDetail = null; + + public ListObejectLevelCompareDetailResponse withCount(Integer count) { + this.count = count; + return this; + } + + /** + * 对比数量。 + * @return count + */ + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public ListObejectLevelCompareDetailResponse withCompareDetail(List compareDetail) { + this.compareDetail = compareDetail; + return this; + } + + public ListObejectLevelCompareDetailResponse addCompareDetailItem(ObjectsCompareDetailInfo compareDetailItem) { + if (this.compareDetail == null) { + this.compareDetail = new ArrayList<>(); + } + this.compareDetail.add(compareDetailItem); + return this; + } + + public ListObejectLevelCompareDetailResponse withCompareDetail( + Consumer> compareDetailSetter) { + if (this.compareDetail == null) { + this.compareDetail = new ArrayList<>(); + } + compareDetailSetter.accept(this.compareDetail); + return this; + } + + /** + * 对象级对比详情。 + * @return compareDetail + */ + public List getCompareDetail() { + return compareDetail; + } + + public void setCompareDetail(List compareDetail) { + this.compareDetail = compareDetail; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListObejectLevelCompareDetailResponse that = (ListObejectLevelCompareDetailResponse) obj; + return Objects.equals(this.count, that.count) && Objects.equals(this.compareDetail, that.compareDetail); + } + + @Override + public int hashCode() { + return Objects.hash(count, compareDetail); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListObejectLevelCompareDetailResponse {\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" compareDetail: ").append(toIndentedString(compareDetail)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListObejectLevelCompareOverviewRequest.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListObejectLevelCompareOverviewRequest.java new file mode 100644 index 0000000000..0b81918f08 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListObejectLevelCompareOverviewRequest.java @@ -0,0 +1,172 @@ +package com.huaweicloud.sdk.drs.v3.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; + +/** + * Request Object + */ +public class ListObejectLevelCompareOverviewRequest { + + /** + * 请求语言类型。 + */ + public static final class XLanguageEnum { + + /** + * Enum EN_US for value: "en-us" + */ + public static final XLanguageEnum EN_US = new XLanguageEnum("en-us"); + + /** + * Enum ZH_CN for value: "zh-cn" + */ + public static final XLanguageEnum ZH_CN = new XLanguageEnum("zh-cn"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("en-us", EN_US); + map.put("zh-cn", ZH_CN); + 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 = "job_id") + + private String jobId; + + public ListObejectLevelCompareOverviewRequest withXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 请求语言类型。 + * @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 ListObejectLevelCompareOverviewRequest 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; + } + ListObejectLevelCompareOverviewRequest that = (ListObejectLevelCompareOverviewRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.jobId, that.jobId); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, jobId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListObejectLevelCompareOverviewRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\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/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListObejectLevelCompareOverviewResponse.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListObejectLevelCompareOverviewResponse.java new file mode 100644 index 0000000000..80bc048970 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ListObejectLevelCompareOverviewResponse.java @@ -0,0 +1,265 @@ +package com.huaweicloud.sdk.drs.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 ListObejectLevelCompareOverviewResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "start_time") + + private String startTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "export_status") + + private String exportStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "report_remain_seconds") + + private Long reportRemainSeconds; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "compare_job_id") + + private String compareJobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error_msg") + + private String errorMsg; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "compare_result") + + private List compareResult = null; + + public ListObejectLevelCompareOverviewResponse withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 对比任务创建时间,UTC时间,例如:2024-04-09T07:00:57Z。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public ListObejectLevelCompareOverviewResponse withStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * 对比任务开始时间,UTC时间,例如:2024-04-09T07:00:57Z。 + * @return startTime + */ + public String getStartTime() { + return startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public ListObejectLevelCompareOverviewResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 对比任务状态。 取值: - RUNNING:运行中。 - WAITING_FOR_RUNNING:等待启动中。 - SUCCESSFUL:完成。 - FAILED:失败。 - CANCELLED:已取消。 - TIMEOUT_INTERRUPT:超时中断。 - FULL_DOING:全量校验中。 - INCRE_DOING:增量校验中。 + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public ListObejectLevelCompareOverviewResponse withExportStatus(String exportStatus) { + this.exportStatus = exportStatus; + return this; + } + + /** + * 生成对比结果报告文件的状态: - INIT:初始状态。 - EXPORTING:对比结果导出中。 - EXPORT_COMPLETE:对比结果导出完成。 - EXPORT_COMMON_FAILED:对比结果导出失败。 + * @return exportStatus + */ + public String getExportStatus() { + return exportStatus; + } + + public void setExportStatus(String exportStatus) { + this.exportStatus = exportStatus; + } + + public ListObejectLevelCompareOverviewResponse withReportRemainSeconds(Long reportRemainSeconds) { + this.reportRemainSeconds = reportRemainSeconds; + return this; + } + + /** + * 对比结果报告文件有效期剩余时间,单位秒,报告未生成时返回-1。 + * @return reportRemainSeconds + */ + public Long getReportRemainSeconds() { + return reportRemainSeconds; + } + + public void setReportRemainSeconds(Long reportRemainSeconds) { + this.reportRemainSeconds = reportRemainSeconds; + } + + public ListObejectLevelCompareOverviewResponse withCompareJobId(String compareJobId) { + this.compareJobId = compareJobId; + return this; + } + + /** + * 对比任务ID。 + * @return compareJobId + */ + public String getCompareJobId() { + return compareJobId; + } + + public void setCompareJobId(String compareJobId) { + this.compareJobId = compareJobId; + } + + public ListObejectLevelCompareOverviewResponse withErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + return this; + } + + /** + * 失败原因。 + * @return errorMsg + */ + public String getErrorMsg() { + return errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + public ListObejectLevelCompareOverviewResponse withCompareResult(List compareResult) { + this.compareResult = compareResult; + return this; + } + + public ListObejectLevelCompareOverviewResponse addCompareResultItem(ObjectsCompareOverviewInfo compareResultItem) { + if (this.compareResult == null) { + this.compareResult = new ArrayList<>(); + } + this.compareResult.add(compareResultItem); + return this; + } + + public ListObejectLevelCompareOverviewResponse withCompareResult( + Consumer> compareResultSetter) { + if (this.compareResult == null) { + this.compareResult = new ArrayList<>(); + } + compareResultSetter.accept(this.compareResult); + return this; + } + + /** + * 对比结果。 + * @return compareResult + */ + public List getCompareResult() { + return compareResult; + } + + public void setCompareResult(List compareResult) { + this.compareResult = compareResult; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListObejectLevelCompareOverviewResponse that = (ListObejectLevelCompareOverviewResponse) obj; + return Objects.equals(this.createTime, that.createTime) && Objects.equals(this.startTime, that.startTime) + && Objects.equals(this.status, that.status) && Objects.equals(this.exportStatus, that.exportStatus) + && Objects.equals(this.reportRemainSeconds, that.reportRemainSeconds) + && Objects.equals(this.compareJobId, that.compareJobId) && Objects.equals(this.errorMsg, that.errorMsg) + && Objects.equals(this.compareResult, that.compareResult); + } + + @Override + public int hashCode() { + return Objects.hash(createTime, + startTime, + status, + exportStatus, + reportRemainSeconds, + compareJobId, + errorMsg, + compareResult); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListObejectLevelCompareOverviewResponse {\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" exportStatus: ").append(toIndentedString(exportStatus)).append("\n"); + sb.append(" reportRemainSeconds: ").append(toIndentedString(reportRemainSeconds)).append("\n"); + sb.append(" compareJobId: ").append(toIndentedString(compareJobId)).append("\n"); + sb.append(" errorMsg: ").append(toIndentedString(errorMsg)).append("\n"); + sb.append(" compareResult: ").append(toIndentedString(compareResult)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ObjectsCompareDetailInfo.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ObjectsCompareDetailInfo.java new file mode 100644 index 0000000000..cb6a75dc60 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ObjectsCompareDetailInfo.java @@ -0,0 +1,191 @@ +package com.huaweicloud.sdk.drs.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 对象级对比详情信息体。 + */ +public class ObjectsCompareDetailInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_db_name") + + private String sourceDbName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_db_name") + + private String targetDbName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_db_value") + + private String sourceDbValue; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_db_value") + + private String targetDbValue; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private Integer status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error_message") + + private String errorMessage; + + public ObjectsCompareDetailInfo withSourceDbName(String sourceDbName) { + this.sourceDbName = sourceDbName; + return this; + } + + /** + * 源库名称。 + * @return sourceDbName + */ + public String getSourceDbName() { + return sourceDbName; + } + + public void setSourceDbName(String sourceDbName) { + this.sourceDbName = sourceDbName; + } + + public ObjectsCompareDetailInfo withTargetDbName(String targetDbName) { + this.targetDbName = targetDbName; + return this; + } + + /** + * 目标库名称。 + * @return targetDbName + */ + public String getTargetDbName() { + return targetDbName; + } + + public void setTargetDbName(String targetDbName) { + this.targetDbName = targetDbName; + } + + public ObjectsCompareDetailInfo withSourceDbValue(String sourceDbValue) { + this.sourceDbValue = sourceDbValue; + return this; + } + + /** + * 在源库的值。 + * @return sourceDbValue + */ + public String getSourceDbValue() { + return sourceDbValue; + } + + public void setSourceDbValue(String sourceDbValue) { + this.sourceDbValue = sourceDbValue; + } + + public ObjectsCompareDetailInfo withTargetDbValue(String targetDbValue) { + this.targetDbValue = targetDbValue; + return this; + } + + /** + * 在目标库的值。 + * @return targetDbValue + */ + public String getTargetDbValue() { + return targetDbValue; + } + + public void setTargetDbValue(String targetDbValue) { + this.targetDbValue = targetDbValue; + } + + public ObjectsCompareDetailInfo withStatus(Integer status) { + this.status = status; + return this; + } + + /** + * 对比结果,0为不一致,2为一致,3为未完成。 + * @return status + */ + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public ObjectsCompareDetailInfo withErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + /** + * 错误信息。 + * @return errorMessage + */ + public String getErrorMessage() { + return errorMessage; + } + + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ObjectsCompareDetailInfo that = (ObjectsCompareDetailInfo) obj; + return Objects.equals(this.sourceDbName, that.sourceDbName) + && Objects.equals(this.targetDbName, that.targetDbName) + && Objects.equals(this.sourceDbValue, that.sourceDbValue) + && Objects.equals(this.targetDbValue, that.targetDbValue) && Objects.equals(this.status, that.status) + && Objects.equals(this.errorMessage, that.errorMessage); + } + + @Override + public int hashCode() { + return Objects.hash(sourceDbName, targetDbName, sourceDbValue, targetDbValue, status, errorMessage); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ObjectsCompareDetailInfo {\n"); + sb.append(" sourceDbName: ").append(toIndentedString(sourceDbName)).append("\n"); + sb.append(" targetDbName: ").append(toIndentedString(targetDbName)).append("\n"); + sb.append(" sourceDbValue: ").append(toIndentedString(sourceDbValue)).append("\n"); + sb.append(" targetDbValue: ").append(toIndentedString(targetDbValue)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ObjectsCompareOverviewInfo.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ObjectsCompareOverviewInfo.java new file mode 100644 index 0000000000..ff13d90354 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v3/model/ObjectsCompareOverviewInfo.java @@ -0,0 +1,142 @@ +package com.huaweicloud.sdk.drs.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 对比结果信息体。 + */ +public class ObjectsCompareOverviewInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_count") + + private Long sourceCount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_count") + + private Long targetCount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private Integer status; + + public ObjectsCompareOverviewInfo withType(String type) { + this.type = type; + return this; + } + + /** + * 对象类型: 取值: - DB:数据库。 - TABLE:表。 - VIEW:视图。 - EVENT:事件。 - ROUTINE:存储过程和函数。 - INDEX:索引。 - TRIGGER:触发器。 - SYNONYM:同义词。 - FUNCTION:函数。 - PROCEDURE:存储过程。 - TYPE:自定义类型。 - RULE:规则。 - DEFAULT_TYPE:缺省值。 - PLAN_GUIDE:执行计划。 - CONSTRAINT:约束。 - FILE_GROUP:文件组。 - PARTITION_FUNCTION:分区函数。 - PARTITION_SCHEME:分区方案。 - TABLE_COLLATION:表的排序规则。 - EXTENSIONS:插件。 + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public ObjectsCompareOverviewInfo withSourceCount(Long sourceCount) { + this.sourceCount = sourceCount; + return this; + } + + /** + * 该类型的对象在源库的个数。 + * @return sourceCount + */ + public Long getSourceCount() { + return sourceCount; + } + + public void setSourceCount(Long sourceCount) { + this.sourceCount = sourceCount; + } + + public ObjectsCompareOverviewInfo withTargetCount(Long targetCount) { + this.targetCount = targetCount; + return this; + } + + /** + * 该类型的对象在目标库的个数。 + * @return targetCount + */ + public Long getTargetCount() { + return targetCount; + } + + public void setTargetCount(Long targetCount) { + this.targetCount = targetCount; + } + + public ObjectsCompareOverviewInfo withStatus(Integer status) { + this.status = status; + return this; + } + + /** + * 对比结果,0为不一致,2为一致,3为未完成。 + * @return status + */ + public Integer getStatus() { + return status; + } + + public void setStatus(Integer 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; + } + ObjectsCompareOverviewInfo that = (ObjectsCompareOverviewInfo) obj; + return Objects.equals(this.type, that.type) && Objects.equals(this.sourceCount, that.sourceCount) + && Objects.equals(this.targetCount, that.targetCount) && Objects.equals(this.status, that.status); + } + + @Override + public int hashCode() { + return Objects.hash(type, sourceCount, targetCount, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ObjectsCompareOverviewInfo {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" sourceCount: ").append(toIndentedString(sourceCount)).append("\n"); + sb.append(" targetCount: ").append(toIndentedString(targetCount)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v5/DrsAsyncClient.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/DrsAsyncClient.java index 9786281cc3..5f5007e3c8 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/DrsAsyncClient.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/DrsAsyncClient.java @@ -99,8 +99,12 @@ import com.huaweicloud.sdk.drs.v5.model.ShowDirtyDataResponse; import com.huaweicloud.sdk.drs.v5.model.ShowEnterpriseProjectRequest; import com.huaweicloud.sdk.drs.v5.model.ShowEnterpriseProjectResponse; +import com.huaweicloud.sdk.drs.v5.model.ShowHealthCompareJobDetailRequest; +import com.huaweicloud.sdk.drs.v5.model.ShowHealthCompareJobDetailResponse; import com.huaweicloud.sdk.drs.v5.model.ShowHealthCompareJobListRequest; import com.huaweicloud.sdk.drs.v5.model.ShowHealthCompareJobListResponse; +import com.huaweicloud.sdk.drs.v5.model.ShowHealthObjectCompareJobOverviewRequest; +import com.huaweicloud.sdk.drs.v5.model.ShowHealthObjectCompareJobOverviewResponse; import com.huaweicloud.sdk.drs.v5.model.ShowIncrementComponentsDetailRequest; import com.huaweicloud.sdk.drs.v5.model.ShowIncrementComponentsDetailResponse; import com.huaweicloud.sdk.drs.v5.model.ShowInstanceTagsRequest; @@ -129,6 +133,8 @@ import com.huaweicloud.sdk.drs.v5.model.SyncJdbcDriverResponse; import com.huaweicloud.sdk.drs.v5.model.UpdateBatchAsyncJobsRequest; import com.huaweicloud.sdk.drs.v5.model.UpdateBatchAsyncJobsResponse; +import com.huaweicloud.sdk.drs.v5.model.UpdateComparePolicyRequest; +import com.huaweicloud.sdk.drs.v5.model.UpdateComparePolicyResponse; import com.huaweicloud.sdk.drs.v5.model.UpdateDataProgressRequest; import com.huaweicloud.sdk.drs.v5.model.UpdateDataProgressResponse; import com.huaweicloud.sdk.drs.v5.model.UpdateJobConfigurationsRequest; @@ -1577,6 +1583,36 @@ public AsyncInvoker return new AsyncInvoker<>(request, DrsMeta.showEnterpriseProject, hcClient); } + /** + * 查询健康对比任务详情 + * + * 查询健康对比任务详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowHealthCompareJobDetailRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showHealthCompareJobDetailAsync( + ShowHealthCompareJobDetailRequest request) { + return hcClient.asyncInvokeHttp(request, DrsMeta.showHealthCompareJobDetail); + } + + /** + * 查询健康对比任务详情 + * + * 查询健康对比任务详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowHealthCompareJobDetailRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showHealthCompareJobDetailAsyncInvoker( + ShowHealthCompareJobDetailRequest request) { + return new AsyncInvoker<>(request, DrsMeta.showHealthCompareJobDetail, hcClient); + } + /** * 查询健康对比列表 * @@ -1607,6 +1643,36 @@ public AsyncInvoker(request, DrsMeta.showHealthCompareJobList, hcClient); } + /** + * 获取健康对比对象级对比概览 + * + * 获取健康对比对象级对比概览。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowHealthObjectCompareJobOverviewRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showHealthObjectCompareJobOverviewAsync( + ShowHealthObjectCompareJobOverviewRequest request) { + return hcClient.asyncInvokeHttp(request, DrsMeta.showHealthObjectCompareJobOverview); + } + + /** + * 获取健康对比对象级对比概览 + * + * 获取健康对比对象级对比概览。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowHealthObjectCompareJobOverviewRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showHealthObjectCompareJobOverviewAsyncInvoker( + ShowHealthObjectCompareJobOverviewRequest request) { + return new AsyncInvoker<>(request, DrsMeta.showHealthObjectCompareJobOverview, hcClient); + } + /** * 查询增量组件详情 * @@ -2029,6 +2095,35 @@ public AsyncInvoker u return new AsyncInvoker<>(request, DrsMeta.updateBatchAsyncJobs, hcClient); } + /** + * 修改对比策略 + * + * 修改周期性对比的对比策略,目前仅MySQL->MySQL、MySQL->GaussDB(for MySQL)、MySQL->GaussDB(DWS)、GaussDB(for MySQL)->MySQL同步任务,MySQL->MySQL、MySQL->GaussDB(for MySQL)迁移任务,MySQL->MySQL、MySQL->GaussDB(for MySQL)、GaussDB(for MySQL)->GaussDB(for MySQL)、DDM->DDM、DDS-DDS灾备任务支持对比策略设置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateComparePolicyRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateComparePolicyAsync(UpdateComparePolicyRequest request) { + return hcClient.asyncInvokeHttp(request, DrsMeta.updateComparePolicy); + } + + /** + * 修改对比策略 + * + * 修改周期性对比的对比策略,目前仅MySQL->MySQL、MySQL->GaussDB(for MySQL)、MySQL->GaussDB(DWS)、GaussDB(for MySQL)->MySQL同步任务,MySQL->MySQL、MySQL->GaussDB(for MySQL)迁移任务,MySQL->MySQL、MySQL->GaussDB(for MySQL)、GaussDB(for MySQL)->GaussDB(for MySQL)、DDM->DDM、DDS-DDS灾备任务支持对比策略设置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateComparePolicyRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateComparePolicyAsyncInvoker( + UpdateComparePolicyRequest request) { + return new AsyncInvoker<>(request, DrsMeta.updateComparePolicy, hcClient); + } + /** * 更新指定任务数据加工规则 * diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/DrsClient.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/DrsClient.java index 80e71369be..d412183adf 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/DrsClient.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/DrsClient.java @@ -99,8 +99,12 @@ import com.huaweicloud.sdk.drs.v5.model.ShowDirtyDataResponse; import com.huaweicloud.sdk.drs.v5.model.ShowEnterpriseProjectRequest; import com.huaweicloud.sdk.drs.v5.model.ShowEnterpriseProjectResponse; +import com.huaweicloud.sdk.drs.v5.model.ShowHealthCompareJobDetailRequest; +import com.huaweicloud.sdk.drs.v5.model.ShowHealthCompareJobDetailResponse; import com.huaweicloud.sdk.drs.v5.model.ShowHealthCompareJobListRequest; import com.huaweicloud.sdk.drs.v5.model.ShowHealthCompareJobListResponse; +import com.huaweicloud.sdk.drs.v5.model.ShowHealthObjectCompareJobOverviewRequest; +import com.huaweicloud.sdk.drs.v5.model.ShowHealthObjectCompareJobOverviewResponse; import com.huaweicloud.sdk.drs.v5.model.ShowIncrementComponentsDetailRequest; import com.huaweicloud.sdk.drs.v5.model.ShowIncrementComponentsDetailResponse; import com.huaweicloud.sdk.drs.v5.model.ShowInstanceTagsRequest; @@ -129,6 +133,8 @@ import com.huaweicloud.sdk.drs.v5.model.SyncJdbcDriverResponse; import com.huaweicloud.sdk.drs.v5.model.UpdateBatchAsyncJobsRequest; import com.huaweicloud.sdk.drs.v5.model.UpdateBatchAsyncJobsResponse; +import com.huaweicloud.sdk.drs.v5.model.UpdateComparePolicyRequest; +import com.huaweicloud.sdk.drs.v5.model.UpdateComparePolicyResponse; import com.huaweicloud.sdk.drs.v5.model.UpdateDataProgressRequest; import com.huaweicloud.sdk.drs.v5.model.UpdateDataProgressResponse; import com.huaweicloud.sdk.drs.v5.model.UpdateJobConfigurationsRequest; @@ -1558,6 +1564,35 @@ public SyncInvoker return new SyncInvoker<>(request, DrsMeta.showEnterpriseProject, hcClient); } + /** + * 查询健康对比任务详情 + * + * 查询健康对比任务详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowHealthCompareJobDetailRequest 请求对象 + * @return ShowHealthCompareJobDetailResponse + */ + public ShowHealthCompareJobDetailResponse showHealthCompareJobDetail(ShowHealthCompareJobDetailRequest request) { + return hcClient.syncInvokeHttp(request, DrsMeta.showHealthCompareJobDetail); + } + + /** + * 查询健康对比任务详情 + * + * 查询健康对比任务详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowHealthCompareJobDetailRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showHealthCompareJobDetailInvoker( + ShowHealthCompareJobDetailRequest request) { + return new SyncInvoker<>(request, DrsMeta.showHealthCompareJobDetail, hcClient); + } + /** * 查询健康对比列表 * @@ -1587,6 +1622,36 @@ public SyncInvoker(request, DrsMeta.showHealthCompareJobList, hcClient); } + /** + * 获取健康对比对象级对比概览 + * + * 获取健康对比对象级对比概览。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowHealthObjectCompareJobOverviewRequest 请求对象 + * @return ShowHealthObjectCompareJobOverviewResponse + */ + public ShowHealthObjectCompareJobOverviewResponse showHealthObjectCompareJobOverview( + ShowHealthObjectCompareJobOverviewRequest request) { + return hcClient.syncInvokeHttp(request, DrsMeta.showHealthObjectCompareJobOverview); + } + + /** + * 获取健康对比对象级对比概览 + * + * 获取健康对比对象级对比概览。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowHealthObjectCompareJobOverviewRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showHealthObjectCompareJobOverviewInvoker( + ShowHealthObjectCompareJobOverviewRequest request) { + return new SyncInvoker<>(request, DrsMeta.showHealthObjectCompareJobOverview, hcClient); + } + /** * 查询增量组件详情 * @@ -2004,6 +2069,35 @@ public SyncInvoker up return new SyncInvoker<>(request, DrsMeta.updateBatchAsyncJobs, hcClient); } + /** + * 修改对比策略 + * + * 修改周期性对比的对比策略,目前仅MySQL->MySQL、MySQL->GaussDB(for MySQL)、MySQL->GaussDB(DWS)、GaussDB(for MySQL)->MySQL同步任务,MySQL->MySQL、MySQL->GaussDB(for MySQL)迁移任务,MySQL->MySQL、MySQL->GaussDB(for MySQL)、GaussDB(for MySQL)->GaussDB(for MySQL)、DDM->DDM、DDS-DDS灾备任务支持对比策略设置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateComparePolicyRequest 请求对象 + * @return UpdateComparePolicyResponse + */ + public UpdateComparePolicyResponse updateComparePolicy(UpdateComparePolicyRequest request) { + return hcClient.syncInvokeHttp(request, DrsMeta.updateComparePolicy); + } + + /** + * 修改对比策略 + * + * 修改周期性对比的对比策略,目前仅MySQL->MySQL、MySQL->GaussDB(for MySQL)、MySQL->GaussDB(DWS)、GaussDB(for MySQL)->MySQL同步任务,MySQL->MySQL、MySQL->GaussDB(for MySQL)迁移任务,MySQL->MySQL、MySQL->GaussDB(for MySQL)、GaussDB(for MySQL)->GaussDB(for MySQL)、DDM->DDM、DDS-DDS灾备任务支持对比策略设置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateComparePolicyRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateComparePolicyInvoker( + UpdateComparePolicyRequest request) { + return new SyncInvoker<>(request, DrsMeta.updateComparePolicy, hcClient); + } + /** * 更新指定任务数据加工规则 * diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/DrsMeta.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/DrsMeta.java index 79f8c637b6..dbedf1b41b 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/DrsMeta.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/DrsMeta.java @@ -91,6 +91,7 @@ import com.huaweicloud.sdk.drs.v5.model.ListTagsResponse; import com.huaweicloud.sdk.drs.v5.model.ListsAgencyPermissionsRequest; import com.huaweicloud.sdk.drs.v5.model.ListsAgencyPermissionsResponse; +import com.huaweicloud.sdk.drs.v5.model.ModifyComparePolicyReq; import com.huaweicloud.sdk.drs.v5.model.ModifyParameterReq; import com.huaweicloud.sdk.drs.v5.model.ModifyStartPositionReq; import com.huaweicloud.sdk.drs.v5.model.QueryColumnReq; @@ -122,8 +123,12 @@ import com.huaweicloud.sdk.drs.v5.model.ShowDirtyDataResponse; import com.huaweicloud.sdk.drs.v5.model.ShowEnterpriseProjectRequest; import com.huaweicloud.sdk.drs.v5.model.ShowEnterpriseProjectResponse; +import com.huaweicloud.sdk.drs.v5.model.ShowHealthCompareJobDetailRequest; +import com.huaweicloud.sdk.drs.v5.model.ShowHealthCompareJobDetailResponse; import com.huaweicloud.sdk.drs.v5.model.ShowHealthCompareJobListRequest; import com.huaweicloud.sdk.drs.v5.model.ShowHealthCompareJobListResponse; +import com.huaweicloud.sdk.drs.v5.model.ShowHealthObjectCompareJobOverviewRequest; +import com.huaweicloud.sdk.drs.v5.model.ShowHealthObjectCompareJobOverviewResponse; import com.huaweicloud.sdk.drs.v5.model.ShowIncrementComponentsDetailRequest; import com.huaweicloud.sdk.drs.v5.model.ShowIncrementComponentsDetailResponse; import com.huaweicloud.sdk.drs.v5.model.ShowInstanceTagsRequest; @@ -155,6 +160,8 @@ import com.huaweicloud.sdk.drs.v5.model.SyncJdbcDriverResponse; import com.huaweicloud.sdk.drs.v5.model.UpdateBatchAsyncJobsRequest; import com.huaweicloud.sdk.drs.v5.model.UpdateBatchAsyncJobsResponse; +import com.huaweicloud.sdk.drs.v5.model.UpdateComparePolicyRequest; +import com.huaweicloud.sdk.drs.v5.model.UpdateComparePolicyResponse; import com.huaweicloud.sdk.drs.v5.model.UpdateDataProgressRequest; import com.huaweicloud.sdk.drs.v5.model.UpdateDataProgressResponse; import com.huaweicloud.sdk.drs.v5.model.UpdateDriverReq; @@ -1963,6 +1970,45 @@ private static HttpRequestDef showHealthCompareJobDetail = + genForShowHealthCompareJobDetail(); + + private static HttpRequestDef genForShowHealthCompareJobDetail() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ShowHealthCompareJobDetailRequest.class, + ShowHealthCompareJobDetailResponse.class) + .withName("ShowHealthCompareJobDetail") + .withUri("/v5/{project_id}/jobs/{job_id}/health-compare-jobs/{compare_job_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowHealthCompareJobDetailRequest::getJobId, + ShowHealthCompareJobDetailRequest::setJobId)); + builder.withRequestField("compare_job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowHealthCompareJobDetailRequest::getCompareJobId, + ShowHealthCompareJobDetailRequest::setCompareJobId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ShowHealthCompareJobDetailRequest.XLanguageEnum.class), + f -> f.withMarshaller(ShowHealthCompareJobDetailRequest::getXLanguage, + ShowHealthCompareJobDetailRequest::setXLanguage)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showHealthCompareJobList = genForShowHealthCompareJobList(); @@ -2012,6 +2058,45 @@ private static HttpRequestDef showHealthObjectCompareJobOverview = + genForShowHealthObjectCompareJobOverview(); + + private static HttpRequestDef genForShowHealthObjectCompareJobOverview() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ShowHealthObjectCompareJobOverviewRequest.class, + ShowHealthObjectCompareJobOverviewResponse.class) + .withName("ShowHealthObjectCompareJobOverview") + .withUri("/v5/{project_id}/jobs/{job_id}/health-compare-jobs/object/{compare_job_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowHealthObjectCompareJobOverviewRequest::getJobId, + ShowHealthObjectCompareJobOverviewRequest::setJobId)); + builder.withRequestField("compare_job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowHealthObjectCompareJobOverviewRequest::getCompareJobId, + ShowHealthObjectCompareJobOverviewRequest::setCompareJobId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ShowHealthObjectCompareJobOverviewRequest.XLanguageEnum.class), + f -> f.withMarshaller(ShowHealthObjectCompareJobOverviewRequest::getXLanguage, + ShowHealthObjectCompareJobOverviewRequest::setXLanguage)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showIncrementComponentsDetail = genForShowIncrementComponentsDetail(); @@ -2563,6 +2648,39 @@ private static HttpRequestDef updateComparePolicy = + genForUpdateComparePolicy(); + + private static HttpRequestDef genForUpdateComparePolicy() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.PUT, UpdateComparePolicyRequest.class, UpdateComparePolicyResponse.class) + .withName("UpdateComparePolicy") + .withUri("/v5/{project_id}/jobs/{job_id}/compare-policy") + .withContentType("application/json"); + + // requests + builder.withRequestField("job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateComparePolicyRequest::getJobId, UpdateComparePolicyRequest::setJobId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(UpdateComparePolicyRequest.XLanguageEnum.class), + f -> f.withMarshaller(UpdateComparePolicyRequest::getXLanguage, UpdateComparePolicyRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ModifyComparePolicyReq.class), + f -> f.withMarshaller(UpdateComparePolicyRequest::getBody, UpdateComparePolicyRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef updateDataProgress = genForUpdateDataProgress(); diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ActionParams.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ActionParams.java index f9cacb127e..13bf771d71 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ActionParams.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ActionParams.java @@ -58,6 +58,11 @@ public class ActionParams { private PublicIpConfig publicIpConfig; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "replay_config") + + private ReplayConfigInfo replayConfig; + public ActionParams withEndpoints(List endpoints) { this.endpoints = endpoints; return this; @@ -254,6 +259,32 @@ public void setPublicIpConfig(PublicIpConfig publicIpConfig) { this.publicIpConfig = publicIpConfig; } + public ActionParams withReplayConfig(ReplayConfigInfo replayConfig) { + this.replayConfig = replayConfig; + return this; + } + + public ActionParams withReplayConfig(Consumer replayConfigSetter) { + if (this.replayConfig == null) { + this.replayConfig = new ReplayConfigInfo(); + replayConfigSetter.accept(this.replayConfig); + } + + return this; + } + + /** + * Get replayConfig + * @return replayConfig + */ + public ReplayConfigInfo getReplayConfig() { + return replayConfig; + } + + public void setReplayConfig(ReplayConfigInfo replayConfig) { + this.replayConfig = replayConfig; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -269,7 +300,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.compareTaskParam, that.compareTaskParam) && Objects.equals(this.isSyncReEdit, that.isSyncReEdit) && Objects.equals(this.forceDelete, that.forceDelete) - && Objects.equals(this.publicIpConfig, that.publicIpConfig); + && Objects.equals(this.publicIpConfig, that.publicIpConfig) + && Objects.equals(this.replayConfig, that.replayConfig); } @Override @@ -282,7 +314,8 @@ public int hashCode() { compareTaskParam, isSyncReEdit, forceDelete, - publicIpConfig); + publicIpConfig, + replayConfig); } @Override @@ -298,6 +331,7 @@ public String toString() { sb.append(" isSyncReEdit: ").append(toIndentedString(isSyncReEdit)).append("\n"); sb.append(" forceDelete: ").append(toIndentedString(forceDelete)).append("\n"); sb.append(" publicIpConfig: ").append(toIndentedString(publicIpConfig)).append("\n"); + sb.append(" replayConfig: ").append(toIndentedString(replayConfig)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ActionReq.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ActionReq.java index 7e2fda6d7b..5c8496c6bd 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ActionReq.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ActionReq.java @@ -22,7 +22,7 @@ public class ActionReq { private String jobId; /** - * 操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。 - bind_eip:绑定公网IP。 - unbind_eip:解绑公网IP。 + * 操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。 - bind_eip:绑定公网IP。 - unbind_eip:解绑公网IP。 - set_writable:目标库解除只读。 - cloud_connection:录制回放他云连通性测试。 */ public static final class ActionNameEnum { @@ -96,6 +96,16 @@ public static final class ActionNameEnum { */ public static final ActionNameEnum UNBIND_EIP = new ActionNameEnum("unbind_eip"); + /** + * Enum SET_WRITABLE for value: "set_writable" + */ + public static final ActionNameEnum SET_WRITABLE = new ActionNameEnum("set_writable"); + + /** + * Enum CLOUD_CONNECTION for value: "cloud_connection" + */ + public static final ActionNameEnum CLOUD_CONNECTION = new ActionNameEnum("cloud_connection"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { @@ -114,6 +124,8 @@ private static Map createStaticFields() { map.put("reload_parameters", RELOAD_PARAMETERS); map.put("bind_eip", BIND_EIP); map.put("unbind_eip", UNBIND_EIP); + map.put("set_writable", SET_WRITABLE); + map.put("cloud_connection", CLOUD_CONNECTION); return Collections.unmodifiableMap(map); } @@ -196,7 +208,7 @@ public ActionReq withActionName(ActionNameEnum actionName) { } /** - * 操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。 - bind_eip:绑定公网IP。 - unbind_eip:解绑公网IP。 + * 操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。 - bind_eip:绑定公网IP。 - unbind_eip:解绑公网IP。 - set_writable:目标库解除只读。 - cloud_connection:录制回放他云连通性测试。 * @return actionName */ public ActionNameEnum getActionName() { diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ChildrenJobListResp.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ChildrenJobListResp.java index c3e8e2939d..b97e25094c 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ChildrenJobListResp.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ChildrenJobListResp.java @@ -27,7 +27,7 @@ public class ChildrenJobListResp { private String name; /** - * 任务状态。取值: - CREATING:创建中。 - CREATE_FAILED:创建失败。 - CONFIGURATION:配置中。 - STARTJOBING:启动中。 - WAITING_FOR_START:等待启动中。 - START_JOB_FAILED:任务启动失败。 - FULL_TRANSFER_STARTED:全量迁移中 灾备场景为初始化。 - FULL_TRANSFER_FAILED:全量迁移失败 灾备场景为初始化失败。 - FULL_TRANSFER_COMPLETE:全量迁移完成 灾备场景为初始化完成。 - INCRE_TRANSFER_STARTED:增量迁移中 灾备场景为灾备中。 - INCRE_TRANSFER_FAILED:增量迁移失败 灾备场景为灾备异常。 - RELEASE_RESOURCE_STARTED:结束任务中。 - RELEASE_RESOURCE_FAILED:结束任务失败。 - RELEASE_RESOURCE_COMPLETE:已结束。 - CHANGE_JOB_STARTED:任务变更中。 - CHANGE_JOB_FAILED:任务变更失败。 - CHILD_TRANSFER_STARTING:子任务启动中。 - CHILD_TRANSFER_STARTED:子任务迁移中。 - CHILD_TRANSFER_COMPLETE:子任务迁移完成。 - CHILD_TRANSFER_FAILED:子任务迁移失败。 - RELEASE_CHILD_TRANSFER_STARTED:子任务结束中。 - RELEASE_CHILD_TRANSFER_COMPLETE:子任务已结束。 + * 任务状态。取值: - CREATING:创建中。 - CREATE_FAILED:创建失败。 - CONFIGURATION:配置中。 - STARTJOBING:启动中。 - WAITING_FOR_START:等待启动中。 - START_JOB_FAILED:任务启动失败。 - FULL_TRANSFER_STARTED:全量迁移中,灾备场景为初始化。 - FULL_TRANSFER_FAILED:全量迁移失败,灾备场景为初始化失败。 - FULL_TRANSFER_COMPLETE:全量迁移完成,灾备场景为初始化完成。 - INCRE_TRANSFER_STARTED:增量迁移中,灾备场景为灾备中。 - INCRE_TRANSFER_FAILED:增量迁移失败,灾备场景为灾备异常。 - RELEASE_RESOURCE_STARTED:结束任务中。 - RELEASE_RESOURCE_FAILED:结束任务失败。 - RELEASE_RESOURCE_COMPLETE:已结束。 - CHANGE_JOB_STARTED:任务变更中。 - CHANGE_JOB_FAILED:任务变更失败。 - CHILD_TRANSFER_STARTING:子任务启动中。 - CHILD_TRANSFER_STARTED:子任务迁移中。 - CHILD_TRANSFER_COMPLETE:子任务迁移完成。 - CHILD_TRANSFER_FAILED:子任务迁移失败。 - RELEASE_CHILD_TRANSFER_STARTED:子任务结束中。 - RELEASE_CHILD_TRANSFER_COMPLETE:子任务已结束。 */ public static final class StatusEnum { @@ -952,7 +952,7 @@ public ChildrenJobListResp withStatus(StatusEnum status) { } /** - * 任务状态。取值: - CREATING:创建中。 - CREATE_FAILED:创建失败。 - CONFIGURATION:配置中。 - STARTJOBING:启动中。 - WAITING_FOR_START:等待启动中。 - START_JOB_FAILED:任务启动失败。 - FULL_TRANSFER_STARTED:全量迁移中 灾备场景为初始化。 - FULL_TRANSFER_FAILED:全量迁移失败 灾备场景为初始化失败。 - FULL_TRANSFER_COMPLETE:全量迁移完成 灾备场景为初始化完成。 - INCRE_TRANSFER_STARTED:增量迁移中 灾备场景为灾备中。 - INCRE_TRANSFER_FAILED:增量迁移失败 灾备场景为灾备异常。 - RELEASE_RESOURCE_STARTED:结束任务中。 - RELEASE_RESOURCE_FAILED:结束任务失败。 - RELEASE_RESOURCE_COMPLETE:已结束。 - CHANGE_JOB_STARTED:任务变更中。 - CHANGE_JOB_FAILED:任务变更失败。 - CHILD_TRANSFER_STARTING:子任务启动中。 - CHILD_TRANSFER_STARTED:子任务迁移中。 - CHILD_TRANSFER_COMPLETE:子任务迁移完成。 - CHILD_TRANSFER_FAILED:子任务迁移失败。 - RELEASE_CHILD_TRANSFER_STARTED:子任务结束中。 - RELEASE_CHILD_TRANSFER_COMPLETE:子任务已结束。 + * 任务状态。取值: - CREATING:创建中。 - CREATE_FAILED:创建失败。 - CONFIGURATION:配置中。 - STARTJOBING:启动中。 - WAITING_FOR_START:等待启动中。 - START_JOB_FAILED:任务启动失败。 - FULL_TRANSFER_STARTED:全量迁移中,灾备场景为初始化。 - FULL_TRANSFER_FAILED:全量迁移失败,灾备场景为初始化失败。 - FULL_TRANSFER_COMPLETE:全量迁移完成,灾备场景为初始化完成。 - INCRE_TRANSFER_STARTED:增量迁移中,灾备场景为灾备中。 - INCRE_TRANSFER_FAILED:增量迁移失败,灾备场景为灾备异常。 - RELEASE_RESOURCE_STARTED:结束任务中。 - RELEASE_RESOURCE_FAILED:结束任务失败。 - RELEASE_RESOURCE_COMPLETE:已结束。 - CHANGE_JOB_STARTED:任务变更中。 - CHANGE_JOB_FAILED:任务变更失败。 - CHILD_TRANSFER_STARTING:子任务启动中。 - CHILD_TRANSFER_STARTED:子任务迁移中。 - CHILD_TRANSFER_COMPLETE:子任务迁移完成。 - CHILD_TRANSFER_FAILED:子任务迁移失败。 - RELEASE_CHILD_TRANSFER_STARTED:子任务结束中。 - RELEASE_CHILD_TRANSFER_COMPLETE:子任务已结束。 * @return status */ public StatusEnum getStatus() { diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/CompareResultInfo.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/CompareResultInfo.java index e85c0d2850..4331015e42 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/CompareResultInfo.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/CompareResultInfo.java @@ -48,6 +48,11 @@ public class CompareResultInfo { private List contentCompareDetailInfos = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "content_diff_detail_info") + + private ContentDiffDetailInfo contentDiffDetailInfo; + public CompareResultInfo withObjectsCompareOverviewInfo(ObjectsCompareTaskInfo objectsCompareOverviewInfo) { this.objectsCompareOverviewInfo = objectsCompareOverviewInfo; return this; @@ -280,6 +285,32 @@ public void setContentCompareDetailInfos(List contentC this.contentCompareDetailInfos = contentCompareDetailInfos; } + public CompareResultInfo withContentDiffDetailInfo(ContentDiffDetailInfo contentDiffDetailInfo) { + this.contentDiffDetailInfo = contentDiffDetailInfo; + return this; + } + + public CompareResultInfo withContentDiffDetailInfo(Consumer contentDiffDetailInfoSetter) { + if (this.contentDiffDetailInfo == null) { + this.contentDiffDetailInfo = new ContentDiffDetailInfo(); + contentDiffDetailInfoSetter.accept(this.contentDiffDetailInfo); + } + + return this; + } + + /** + * Get contentDiffDetailInfo + * @return contentDiffDetailInfo + */ + public ContentDiffDetailInfo getContentDiffDetailInfo() { + return contentDiffDetailInfo; + } + + public void setContentDiffDetailInfo(ContentDiffDetailInfo contentDiffDetailInfo) { + this.contentDiffDetailInfo = contentDiffDetailInfo; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -295,7 +326,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.lineCompareOverviewInfos, that.lineCompareOverviewInfos) && Objects.equals(this.lineCompareDetailInfos, that.lineCompareDetailInfos) && Objects.equals(this.contentCompareOverviewInfos, that.contentCompareOverviewInfos) - && Objects.equals(this.contentCompareDetailInfos, that.contentCompareDetailInfos); + && Objects.equals(this.contentCompareDetailInfos, that.contentCompareDetailInfos) + && Objects.equals(this.contentDiffDetailInfo, that.contentDiffDetailInfo); } @Override @@ -306,7 +338,8 @@ public int hashCode() { lineCompareOverviewInfos, lineCompareDetailInfos, contentCompareOverviewInfos, - contentCompareDetailInfos); + contentCompareDetailInfos, + contentDiffDetailInfo); } @Override @@ -322,6 +355,7 @@ public String toString() { .append(toIndentedString(contentCompareOverviewInfos)) .append("\n"); sb.append(" contentCompareDetailInfos: ").append(toIndentedString(contentCompareDetailInfos)).append("\n"); + sb.append(" contentDiffDetailInfo: ").append(toIndentedString(contentDiffDetailInfo)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ContentCompareOverviewInfo.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ContentCompareOverviewInfo.java index 2216638c5e..23603a2c7f 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ContentCompareOverviewInfo.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ContentCompareOverviewInfo.java @@ -26,7 +26,7 @@ public class ContentCompareOverviewInfo { private String targetDb; /** - * 对比结果。取值: - CONSISTENT:一致。 - INCONSISTENT:不一致。 - COMPARING:正在对比。 - WAITING_FOR_COMPARISON:等待对比。 - FAILED_TO_COMPARE:对比失败。 - TARGET_DB_NOT_EXIST:目标库不存在。 - CAN_NOT_COMPARE:无法对比。 + * 对比结果。取值: - CONSISTENT:一致。 - INCONSISTENT:不一致。 - COMPARING:正在对比。 - WAITING_FOR_COMPARISON:等待对比。 - FAILED_TO_COMPARE:对比失败。 - TARGET_DB_NOT_EXIST:目标库不存在。 - CAN_NOT_COMPARE:无法对比。 - WAIT_FOR_COMPARE:命令已下发,等待对比结果 - CANCELED:已取消 */ public static final class StatusEnum { @@ -65,6 +65,16 @@ public static final class StatusEnum { */ public static final StatusEnum CAN_NOT_COMPARE = new StatusEnum("CAN_NOT_COMPARE"); + /** + * Enum WAIT_FOR_COMPARE for value: "WAIT_FOR_COMPARE" + */ + public static final StatusEnum WAIT_FOR_COMPARE = new StatusEnum("WAIT_FOR_COMPARE"); + + /** + * Enum CANCELED for value: "CANCELED" + */ + public static final StatusEnum CANCELED = new StatusEnum("CANCELED"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { @@ -76,6 +86,8 @@ private static Map createStaticFields() { map.put("FAILED_TO_COMPARE", FAILED_TO_COMPARE); map.put("TARGET_DB_NOT_EXIST", TARGET_DB_NOT_EXIST); map.put("CAN_NOT_COMPARE", CAN_NOT_COMPARE); + map.put("WAIT_FOR_COMPARE", WAIT_FOR_COMPARE); + map.put("CANCELED", CANCELED); return Collections.unmodifiableMap(map); } @@ -175,7 +187,7 @@ public ContentCompareOverviewInfo withStatus(StatusEnum status) { } /** - * 对比结果。取值: - CONSISTENT:一致。 - INCONSISTENT:不一致。 - COMPARING:正在对比。 - WAITING_FOR_COMPARISON:等待对比。 - FAILED_TO_COMPARE:对比失败。 - TARGET_DB_NOT_EXIST:目标库不存在。 - CAN_NOT_COMPARE:无法对比。 + * 对比结果。取值: - CONSISTENT:一致。 - INCONSISTENT:不一致。 - COMPARING:正在对比。 - WAITING_FOR_COMPARISON:等待对比。 - FAILED_TO_COMPARE:对比失败。 - TARGET_DB_NOT_EXIST:目标库不存在。 - CAN_NOT_COMPARE:无法对比。 - WAIT_FOR_COMPARE:命令已下发,等待对比结果 - CANCELED:已取消 * @return status */ public StatusEnum getStatus() { diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ContentDiffDetailInfo.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ContentDiffDetailInfo.java new file mode 100644 index 0000000000..b07d8e8949 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ContentDiffDetailInfo.java @@ -0,0 +1,186 @@ +package com.huaweicloud.sdk.drs.v5.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 ContentDiffDetailInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "count") + + private Long count; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_meta_is_null") + + private Long targetMetaIsNull; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_meta_is_null") + + private Long sourceMetaIsNull; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_target_meta_not_null") + + private Long sourceTargetMetaNotNull; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "contents_infos") + + private List contentsInfos = null; + + public ContentDiffDetailInfo withCount(Long count) { + this.count = count; + return this; + } + + /** + * 数量。 + * @return count + */ + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public ContentDiffDetailInfo withTargetMetaIsNull(Long targetMetaIsNull) { + this.targetMetaIsNull = targetMetaIsNull; + return this; + } + + /** + * 对比不一致详情:只有源库存在。 + * @return targetMetaIsNull + */ + public Long getTargetMetaIsNull() { + return targetMetaIsNull; + } + + public void setTargetMetaIsNull(Long targetMetaIsNull) { + this.targetMetaIsNull = targetMetaIsNull; + } + + public ContentDiffDetailInfo withSourceMetaIsNull(Long sourceMetaIsNull) { + this.sourceMetaIsNull = sourceMetaIsNull; + return this; + } + + /** + * 对比不一致详情:只有目标库存在。 + * @return sourceMetaIsNull + */ + public Long getSourceMetaIsNull() { + return sourceMetaIsNull; + } + + public void setSourceMetaIsNull(Long sourceMetaIsNull) { + this.sourceMetaIsNull = sourceMetaIsNull; + } + + public ContentDiffDetailInfo withSourceTargetMetaNotNull(Long sourceTargetMetaNotNull) { + this.sourceTargetMetaNotNull = sourceTargetMetaNotNull; + return this; + } + + /** + * 对比不一致详情:源和目标端均存在。 + * @return sourceTargetMetaNotNull + */ + public Long getSourceTargetMetaNotNull() { + return sourceTargetMetaNotNull; + } + + public void setSourceTargetMetaNotNull(Long sourceTargetMetaNotNull) { + this.sourceTargetMetaNotNull = sourceTargetMetaNotNull; + } + + public ContentDiffDetailInfo withContentsInfos(List contentsInfos) { + this.contentsInfos = contentsInfos; + return this; + } + + public ContentDiffDetailInfo addContentsInfosItem(ContentDiffDetailVO contentsInfosItem) { + if (this.contentsInfos == null) { + this.contentsInfos = new ArrayList<>(); + } + this.contentsInfos.add(contentsInfosItem); + return this; + } + + public ContentDiffDetailInfo withContentsInfos(Consumer> contentsInfosSetter) { + if (this.contentsInfos == null) { + this.contentsInfos = new ArrayList<>(); + } + contentsInfosSetter.accept(this.contentsInfos); + return this; + } + + /** + * 信息列表。 + * @return contentsInfos + */ + public List getContentsInfos() { + return contentsInfos; + } + + public void setContentsInfos(List contentsInfos) { + this.contentsInfos = contentsInfos; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ContentDiffDetailInfo that = (ContentDiffDetailInfo) obj; + return Objects.equals(this.count, that.count) && Objects.equals(this.targetMetaIsNull, that.targetMetaIsNull) + && Objects.equals(this.sourceMetaIsNull, that.sourceMetaIsNull) + && Objects.equals(this.sourceTargetMetaNotNull, that.sourceTargetMetaNotNull) + && Objects.equals(this.contentsInfos, that.contentsInfos); + } + + @Override + public int hashCode() { + return Objects.hash(count, targetMetaIsNull, sourceMetaIsNull, sourceTargetMetaNotNull, contentsInfos); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ContentDiffDetailInfo {\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" targetMetaIsNull: ").append(toIndentedString(targetMetaIsNull)).append("\n"); + sb.append(" sourceMetaIsNull: ").append(toIndentedString(sourceMetaIsNull)).append("\n"); + sb.append(" sourceTargetMetaNotNull: ").append(toIndentedString(sourceTargetMetaNotNull)).append("\n"); + sb.append(" contentsInfos: ").append(toIndentedString(contentsInfos)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ContentDiffDetailVO.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ContentDiffDetailVO.java new file mode 100644 index 0000000000..64f9597ef8 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ContentDiffDetailVO.java @@ -0,0 +1,179 @@ +package com.huaweicloud.sdk.drs.v5.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 ContentDiffDetailVO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_key_value") + + private List sourceKeyValue = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_key_value") + + private List targetKeyValue = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_select_sql") + + private String sourceSelectSql; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_select_sql") + + private String targetSelectSql; + + public ContentDiffDetailVO withSourceKeyValue(List sourceKeyValue) { + this.sourceKeyValue = sourceKeyValue; + return this; + } + + public ContentDiffDetailVO addSourceKeyValueItem(String sourceKeyValueItem) { + if (this.sourceKeyValue == null) { + this.sourceKeyValue = new ArrayList<>(); + } + this.sourceKeyValue.add(sourceKeyValueItem); + return this; + } + + public ContentDiffDetailVO withSourceKeyValue(Consumer> sourceKeyValueSetter) { + if (this.sourceKeyValue == null) { + this.sourceKeyValue = new ArrayList<>(); + } + sourceKeyValueSetter.accept(this.sourceKeyValue); + return this; + } + + /** + * 源库KEY值。 + * @return sourceKeyValue + */ + public List getSourceKeyValue() { + return sourceKeyValue; + } + + public void setSourceKeyValue(List sourceKeyValue) { + this.sourceKeyValue = sourceKeyValue; + } + + public ContentDiffDetailVO withTargetKeyValue(List targetKeyValue) { + this.targetKeyValue = targetKeyValue; + return this; + } + + public ContentDiffDetailVO addTargetKeyValueItem(String targetKeyValueItem) { + if (this.targetKeyValue == null) { + this.targetKeyValue = new ArrayList<>(); + } + this.targetKeyValue.add(targetKeyValueItem); + return this; + } + + public ContentDiffDetailVO withTargetKeyValue(Consumer> targetKeyValueSetter) { + if (this.targetKeyValue == null) { + this.targetKeyValue = new ArrayList<>(); + } + targetKeyValueSetter.accept(this.targetKeyValue); + return this; + } + + /** + * 目标库KEY值。 + * @return targetKeyValue + */ + public List getTargetKeyValue() { + return targetKeyValue; + } + + public void setTargetKeyValue(List targetKeyValue) { + this.targetKeyValue = targetKeyValue; + } + + public ContentDiffDetailVO withSourceSelectSql(String sourceSelectSql) { + this.sourceSelectSql = sourceSelectSql; + return this; + } + + /** + * 查询源库SQL。 + * @return sourceSelectSql + */ + public String getSourceSelectSql() { + return sourceSelectSql; + } + + public void setSourceSelectSql(String sourceSelectSql) { + this.sourceSelectSql = sourceSelectSql; + } + + public ContentDiffDetailVO withTargetSelectSql(String targetSelectSql) { + this.targetSelectSql = targetSelectSql; + return this; + } + + /** + * 查询目标库SQL。 + * @return targetSelectSql + */ + public String getTargetSelectSql() { + return targetSelectSql; + } + + public void setTargetSelectSql(String targetSelectSql) { + this.targetSelectSql = targetSelectSql; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ContentDiffDetailVO that = (ContentDiffDetailVO) obj; + return Objects.equals(this.sourceKeyValue, that.sourceKeyValue) + && Objects.equals(this.targetKeyValue, that.targetKeyValue) + && Objects.equals(this.sourceSelectSql, that.sourceSelectSql) + && Objects.equals(this.targetSelectSql, that.targetSelectSql); + } + + @Override + public int hashCode() { + return Objects.hash(sourceKeyValue, targetKeyValue, sourceSelectSql, targetSelectSql); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ContentDiffDetailVO {\n"); + sb.append(" sourceKeyValue: ").append(toIndentedString(sourceKeyValue)).append("\n"); + sb.append(" targetKeyValue: ").append(toIndentedString(targetKeyValue)).append("\n"); + sb.append(" sourceSelectSql: ").append(toIndentedString(sourceSelectSql)).append("\n"); + sb.append(" targetSelectSql: ").append(toIndentedString(targetSelectSql)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/HealthCompareJob.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/HealthCompareJob.java index f8f9c7d74f..23e6a74b22 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/HealthCompareJob.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/HealthCompareJob.java @@ -63,7 +63,7 @@ public HealthCompareJob withType(String type) { } /** - * 对比类型。 - object:对象对比 - lines:行对比 - contents:内容对比 - account:用户对比 + * 对比类型: - object_comparison:对象对比。 - lines:行对比。 - account:用户对比。 * @return type */ public String getType() { @@ -97,7 +97,7 @@ public HealthCompareJob withStartTime(String startTime) { } /** - * 对比开始时间。 + * 对比开始时间,UTC时间。 * @return startTime */ public String getStartTime() { @@ -114,7 +114,7 @@ public HealthCompareJob withEndTime(String endTime) { } /** - * 对比结束时间。 + * 对比结束时间,UTC时间。 * @return endTime */ public String getEndTime() { diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/JobDetailResp.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/JobDetailResp.java index e1ef8e58aa..bb2579fa0c 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/JobDetailResp.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/JobDetailResp.java @@ -1,9 +1,12 @@ package com.huaweicloud.sdk.drs.v5.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; @@ -165,6 +168,81 @@ public class JobDetailResp { private List children = null; + /** + * 解除目标库只读操作后,目标库解除只读是否成功。 - pending:目标库解除操作进行中。 - success:目标库解除只读操作成功。 + */ + public static final class IsWritableEnum { + + /** + * Enum PENDING for value: "pending" + */ + public static final IsWritableEnum PENDING = new IsWritableEnum("pending"); + + /** + * Enum SUCCESS for value: "success" + */ + public static final IsWritableEnum SUCCESS = new IsWritableEnum("success"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("pending", PENDING); + map.put("success", SUCCESS); + return Collections.unmodifiableMap(map); + } + + private String value; + + IsWritableEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static IsWritableEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new IsWritableEnum(value)); + } + + public static IsWritableEnum 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 IsWritableEnum) { + return this.value.equals(((IsWritableEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_writable") + + private IsWritableEnum isWritable; + public JobDetailResp withId(String id) { this.id = id; return this; @@ -939,6 +1017,23 @@ public void setChildren(List children) { this.children = children; } + public JobDetailResp withIsWritable(IsWritableEnum isWritable) { + this.isWritable = isWritable; + return this; + } + + /** + * 解除目标库只读操作后,目标库解除只读是否成功。 - pending:目标库解除操作进行中。 - success:目标库解除只读操作成功。 + * @return isWritable + */ + public IsWritableEnum getIsWritable() { + return isWritable; + } + + public void setIsWritable(IsWritableEnum isWritable) { + this.isWritable = isWritable; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -969,7 +1064,7 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.connectionManagement, that.connectionManagement) && Objects.equals(this.publicIpList, that.publicIpList) && Objects.equals(this.bindPublicIpState, that.bindPublicIpState) - && Objects.equals(this.children, that.children); + && Objects.equals(this.children, that.children) && Objects.equals(this.isWritable, that.isWritable); } @Override @@ -1003,7 +1098,8 @@ public int hashCode() { connectionManagement, publicIpList, bindPublicIpState, - children); + children, + isWritable); } @Override @@ -1042,6 +1138,7 @@ public String toString() { sb.append(" publicIpList: ").append(toIndentedString(publicIpList)).append("\n"); sb.append(" bindPublicIpState: ").append(toIndentedString(bindPublicIpState)).append("\n"); sb.append(" children: ").append(toIndentedString(children)).append("\n"); + sb.append(" isWritable: ").append(toIndentedString(isWritable)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/JobListResp.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/JobListResp.java index af7a1cbe1a..f35dc337e5 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/JobListResp.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/JobListResp.java @@ -29,7 +29,7 @@ public class JobListResp { private String name; /** - * 任务状态。取值: - CREATING:创建中。 - CREATE_FAILED:创建失败。 - CONFIGURATION:配置中。 - STARTJOBING:启动中。 - WAITING_FOR_START:等待启动中。 - START_JOB_FAILED:任务启动失败。 - FULL_TRANSFER_STARTED:全量迁移中 灾备场景为初始化。 - FULL_TRANSFER_FAILED:全量迁移失败 灾备场景为初始化失败。 - FULL_TRANSFER_COMPLETE:全量迁移完成 灾备场景为初始化完成。 - INCRE_TRANSFER_STARTED:增量迁移中 灾备场景为灾备中。 - INCRE_TRANSFER_FAILED:增量迁移失败 灾备场景为灾备异常。 - RELEASE_RESOURCE_STARTED:结束任务中。 - RELEASE_RESOURCE_FAILED:结束任务失败。 - RELEASE_RESOURCE_COMPLETE:已结束。 - CHANGE_JOB_STARTED:任务变更中。 - CHANGE_JOB_FAILED:任务变更失败。 - CHILD_TRANSFER_STARTING:子任务启动中。 - CHILD_TRANSFER_STARTED:子任务迁移中。 - CHILD_TRANSFER_COMPLETE:子任务迁移完成。 - CHILD_TRANSFER_FAILED:子任务迁移失败。 - RELEASE_CHILD_TRANSFER_STARTED:子任务结束中。 - RELEASE_CHILD_TRANSFER_COMPLETE:子任务已结束。 + * 任务状态。取值: - CREATING:创建中。 - CREATE_FAILED:创建失败。 - CONFIGURATION:配置中。 - STARTJOBING:启动中。 - WAITING_FOR_START:等待启动中。 - START_JOB_FAILED:任务启动失败。 - FULL_TRANSFER_STARTED:全量迁移中,灾备场景为初始化。 - FULL_TRANSFER_FAILED:全量迁移失败,灾备场景为初始化失败。 - FULL_TRANSFER_COMPLETE:全量迁移完成,灾备场景为初始化完成。 - INCRE_TRANSFER_STARTED:增量迁移中,灾备场景为灾备中。 - INCRE_TRANSFER_FAILED:增量迁移失败,灾备场景为灾备异常。 - RELEASE_RESOURCE_STARTED:结束任务中。 - RELEASE_RESOURCE_FAILED:结束任务失败。 - RELEASE_RESOURCE_COMPLETE:已结束。 - CHANGE_JOB_STARTED:任务变更中。 - CHANGE_JOB_FAILED:任务变更失败。 - CHILD_TRANSFER_STARTING:子任务启动中。 - CHILD_TRANSFER_STARTED:子任务迁移中。 - CHILD_TRANSFER_COMPLETE:子任务迁移完成。 - CHILD_TRANSFER_FAILED:子任务迁移失败。 - RELEASE_CHILD_TRANSFER_STARTED:子任务结束中。 - RELEASE_CHILD_TRANSFER_COMPLETE:子任务已结束。 */ public static final class StatusEnum { @@ -959,7 +959,7 @@ public JobListResp withStatus(StatusEnum status) { } /** - * 任务状态。取值: - CREATING:创建中。 - CREATE_FAILED:创建失败。 - CONFIGURATION:配置中。 - STARTJOBING:启动中。 - WAITING_FOR_START:等待启动中。 - START_JOB_FAILED:任务启动失败。 - FULL_TRANSFER_STARTED:全量迁移中 灾备场景为初始化。 - FULL_TRANSFER_FAILED:全量迁移失败 灾备场景为初始化失败。 - FULL_TRANSFER_COMPLETE:全量迁移完成 灾备场景为初始化完成。 - INCRE_TRANSFER_STARTED:增量迁移中 灾备场景为灾备中。 - INCRE_TRANSFER_FAILED:增量迁移失败 灾备场景为灾备异常。 - RELEASE_RESOURCE_STARTED:结束任务中。 - RELEASE_RESOURCE_FAILED:结束任务失败。 - RELEASE_RESOURCE_COMPLETE:已结束。 - CHANGE_JOB_STARTED:任务变更中。 - CHANGE_JOB_FAILED:任务变更失败。 - CHILD_TRANSFER_STARTING:子任务启动中。 - CHILD_TRANSFER_STARTED:子任务迁移中。 - CHILD_TRANSFER_COMPLETE:子任务迁移完成。 - CHILD_TRANSFER_FAILED:子任务迁移失败。 - RELEASE_CHILD_TRANSFER_STARTED:子任务结束中。 - RELEASE_CHILD_TRANSFER_COMPLETE:子任务已结束。 + * 任务状态。取值: - CREATING:创建中。 - CREATE_FAILED:创建失败。 - CONFIGURATION:配置中。 - STARTJOBING:启动中。 - WAITING_FOR_START:等待启动中。 - START_JOB_FAILED:任务启动失败。 - FULL_TRANSFER_STARTED:全量迁移中,灾备场景为初始化。 - FULL_TRANSFER_FAILED:全量迁移失败,灾备场景为初始化失败。 - FULL_TRANSFER_COMPLETE:全量迁移完成,灾备场景为初始化完成。 - INCRE_TRANSFER_STARTED:增量迁移中,灾备场景为灾备中。 - INCRE_TRANSFER_FAILED:增量迁移失败,灾备场景为灾备异常。 - RELEASE_RESOURCE_STARTED:结束任务中。 - RELEASE_RESOURCE_FAILED:结束任务失败。 - RELEASE_RESOURCE_COMPLETE:已结束。 - CHANGE_JOB_STARTED:任务变更中。 - CHANGE_JOB_FAILED:任务变更失败。 - CHILD_TRANSFER_STARTING:子任务启动中。 - CHILD_TRANSFER_STARTED:子任务迁移中。 - CHILD_TRANSFER_COMPLETE:子任务迁移完成。 - CHILD_TRANSFER_FAILED:子任务迁移失败。 - RELEASE_CHILD_TRANSFER_STARTED:子任务结束中。 - RELEASE_CHILD_TRANSFER_COMPLETE:子任务已结束。 * @return status */ public StatusEnum getStatus() { diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ModifyComparePolicyReq.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ModifyComparePolicyReq.java new file mode 100644 index 0000000000..233041cf28 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ModifyComparePolicyReq.java @@ -0,0 +1,233 @@ +package com.huaweicloud.sdk.drs.v5.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 ModifyComparePolicyReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "action") + + private String action; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "period") + + private String period; + + @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 = "compare_type") + + private List compareType = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "compare_policy") + + private String comparePolicy; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "interval_hour") + + private Integer intervalHour; + + public ModifyComparePolicyReq withAction(String action) { + this.action = action; + return this; + } + + /** + * 对比策略开关-open|close。 + * @return action + */ + public String getAction() { + return action; + } + + public void setAction(String action) { + this.action = action; + } + + public ModifyComparePolicyReq withPeriod(String period) { + this.period = period; + return this; + } + + /** + * 对比策略周期。 - 每周对比:格式示例:“* * 1,3,5” ,其中“1,3,5”对应星期一、星期三、星期五,根据实际填写。 - 每天对比:固定填写“* * 1,2,3,4,5,6,7”。 - 按小时对比:固定填写“* * 1,2,3,4,5,6,7”。 + * @return period + */ + public String getPeriod() { + return period; + } + + public void setPeriod(String period) { + this.period = period; + } + + public ModifyComparePolicyReq withBeginTime(String beginTime) { + this.beginTime = beginTime; + return this; + } + + /** + * 对比策略生效开始时间,UTC时间,24小时制,时间格式HH:mm:ss,例如:00:00:00,表示UTC时间的00:00:00,北京时间(UTC+08:00)的08:00:00。 + * @return beginTime + */ + public String getBeginTime() { + return beginTime; + } + + public void setBeginTime(String beginTime) { + this.beginTime = beginTime; + } + + public ModifyComparePolicyReq withEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * 对比策略生效结束时间,UTC时间,24小时制,时间格式HH:mm:ss,例如:04:00:00,表示UTC时间的04:00:00,北京时间(UTC+08:00)的12:00:00。 + * @return endTime + */ + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public ModifyComparePolicyReq withCompareType(List compareType) { + this.compareType = compareType; + return this; + } + + public ModifyComparePolicyReq addCompareTypeItem(String compareTypeItem) { + if (this.compareType == null) { + this.compareType = new ArrayList<>(); + } + this.compareType.add(compareTypeItem); + return this; + } + + public ModifyComparePolicyReq withCompareType(Consumer> compareTypeSetter) { + if (this.compareType == null) { + this.compareType = new ArrayList<>(); + } + compareTypeSetter.accept(this.compareType); + return this; + } + + /** + * 对比类型列表: - object_comparison:对象对比。 - lines:行对比。 - account:用户对比。 + * @return compareType + */ + public List getCompareType() { + return compareType; + } + + public void setCompareType(List compareType) { + this.compareType = compareType; + } + + public ModifyComparePolicyReq withComparePolicy(String comparePolicy) { + this.comparePolicy = comparePolicy; + return this; + } + + /** + * 对比策略: - normal:普通对比。 - manyToOne:多对一对比。 + * @return comparePolicy + */ + public String getComparePolicy() { + return comparePolicy; + } + + public void setComparePolicy(String comparePolicy) { + this.comparePolicy = comparePolicy; + } + + public ModifyComparePolicyReq withIntervalHour(Integer intervalHour) { + this.intervalHour = intervalHour; + return this; + } + + /** + * 间隔时间,按小时对比时填写,表示每隔多久执行一次对比,单位是小时。 + * @return intervalHour + */ + public Integer getIntervalHour() { + return intervalHour; + } + + public void setIntervalHour(Integer intervalHour) { + this.intervalHour = intervalHour; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ModifyComparePolicyReq that = (ModifyComparePolicyReq) obj; + return Objects.equals(this.action, that.action) && Objects.equals(this.period, that.period) + && Objects.equals(this.beginTime, that.beginTime) && Objects.equals(this.endTime, that.endTime) + && Objects.equals(this.compareType, that.compareType) + && Objects.equals(this.comparePolicy, that.comparePolicy) + && Objects.equals(this.intervalHour, that.intervalHour); + } + + @Override + public int hashCode() { + return Objects.hash(action, period, beginTime, endTime, compareType, comparePolicy, intervalHour); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyComparePolicyReq {\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append(" period: ").append(toIndentedString(period)).append("\n"); + sb.append(" beginTime: ").append(toIndentedString(beginTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" compareType: ").append(toIndentedString(compareType)).append("\n"); + sb.append(" comparePolicy: ").append(toIndentedString(comparePolicy)).append("\n"); + sb.append(" intervalHour: ").append(toIndentedString(intervalHour)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ObjectsHealthCompareOverviewInfo.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ObjectsHealthCompareOverviewInfo.java new file mode 100644 index 0000000000..3b28b14e77 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ObjectsHealthCompareOverviewInfo.java @@ -0,0 +1,142 @@ +package com.huaweicloud.sdk.drs.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 对比结果信息体。 + */ +public class ObjectsHealthCompareOverviewInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_count") + + private Long sourceCount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_count") + + private Long targetCount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private Integer status; + + public ObjectsHealthCompareOverviewInfo withType(String type) { + this.type = type; + return this; + } + + /** + * 对象类型。取值: - DB:数据库。 - TABLE:表。 - VIEW:视图。 - EVENT:事件。 - ROUTINE:存储过程和函数。 - INDEX:索引。 - TRIGGER:触发器。 - SYNONYM:同义词。 - FUNCTION:函数。 - PROCEDURE:存储过程。 - TYPE:自定义类型。 - RULE:规则。 - DEFAULT_TYPE:缺省值。 - PLAN_GUIDE:执行计划。 - CONSTRAINT:约束。 - FILE_GROUP:文件组。 - PARTITION_FUNCTION:分区函数。 - PARTITION_SCHEME:分区方案。 - TABLE_COLLATION:表的排序规则。 - EXTENSIONS:插件。 + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public ObjectsHealthCompareOverviewInfo withSourceCount(Long sourceCount) { + this.sourceCount = sourceCount; + return this; + } + + /** + * 源数量。 + * @return sourceCount + */ + public Long getSourceCount() { + return sourceCount; + } + + public void setSourceCount(Long sourceCount) { + this.sourceCount = sourceCount; + } + + public ObjectsHealthCompareOverviewInfo withTargetCount(Long targetCount) { + this.targetCount = targetCount; + return this; + } + + /** + * 目标数量。 + * @return targetCount + */ + public Long getTargetCount() { + return targetCount; + } + + public void setTargetCount(Long targetCount) { + this.targetCount = targetCount; + } + + public ObjectsHealthCompareOverviewInfo withStatus(Integer status) { + this.status = status; + return this; + } + + /** + * 对比结果: - 0:不一致。 - 2:一致。 - 3:未完成。 + * @return status + */ + public Integer getStatus() { + return status; + } + + public void setStatus(Integer 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; + } + ObjectsHealthCompareOverviewInfo that = (ObjectsHealthCompareOverviewInfo) obj; + return Objects.equals(this.type, that.type) && Objects.equals(this.sourceCount, that.sourceCount) + && Objects.equals(this.targetCount, that.targetCount) && Objects.equals(this.status, that.status); + } + + @Override + public int hashCode() { + return Objects.hash(type, sourceCount, targetCount, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ObjectsHealthCompareOverviewInfo {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" sourceCount: ").append(toIndentedString(sourceCount)).append("\n"); + sb.append(" targetCount: ").append(toIndentedString(targetCount)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ReplayConfigInfo.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ReplayConfigInfo.java new file mode 100644 index 0000000000..003812f889 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ReplayConfigInfo.java @@ -0,0 +1,370 @@ +package com.huaweicloud.sdk.drs.v5.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 ReplayConfigInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "db_instance_id") + + private String dbInstanceId; + + /** + * 云类型: - AWSCloud:亚马逊云。 - TencentCloud:腾讯云。 - AliCloud:阿里云。 + */ + public static final class CloudTypeEnum { + + /** + * Enum AWSCLOUD for value: "AWSCloud" + */ + public static final CloudTypeEnum AWSCLOUD = new CloudTypeEnum("AWSCloud"); + + /** + * Enum TENCENTCLOUD for value: "TencentCloud" + */ + public static final CloudTypeEnum TENCENTCLOUD = new CloudTypeEnum("TencentCloud"); + + /** + * Enum ALICLOUD for value: "AliCloud" + */ + public static final CloudTypeEnum ALICLOUD = new CloudTypeEnum("AliCloud"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("AWSCloud", AWSCLOUD); + map.put("TencentCloud", TENCENTCLOUD); + map.put("AliCloud", ALICLOUD); + return Collections.unmodifiableMap(map); + } + + private String value; + + CloudTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CloudTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new CloudTypeEnum(value)); + } + + public static CloudTypeEnum 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 CloudTypeEnum) { + return this.value.equals(((CloudTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cloud_type") + + private CloudTypeEnum cloudType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ak") + + private String ak; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sk") + + private String sk; + + /** + * 源数据库来源。取值: - aws_aurora_mysql:Amazon Aurora MySQL。 - tencent_tdsql_c:腾讯云TDSQL-C MySQL。 - ali_rds_mysql:阿里云RDS MySQL。 + */ + public static final class DbSourceEnum { + + /** + * Enum AWS_AURORA_MYSQL for value: "aws_aurora_mysql" + */ + public static final DbSourceEnum AWS_AURORA_MYSQL = new DbSourceEnum("aws_aurora_mysql"); + + /** + * Enum TENCENT_TDSQL_C for value: "tencent_tdsql_c" + */ + public static final DbSourceEnum TENCENT_TDSQL_C = new DbSourceEnum("tencent_tdsql_c"); + + /** + * Enum ALI_RDS_MYSQL for value: "ali_rds_mysql" + */ + public static final DbSourceEnum ALI_RDS_MYSQL = new DbSourceEnum("ali_rds_mysql"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("aws_aurora_mysql", AWS_AURORA_MYSQL); + map.put("tencent_tdsql_c", TENCENT_TDSQL_C); + map.put("ali_rds_mysql", ALI_RDS_MYSQL); + return Collections.unmodifiableMap(map); + } + + private String value; + + DbSourceEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static DbSourceEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new DbSourceEnum(value)); + } + + public static DbSourceEnum 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 DbSourceEnum) { + return this.value.equals(((DbSourceEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "db_source") + + private DbSourceEnum dbSource; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "region") + + private String region; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "traffic_source") + + private String trafficSource; + + public ReplayConfigInfo withDbInstanceId(String dbInstanceId) { + this.dbInstanceId = dbInstanceId; + return this; + } + + /** + * 源实例ID。 + * @return dbInstanceId + */ + public String getDbInstanceId() { + return dbInstanceId; + } + + public void setDbInstanceId(String dbInstanceId) { + this.dbInstanceId = dbInstanceId; + } + + public ReplayConfigInfo withCloudType(CloudTypeEnum cloudType) { + this.cloudType = cloudType; + return this; + } + + /** + * 云类型: - AWSCloud:亚马逊云。 - TencentCloud:腾讯云。 - AliCloud:阿里云。 + * @return cloudType + */ + public CloudTypeEnum getCloudType() { + return cloudType; + } + + public void setCloudType(CloudTypeEnum cloudType) { + this.cloudType = cloudType; + } + + public ReplayConfigInfo withAk(String ak) { + this.ak = ak; + return this; + } + + /** + * 其他云AK信息。 + * @return ak + */ + public String getAk() { + return ak; + } + + public void setAk(String ak) { + this.ak = ak; + } + + public ReplayConfigInfo withSk(String sk) { + this.sk = sk; + return this; + } + + /** + * 其他云SK信息。 + * @return sk + */ + public String getSk() { + return sk; + } + + public void setSk(String sk) { + this.sk = sk; + } + + public ReplayConfigInfo withDbSource(DbSourceEnum dbSource) { + this.dbSource = dbSource; + return this; + } + + /** + * 源数据库来源。取值: - aws_aurora_mysql:Amazon Aurora MySQL。 - tencent_tdsql_c:腾讯云TDSQL-C MySQL。 - ali_rds_mysql:阿里云RDS MySQL。 + * @return dbSource + */ + public DbSourceEnum getDbSource() { + return dbSource; + } + + public void setDbSource(DbSourceEnum dbSource) { + this.dbSource = dbSource; + } + + public ReplayConfigInfo 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 ReplayConfigInfo withTrafficSource(String trafficSource) { + this.trafficSource = trafficSource; + return this; + } + + /** + * 流量文件来源。 - sdk:通过三方云API接口方式下载审计日志。 + * @return trafficSource + */ + public String getTrafficSource() { + return trafficSource; + } + + public void setTrafficSource(String trafficSource) { + this.trafficSource = trafficSource; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ReplayConfigInfo that = (ReplayConfigInfo) obj; + return Objects.equals(this.dbInstanceId, that.dbInstanceId) && Objects.equals(this.cloudType, that.cloudType) + && Objects.equals(this.ak, that.ak) && Objects.equals(this.sk, that.sk) + && Objects.equals(this.dbSource, that.dbSource) && Objects.equals(this.region, that.region) + && Objects.equals(this.trafficSource, that.trafficSource); + } + + @Override + public int hashCode() { + return Objects.hash(dbInstanceId, cloudType, ak, sk, dbSource, region, trafficSource); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReplayConfigInfo {\n"); + sb.append(" dbInstanceId: ").append(toIndentedString(dbInstanceId)).append("\n"); + sb.append(" cloudType: ").append(toIndentedString(cloudType)).append("\n"); + sb.append(" ak: ").append(toIndentedString(ak)).append("\n"); + sb.append(" sk: ").append(toIndentedString(sk)).append("\n"); + sb.append(" dbSource: ").append(toIndentedString(dbSource)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" trafficSource: ").append(toIndentedString(trafficSource)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ShowComparePolicyResponse.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ShowComparePolicyResponse.java index 8bb1bd6996..02b1ee2d80 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ShowComparePolicyResponse.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ShowComparePolicyResponse.java @@ -225,7 +225,7 @@ public ShowComparePolicyResponse withCompareType(Consumer> compareT } /** - * 对比类型。 - object:对象对比 - lines:行对比 - contents:内容对比 - account:用户对比 + * 对比类型: - object_comparison:对象对比。 - lines:行对比。 - account:用户对比。 * @return compareType */ public List getCompareType() { diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ShowHealthCompareJobDetailRequest.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ShowHealthCompareJobDetailRequest.java new file mode 100644 index 0000000000..7f02212502 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ShowHealthCompareJobDetailRequest.java @@ -0,0 +1,196 @@ +package com.huaweicloud.sdk.drs.v5.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; + +/** + * Request Object + */ +public class ShowHealthCompareJobDetailRequest { + + /** + * 请求语言类型。 + */ + public static final class XLanguageEnum { + + /** + * Enum EN_US for value: "en-us" + */ + public static final XLanguageEnum EN_US = new XLanguageEnum("en-us"); + + /** + * Enum ZH_CN for value: "zh-cn" + */ + public static final XLanguageEnum ZH_CN = new XLanguageEnum("zh-cn"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("en-us", EN_US); + map.put("zh-cn", ZH_CN); + 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 = "job_id") + + private String jobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "compare_job_id") + + private String compareJobId; + + public ShowHealthCompareJobDetailRequest withXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 请求语言类型。 + * @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 ShowHealthCompareJobDetailRequest withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 任务ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public ShowHealthCompareJobDetailRequest withCompareJobId(String compareJobId) { + this.compareJobId = compareJobId; + return this; + } + + /** + * 对比任务ID。 + * @return compareJobId + */ + public String getCompareJobId() { + return compareJobId; + } + + public void setCompareJobId(String compareJobId) { + this.compareJobId = compareJobId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowHealthCompareJobDetailRequest that = (ShowHealthCompareJobDetailRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.jobId, that.jobId) + && Objects.equals(this.compareJobId, that.compareJobId); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, jobId, compareJobId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowHealthCompareJobDetailRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" compareJobId: ").append(toIndentedString(compareJobId)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ShowHealthCompareJobDetailResponse.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ShowHealthCompareJobDetailResponse.java new file mode 100644 index 0000000000..74cf86a59b --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ShowHealthCompareJobDetailResponse.java @@ -0,0 +1,190 @@ +package com.huaweicloud.sdk.drs.v5.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 ShowHealthCompareJobDetailResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "start_time") + + private String startTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "end_time") + + private String endTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_name") + + private String jobName; + + public ShowHealthCompareJobDetailResponse 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 ShowHealthCompareJobDetailResponse withType(String type) { + this.type = type; + return this; + } + + /** + * 对比类型: object_comparison:对象对比。 lines:行对比。 account:用户对比。 + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public ShowHealthCompareJobDetailResponse withStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * 开始时间,UTC时间,例如:2024-04-03T08:00:01Z。 + * @return startTime + */ + public String getStartTime() { + return startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public ShowHealthCompareJobDetailResponse withEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * 结束时间,UTC时间,例如:2024-04-03T08:00:01Z。 + * @return endTime + */ + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public ShowHealthCompareJobDetailResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 对比任务的状态。取值: - RUNNING:运行中。 - WAITING_FOR_RUNNING:等待启动中。 - SUCCESSFUL:完成。 - FAILED:失败。 - CANCELLED:已取消。 - TIMEOUT_INTERRUPT:超时中断。 - FULL_DOING:全量校验中。 - INCRE_DOING:增量校验中。 + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public ShowHealthCompareJobDetailResponse withJobName(String jobName) { + this.jobName = jobName; + return this; + } + + /** + * 任务名称。 + * @return jobName + */ + public String getJobName() { + return jobName; + } + + public void setJobName(String jobName) { + this.jobName = jobName; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowHealthCompareJobDetailResponse that = (ShowHealthCompareJobDetailResponse) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.type, that.type) + && Objects.equals(this.startTime, that.startTime) && Objects.equals(this.endTime, that.endTime) + && Objects.equals(this.status, that.status) && Objects.equals(this.jobName, that.jobName); + } + + @Override + public int hashCode() { + return Objects.hash(id, type, startTime, endTime, status, jobName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowHealthCompareJobDetailResponse {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" jobName: ").append(toIndentedString(jobName)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ShowHealthObjectCompareJobOverviewRequest.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ShowHealthObjectCompareJobOverviewRequest.java new file mode 100644 index 0000000000..3293285d00 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ShowHealthObjectCompareJobOverviewRequest.java @@ -0,0 +1,196 @@ +package com.huaweicloud.sdk.drs.v5.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; + +/** + * Request Object + */ +public class ShowHealthObjectCompareJobOverviewRequest { + + /** + * 请求语言类型。 + */ + public static final class XLanguageEnum { + + /** + * Enum EN_US for value: "en-us" + */ + public static final XLanguageEnum EN_US = new XLanguageEnum("en-us"); + + /** + * Enum ZH_CN for value: "zh-cn" + */ + public static final XLanguageEnum ZH_CN = new XLanguageEnum("zh-cn"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("en-us", EN_US); + map.put("zh-cn", ZH_CN); + 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 = "job_id") + + private String jobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "compare_job_id") + + private String compareJobId; + + public ShowHealthObjectCompareJobOverviewRequest withXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 请求语言类型。 + * @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 ShowHealthObjectCompareJobOverviewRequest withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 任务ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public ShowHealthObjectCompareJobOverviewRequest withCompareJobId(String compareJobId) { + this.compareJobId = compareJobId; + return this; + } + + /** + * 对比任务ID。 + * @return compareJobId + */ + public String getCompareJobId() { + return compareJobId; + } + + public void setCompareJobId(String compareJobId) { + this.compareJobId = compareJobId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowHealthObjectCompareJobOverviewRequest that = (ShowHealthObjectCompareJobOverviewRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.jobId, that.jobId) + && Objects.equals(this.compareJobId, that.compareJobId); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, jobId, compareJobId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowHealthObjectCompareJobOverviewRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" compareJobId: ").append(toIndentedString(compareJobId)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ShowHealthObjectCompareJobOverviewResponse.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ShowHealthObjectCompareJobOverviewResponse.java new file mode 100644 index 0000000000..a8e1b375dd --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ShowHealthObjectCompareJobOverviewResponse.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.drs.v5.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 ShowHealthObjectCompareJobOverviewResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "compare_result") + + private List compareResult = null; + + public ShowHealthObjectCompareJobOverviewResponse withCompareResult( + List compareResult) { + this.compareResult = compareResult; + return this; + } + + public ShowHealthObjectCompareJobOverviewResponse addCompareResultItem( + ObjectsHealthCompareOverviewInfo compareResultItem) { + if (this.compareResult == null) { + this.compareResult = new ArrayList<>(); + } + this.compareResult.add(compareResultItem); + return this; + } + + public ShowHealthObjectCompareJobOverviewResponse withCompareResult( + Consumer> compareResultSetter) { + if (this.compareResult == null) { + this.compareResult = new ArrayList<>(); + } + compareResultSetter.accept(this.compareResult); + return this; + } + + /** + * 健康对比对象级对比结果。 + * @return compareResult + */ + public List getCompareResult() { + return compareResult; + } + + public void setCompareResult(List compareResult) { + this.compareResult = compareResult; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowHealthObjectCompareJobOverviewResponse that = (ShowHealthObjectCompareJobOverviewResponse) obj; + return Objects.equals(this.compareResult, that.compareResult); + } + + @Override + public int hashCode() { + return Objects.hash(compareResult); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowHealthObjectCompareJobOverviewResponse {\n"); + sb.append(" compareResult: ").append(toIndentedString(compareResult)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ShowJobDetailRequest.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ShowJobDetailRequest.java index 539f9f812a..18cd0b302e 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ShowJobDetailRequest.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ShowJobDetailRequest.java @@ -96,7 +96,7 @@ public int hashCode() { private XLanguageEnum xLanguage; /** - * 任务详情类型。取值: - overview:任务概览信息。 - detail:任务基本信息。 - network:测试连接结果信息,需配合query_id参数一起查询。 - precheck:预检查结果信息,需配合query_id参数一起查询。 - progress:任务进度信息。 - log:任务日志信息,支持分页查询参数offset与limit。 - compare:查询对比任务。 - file:对象导入信息 + * 任务详情类型。取值: - overview:任务概览信息。 - detail:任务基本信息。 - network:测试连接结果信息,需配合query_id参数一起查询。 - precheck:预检查结果信息,需配合query_id参数一起查询。 - progress:任务进度信息。 - log:任务日志信息,支持分页查询参数offset与limit。 - compare:查询对比任务。 - file:对象导入信息。 - is_writable:目标库解除只读结果。 - cloud_connection:录制回放他云连通性测试,需配合query_id参数一起查询。 */ public static final class TypeEnum { @@ -140,6 +140,16 @@ public static final class TypeEnum { */ public static final TypeEnum FILE = new TypeEnum("file"); + /** + * Enum IS_WRITABLE for value: "is_writable" + */ + public static final TypeEnum IS_WRITABLE = new TypeEnum("is_writable"); + + /** + * Enum CLOUD_CONNECTION for value: "cloud_connection" + */ + public static final TypeEnum CLOUD_CONNECTION = new TypeEnum("cloud_connection"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { @@ -152,6 +162,8 @@ private static Map createStaticFields() { map.put("log", LOG); map.put("compare", COMPARE); map.put("file", FILE); + map.put("is_writable", IS_WRITABLE); + map.put("cloud_connection", CLOUD_CONNECTION); return Collections.unmodifiableMap(map); } @@ -608,7 +620,7 @@ public ShowJobDetailRequest withType(TypeEnum type) { } /** - * 任务详情类型。取值: - overview:任务概览信息。 - detail:任务基本信息。 - network:测试连接结果信息,需配合query_id参数一起查询。 - precheck:预检查结果信息,需配合query_id参数一起查询。 - progress:任务进度信息。 - log:任务日志信息,支持分页查询参数offset与limit。 - compare:查询对比任务。 - file:对象导入信息 + * 任务详情类型。取值: - overview:任务概览信息。 - detail:任务基本信息。 - network:测试连接结果信息,需配合query_id参数一起查询。 - precheck:预检查结果信息,需配合query_id参数一起查询。 - progress:任务进度信息。 - log:任务日志信息,支持分页查询参数offset与limit。 - compare:查询对比任务。 - file:对象导入信息。 - is_writable:目标库解除只读结果。 - cloud_connection:录制回放他云连通性测试,需配合query_id参数一起查询。 * @return type */ public TypeEnum getType() { diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UpdateComparePolicyRequest.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UpdateComparePolicyRequest.java new file mode 100644 index 0000000000..a106d6e51c --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UpdateComparePolicyRequest.java @@ -0,0 +1,206 @@ +package com.huaweicloud.sdk.drs.v5.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; + +/** + * Request Object + */ +public class UpdateComparePolicyRequest { + + /** + * 请求语言类型。 + */ + public static final class XLanguageEnum { + + /** + * Enum EN_US for value: "en-us" + */ + public static final XLanguageEnum EN_US = new XLanguageEnum("en-us"); + + /** + * Enum ZH_CN for value: "zh-cn" + */ + public static final XLanguageEnum ZH_CN = new XLanguageEnum("zh-cn"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("en-us", EN_US); + map.put("zh-cn", ZH_CN); + 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 = "job_id") + + private String jobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private ModifyComparePolicyReq body; + + public UpdateComparePolicyRequest withXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 请求语言类型。 + * @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 UpdateComparePolicyRequest withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 任务ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public UpdateComparePolicyRequest withBody(ModifyComparePolicyReq body) { + this.body = body; + return this; + } + + public UpdateComparePolicyRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new ModifyComparePolicyReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ModifyComparePolicyReq getBody() { + return body; + } + + public void setBody(ModifyComparePolicyReq 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; + } + UpdateComparePolicyRequest that = (UpdateComparePolicyRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.jobId, that.jobId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, jobId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateComparePolicyRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UpdateComparePolicyResponse.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UpdateComparePolicyResponse.java new file mode 100644 index 0000000000..accac7da62 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UpdateComparePolicyResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.drs.v5.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 UpdateComparePolicyResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private Object body; + + public UpdateComparePolicyResponse withBody(Object body) { + this.body = body; + return this; + } + + /** + * 空响应体。 + * @return body + */ + public Object getBody() { + return body; + } + + public void setBody(Object 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; + } + UpdateComparePolicyResponse that = (UpdateComparePolicyResponse) 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 UpdateComparePolicyResponse {\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/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UpdateJobReq.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UpdateJobReq.java index 84d9666047..cede716359 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UpdateJobReq.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UpdateJobReq.java @@ -17,7 +17,7 @@ public class UpdateJobReq { /** - * 更新指定ID任务详情类型。 场景一:更新单个任务详情,取值: - name:更新该任务名称。 - description:更新该任务描述。 - re_create:配置中任务三天以后虚拟机删除后重建。 - expired_days:更新任务异常自动结束时间,单位为天。 场景二:更新批量异步任务详情,取值: - all:批量异步创建的任务,参数校验不通过,需要指定全部参数进行更新时。 - network:批量异步创建的任务,测试连接不通过,需要更新源库/目标库信息时。 - policy:批量异步创建的任务,需要更新任务配置时。 - db_object:批量异步创建的任务,需要更新对象信息时。 - precheck:批量异步创建的任务,需要重新预检查时。 + * 更新指定ID任务详情类型。 场景一:更新单个任务详情,取值: - name:更新该任务名称。 - description:更新该任务描述。 - re_create:配置中任务三天以后虚拟机删除后重建。 - expired_days:更新任务异常自动结束时间,单位为天。 - notify:更新任务异常通知信息。 场景二:更新批量异步任务详情,取值: - all:批量异步创建的任务,参数校验不通过,需要指定全部参数进行更新时。 - network:批量异步创建的任务,测试连接不通过,需要更新源库/目标库信息时。 - policy:批量异步创建的任务,需要更新任务配置时。 - db_object:批量异步创建的任务,需要更新对象信息时。 - precheck:批量异步创建的任务,需要重新预检查时。 */ public static final class TypeEnum { @@ -66,6 +66,11 @@ public static final class TypeEnum { */ public static final TypeEnum EXPIRED_DAYS = new TypeEnum("expired_days"); + /** + * Enum NOTIFY for value: "notify" + */ + public static final TypeEnum NOTIFY = new TypeEnum("notify"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { @@ -79,6 +84,7 @@ private static Map createStaticFields() { map.put("precheck", PRECHECK); map.put("re_create", RE_CREATE); map.put("expired_days", EXPIRED_DAYS); + map.put("notify", NOTIFY); return Collections.unmodifiableMap(map); } @@ -144,7 +150,7 @@ public UpdateJobReq withType(TypeEnum type) { } /** - * 更新指定ID任务详情类型。 场景一:更新单个任务详情,取值: - name:更新该任务名称。 - description:更新该任务描述。 - re_create:配置中任务三天以后虚拟机删除后重建。 - expired_days:更新任务异常自动结束时间,单位为天。 场景二:更新批量异步任务详情,取值: - all:批量异步创建的任务,参数校验不通过,需要指定全部参数进行更新时。 - network:批量异步创建的任务,测试连接不通过,需要更新源库/目标库信息时。 - policy:批量异步创建的任务,需要更新任务配置时。 - db_object:批量异步创建的任务,需要更新对象信息时。 - precheck:批量异步创建的任务,需要重新预检查时。 + * 更新指定ID任务详情类型。 场景一:更新单个任务详情,取值: - name:更新该任务名称。 - description:更新该任务描述。 - re_create:配置中任务三天以后虚拟机删除后重建。 - expired_days:更新任务异常自动结束时间,单位为天。 - notify:更新任务异常通知信息。 场景二:更新批量异步任务详情,取值: - all:批量异步创建的任务,参数校验不通过,需要指定全部参数进行更新时。 - network:批量异步创建的任务,测试连接不通过,需要更新源库/目标库信息时。 - policy:批量异步创建的任务,需要更新任务配置时。 - db_object:批量异步创建的任务,需要更新对象信息时。 - precheck:批量异步创建的任务,需要重新预检查时。 * @return type */ public TypeEnum getType() { diff --git a/services/dsc/pom.xml b/services/dsc/pom.xml index 911546960f..3c4b2103dc 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-dsc - 3.1.94 + 3.1.95 Huawei Cloud SDK for DSC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/dss/pom.xml b/services/dss/pom.xml index 72813c1321..c0d3433f7c 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-dss - 3.1.94 + 3.1.95 Huawei Cloud SDK for DSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/dwr/pom.xml b/services/dwr/pom.xml index 331179d365..772ba5f7bb 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-dwr - 3.1.94 + 3.1.95 Huawei Cloud SDK for DWR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/dws/pom.xml b/services/dws/pom.xml index 1bdc2ef2cf..fa64404ba1 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-dws - 3.1.94 + 3.1.95 Huawei Cloud SDK for DWS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/ec/pom.xml b/services/ec/pom.xml index e7c91f7b6a..bbbd6f772c 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-ec - 3.1.94 + 3.1.95 Huawei Cloud SDK for EC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/ecs/pom.xml b/services/ecs/pom.xml index 06f40f9ac0..4f39c7816e 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-ecs - 3.1.94 + 3.1.95 Huawei Cloud SDK for ECS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 ch.qos.logback diff --git a/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/EcsAsyncClient.java b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/EcsAsyncClient.java index 62e8a7b6e4..1670b6483d 100644 --- a/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/EcsAsyncClient.java +++ b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/EcsAsyncClient.java @@ -35,6 +35,8 @@ import com.huaweicloud.sdk.ecs.v2.model.ChangeServerOsWithCloudInitResponse; import com.huaweicloud.sdk.ecs.v2.model.ChangeServerOsWithoutCloudInitRequest; import com.huaweicloud.sdk.ecs.v2.model.ChangeServerOsWithoutCloudInitResponse; +import com.huaweicloud.sdk.ecs.v2.model.ChangeVpcRequest; +import com.huaweicloud.sdk.ecs.v2.model.ChangeVpcResponse; import com.huaweicloud.sdk.ecs.v2.model.CreatePostPaidServersRequest; import com.huaweicloud.sdk.ecs.v2.model.CreatePostPaidServersResponse; import com.huaweicloud.sdk.ecs.v2.model.CreateServerGroupRequest; @@ -666,6 +668,34 @@ public AsyncInvoker(request, EcsMeta.changeServerOsWithoutCloudInit, hcClient); } + /** + * 云服务器切换虚拟私有云 + * + * 云服务器切换虚拟私有云。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ChangeVpcRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture changeVpcAsync(ChangeVpcRequest request) { + return hcClient.asyncInvokeHttp(request, EcsMeta.changeVpc); + } + + /** + * 云服务器切换虚拟私有云 + * + * 云服务器切换虚拟私有云。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ChangeVpcRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker changeVpcAsyncInvoker(ChangeVpcRequest request) { + return new AsyncInvoker<>(request, EcsMeta.changeVpc, hcClient); + } + /** * 创建云服务器(按需) * diff --git a/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/EcsClient.java b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/EcsClient.java index 884c64092b..25a6101a3b 100644 --- a/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/EcsClient.java +++ b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/EcsClient.java @@ -35,6 +35,8 @@ import com.huaweicloud.sdk.ecs.v2.model.ChangeServerOsWithCloudInitResponse; import com.huaweicloud.sdk.ecs.v2.model.ChangeServerOsWithoutCloudInitRequest; import com.huaweicloud.sdk.ecs.v2.model.ChangeServerOsWithoutCloudInitResponse; +import com.huaweicloud.sdk.ecs.v2.model.ChangeVpcRequest; +import com.huaweicloud.sdk.ecs.v2.model.ChangeVpcResponse; import com.huaweicloud.sdk.ecs.v2.model.CreatePostPaidServersRequest; import com.huaweicloud.sdk.ecs.v2.model.CreatePostPaidServersResponse; import com.huaweicloud.sdk.ecs.v2.model.CreateServerGroupRequest; @@ -654,6 +656,34 @@ public SyncInvoker(request, EcsMeta.changeServerOsWithoutCloudInit, hcClient); } + /** + * 云服务器切换虚拟私有云 + * + * 云服务器切换虚拟私有云。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ChangeVpcRequest 请求对象 + * @return ChangeVpcResponse + */ + public ChangeVpcResponse changeVpc(ChangeVpcRequest request) { + return hcClient.syncInvokeHttp(request, EcsMeta.changeVpc); + } + + /** + * 云服务器切换虚拟私有云 + * + * 云服务器切换虚拟私有云。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ChangeVpcRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker changeVpcInvoker(ChangeVpcRequest request) { + return new SyncInvoker<>(request, EcsMeta.changeVpc, hcClient); + } + /** * 创建云服务器(按需) * diff --git a/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/EcsMeta.java b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/EcsMeta.java index e23aff8374..1c95e2a273 100644 --- a/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/EcsMeta.java +++ b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/EcsMeta.java @@ -53,6 +53,9 @@ import com.huaweicloud.sdk.ecs.v2.model.ChangeServerOsWithoutCloudInitRequest; import com.huaweicloud.sdk.ecs.v2.model.ChangeServerOsWithoutCloudInitRequestBody; import com.huaweicloud.sdk.ecs.v2.model.ChangeServerOsWithoutCloudInitResponse; +import com.huaweicloud.sdk.ecs.v2.model.ChangeVpcRequest; +import com.huaweicloud.sdk.ecs.v2.model.ChangeVpcRequestBody; +import com.huaweicloud.sdk.ecs.v2.model.ChangeVpcResponse; import com.huaweicloud.sdk.ecs.v2.model.CreatePostPaidServersRequest; import com.huaweicloud.sdk.ecs.v2.model.CreatePostPaidServersRequestBody; import com.huaweicloud.sdk.ecs.v2.model.CreatePostPaidServersResponse; @@ -634,6 +637,33 @@ private static HttpRequestDef changeVpc = genForChangeVpc(); + + private static HttpRequestDef genForChangeVpc() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, ChangeVpcRequest.class, ChangeVpcResponse.class) + .withName("ChangeVpc") + .withUri("/v1/{project_id}/cloudservers/{server_id}/changevpc") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("server_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ChangeVpcRequest::getServerId, ChangeVpcRequest::setServerId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ChangeVpcRequestBody.class), + f -> f.withMarshaller(ChangeVpcRequest::getBody, ChangeVpcRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef createPostPaidServers = genForCreatePostPaidServers(); diff --git a/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeVpcNicBody.java b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeVpcNicBody.java new file mode 100644 index 0000000000..a6eadf4180 --- /dev/null +++ b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeVpcNicBody.java @@ -0,0 +1,153 @@ +package com.huaweicloud.sdk.ecs.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 ChangeVpcNicBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "port_id") + + private String portId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "subnet_id") + + private String subnetId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "security_groups") + + private ChangeVpcSecurityGroups securityGroups; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ip_address") + + private String ipAddress; + + public ChangeVpcNicBody withPortId(String portId) { + this.portId = portId; + return this; + } + + /** + * 网卡ID,UUID格式。 当该字段不为空时,表示挂载指定的网卡。port_id和subnet_id不能同时为空。 网卡ID可以从虚拟私有云的“查询端口列表”章节查询到。 约束: 网卡必须带有安全组。 网卡状态必须为DOWN。 网卡的vpcid必须和传入的vpcid一致。 当port_id和subnet_id同时存在的时候,优先使用port_id。当选择port_id不为空时,代表此时使用的是弹性网卡,此时security_groups和ip_address等参数不生效。 + * @return portId + */ + public String getPortId() { + return portId; + } + + public void setPortId(String portId) { + this.portId = portId; + } + + public ChangeVpcNicBody withSubnetId(String subnetId) { + this.subnetId = subnetId; + return this; + } + + /** + * 云服务器云主机添加网卡的信息。 需要指定云服务器云主机所属虚拟私有云下已创建的网络(network)的ID,UUID格式。 + * @return subnetId + */ + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public ChangeVpcNicBody withSecurityGroups(ChangeVpcSecurityGroups securityGroups) { + this.securityGroups = securityGroups; + return this; + } + + public ChangeVpcNicBody withSecurityGroups(Consumer securityGroupsSetter) { + if (this.securityGroups == null) { + this.securityGroups = new ChangeVpcSecurityGroups(); + securityGroupsSetter.accept(this.securityGroups); + } + + return this; + } + + /** + * Get securityGroups + * @return securityGroups + */ + public ChangeVpcSecurityGroups getSecurityGroups() { + return securityGroups; + } + + public void setSecurityGroups(ChangeVpcSecurityGroups securityGroups) { + this.securityGroups = securityGroups; + } + + public ChangeVpcNicBody withIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * P地址,无该参数表示自动分配IP地址 + * @return ipAddress + */ + public String getIpAddress() { + return ipAddress; + } + + public void setIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ChangeVpcNicBody that = (ChangeVpcNicBody) obj; + return Objects.equals(this.portId, that.portId) && Objects.equals(this.subnetId, that.subnetId) + && Objects.equals(this.securityGroups, that.securityGroups) + && Objects.equals(this.ipAddress, that.ipAddress); + } + + @Override + public int hashCode() { + return Objects.hash(portId, subnetId, securityGroups, ipAddress); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChangeVpcNicBody {\n"); + sb.append(" portId: ").append(toIndentedString(portId)).append("\n"); + sb.append(" subnetId: ").append(toIndentedString(subnetId)).append("\n"); + sb.append(" securityGroups: ").append(toIndentedString(securityGroups)).append("\n"); + sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).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/ChangeVpcRequest.java b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeVpcRequest.java new file mode 100644 index 0000000000..ebe5491316 --- /dev/null +++ b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeVpcRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.ecs.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 ChangeVpcRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server_id") + + private String serverId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private ChangeVpcRequestBody body; + + public ChangeVpcRequest withServerId(String serverId) { + this.serverId = serverId; + return this; + } + + /** + * 云服务器ID。 + * @return serverId + */ + public String getServerId() { + return serverId; + } + + public void setServerId(String serverId) { + this.serverId = serverId; + } + + public ChangeVpcRequest withBody(ChangeVpcRequestBody body) { + this.body = body; + return this; + } + + public ChangeVpcRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new ChangeVpcRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ChangeVpcRequestBody getBody() { + return body; + } + + public void setBody(ChangeVpcRequestBody 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; + } + ChangeVpcRequest that = (ChangeVpcRequest) obj; + return Objects.equals(this.serverId, that.serverId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(serverId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChangeVpcRequest {\n"); + sb.append(" serverId: ").append(toIndentedString(serverId)).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/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeVpcRequestBody.java b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeVpcRequestBody.java new file mode 100644 index 0000000000..1009606700 --- /dev/null +++ b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeVpcRequestBody.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.ecs.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 ChangeVpcRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "vpc_id") + + private String vpcId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "nic") + + private ChangeVpcNicBody nic; + + public ChangeVpcRequestBody withVpcId(String vpcId) { + this.vpcId = vpcId; + return this; + } + + /** + * 虚拟机私有云ID + * @return vpcId + */ + public String getVpcId() { + return vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public ChangeVpcRequestBody withNic(ChangeVpcNicBody nic) { + this.nic = nic; + return this; + } + + public ChangeVpcRequestBody withNic(Consumer nicSetter) { + if (this.nic == null) { + this.nic = new ChangeVpcNicBody(); + nicSetter.accept(this.nic); + } + + return this; + } + + /** + * Get nic + * @return nic + */ + public ChangeVpcNicBody getNic() { + return nic; + } + + public void setNic(ChangeVpcNicBody nic) { + this.nic = nic; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ChangeVpcRequestBody that = (ChangeVpcRequestBody) obj; + return Objects.equals(this.vpcId, that.vpcId) && Objects.equals(this.nic, that.nic); + } + + @Override + public int hashCode() { + return Objects.hash(vpcId, nic); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChangeVpcRequestBody {\n"); + sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n"); + sb.append(" nic: ").append(toIndentedString(nic)).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/ChangeVpcResponse.java b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeVpcResponse.java new file mode 100644 index 0000000000..b587d14b2f --- /dev/null +++ b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeVpcResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.ecs.v2.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 ChangeVpcResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + public ChangeVpcResponse withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 提交任务成功后返回的任务ID,用户可以使用该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; + } + ChangeVpcResponse that = (ChangeVpcResponse) 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 ChangeVpcResponse {\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/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeVpcSecurityGroups.java b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeVpcSecurityGroups.java new file mode 100644 index 0000000000..6c9e64cd71 --- /dev/null +++ b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeVpcSecurityGroups.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.ecs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * This is a auto create Body Object + */ +public class ChangeVpcSecurityGroups { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private Object id; + + public ChangeVpcSecurityGroups withId(Object id) { + this.id = id; + return this; + } + + /** + * 安全组id + * @return id + */ + public Object getId() { + return id; + } + + public void setId(Object 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; + } + ChangeVpcSecurityGroups that = (ChangeVpcSecurityGroups) obj; + return Objects.equals(this.id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChangeVpcSecurityGroups {\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/edgesec/pom.xml b/services/edgesec/pom.xml index 2c1dbf8ac7..9cba80dcbf 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-edgesec - 3.1.94 + 3.1.95 Huawei Cloud SDK for EDGESEC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/eds/pom.xml b/services/eds/pom.xml index d889af73e0..88838e20b6 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-eds - 3.1.94 + 3.1.95 Huawei Cloud SDK for EDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/eg/pom.xml b/services/eg/pom.xml index 8754794e44..ae2c274644 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-eg - 3.1.94 + 3.1.95 Huawei Cloud SDK for EG 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/eihealth/pom.xml b/services/eihealth/pom.xml index fb69deae6d..98c2229c37 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-eihealth - 3.1.94 + 3.1.95 Huawei Cloud SDK for EIHEALTH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/EiHealthAsyncClient.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/EiHealthAsyncClient.java index 51d669dd90..9bf2bb02d7 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/EiHealthAsyncClient.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/EiHealthAsyncClient.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.eihealth.v1.model.AddDrugDatabaseFileRequest; +import com.huaweicloud.sdk.eihealth.v1.model.AddDrugDatabaseFileResponse; import com.huaweicloud.sdk.eihealth.v1.model.BatchCancelJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.BatchCancelJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.BatchDeleteDataRequest; @@ -61,6 +63,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.CreateComputingResourceResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateCpiTaskRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateCpiTaskResponse; +import com.huaweicloud.sdk.eihealth.v1.model.CreateCssClusterRequest; +import com.huaweicloud.sdk.eihealth.v1.model.CreateCssClusterResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateCustomPropsTaskRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateCustomPropsTaskResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateDataRequest; @@ -71,6 +75,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.CreateDatabaseResourceResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateDockingJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateDockingJobResponse; +import com.huaweicloud.sdk.eihealth.v1.model.CreateDrugDatabaseRequest; +import com.huaweicloud.sdk.eihealth.v1.model.CreateDrugDatabaseResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateDrugLigandInteraction2dSvgRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateDrugLigandInteraction2dSvgResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateDrugLigandPreviewTaskRequest; @@ -95,6 +101,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.CreateLabelPageResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateLabelRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateLabelResponse; +import com.huaweicloud.sdk.eihealth.v1.model.CreateMolBatchDownloadTaskRequest; +import com.huaweicloud.sdk.eihealth.v1.model.CreateMolBatchDownloadTaskResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateNextflowJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateNextflowJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateNextflowWorkflowRequest; @@ -115,6 +123,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.CreateProjectResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateScaleOutPolicyRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateScaleOutPolicyResponse; +import com.huaweicloud.sdk.eihealth.v1.model.CreateSearchJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.CreateSearchJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateSearchTaskRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateSearchTaskResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateStudyJobRequest; @@ -141,12 +151,16 @@ import com.huaweicloud.sdk.eihealth.v1.model.DeleteBackupResponse; import com.huaweicloud.sdk.eihealth.v1.model.DeleteComputingResourceRequest; import com.huaweicloud.sdk.eihealth.v1.model.DeleteComputingResourceResponse; +import com.huaweicloud.sdk.eihealth.v1.model.DeleteCssClusterRequest; +import com.huaweicloud.sdk.eihealth.v1.model.DeleteCssClusterResponse; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDataJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDataJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDatabaseDataRequest; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDatabaseDataResponse; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDatabaseResourceRequest; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDatabaseResourceResponse; +import com.huaweicloud.sdk.eihealth.v1.model.DeleteDrugDatabaseRequest; +import com.huaweicloud.sdk.eihealth.v1.model.DeleteDrugDatabaseResponse; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDrugJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDrugJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDrugLigandPreviewTaskRequest; @@ -245,6 +259,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ListComputingResourceFlavorsResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListComputingResourcesRequest; import com.huaweicloud.sdk.eihealth.v1.model.ListComputingResourcesResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ListCssClusterRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ListCssClusterResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListDataJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.ListDataJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListDataRequest; @@ -255,6 +271,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ListDatabaseResourceFlavorResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListDatabaseResourceRequest; import com.huaweicloud.sdk.eihealth.v1.model.ListDatabaseResourceResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ListDrugDatabaseRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ListDrugDatabaseResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListDrugJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.ListDrugJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListDrugModelRequest; @@ -335,6 +353,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ListStudyResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListTemplateRequest; import com.huaweicloud.sdk.eihealth.v1.model.ListTemplateResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ListTermTenantCssClusterRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ListTermTenantCssClusterResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListUserRequest; import com.huaweicloud.sdk.eihealth.v1.model.ListUserResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListVendorRequest; @@ -439,6 +459,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ShowMessageEmailConfigResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowMessageReceiveConfigRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowMessageReceiveConfigResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ShowMolBatchDownloadTaskRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ShowMolBatchDownloadTaskResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowNextflowJobLogRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowNextflowJobLogResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowNextflowJobReportsRequest; @@ -483,6 +505,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ShowScaleOutPolicyResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowScheduleRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowScheduleResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ShowSearchJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ShowSearchJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowSearchTaskResultRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowSearchTaskResultResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowSynthesisJobRequest; @@ -551,6 +575,10 @@ import com.huaweicloud.sdk.eihealth.v1.model.UpdateDataPolicyResponse; import com.huaweicloud.sdk.eihealth.v1.model.UpdateDatabaseDataRequest; import com.huaweicloud.sdk.eihealth.v1.model.UpdateDatabaseDataResponse; +import com.huaweicloud.sdk.eihealth.v1.model.UpdateDrugDatabaseRequest; +import com.huaweicloud.sdk.eihealth.v1.model.UpdateDrugDatabaseResponse; +import com.huaweicloud.sdk.eihealth.v1.model.UpdateDrugJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.UpdateDrugJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.UpdateDrugModelRequest; import com.huaweicloud.sdk.eihealth.v1.model.UpdateDrugModelResponse; import com.huaweicloud.sdk.eihealth.v1.model.UpdateImageRequest; @@ -605,6 +633,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.UploadTemplateResponse; import com.huaweicloud.sdk.eihealth.v1.model.ValidateCodeRequest; import com.huaweicloud.sdk.eihealth.v1.model.ValidateCodeResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ValidateCssConnectionRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ValidateCssConnectionResponse; import java.util.concurrent.CompletableFuture; @@ -621,6 +651,35 @@ public static ClientBuilder newBuilder() { return clientBuilder; } + /** + * 数据库追加文件 + * + * 数据库追加文件 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddDrugDatabaseFileRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture addDrugDatabaseFileAsync(AddDrugDatabaseFileRequest request) { + return hcClient.asyncInvokeHttp(request, EiHealthMeta.addDrugDatabaseFile); + } + + /** + * 数据库追加文件 + * + * 数据库追加文件 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddDrugDatabaseFileRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker addDrugDatabaseFileAsyncInvoker( + AddDrugDatabaseFileRequest request) { + return new AsyncInvoker<>(request, EiHealthMeta.addDrugDatabaseFile, hcClient); + } + /** * 批量取消作业 * @@ -1492,6 +1551,35 @@ public AsyncInvoker createDoc return new AsyncInvoker<>(request, EiHealthMeta.createDockingJob, hcClient); } + /** + * 创建数据库 + * + * 创建数据库 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateDrugDatabaseRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createDrugDatabaseAsync(CreateDrugDatabaseRequest request) { + return hcClient.asyncInvokeHttp(request, EiHealthMeta.createDrugDatabase); + } + + /** + * 创建数据库 + * + * 创建数据库 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateDrugDatabaseRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createDrugDatabaseAsyncInvoker( + CreateDrugDatabaseRequest request) { + return new AsyncInvoker<>(request, EiHealthMeta.createDrugDatabase, hcClient); + } + /** * 创建模型 * @@ -1664,6 +1752,36 @@ public AsyncInvoker createLabel return new AsyncInvoker<>(request, EiHealthMeta.createLabelPage, hcClient); } + /** + * 创建分子或分子复合物批量下载任务 + * + * 创建分子或分子复合物批量下载任务 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateMolBatchDownloadTaskRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createMolBatchDownloadTaskAsync( + CreateMolBatchDownloadTaskRequest request) { + return hcClient.asyncInvokeHttp(request, EiHealthMeta.createMolBatchDownloadTask); + } + + /** + * 创建分子或分子复合物批量下载任务 + * + * 创建分子或分子复合物批量下载任务 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateMolBatchDownloadTaskRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createMolBatchDownloadTaskAsyncInvoker( + CreateMolBatchDownloadTaskRequest request) { + return new AsyncInvoker<>(request, EiHealthMeta.createMolBatchDownloadTask, hcClient); + } + /** * 创建分子优化作业 * @@ -1842,6 +1960,35 @@ public AsyncInvoker c return new AsyncInvoker<>(request, EiHealthMeta.createScaleOutPolicy, hcClient); } + /** + * 创建分子搜索作业 + * + * 创建分子搜索作业 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateSearchJobRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createSearchJobAsync(CreateSearchJobRequest request) { + return hcClient.asyncInvokeHttp(request, EiHealthMeta.createSearchJob); + } + + /** + * 创建分子搜索作业 + * + * 创建分子搜索作业 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateSearchJobRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createSearchJobAsyncInvoker( + CreateSearchJobRequest request) { + return new AsyncInvoker<>(request, EiHealthMeta.createSearchJob, hcClient); + } + /** * 创建study * @@ -2247,6 +2394,35 @@ public AsyncInvoker(request, EiHealthMeta.deleteDatabaseResource, hcClient); } + /** + * 删除数据库 + * + * 删除数据库 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteDrugDatabaseRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteDrugDatabaseAsync(DeleteDrugDatabaseRequest request) { + return hcClient.asyncInvokeHttp(request, EiHealthMeta.deleteDrugDatabase); + } + + /** + * 删除数据库 + * + * 删除数据库 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteDrugDatabaseRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteDrugDatabaseAsyncInvoker( + DeleteDrugDatabaseRequest request) { + return new AsyncInvoker<>(request, EiHealthMeta.deleteDrugDatabase, hcClient); + } + /** * 删除药物作业 * @@ -3602,6 +3778,35 @@ public AsyncInvoker(request, EiHealthMeta.listDatabaseResourceFlavor, hcClient); } + /** + * 获取数据库列表 + * + * 获取数据库列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDrugDatabaseRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listDrugDatabaseAsync(ListDrugDatabaseRequest request) { + return hcClient.asyncInvokeHttp(request, EiHealthMeta.listDrugDatabase); + } + + /** + * 获取数据库列表 + * + * 获取数据库列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDrugDatabaseRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listDrugDatabaseAsyncInvoker( + ListDrugDatabaseRequest request) { + return new AsyncInvoker<>(request, EiHealthMeta.listDrugDatabase, hcClient); + } + /** * 获取药物作业列表 * @@ -5701,6 +5906,36 @@ public AsyncInvoker(request, EiHealthMeta.showMessageReceiveConfig, hcClient); } + /** + * 查询分子或分子复合物批量下载任务详情 + * + * 查询分子或分子复合物批量下载任务详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowMolBatchDownloadTaskRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showMolBatchDownloadTaskAsync( + ShowMolBatchDownloadTaskRequest request) { + return hcClient.asyncInvokeHttp(request, EiHealthMeta.showMolBatchDownloadTask); + } + + /** + * 查询分子或分子复合物批量下载任务详情 + * + * 查询分子或分子复合物批量下载任务详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowMolBatchDownloadTaskRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showMolBatchDownloadTaskAsyncInvoker( + ShowMolBatchDownloadTaskRequest request) { + return new AsyncInvoker<>(request, EiHealthMeta.showMolBatchDownloadTask, hcClient); + } + /** * 查询分子优化作业详情 * @@ -6022,6 +6257,35 @@ public AsyncInvoker showScheduleAsync return new AsyncInvoker<>(request, EiHealthMeta.showSchedule, hcClient); } + /** + * 查询分子搜索作业详情 + * + * 查询分子搜索作业详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowSearchJobRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showSearchJobAsync(ShowSearchJobRequest request) { + return hcClient.asyncInvokeHttp(request, EiHealthMeta.showSearchJob); + } + + /** + * 查询分子搜索作业详情 + * + * 查询分子搜索作业详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowSearchJobRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showSearchJobAsyncInvoker( + ShowSearchJobRequest request) { + return new AsyncInvoker<>(request, EiHealthMeta.showSearchJob, hcClient); + } + /** * 查询分子合成路径规划作业详情 * @@ -6860,6 +7124,64 @@ public AsyncInvoker updat return new AsyncInvoker<>(request, EiHealthMeta.updateDatabaseData, hcClient); } + /** + * 更新药物数据库 + * + * 更新药物数据库 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateDrugDatabaseRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateDrugDatabaseAsync(UpdateDrugDatabaseRequest request) { + return hcClient.asyncInvokeHttp(request, EiHealthMeta.updateDrugDatabase); + } + + /** + * 更新药物数据库 + * + * 更新药物数据库 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateDrugDatabaseRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateDrugDatabaseAsyncInvoker( + UpdateDrugDatabaseRequest request) { + return new AsyncInvoker<>(request, EiHealthMeta.updateDrugDatabase, hcClient); + } + + /** + * 更新药物作业 + * + * 更新药物作业 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateDrugJobRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateDrugJobAsync(UpdateDrugJobRequest request) { + return hcClient.asyncInvokeHttp(request, EiHealthMeta.updateDrugJob); + } + + /** + * 更新药物作业 + * + * 更新药物作业 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateDrugJobRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateDrugJobAsyncInvoker( + UpdateDrugJobRequest request) { + return new AsyncInvoker<>(request, EiHealthMeta.updateDrugJob, hcClient); + } + /** * 更新药物模型 * @@ -7673,6 +7995,153 @@ public AsyncInvoker showCpi return new AsyncInvoker<>(request, EiHealthMeta.showCpiTaskResult, hcClient); } + /** + * 绑定CSS集群 + * + * 绑定CSS集群 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateCssClusterRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createCssClusterAsync(CreateCssClusterRequest request) { + return hcClient.asyncInvokeHttp(request, EiHealthMeta.createCssCluster); + } + + /** + * 绑定CSS集群 + * + * 绑定CSS集群 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateCssClusterRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createCssClusterAsyncInvoker( + CreateCssClusterRequest request) { + return new AsyncInvoker<>(request, EiHealthMeta.createCssCluster, hcClient); + } + + /** + * CSS集群解绑 + * + * CSS集群解绑 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteCssClusterRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteCssClusterAsync(DeleteCssClusterRequest request) { + return hcClient.asyncInvokeHttp(request, EiHealthMeta.deleteCssCluster); + } + + /** + * CSS集群解绑 + * + * CSS集群解绑 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteCssClusterRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteCssClusterAsyncInvoker( + DeleteCssClusterRequest request) { + return new AsyncInvoker<>(request, EiHealthMeta.deleteCssCluster, hcClient); + } + + /** + * 获取CSS集群列表 + * + * 获取CSS集群列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListCssClusterRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listCssClusterAsync(ListCssClusterRequest request) { + return hcClient.asyncInvokeHttp(request, EiHealthMeta.listCssCluster); + } + + /** + * 获取CSS集群列表 + * + * 获取CSS集群列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListCssClusterRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listCssClusterAsyncInvoker( + ListCssClusterRequest request) { + return new AsyncInvoker<>(request, EiHealthMeta.listCssCluster, hcClient); + } + + /** + * 获取最终租户CSS集群列表 + * + * 获取最终租户CSS集群列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListTermTenantCssClusterRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listTermTenantCssClusterAsync( + ListTermTenantCssClusterRequest request) { + return hcClient.asyncInvokeHttp(request, EiHealthMeta.listTermTenantCssCluster); + } + + /** + * 获取最终租户CSS集群列表 + * + * 获取最终租户CSS集群列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListTermTenantCssClusterRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listTermTenantCssClusterAsyncInvoker( + ListTermTenantCssClusterRequest request) { + return new AsyncInvoker<>(request, EiHealthMeta.listTermTenantCssCluster, hcClient); + } + + /** + * 测试CSS集群连接 + * + * 测试CSS集群连接 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ValidateCssConnectionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture validateCssConnectionAsync( + ValidateCssConnectionRequest request) { + return hcClient.asyncInvokeHttp(request, EiHealthMeta.validateCssConnection); + } + + /** + * 测试CSS集群连接 + * + * 测试CSS集群连接 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ValidateCssConnectionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker validateCssConnectionAsyncInvoker( + ValidateCssConnectionRequest request) { + return new AsyncInvoker<>(request, EiHealthMeta.validateCssConnection, hcClient); + } + /** * 新建自定义属性任务接口 * diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/EiHealthClient.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/EiHealthClient.java index d46772cafd..820235d52a 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/EiHealthClient.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/EiHealthClient.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.eihealth.v1.model.AddDrugDatabaseFileRequest; +import com.huaweicloud.sdk.eihealth.v1.model.AddDrugDatabaseFileResponse; import com.huaweicloud.sdk.eihealth.v1.model.BatchCancelJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.BatchCancelJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.BatchDeleteDataRequest; @@ -61,6 +63,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.CreateComputingResourceResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateCpiTaskRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateCpiTaskResponse; +import com.huaweicloud.sdk.eihealth.v1.model.CreateCssClusterRequest; +import com.huaweicloud.sdk.eihealth.v1.model.CreateCssClusterResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateCustomPropsTaskRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateCustomPropsTaskResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateDataRequest; @@ -71,6 +75,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.CreateDatabaseResourceResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateDockingJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateDockingJobResponse; +import com.huaweicloud.sdk.eihealth.v1.model.CreateDrugDatabaseRequest; +import com.huaweicloud.sdk.eihealth.v1.model.CreateDrugDatabaseResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateDrugLigandInteraction2dSvgRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateDrugLigandInteraction2dSvgResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateDrugLigandPreviewTaskRequest; @@ -95,6 +101,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.CreateLabelPageResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateLabelRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateLabelResponse; +import com.huaweicloud.sdk.eihealth.v1.model.CreateMolBatchDownloadTaskRequest; +import com.huaweicloud.sdk.eihealth.v1.model.CreateMolBatchDownloadTaskResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateNextflowJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateNextflowJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateNextflowWorkflowRequest; @@ -115,6 +123,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.CreateProjectResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateScaleOutPolicyRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateScaleOutPolicyResponse; +import com.huaweicloud.sdk.eihealth.v1.model.CreateSearchJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.CreateSearchJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateSearchTaskRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateSearchTaskResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateStudyJobRequest; @@ -141,12 +151,16 @@ import com.huaweicloud.sdk.eihealth.v1.model.DeleteBackupResponse; import com.huaweicloud.sdk.eihealth.v1.model.DeleteComputingResourceRequest; import com.huaweicloud.sdk.eihealth.v1.model.DeleteComputingResourceResponse; +import com.huaweicloud.sdk.eihealth.v1.model.DeleteCssClusterRequest; +import com.huaweicloud.sdk.eihealth.v1.model.DeleteCssClusterResponse; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDataJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDataJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDatabaseDataRequest; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDatabaseDataResponse; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDatabaseResourceRequest; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDatabaseResourceResponse; +import com.huaweicloud.sdk.eihealth.v1.model.DeleteDrugDatabaseRequest; +import com.huaweicloud.sdk.eihealth.v1.model.DeleteDrugDatabaseResponse; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDrugJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDrugJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDrugLigandPreviewTaskRequest; @@ -245,6 +259,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ListComputingResourceFlavorsResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListComputingResourcesRequest; import com.huaweicloud.sdk.eihealth.v1.model.ListComputingResourcesResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ListCssClusterRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ListCssClusterResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListDataJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.ListDataJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListDataRequest; @@ -255,6 +271,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ListDatabaseResourceFlavorResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListDatabaseResourceRequest; import com.huaweicloud.sdk.eihealth.v1.model.ListDatabaseResourceResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ListDrugDatabaseRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ListDrugDatabaseResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListDrugJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.ListDrugJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListDrugModelRequest; @@ -335,6 +353,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ListStudyResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListTemplateRequest; import com.huaweicloud.sdk.eihealth.v1.model.ListTemplateResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ListTermTenantCssClusterRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ListTermTenantCssClusterResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListUserRequest; import com.huaweicloud.sdk.eihealth.v1.model.ListUserResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListVendorRequest; @@ -439,6 +459,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ShowMessageEmailConfigResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowMessageReceiveConfigRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowMessageReceiveConfigResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ShowMolBatchDownloadTaskRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ShowMolBatchDownloadTaskResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowNextflowJobLogRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowNextflowJobLogResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowNextflowJobReportsRequest; @@ -483,6 +505,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ShowScaleOutPolicyResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowScheduleRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowScheduleResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ShowSearchJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ShowSearchJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowSearchTaskResultRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowSearchTaskResultResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowSynthesisJobRequest; @@ -551,6 +575,10 @@ import com.huaweicloud.sdk.eihealth.v1.model.UpdateDataPolicyResponse; import com.huaweicloud.sdk.eihealth.v1.model.UpdateDatabaseDataRequest; import com.huaweicloud.sdk.eihealth.v1.model.UpdateDatabaseDataResponse; +import com.huaweicloud.sdk.eihealth.v1.model.UpdateDrugDatabaseRequest; +import com.huaweicloud.sdk.eihealth.v1.model.UpdateDrugDatabaseResponse; +import com.huaweicloud.sdk.eihealth.v1.model.UpdateDrugJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.UpdateDrugJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.UpdateDrugModelRequest; import com.huaweicloud.sdk.eihealth.v1.model.UpdateDrugModelResponse; import com.huaweicloud.sdk.eihealth.v1.model.UpdateImageRequest; @@ -605,6 +633,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.UploadTemplateResponse; import com.huaweicloud.sdk.eihealth.v1.model.ValidateCodeRequest; import com.huaweicloud.sdk.eihealth.v1.model.ValidateCodeResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ValidateCssConnectionRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ValidateCssConnectionResponse; public class EiHealthClient { @@ -619,6 +649,35 @@ public static ClientBuilder newBuilder() { return clientBuilder; } + /** + * 数据库追加文件 + * + * 数据库追加文件 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddDrugDatabaseFileRequest 请求对象 + * @return AddDrugDatabaseFileResponse + */ + public AddDrugDatabaseFileResponse addDrugDatabaseFile(AddDrugDatabaseFileRequest request) { + return hcClient.syncInvokeHttp(request, EiHealthMeta.addDrugDatabaseFile); + } + + /** + * 数据库追加文件 + * + * 数据库追加文件 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddDrugDatabaseFileRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker addDrugDatabaseFileInvoker( + AddDrugDatabaseFileRequest request) { + return new SyncInvoker<>(request, EiHealthMeta.addDrugDatabaseFile, hcClient); + } + /** * 批量取消作业 * @@ -1480,6 +1539,35 @@ public SyncInvoker createDock return new SyncInvoker<>(request, EiHealthMeta.createDockingJob, hcClient); } + /** + * 创建数据库 + * + * 创建数据库 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateDrugDatabaseRequest 请求对象 + * @return CreateDrugDatabaseResponse + */ + public CreateDrugDatabaseResponse createDrugDatabase(CreateDrugDatabaseRequest request) { + return hcClient.syncInvokeHttp(request, EiHealthMeta.createDrugDatabase); + } + + /** + * 创建数据库 + * + * 创建数据库 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateDrugDatabaseRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createDrugDatabaseInvoker( + CreateDrugDatabaseRequest request) { + return new SyncInvoker<>(request, EiHealthMeta.createDrugDatabase, hcClient); + } + /** * 创建模型 * @@ -1651,6 +1739,35 @@ public SyncInvoker createLabelP return new SyncInvoker<>(request, EiHealthMeta.createLabelPage, hcClient); } + /** + * 创建分子或分子复合物批量下载任务 + * + * 创建分子或分子复合物批量下载任务 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateMolBatchDownloadTaskRequest 请求对象 + * @return CreateMolBatchDownloadTaskResponse + */ + public CreateMolBatchDownloadTaskResponse createMolBatchDownloadTask(CreateMolBatchDownloadTaskRequest request) { + return hcClient.syncInvokeHttp(request, EiHealthMeta.createMolBatchDownloadTask); + } + + /** + * 创建分子或分子复合物批量下载任务 + * + * 创建分子或分子复合物批量下载任务 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateMolBatchDownloadTaskRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createMolBatchDownloadTaskInvoker( + CreateMolBatchDownloadTaskRequest request) { + return new SyncInvoker<>(request, EiHealthMeta.createMolBatchDownloadTask, hcClient); + } + /** * 创建分子优化作业 * @@ -1823,6 +1940,35 @@ public SyncInvoker cr return new SyncInvoker<>(request, EiHealthMeta.createScaleOutPolicy, hcClient); } + /** + * 创建分子搜索作业 + * + * 创建分子搜索作业 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateSearchJobRequest 请求对象 + * @return CreateSearchJobResponse + */ + public CreateSearchJobResponse createSearchJob(CreateSearchJobRequest request) { + return hcClient.syncInvokeHttp(request, EiHealthMeta.createSearchJob); + } + + /** + * 创建分子搜索作业 + * + * 创建分子搜索作业 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateSearchJobRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createSearchJobInvoker( + CreateSearchJobRequest request) { + return new SyncInvoker<>(request, EiHealthMeta.createSearchJob, hcClient); + } + /** * 创建study * @@ -2223,6 +2369,35 @@ public SyncInvoker(request, EiHealthMeta.deleteDatabaseResource, hcClient); } + /** + * 删除数据库 + * + * 删除数据库 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteDrugDatabaseRequest 请求对象 + * @return DeleteDrugDatabaseResponse + */ + public DeleteDrugDatabaseResponse deleteDrugDatabase(DeleteDrugDatabaseRequest request) { + return hcClient.syncInvokeHttp(request, EiHealthMeta.deleteDrugDatabase); + } + + /** + * 删除数据库 + * + * 删除数据库 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteDrugDatabaseRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteDrugDatabaseInvoker( + DeleteDrugDatabaseRequest request) { + return new SyncInvoker<>(request, EiHealthMeta.deleteDrugDatabase, hcClient); + } + /** * 删除药物作业 * @@ -3566,6 +3741,35 @@ public SyncInvoker(request, EiHealthMeta.listDatabaseResourceFlavor, hcClient); } + /** + * 获取数据库列表 + * + * 获取数据库列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDrugDatabaseRequest 请求对象 + * @return ListDrugDatabaseResponse + */ + public ListDrugDatabaseResponse listDrugDatabase(ListDrugDatabaseRequest request) { + return hcClient.syncInvokeHttp(request, EiHealthMeta.listDrugDatabase); + } + + /** + * 获取数据库列表 + * + * 获取数据库列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDrugDatabaseRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listDrugDatabaseInvoker( + ListDrugDatabaseRequest request) { + return new SyncInvoker<>(request, EiHealthMeta.listDrugDatabase, hcClient); + } + /** * 获取药物作业列表 * @@ -5634,6 +5838,35 @@ public SyncInvoker(request, EiHealthMeta.showMessageReceiveConfig, hcClient); } + /** + * 查询分子或分子复合物批量下载任务详情 + * + * 查询分子或分子复合物批量下载任务详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowMolBatchDownloadTaskRequest 请求对象 + * @return ShowMolBatchDownloadTaskResponse + */ + public ShowMolBatchDownloadTaskResponse showMolBatchDownloadTask(ShowMolBatchDownloadTaskRequest request) { + return hcClient.syncInvokeHttp(request, EiHealthMeta.showMolBatchDownloadTask); + } + + /** + * 查询分子或分子复合物批量下载任务详情 + * + * 查询分子或分子复合物批量下载任务详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowMolBatchDownloadTaskRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showMolBatchDownloadTaskInvoker( + ShowMolBatchDownloadTaskRequest request) { + return new SyncInvoker<>(request, EiHealthMeta.showMolBatchDownloadTask, hcClient); + } + /** * 查询分子优化作业详情 * @@ -5950,6 +6183,34 @@ public SyncInvoker showScheduleInvoke return new SyncInvoker<>(request, EiHealthMeta.showSchedule, hcClient); } + /** + * 查询分子搜索作业详情 + * + * 查询分子搜索作业详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowSearchJobRequest 请求对象 + * @return ShowSearchJobResponse + */ + public ShowSearchJobResponse showSearchJob(ShowSearchJobRequest request) { + return hcClient.syncInvokeHttp(request, EiHealthMeta.showSearchJob); + } + + /** + * 查询分子搜索作业详情 + * + * 查询分子搜索作业详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowSearchJobRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showSearchJobInvoker(ShowSearchJobRequest request) { + return new SyncInvoker<>(request, EiHealthMeta.showSearchJob, hcClient); + } + /** * 查询分子合成路径规划作业详情 * @@ -6779,6 +7040,63 @@ public SyncInvoker update return new SyncInvoker<>(request, EiHealthMeta.updateDatabaseData, hcClient); } + /** + * 更新药物数据库 + * + * 更新药物数据库 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateDrugDatabaseRequest 请求对象 + * @return UpdateDrugDatabaseResponse + */ + public UpdateDrugDatabaseResponse updateDrugDatabase(UpdateDrugDatabaseRequest request) { + return hcClient.syncInvokeHttp(request, EiHealthMeta.updateDrugDatabase); + } + + /** + * 更新药物数据库 + * + * 更新药物数据库 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateDrugDatabaseRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateDrugDatabaseInvoker( + UpdateDrugDatabaseRequest request) { + return new SyncInvoker<>(request, EiHealthMeta.updateDrugDatabase, hcClient); + } + + /** + * 更新药物作业 + * + * 更新药物作业 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateDrugJobRequest 请求对象 + * @return UpdateDrugJobResponse + */ + public UpdateDrugJobResponse updateDrugJob(UpdateDrugJobRequest request) { + return hcClient.syncInvokeHttp(request, EiHealthMeta.updateDrugJob); + } + + /** + * 更新药物作业 + * + * 更新药物作业 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateDrugJobRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateDrugJobInvoker(UpdateDrugJobRequest request) { + return new SyncInvoker<>(request, EiHealthMeta.updateDrugJob, hcClient); + } + /** * 更新药物模型 * @@ -7582,6 +7900,151 @@ public SyncInvoker showCpiT return new SyncInvoker<>(request, EiHealthMeta.showCpiTaskResult, hcClient); } + /** + * 绑定CSS集群 + * + * 绑定CSS集群 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateCssClusterRequest 请求对象 + * @return CreateCssClusterResponse + */ + public CreateCssClusterResponse createCssCluster(CreateCssClusterRequest request) { + return hcClient.syncInvokeHttp(request, EiHealthMeta.createCssCluster); + } + + /** + * 绑定CSS集群 + * + * 绑定CSS集群 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateCssClusterRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createCssClusterInvoker( + CreateCssClusterRequest request) { + return new SyncInvoker<>(request, EiHealthMeta.createCssCluster, hcClient); + } + + /** + * CSS集群解绑 + * + * CSS集群解绑 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteCssClusterRequest 请求对象 + * @return DeleteCssClusterResponse + */ + public DeleteCssClusterResponse deleteCssCluster(DeleteCssClusterRequest request) { + return hcClient.syncInvokeHttp(request, EiHealthMeta.deleteCssCluster); + } + + /** + * CSS集群解绑 + * + * CSS集群解绑 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteCssClusterRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteCssClusterInvoker( + DeleteCssClusterRequest request) { + return new SyncInvoker<>(request, EiHealthMeta.deleteCssCluster, hcClient); + } + + /** + * 获取CSS集群列表 + * + * 获取CSS集群列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListCssClusterRequest 请求对象 + * @return ListCssClusterResponse + */ + public ListCssClusterResponse listCssCluster(ListCssClusterRequest request) { + return hcClient.syncInvokeHttp(request, EiHealthMeta.listCssCluster); + } + + /** + * 获取CSS集群列表 + * + * 获取CSS集群列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListCssClusterRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listCssClusterInvoker( + ListCssClusterRequest request) { + return new SyncInvoker<>(request, EiHealthMeta.listCssCluster, hcClient); + } + + /** + * 获取最终租户CSS集群列表 + * + * 获取最终租户CSS集群列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListTermTenantCssClusterRequest 请求对象 + * @return ListTermTenantCssClusterResponse + */ + public ListTermTenantCssClusterResponse listTermTenantCssCluster(ListTermTenantCssClusterRequest request) { + return hcClient.syncInvokeHttp(request, EiHealthMeta.listTermTenantCssCluster); + } + + /** + * 获取最终租户CSS集群列表 + * + * 获取最终租户CSS集群列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListTermTenantCssClusterRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listTermTenantCssClusterInvoker( + ListTermTenantCssClusterRequest request) { + return new SyncInvoker<>(request, EiHealthMeta.listTermTenantCssCluster, hcClient); + } + + /** + * 测试CSS集群连接 + * + * 测试CSS集群连接 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ValidateCssConnectionRequest 请求对象 + * @return ValidateCssConnectionResponse + */ + public ValidateCssConnectionResponse validateCssConnection(ValidateCssConnectionRequest request) { + return hcClient.syncInvokeHttp(request, EiHealthMeta.validateCssConnection); + } + + /** + * 测试CSS集群连接 + * + * 测试CSS集群连接 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ValidateCssConnectionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker validateCssConnectionInvoker( + ValidateCssConnectionRequest request) { + return new SyncInvoker<>(request, EiHealthMeta.validateCssConnection, hcClient); + } + /** * 新建自定义属性任务接口 * diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/EiHealthMeta.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/EiHealthMeta.java index 2f32d0a023..90570887fb 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/EiHealthMeta.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/EiHealthMeta.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.eihealth.v1.model.AddDrugDatabaseFileReq; +import com.huaweicloud.sdk.eihealth.v1.model.AddDrugDatabaseFileRequest; +import com.huaweicloud.sdk.eihealth.v1.model.AddDrugDatabaseFileResponse; import com.huaweicloud.sdk.eihealth.v1.model.AdmetRequest; import com.huaweicloud.sdk.eihealth.v1.model.AppReq; import com.huaweicloud.sdk.eihealth.v1.model.BatchCancelJobRequest; @@ -87,6 +90,9 @@ import com.huaweicloud.sdk.eihealth.v1.model.CreateComputingResourceResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateCpiTaskRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateCpiTaskResponse; +import com.huaweicloud.sdk.eihealth.v1.model.CreateCssClusterReq; +import com.huaweicloud.sdk.eihealth.v1.model.CreateCssClusterRequest; +import com.huaweicloud.sdk.eihealth.v1.model.CreateCssClusterResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateCustomPropsTaskRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateCustomPropsTaskResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateDataReq; @@ -95,12 +101,15 @@ import com.huaweicloud.sdk.eihealth.v1.model.CreateDatabaseDataRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateDatabaseDataResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateDatabaseReq; +import com.huaweicloud.sdk.eihealth.v1.model.CreateDatabaseReq2; import com.huaweicloud.sdk.eihealth.v1.model.CreateDatabaseResourceReq; import com.huaweicloud.sdk.eihealth.v1.model.CreateDatabaseResourceRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateDatabaseResourceResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateDockJobReq; import com.huaweicloud.sdk.eihealth.v1.model.CreateDockingJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateDockingJobResponse; +import com.huaweicloud.sdk.eihealth.v1.model.CreateDrugDatabaseRequest; +import com.huaweicloud.sdk.eihealth.v1.model.CreateDrugDatabaseResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateDrugLigandInteraction2dSvgReq; import com.huaweicloud.sdk.eihealth.v1.model.CreateDrugLigandInteraction2dSvgRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateDrugLigandInteraction2dSvgResponse; @@ -135,6 +144,9 @@ import com.huaweicloud.sdk.eihealth.v1.model.CreateLigandSimilarityGraphTaskReq; import com.huaweicloud.sdk.eihealth.v1.model.CreateLigandSvgReq; import com.huaweicloud.sdk.eihealth.v1.model.CreateModelReq; +import com.huaweicloud.sdk.eihealth.v1.model.CreateMolBatchDownloadTaskReq; +import com.huaweicloud.sdk.eihealth.v1.model.CreateMolBatchDownloadTaskRequest; +import com.huaweicloud.sdk.eihealth.v1.model.CreateMolBatchDownloadTaskResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateNextflowJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateNextflowJobRequestBody; import com.huaweicloud.sdk.eihealth.v1.model.CreateNextflowJobResponse; @@ -164,6 +176,9 @@ import com.huaweicloud.sdk.eihealth.v1.model.CreateScaleOutPolicyReq; import com.huaweicloud.sdk.eihealth.v1.model.CreateScaleOutPolicyRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateScaleOutPolicyResponse; +import com.huaweicloud.sdk.eihealth.v1.model.CreateSearchJobReq; +import com.huaweicloud.sdk.eihealth.v1.model.CreateSearchJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.CreateSearchJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateSearchTaskRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateSearchTaskResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateStudyJobReq; @@ -197,12 +212,16 @@ import com.huaweicloud.sdk.eihealth.v1.model.DeleteBackupResponse; import com.huaweicloud.sdk.eihealth.v1.model.DeleteComputingResourceRequest; import com.huaweicloud.sdk.eihealth.v1.model.DeleteComputingResourceResponse; +import com.huaweicloud.sdk.eihealth.v1.model.DeleteCssClusterRequest; +import com.huaweicloud.sdk.eihealth.v1.model.DeleteCssClusterResponse; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDataJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDataJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDatabaseDataRequest; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDatabaseDataResponse; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDatabaseResourceRequest; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDatabaseResourceResponse; +import com.huaweicloud.sdk.eihealth.v1.model.DeleteDrugDatabaseRequest; +import com.huaweicloud.sdk.eihealth.v1.model.DeleteDrugDatabaseResponse; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDrugJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDrugJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.DeleteDrugLigandPreviewTaskRequest; @@ -317,6 +336,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ListComputingResourceFlavorsResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListComputingResourcesRequest; import com.huaweicloud.sdk.eihealth.v1.model.ListComputingResourcesResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ListCssClusterRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ListCssClusterResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListDataJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.ListDataJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListDataRequest; @@ -327,6 +348,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ListDatabaseResourceFlavorResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListDatabaseResourceRequest; import com.huaweicloud.sdk.eihealth.v1.model.ListDatabaseResourceResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ListDrugDatabaseRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ListDrugDatabaseResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListDrugJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.ListDrugJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListDrugModelRequest; @@ -407,6 +430,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ListStudyResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListTemplateRequest; import com.huaweicloud.sdk.eihealth.v1.model.ListTemplateResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ListTermTenantCssClusterRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ListTermTenantCssClusterResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListUserRequest; import com.huaweicloud.sdk.eihealth.v1.model.ListUserResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListVendorRequest; @@ -535,6 +560,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ShowMessageEmailConfigResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowMessageReceiveConfigRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowMessageReceiveConfigResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ShowMolBatchDownloadTaskRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ShowMolBatchDownloadTaskResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowNextflowJobLogRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowNextflowJobLogResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowNextflowJobReportsRequest; @@ -579,6 +606,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ShowScaleOutPolicyResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowScheduleRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowScheduleResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ShowSearchJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ShowSearchJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowSearchTaskResultRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowSearchTaskResultResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowSynthesisJobRequest; @@ -657,6 +686,12 @@ import com.huaweicloud.sdk.eihealth.v1.model.UpdateDataPolicyResponse; import com.huaweicloud.sdk.eihealth.v1.model.UpdateDatabaseDataRequest; import com.huaweicloud.sdk.eihealth.v1.model.UpdateDatabaseDataResponse; +import com.huaweicloud.sdk.eihealth.v1.model.UpdateDrugDatabaseReq; +import com.huaweicloud.sdk.eihealth.v1.model.UpdateDrugDatabaseRequest; +import com.huaweicloud.sdk.eihealth.v1.model.UpdateDrugDatabaseResponse; +import com.huaweicloud.sdk.eihealth.v1.model.UpdateDrugJobReq; +import com.huaweicloud.sdk.eihealth.v1.model.UpdateDrugJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.UpdateDrugJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.UpdateDrugModelReq; import com.huaweicloud.sdk.eihealth.v1.model.UpdateDrugModelRequest; import com.huaweicloud.sdk.eihealth.v1.model.UpdateDrugModelResponse; @@ -732,6 +767,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.UserIdRsp; import com.huaweicloud.sdk.eihealth.v1.model.ValidateCodeRequest; import com.huaweicloud.sdk.eihealth.v1.model.ValidateCodeResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ValidateCssConnectionRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ValidateCssConnectionResponse; import com.huaweicloud.sdk.eihealth.v1.model.WorkflowDto; import java.util.List; @@ -740,6 +777,35 @@ @SuppressWarnings("unchecked") public class EiHealthMeta { + public static final HttpRequestDef addDrugDatabaseFile = + genForAddDrugDatabaseFile(); + + private static HttpRequestDef genForAddDrugDatabaseFile() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.PUT, AddDrugDatabaseFileRequest.class, AddDrugDatabaseFileResponse.class) + .withName("AddDrugDatabaseFile") + .withUri("/v1/{project_id}/drug/databases/{database_id}/data") + .withContentType("application/json"); + + // requests + builder.withRequestField("database_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(AddDrugDatabaseFileRequest::getDatabaseId, + AddDrugDatabaseFileRequest::setDatabaseId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(AddDrugDatabaseFileReq.class), + f -> f.withMarshaller(AddDrugDatabaseFileRequest::getBody, AddDrugDatabaseFileRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef batchCancelJob = genForBatchCancelJob(); @@ -1609,6 +1675,29 @@ private static HttpRequestDef return builder.build(); } + public static final HttpRequestDef createDrugDatabase = + genForCreateDrugDatabase(); + + private static HttpRequestDef genForCreateDrugDatabase() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, CreateDrugDatabaseRequest.class, CreateDrugDatabaseResponse.class) + .withName("CreateDrugDatabase") + .withUri("/v1/{project_id}/drug/databases") + .withContentType("application/json"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateDatabaseReq2.class), + f -> f.withMarshaller(CreateDrugDatabaseRequest::getBody, CreateDrugDatabaseRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef createDrugModel = genForCreateDrugModel(); @@ -1767,6 +1856,39 @@ private static HttpRequestDef g return builder.build(); } + public static final HttpRequestDef createMolBatchDownloadTask = + genForCreateMolBatchDownloadTask(); + + private static HttpRequestDef genForCreateMolBatchDownloadTask() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + CreateMolBatchDownloadTaskRequest.class, + CreateMolBatchDownloadTaskResponse.class) + .withName("CreateMolBatchDownloadTask") + .withUri("/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-common/toolkit/batch-download") + .withContentType("application/json"); + + // requests + builder.withRequestField("eihealth_project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateMolBatchDownloadTaskRequest::getEihealthProjectId, + CreateMolBatchDownloadTaskRequest::setEihealthProjectId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateMolBatchDownloadTaskReq.class), + f -> f.withMarshaller(CreateMolBatchDownloadTaskRequest::getBody, + CreateMolBatchDownloadTaskRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef createOptmJob = genForCreateOptmJob(); @@ -1929,6 +2051,35 @@ private static HttpRequestDef createSearchJob = + genForCreateSearchJob(); + + private static HttpRequestDef genForCreateSearchJob() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, CreateSearchJobRequest.class, CreateSearchJobResponse.class) + .withName("CreateSearchJob") + .withUri("/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/search") + .withContentType("application/json"); + + // requests + builder.withRequestField("eihealth_project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateSearchJobRequest::getEihealthProjectId, + CreateSearchJobRequest::setEihealthProjectId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateSearchJobReq.class), + f -> f.withMarshaller(CreateSearchJobRequest::getBody, CreateSearchJobRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef createStudy = genForCreateStudy(); private static HttpRequestDef genForCreateStudy() { @@ -2321,6 +2472,29 @@ private static HttpRequestDef deleteDrugDatabase = + genForDeleteDrugDatabase(); + + private static HttpRequestDef genForDeleteDrugDatabase() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.DELETE, DeleteDrugDatabaseRequest.class, DeleteDrugDatabaseResponse.class) + .withName("DeleteDrugDatabase") + .withUri("/v1/{project_id}/drug/databases/{database_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("database_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteDrugDatabaseRequest::getDatabaseId, DeleteDrugDatabaseRequest::setDatabaseId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef deleteDrugJob = genForDeleteDrugJob(); @@ -3772,6 +3946,54 @@ private static HttpRequestDef listDrugDatabase = + genForListDrugDatabase(); + + private static HttpRequestDef genForListDrugDatabase() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListDrugDatabaseRequest.class, ListDrugDatabaseResponse.class) + .withName("ListDrugDatabase") + .withUri("/v1/{project_id}/drug/databases") + .withContentType("application/json"); + + // requests + builder.withRequestField("search_key", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDrugDatabaseRequest::getSearchKey, ListDrugDatabaseRequest::setSearchKey)); + builder.withRequestField("type", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDrugDatabaseRequest::getType, ListDrugDatabaseRequest::setType)); + builder.withRequestField("sort_key", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDrugDatabaseRequest::getSortKey, ListDrugDatabaseRequest::setSortKey)); + builder.withRequestField("sort_dir", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDrugDatabaseRequest::getSortDir, ListDrugDatabaseRequest::setSortDir)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListDrugDatabaseRequest::getLimit, ListDrugDatabaseRequest::setLimit)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListDrugDatabaseRequest::getOffset, ListDrugDatabaseRequest::setOffset)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listDrugJob = genForListDrugJob(); private static HttpRequestDef genForListDrugJob() { @@ -5799,6 +6021,38 @@ private static HttpRequestDef showMolBatchDownloadTask = + genForShowMolBatchDownloadTask(); + + private static HttpRequestDef genForShowMolBatchDownloadTask() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, ShowMolBatchDownloadTaskRequest.class, ShowMolBatchDownloadTaskResponse.class) + .withName("ShowMolBatchDownloadTask") + .withUri( + "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-common/toolkit/batch-download/{task_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("eihealth_project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowMolBatchDownloadTaskRequest::getEihealthProjectId, + ShowMolBatchDownloadTaskRequest::setEihealthProjectId)); + builder.withRequestField("task_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowMolBatchDownloadTaskRequest::getTaskId, + ShowMolBatchDownloadTaskRequest::setTaskId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showOptmJob = genForShowOptmJob(); private static HttpRequestDef genForShowOptmJob() { @@ -6128,6 +6382,35 @@ private static HttpRequestDef genForS return builder.build(); } + public static final HttpRequestDef showSearchJob = + genForShowSearchJob(); + + private static HttpRequestDef genForShowSearchJob() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowSearchJobRequest.class, ShowSearchJobResponse.class) + .withName("ShowSearchJob") + .withUri("/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/search/{job_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("eihealth_project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowSearchJobRequest::getEihealthProjectId, + ShowSearchJobRequest::setEihealthProjectId)); + builder.withRequestField("job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowSearchJobRequest::getJobId, ShowSearchJobRequest::setJobId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showSynthesisJob = genForShowSynthesisJob(); @@ -7049,6 +7332,68 @@ private static HttpRequestDef updateDrugDatabase = + genForUpdateDrugDatabase(); + + private static HttpRequestDef genForUpdateDrugDatabase() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.PUT, UpdateDrugDatabaseRequest.class, UpdateDrugDatabaseResponse.class) + .withName("UpdateDrugDatabase") + .withUri("/v1/{project_id}/drug/databases/{database_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("database_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateDrugDatabaseRequest::getDatabaseId, UpdateDrugDatabaseRequest::setDatabaseId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateDrugDatabaseReq.class), + f -> f.withMarshaller(UpdateDrugDatabaseRequest::getBody, UpdateDrugDatabaseRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef updateDrugJob = + genForUpdateDrugJob(); + + private static HttpRequestDef genForUpdateDrugJob() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.PUT, UpdateDrugJobRequest.class, UpdateDrugJobResponse.class) + .withName("UpdateDrugJob") + .withUri("/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/{job_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("eihealth_project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateDrugJobRequest::getEihealthProjectId, + UpdateDrugJobRequest::setEihealthProjectId)); + builder.withRequestField("job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateDrugJobRequest::getJobId, UpdateDrugJobRequest::setJobId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateDrugJobReq.class), + f -> f.withMarshaller(UpdateDrugJobRequest::getBody, UpdateDrugJobRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef updateDrugModel = genForUpdateDrugModel(); @@ -7677,36 +8022,6 @@ private static HttpRequestDef genForUploa FieldExistence.NON_NULL_NON_EMPTY, TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(UploadDataRequest::getEihealthProjectId, UploadDataRequest::setEihealthProjectId)); - builder.withRequestField("target_folder", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(UploadDataRequest::getTargetFolder, UploadDataRequest::setTargetFolder)); - builder.withRequestField("part_number", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Integer.class), - f -> f.withMarshaller(UploadDataRequest::getPartNumber, UploadDataRequest::setPartNumber)); - builder.withRequestField("total_part", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Integer.class), - f -> f.withMarshaller(UploadDataRequest::getTotalPart, UploadDataRequest::setTotalPart)); - builder.withRequestField("multipart_id", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(UploadDataRequest::getMultipartId, UploadDataRequest::setMultipartId)); - builder.withRequestField("file_name", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(UploadDataRequest::getFileName, UploadDataRequest::setFileName)); - builder.withRequestField("md5", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(UploadDataRequest::getMd5, UploadDataRequest::setMd5)); builder.withRequestField("body", LocationType.Body, FieldExistence.NON_NULL_NON_EMPTY, @@ -7854,6 +8169,134 @@ private static HttpRequestDef createCssCluster = + genForCreateCssCluster(); + + private static HttpRequestDef genForCreateCssCluster() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, CreateCssClusterRequest.class, CreateCssClusterResponse.class) + .withName("CreateCssCluster") + .withUri("/v1/{project_id}/drug/css-clusters") + .withContentType("application/json"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateCssClusterReq.class), + f -> f.withMarshaller(CreateCssClusterRequest::getBody, CreateCssClusterRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef deleteCssCluster = + genForDeleteCssCluster(); + + private static HttpRequestDef genForDeleteCssCluster() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.DELETE, DeleteCssClusterRequest.class, DeleteCssClusterResponse.class) + .withName("DeleteCssCluster") + .withUri("/v1/{project_id}/drug/css-clusters/{css_cluster_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("css_cluster_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteCssClusterRequest::getCssClusterId, DeleteCssClusterRequest::setCssClusterId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listCssCluster = + genForListCssCluster(); + + private static HttpRequestDef genForListCssCluster() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListCssClusterRequest.class, ListCssClusterResponse.class) + .withName("ListCssCluster") + .withUri("/v1/{project_id}/drug/css-clusters") + .withContentType("application/json"); + + // requests + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListCssClusterRequest::getLimit, ListCssClusterRequest::setLimit)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListCssClusterRequest::getOffset, ListCssClusterRequest::setOffset)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listTermTenantCssCluster = + genForListTermTenantCssCluster(); + + private static HttpRequestDef genForListTermTenantCssCluster() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, ListTermTenantCssClusterRequest.class, ListTermTenantCssClusterResponse.class) + .withName("ListTermTenantCssCluster") + .withUri("/v1/{project_id}/css/clusters") + .withContentType("application/json"); + + // requests + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListTermTenantCssClusterRequest::getLimit, + ListTermTenantCssClusterRequest::setLimit)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListTermTenantCssClusterRequest::getOffset, + ListTermTenantCssClusterRequest::setOffset)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef validateCssConnection = + genForValidateCssConnection(); + + private static HttpRequestDef genForValidateCssConnection() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, ValidateCssConnectionRequest.class, ValidateCssConnectionResponse.class) + .withName("ValidateCssConnection") + .withUri("/v1/{project_id}/drug/css-clusters/connection") + .withContentType("application/json"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateCssClusterReq.class), + f -> f.withMarshaller(ValidateCssConnectionRequest::getBody, ValidateCssConnectionRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef createCustomPropsTask = genForCreateCustomPropsTask(); diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/AddDrugDatabaseFileReq.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/AddDrugDatabaseFileReq.java new file mode 100644 index 0000000000..f4c4cb3602 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/AddDrugDatabaseFileReq.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.eihealth.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 AddDrugDatabaseFileReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "file") + + private DatabaseFile file; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + public AddDrugDatabaseFileReq withFile(DatabaseFile file) { + this.file = file; + return this; + } + + public AddDrugDatabaseFileReq withFile(Consumer fileSetter) { + if (this.file == null) { + this.file = new DatabaseFile(); + fileSetter.accept(this.file); + } + + return this; + } + + /** + * Get file + * @return file + */ + public DatabaseFile getFile() { + return file; + } + + public void setFile(DatabaseFile file) { + this.file = file; + } + + public AddDrugDatabaseFileReq withDescription(String description) { + this.description = description; + return this; + } + + /** + * 数据库描述 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AddDrugDatabaseFileReq that = (AddDrugDatabaseFileReq) obj; + return Objects.equals(this.file, that.file) && Objects.equals(this.description, that.description); + } + + @Override + public int hashCode() { + return Objects.hash(file, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddDrugDatabaseFileReq {\n"); + sb.append(" file: ").append(toIndentedString(file)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/AddDrugDatabaseFileRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/AddDrugDatabaseFileRequest.java new file mode 100644 index 0000000000..5f2f87714c --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/AddDrugDatabaseFileRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.eihealth.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 AddDrugDatabaseFileRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "database_id") + + private String databaseId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private AddDrugDatabaseFileReq body; + + public AddDrugDatabaseFileRequest withDatabaseId(String databaseId) { + this.databaseId = databaseId; + return this; + } + + /** + * 数据库id + * @return databaseId + */ + public String getDatabaseId() { + return databaseId; + } + + public void setDatabaseId(String databaseId) { + this.databaseId = databaseId; + } + + public AddDrugDatabaseFileRequest withBody(AddDrugDatabaseFileReq body) { + this.body = body; + return this; + } + + public AddDrugDatabaseFileRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new AddDrugDatabaseFileReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public AddDrugDatabaseFileReq getBody() { + return body; + } + + public void setBody(AddDrugDatabaseFileReq 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; + } + AddDrugDatabaseFileRequest that = (AddDrugDatabaseFileRequest) obj; + return Objects.equals(this.databaseId, that.databaseId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(databaseId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddDrugDatabaseFileRequest {\n"); + sb.append(" databaseId: ").append(toIndentedString(databaseId)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/AddDrugDatabaseFileResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/AddDrugDatabaseFileResponse.java new file mode 100644 index 0000000000..1af5a06e8e --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/AddDrugDatabaseFileResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class AddDrugDatabaseFileResponse 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 AddDrugDatabaseFileResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/BindSiteDto.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/BindSiteDto.java index 68c3f9cf35..c8768a7892 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/BindSiteDto.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/BindSiteDto.java @@ -11,6 +11,11 @@ */ public class BindSiteDto { + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "receptor") @@ -41,6 +46,23 @@ public class BindSiteDto { private Boolean addHydrogen; + public BindSiteDto withName(String name) { + this.name = name; + return this; + } + + /** + * 靶点名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + public BindSiteDto withReceptor(ReceptorDrugFile receptor) { this.receptor = receptor; return this; @@ -170,21 +192,23 @@ public boolean equals(java.lang.Object obj) { return false; } BindSiteDto that = (BindSiteDto) obj; - return Objects.equals(this.receptor, that.receptor) && Objects.equals(this.boundingBox, that.boundingBox) - && Objects.equals(this.removeIon, that.removeIon) && Objects.equals(this.removeWater, that.removeWater) + return Objects.equals(this.name, that.name) && Objects.equals(this.receptor, that.receptor) + && Objects.equals(this.boundingBox, that.boundingBox) && Objects.equals(this.removeIon, that.removeIon) + && Objects.equals(this.removeWater, that.removeWater) && Objects.equals(this.removeLigand, that.removeLigand) && Objects.equals(this.addHydrogen, that.addHydrogen); } @Override public int hashCode() { - return Objects.hash(receptor, boundingBox, removeIon, removeWater, removeLigand, addHydrogen); + return Objects.hash(name, receptor, boundingBox, removeIon, removeWater, removeLigand, addHydrogen); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BindSiteDto {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" receptor: ").append(toIndentedString(receptor)).append("\n"); sb.append(" boundingBox: ").append(toIndentedString(boundingBox)).append("\n"); sb.append(" removeIon: ").append(toIndentedString(removeIon)).append("\n"); diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateCssClusterReq.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateCssClusterReq.java new file mode 100644 index 0000000000..535b2c0584 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateCssClusterReq.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 绑定CSS集群请求体 + */ +public class CreateCssClusterReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "css_id") + + private String cssId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "user_name") + + private String userName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "user_pwd") + + private String userPwd; + + public CreateCssClusterReq withCssId(String cssId) { + this.cssId = cssId; + return this; + } + + /** + * 集群id + * @return cssId + */ + public String getCssId() { + return cssId; + } + + public void setCssId(String cssId) { + this.cssId = cssId; + } + + public CreateCssClusterReq withUserName(String userName) { + this.userName = userName; + return this; + } + + /** + * 集群用户账号 + * @return userName + */ + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public CreateCssClusterReq withUserPwd(String userPwd) { + this.userPwd = userPwd; + return this; + } + + /** + * 集群用户密码,长度限制为[8,32] + * @return userPwd + */ + public String getUserPwd() { + return userPwd; + } + + public void setUserPwd(String userPwd) { + this.userPwd = userPwd; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateCssClusterReq that = (CreateCssClusterReq) obj; + return Objects.equals(this.cssId, that.cssId) && Objects.equals(this.userName, that.userName) + && Objects.equals(this.userPwd, that.userPwd); + } + + @Override + public int hashCode() { + return Objects.hash(cssId, userName, userPwd); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateCssClusterReq {\n"); + sb.append(" cssId: ").append(toIndentedString(cssId)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append(" userPwd: ").append(toIndentedString(userPwd)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateCssClusterRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateCssClusterRequest.java new file mode 100644 index 0000000000..05fcae892e --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateCssClusterRequest.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.eihealth.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 CreateCssClusterRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateCssClusterReq body; + + public CreateCssClusterRequest withBody(CreateCssClusterReq body) { + this.body = body; + return this; + } + + public CreateCssClusterRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateCssClusterReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateCssClusterReq getBody() { + return body; + } + + public void setBody(CreateCssClusterReq 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; + } + CreateCssClusterRequest that = (CreateCssClusterRequest) 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 CreateCssClusterRequest {\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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateCssClusterResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateCssClusterResponse.java new file mode 100644 index 0000000000..e35d9aa84c --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateCssClusterResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.eihealth.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 CreateCssClusterResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + public CreateCssClusterResponse withId(String id) { + this.id = id; + return this; + } + + /** + * css集群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; + } + CreateCssClusterResponse that = (CreateCssClusterResponse) obj; + return Objects.equals(this.id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateCssClusterResponse {\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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateDatabaseReq2.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateDatabaseReq2.java new file mode 100644 index 0000000000..c545bb78d2 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateDatabaseReq2.java @@ -0,0 +1,217 @@ +package com.huaweicloud.sdk.eihealth.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 CreateDatabaseReq2 { + + @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 = "css_id") + + private String cssId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "file") + + private DatabaseFile file; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "columns") + + private List columns = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "shareable") + + private Boolean shareable; + + public CreateDatabaseReq2 withName(String name) { + this.name = name; + return this; + } + + /** + * 数据库名称,长度为5-32个字符,首位需以小写英文字母开头,仅可以使用小写字母、数字、下划线“_”和中划线“-” + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateDatabaseReq2 withDescription(String description) { + this.description = description; + return this; + } + + /** + * 数据库描述 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public CreateDatabaseReq2 withCssId(String cssId) { + this.cssId = cssId; + return this; + } + + /** + * css集群id + * @return cssId + */ + public String getCssId() { + return cssId; + } + + public void setCssId(String cssId) { + this.cssId = cssId; + } + + public CreateDatabaseReq2 withFile(DatabaseFile file) { + this.file = file; + return this; + } + + public CreateDatabaseReq2 withFile(Consumer fileSetter) { + if (this.file == null) { + this.file = new DatabaseFile(); + fileSetter.accept(this.file); + } + + return this; + } + + /** + * Get file + * @return file + */ + public DatabaseFile getFile() { + return file; + } + + public void setFile(DatabaseFile file) { + this.file = file; + } + + public CreateDatabaseReq2 withColumns(List columns) { + this.columns = columns; + return this; + } + + public CreateDatabaseReq2 addColumnsItem(String columnsItem) { + if (this.columns == null) { + this.columns = new ArrayList<>(); + } + this.columns.add(columnsItem); + return this; + } + + public CreateDatabaseReq2 withColumns(Consumer> columnsSetter) { + if (this.columns == null) { + this.columns = new ArrayList<>(); + } + columnsSetter.accept(this.columns); + return this; + } + + /** + * 数据文件列名 + * @return columns + */ + public List getColumns() { + return columns; + } + + public void setColumns(List columns) { + this.columns = columns; + } + + public CreateDatabaseReq2 withShareable(Boolean shareable) { + this.shareable = shareable; + return this; + } + + /** + * 是否打开组织共享 + * @return shareable + */ + public Boolean getShareable() { + return shareable; + } + + public void setShareable(Boolean shareable) { + this.shareable = shareable; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateDatabaseReq2 that = (CreateDatabaseReq2) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) + && Objects.equals(this.cssId, that.cssId) && Objects.equals(this.file, that.file) + && Objects.equals(this.columns, that.columns) && Objects.equals(this.shareable, that.shareable); + } + + @Override + public int hashCode() { + return Objects.hash(name, description, cssId, file, columns, shareable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateDatabaseReq2 {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" cssId: ").append(toIndentedString(cssId)).append("\n"); + sb.append(" file: ").append(toIndentedString(file)).append("\n"); + sb.append(" columns: ").append(toIndentedString(columns)).append("\n"); + sb.append(" shareable: ").append(toIndentedString(shareable)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateDrugDatabaseRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateDrugDatabaseRequest.java new file mode 100644 index 0000000000..06f21f5ddc --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateDrugDatabaseRequest.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.eihealth.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 CreateDrugDatabaseRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateDatabaseReq2 body; + + public CreateDrugDatabaseRequest withBody(CreateDatabaseReq2 body) { + this.body = body; + return this; + } + + public CreateDrugDatabaseRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateDatabaseReq2(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateDatabaseReq2 getBody() { + return body; + } + + public void setBody(CreateDatabaseReq2 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; + } + CreateDrugDatabaseRequest that = (CreateDrugDatabaseRequest) 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 CreateDrugDatabaseRequest {\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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateDrugDatabaseResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateDrugDatabaseResponse.java new file mode 100644 index 0000000000..9f7bd23b16 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateDrugDatabaseResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.eihealth.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 CreateDrugDatabaseResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + public CreateDrugDatabaseResponse 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; + } + CreateDrugDatabaseResponse that = (CreateDrugDatabaseResponse) obj; + return Objects.equals(this.id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateDrugDatabaseResponse {\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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateMolBatchDownloadTaskReq.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateMolBatchDownloadTaskReq.java new file mode 100644 index 0000000000..a5b69be7f7 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateMolBatchDownloadTaskReq.java @@ -0,0 +1,161 @@ +package com.huaweicloud.sdk.eihealth.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 CreateMolBatchDownloadTaskReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_result_url") + + private String jobResultUrl; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "mode") + + private String mode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "selected") + + private List selected = null; + + public CreateMolBatchDownloadTaskReq withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 作业ID + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public CreateMolBatchDownloadTaskReq withJobResultUrl(String jobResultUrl) { + this.jobResultUrl = jobResultUrl; + return this; + } + + /** + * 作业结果文件url + * @return jobResultUrl + */ + public String getJobResultUrl() { + return jobResultUrl; + } + + public void setJobResultUrl(String jobResultUrl) { + this.jobResultUrl = jobResultUrl; + } + + public CreateMolBatchDownloadTaskReq withMode(String mode) { + this.mode = mode; + return this; + } + + /** + * 下载类型:MOL(小分子)、COMPLEX(复合物) + * @return mode + */ + public String getMode() { + return mode; + } + + public void setMode(String mode) { + this.mode = mode; + } + + public CreateMolBatchDownloadTaskReq withSelected(List selected) { + this.selected = selected; + return this; + } + + public CreateMolBatchDownloadTaskReq addSelectedItem(Integer selectedItem) { + if (this.selected == null) { + this.selected = new ArrayList<>(); + } + this.selected.add(selectedItem); + return this; + } + + public CreateMolBatchDownloadTaskReq withSelected(Consumer> selectedSetter) { + if (this.selected == null) { + this.selected = new ArrayList<>(); + } + selectedSetter.accept(this.selected); + return this; + } + + /** + * 选中下载的分子下标 + * @return selected + */ + public List getSelected() { + return selected; + } + + public void setSelected(List selected) { + this.selected = selected; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateMolBatchDownloadTaskReq that = (CreateMolBatchDownloadTaskReq) obj; + return Objects.equals(this.jobId, that.jobId) && Objects.equals(this.jobResultUrl, that.jobResultUrl) + && Objects.equals(this.mode, that.mode) && Objects.equals(this.selected, that.selected); + } + + @Override + public int hashCode() { + return Objects.hash(jobId, jobResultUrl, mode, selected); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateMolBatchDownloadTaskReq {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" jobResultUrl: ").append(toIndentedString(jobResultUrl)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append(" selected: ").append(toIndentedString(selected)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateMolBatchDownloadTaskRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateMolBatchDownloadTaskRequest.java new file mode 100644 index 0000000000..08d90d8eb3 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateMolBatchDownloadTaskRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.eihealth.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 CreateMolBatchDownloadTaskRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "eihealth_project_id") + + private String eihealthProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateMolBatchDownloadTaskReq body; + + public CreateMolBatchDownloadTaskRequest withEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + return this; + } + + /** + * 平台项目ID。 + * @return eihealthProjectId + */ + public String getEihealthProjectId() { + return eihealthProjectId; + } + + public void setEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + } + + public CreateMolBatchDownloadTaskRequest withBody(CreateMolBatchDownloadTaskReq body) { + this.body = body; + return this; + } + + public CreateMolBatchDownloadTaskRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateMolBatchDownloadTaskReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateMolBatchDownloadTaskReq getBody() { + return body; + } + + public void setBody(CreateMolBatchDownloadTaskReq 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; + } + CreateMolBatchDownloadTaskRequest that = (CreateMolBatchDownloadTaskRequest) obj; + return Objects.equals(this.eihealthProjectId, that.eihealthProjectId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(eihealthProjectId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateMolBatchDownloadTaskRequest {\n"); + sb.append(" eihealthProjectId: ").append(toIndentedString(eihealthProjectId)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateMolBatchDownloadTaskResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateMolBatchDownloadTaskResponse.java new file mode 100644 index 0000000000..cab989d4cd --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateMolBatchDownloadTaskResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.eihealth.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 CreateMolBatchDownloadTaskResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + public CreateMolBatchDownloadTaskResponse 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; + } + CreateMolBatchDownloadTaskResponse that = (CreateMolBatchDownloadTaskResponse) obj; + return Objects.equals(this.id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateMolBatchDownloadTaskResponse {\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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateOptmJobReq.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateOptmJobReq.java index b81d32e6c1..58da30df6d 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateOptmJobReq.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateOptmJobReq.java @@ -33,6 +33,11 @@ public class CreateOptmJobReq { private BindSiteDto bindingSite; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "binding_sites") + + private List bindingSites = null; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "weak_constraints") @@ -153,6 +158,39 @@ public void setBindingSite(BindSiteDto bindingSite) { this.bindingSite = bindingSite; } + public CreateOptmJobReq withBindingSites(List bindingSites) { + this.bindingSites = bindingSites; + return this; + } + + public CreateOptmJobReq addBindingSitesItem(BindSiteDto bindingSitesItem) { + if (this.bindingSites == null) { + this.bindingSites = new ArrayList<>(); + } + this.bindingSites.add(bindingSitesItem); + return this; + } + + public CreateOptmJobReq withBindingSites(Consumer> bindingSitesSetter) { + if (this.bindingSites == null) { + this.bindingSites = new ArrayList<>(); + } + bindingSitesSetter.accept(this.bindingSites); + return this; + } + + /** + * 受体列表和受体是二选一的关系,受体列表优先级最高 + * @return bindingSites + */ + public List getBindingSites() { + return bindingSites; + } + + public void setBindingSites(List bindingSites) { + this.bindingSites = bindingSites; + } + public CreateOptmJobReq withWeakConstraints(List weakConstraints) { this.weakConstraints = weakConstraints; return this; @@ -302,6 +340,7 @@ public boolean equals(java.lang.Object obj) { return Objects.equals(this.basicInfo, that.basicInfo) && Objects.equals(this.smiles, that.smiles) && Objects.equals(this.moleculeFile, that.moleculeFile) && Objects.equals(this.bindingSite, that.bindingSite) + && Objects.equals(this.bindingSites, that.bindingSites) && Objects.equals(this.weakConstraints, that.weakConstraints) && Objects.equals(this.strongConstraints, that.strongConstraints) && Objects.equals(this.samplerMixinWeight, that.samplerMixinWeight) @@ -314,6 +353,7 @@ public int hashCode() { smiles, moleculeFile, bindingSite, + bindingSites, weakConstraints, strongConstraints, samplerMixinWeight, @@ -329,6 +369,7 @@ public String toString() { sb.append(" smiles: ").append(toIndentedString(smiles)).append("\n"); sb.append(" moleculeFile: ").append(toIndentedString(moleculeFile)).append("\n"); sb.append(" bindingSite: ").append(toIndentedString(bindingSite)).append("\n"); + sb.append(" bindingSites: ").append(toIndentedString(bindingSites)).append("\n"); sb.append(" weakConstraints: ").append(toIndentedString(weakConstraints)).append("\n"); sb.append(" strongConstraints: ").append(toIndentedString(strongConstraints)).append("\n"); sb.append(" samplerMixinWeight: ").append(toIndentedString(samplerMixinWeight)).append("\n"); diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateSearchJobReq.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateSearchJobReq.java new file mode 100644 index 0000000000..e182f33ac8 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateSearchJobReq.java @@ -0,0 +1,299 @@ +package com.huaweicloud.sdk.eihealth.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; + +/** + * CreateSearchJobReq + */ +public class CreateSearchJobReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "basic_info") + + private CreateDrugJobBasicInfo basicInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "smiles") + + private String smiles; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "scaffold") + + private String scaffold; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "top_n") + + private Integer topN; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "databases") + + private List databases = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_databases") + + private List customDatabases = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "model_ids") + + private List modelIds = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "search_method") + + private SearchType searchMethod; + + public CreateSearchJobReq withBasicInfo(CreateDrugJobBasicInfo basicInfo) { + this.basicInfo = basicInfo; + return this; + } + + public CreateSearchJobReq withBasicInfo(Consumer basicInfoSetter) { + if (this.basicInfo == null) { + this.basicInfo = new CreateDrugJobBasicInfo(); + basicInfoSetter.accept(this.basicInfo); + } + + return this; + } + + /** + * Get basicInfo + * @return basicInfo + */ + public CreateDrugJobBasicInfo getBasicInfo() { + return basicInfo; + } + + public void setBasicInfo(CreateDrugJobBasicInfo basicInfo) { + this.basicInfo = basicInfo; + } + + public CreateSearchJobReq withSmiles(String smiles) { + this.smiles = smiles; + return this; + } + + /** + * 分子SMILES表达式 + * @return smiles + */ + public String getSmiles() { + return smiles; + } + + public void setSmiles(String smiles) { + this.smiles = smiles; + } + + public CreateSearchJobReq withScaffold(String scaffold) { + this.scaffold = scaffold; + return this; + } + + /** + * 分子骨架表达式 + * @return scaffold + */ + public String getScaffold() { + return scaffold; + } + + public void setScaffold(String scaffold) { + this.scaffold = scaffold; + } + + public CreateSearchJobReq withTopN(Integer topN) { + this.topN = topN; + return this; + } + + /** + * 最相似的top_n个 + * minimum: 1 + * maximum: 1000 + * @return topN + */ + public Integer getTopN() { + return topN; + } + + public void setTopN(Integer topN) { + this.topN = topN; + } + + public CreateSearchJobReq withDatabases(List databases) { + this.databases = databases; + return this; + } + + public CreateSearchJobReq addDatabasesItem(String databasesItem) { + if (this.databases == null) { + this.databases = new ArrayList<>(); + } + this.databases.add(databasesItem); + return this; + } + + public CreateSearchJobReq withDatabases(Consumer> databasesSetter) { + if (this.databases == null) { + this.databases = new ArrayList<>(); + } + databasesSetter.accept(this.databases); + return this; + } + + /** + * 可供搜索分子的公共数据库名称列表 + * @return databases + */ + public List getDatabases() { + return databases; + } + + public void setDatabases(List databases) { + this.databases = databases; + } + + public CreateSearchJobReq withCustomDatabases(List customDatabases) { + this.customDatabases = customDatabases; + return this; + } + + public CreateSearchJobReq addCustomDatabasesItem(String customDatabasesItem) { + if (this.customDatabases == null) { + this.customDatabases = new ArrayList<>(); + } + this.customDatabases.add(customDatabasesItem); + return this; + } + + public CreateSearchJobReq withCustomDatabases(Consumer> customDatabasesSetter) { + if (this.customDatabases == null) { + this.customDatabases = new ArrayList<>(); + } + customDatabasesSetter.accept(this.customDatabases); + return this; + } + + /** + * 可供搜索分子的自定义数据库id列表 + * @return customDatabases + */ + public List getCustomDatabases() { + return customDatabases; + } + + public void setCustomDatabases(List customDatabases) { + this.customDatabases = customDatabases; + } + + public CreateSearchJobReq withModelIds(List modelIds) { + this.modelIds = modelIds; + return this; + } + + public CreateSearchJobReq addModelIdsItem(String modelIdsItem) { + if (this.modelIds == null) { + this.modelIds = new ArrayList<>(); + } + this.modelIds.add(modelIdsItem); + return this; + } + + public CreateSearchJobReq withModelIds(Consumer> modelIdsSetter) { + if (this.modelIds == null) { + this.modelIds = new ArrayList<>(); + } + modelIdsSetter.accept(this.modelIds); + return this; + } + + /** + * 模型id列表 + * @return modelIds + */ + public List getModelIds() { + return modelIds; + } + + public void setModelIds(List modelIds) { + this.modelIds = modelIds; + } + + public CreateSearchJobReq withSearchMethod(SearchType searchMethod) { + this.searchMethod = searchMethod; + return this; + } + + /** + * Get searchMethod + * @return searchMethod + */ + public SearchType getSearchMethod() { + return searchMethod; + } + + public void setSearchMethod(SearchType searchMethod) { + this.searchMethod = searchMethod; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateSearchJobReq that = (CreateSearchJobReq) obj; + return Objects.equals(this.basicInfo, that.basicInfo) && Objects.equals(this.smiles, that.smiles) + && Objects.equals(this.scaffold, that.scaffold) && Objects.equals(this.topN, that.topN) + && Objects.equals(this.databases, that.databases) + && Objects.equals(this.customDatabases, that.customDatabases) + && Objects.equals(this.modelIds, that.modelIds) && Objects.equals(this.searchMethod, that.searchMethod); + } + + @Override + public int hashCode() { + return Objects.hash(basicInfo, smiles, scaffold, topN, databases, customDatabases, modelIds, searchMethod); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateSearchJobReq {\n"); + sb.append(" basicInfo: ").append(toIndentedString(basicInfo)).append("\n"); + sb.append(" smiles: ").append(toIndentedString(smiles)).append("\n"); + sb.append(" scaffold: ").append(toIndentedString(scaffold)).append("\n"); + sb.append(" topN: ").append(toIndentedString(topN)).append("\n"); + sb.append(" databases: ").append(toIndentedString(databases)).append("\n"); + sb.append(" customDatabases: ").append(toIndentedString(customDatabases)).append("\n"); + sb.append(" modelIds: ").append(toIndentedString(modelIds)).append("\n"); + sb.append(" searchMethod: ").append(toIndentedString(searchMethod)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateSearchJobRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateSearchJobRequest.java new file mode 100644 index 0000000000..813f960a72 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateSearchJobRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.eihealth.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 CreateSearchJobRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "eihealth_project_id") + + private String eihealthProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateSearchJobReq body; + + public CreateSearchJobRequest withEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + return this; + } + + /** + * 平台项目ID。 + * @return eihealthProjectId + */ + public String getEihealthProjectId() { + return eihealthProjectId; + } + + public void setEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + } + + public CreateSearchJobRequest withBody(CreateSearchJobReq body) { + this.body = body; + return this; + } + + public CreateSearchJobRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateSearchJobReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateSearchJobReq getBody() { + return body; + } + + public void setBody(CreateSearchJobReq 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; + } + CreateSearchJobRequest that = (CreateSearchJobRequest) obj; + return Objects.equals(this.eihealthProjectId, that.eihealthProjectId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(eihealthProjectId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateSearchJobRequest {\n"); + sb.append(" eihealthProjectId: ").append(toIndentedString(eihealthProjectId)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateSearchJobResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateSearchJobResponse.java new file mode 100644 index 0000000000..be02c7605c --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateSearchJobResponse.java @@ -0,0 +1,96 @@ +package com.huaweicloud.sdk.eihealth.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 CreateSearchJobResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit_concurrency") + + private Integer limitConcurrency; + + public CreateSearchJobResponse 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 CreateSearchJobResponse withLimitConcurrency(Integer limitConcurrency) { + this.limitConcurrency = limitConcurrency; + return this; + } + + /** + * 限制的并发量 + * @return limitConcurrency + */ + public Integer getLimitConcurrency() { + return limitConcurrency; + } + + public void setLimitConcurrency(Integer limitConcurrency) { + this.limitConcurrency = limitConcurrency; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateSearchJobResponse that = (CreateSearchJobResponse) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.limitConcurrency, that.limitConcurrency); + } + + @Override + public int hashCode() { + return Objects.hash(id, limitConcurrency); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateSearchJobResponse {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" limitConcurrency: ").append(toIndentedString(limitConcurrency)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CssClusterDto.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CssClusterDto.java new file mode 100644 index 0000000000..ba33e01765 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CssClusterDto.java @@ -0,0 +1,142 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * css集群详情 + */ +public class CssClusterDto { + + @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 = "storage") + + private Integer storage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "import_time") + + private String importTime; + + public CssClusterDto 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 CssClusterDto withName(String name) { + this.name = name; + return this; + } + + /** + * css集群名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CssClusterDto withStorage(Integer storage) { + this.storage = storage; + return this; + } + + /** + * css集群总存储 + * @return storage + */ + public Integer getStorage() { + return storage; + } + + public void setStorage(Integer storage) { + this.storage = storage; + } + + public CssClusterDto withImportTime(String importTime) { + this.importTime = importTime; + return this; + } + + /** + * css集群导入时间 + * @return importTime + */ + public String getImportTime() { + return importTime; + } + + public void setImportTime(String importTime) { + this.importTime = importTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CssClusterDto that = (CssClusterDto) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.storage, that.storage) && Objects.equals(this.importTime, that.importTime); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, storage, importTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CssClusterDto {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" storage: ").append(toIndentedString(storage)).append("\n"); + sb.append(" importTime: ").append(toIndentedString(importTime)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DatabaseFile.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DatabaseFile.java new file mode 100644 index 0000000000..c1984dd371 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DatabaseFile.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 数据库数据文件 + */ +public class DatabaseFile { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source") + + private DatabaseFileSource source; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "url") + + private String url; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "eihealth_project_id") + + private String eihealthProjectId; + + public DatabaseFile withSource(DatabaseFileSource source) { + this.source = source; + return this; + } + + /** + * Get source + * @return source + */ + public DatabaseFileSource getSource() { + return source; + } + + public void setSource(DatabaseFileSource source) { + this.source = source; + } + + public DatabaseFile withUrl(String url) { + this.url = url; + return this; + } + + /** + * 文件URL,用户私有数据中心为项目路径、公共数据场景为obs地址 + * @return url + */ + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public DatabaseFile withEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + return this; + } + + /** + * 数据库文件所在项目id,仅文件为数据中心时填写 + * @return eihealthProjectId + */ + public String getEihealthProjectId() { + return eihealthProjectId; + } + + public void setEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DatabaseFile that = (DatabaseFile) obj; + return Objects.equals(this.source, that.source) && Objects.equals(this.url, that.url) + && Objects.equals(this.eihealthProjectId, that.eihealthProjectId); + } + + @Override + public int hashCode() { + return Objects.hash(source, url, eihealthProjectId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DatabaseFile {\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" eihealthProjectId: ").append(toIndentedString(eihealthProjectId)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DatabaseFileSource.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DatabaseFileSource.java new file mode 100644 index 0000000000..2d8938d60f --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DatabaseFileSource.java @@ -0,0 +1,78 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; + +/** + * 数据库文件来源 + */ +public class DatabaseFileSource { + + /** + * Enum PUBLIC for value: "public" + */ + public static final DatabaseFileSource PUBLIC = new DatabaseFileSource("public"); + + /** + * Enum PRIVATE for value: "private" + */ + public static final DatabaseFileSource PRIVATE = new DatabaseFileSource("private"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("public", PUBLIC); + map.put("private", PRIVATE); + return Collections.unmodifiableMap(map); + } + + private String value; + + DatabaseFileSource(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static DatabaseFileSource fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new DatabaseFileSource(value)); + } + + public static DatabaseFileSource 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 DatabaseFileSource) { + return this.value.equals(((DatabaseFileSource) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DeleteCssClusterRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DeleteCssClusterRequest.java new file mode 100644 index 0000000000..b3182dad89 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DeleteCssClusterRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class DeleteCssClusterRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "css_cluster_id") + + private String cssClusterId; + + public DeleteCssClusterRequest withCssClusterId(String cssClusterId) { + this.cssClusterId = cssClusterId; + return this; + } + + /** + * css集群id + * @return cssClusterId + */ + public String getCssClusterId() { + return cssClusterId; + } + + public void setCssClusterId(String cssClusterId) { + this.cssClusterId = cssClusterId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteCssClusterRequest that = (DeleteCssClusterRequest) obj; + return Objects.equals(this.cssClusterId, that.cssClusterId); + } + + @Override + public int hashCode() { + return Objects.hash(cssClusterId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteCssClusterRequest {\n"); + sb.append(" cssClusterId: ").append(toIndentedString(cssClusterId)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DeleteCssClusterResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DeleteCssClusterResponse.java new file mode 100644 index 0000000000..d408710e1d --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DeleteCssClusterResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeleteCssClusterResponse 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 DeleteCssClusterResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DeleteDrugDatabaseRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DeleteDrugDatabaseRequest.java new file mode 100644 index 0000000000..3d865576c3 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DeleteDrugDatabaseRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class DeleteDrugDatabaseRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "database_id") + + private String databaseId; + + public DeleteDrugDatabaseRequest withDatabaseId(String databaseId) { + this.databaseId = databaseId; + return this; + } + + /** + * 数据库id + * @return databaseId + */ + public String getDatabaseId() { + return databaseId; + } + + public void setDatabaseId(String databaseId) { + this.databaseId = databaseId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteDrugDatabaseRequest that = (DeleteDrugDatabaseRequest) obj; + return Objects.equals(this.databaseId, that.databaseId); + } + + @Override + public int hashCode() { + return Objects.hash(databaseId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteDrugDatabaseRequest {\n"); + sb.append(" databaseId: ").append(toIndentedString(databaseId)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DeleteDrugDatabaseResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DeleteDrugDatabaseResponse.java new file mode 100644 index 0000000000..20e710ee4e --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DeleteDrugDatabaseResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeleteDrugDatabaseResponse 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 DeleteDrugDatabaseResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DetailDatabaseFile.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DetailDatabaseFile.java new file mode 100644 index 0000000000..897a5ad6e3 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DetailDatabaseFile.java @@ -0,0 +1,166 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 数据库数据文件详情 + */ +public class DetailDatabaseFile { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source") + + private DatabaseFileSource source; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "url") + + private String url; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "eihealth_project_id") + + private String eihealthProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "failed_reason") + + private String failedReason; + + public DetailDatabaseFile withSource(DatabaseFileSource source) { + this.source = source; + return this; + } + + /** + * Get source + * @return source + */ + public DatabaseFileSource getSource() { + return source; + } + + public void setSource(DatabaseFileSource source) { + this.source = source; + } + + public DetailDatabaseFile withUrl(String url) { + this.url = url; + return this; + } + + /** + * 文件URL,用户私有数据中心为项目路径、公共数据场景为obs地址 + * @return url + */ + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public DetailDatabaseFile withEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + return this; + } + + /** + * 数据库文件所在项目id,仅文件为数据中心时填写 + * @return eihealthProjectId + */ + public String getEihealthProjectId() { + return eihealthProjectId; + } + + public void setEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + } + + public DetailDatabaseFile withStatus(String status) { + this.status = status; + return this; + } + + /** + * 数据库文件写入状态 + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public DetailDatabaseFile withFailedReason(String failedReason) { + this.failedReason = failedReason; + return this; + } + + /** + * 失败原因 + * @return failedReason + */ + public String getFailedReason() { + return failedReason; + } + + public void setFailedReason(String failedReason) { + this.failedReason = failedReason; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DetailDatabaseFile that = (DetailDatabaseFile) obj; + return Objects.equals(this.source, that.source) && Objects.equals(this.url, that.url) + && Objects.equals(this.eihealthProjectId, that.eihealthProjectId) + && Objects.equals(this.status, that.status) && Objects.equals(this.failedReason, that.failedReason); + } + + @Override + public int hashCode() { + return Objects.hash(source, url, eihealthProjectId, status, failedReason); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DetailDatabaseFile {\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" eihealthProjectId: ").append(toIndentedString(eihealthProjectId)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" failedReason: ").append(toIndentedString(failedReason)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DownloadDataReq.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DownloadDataReq.java index 719f05475e..c7afad2962 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DownloadDataReq.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DownloadDataReq.java @@ -20,6 +20,16 @@ public class DownloadDataReq { private String url; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "range_start") + + private Long rangeStart; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "range_end") + + private Long rangeEnd; + public DownloadDataReq withType(DownloadDataTypeEnum type) { this.type = type; return this; @@ -54,6 +64,44 @@ public void setUrl(String url) { this.url = url; } + public DownloadDataReq withRangeStart(Long rangeStart) { + this.rangeStart = rangeStart; + return this; + } + + /** + * 指定下载对象的开始位置 + * minimum: 0 + * maximum: 9223372036854775807 + * @return rangeStart + */ + public Long getRangeStart() { + return rangeStart; + } + + public void setRangeStart(Long rangeStart) { + this.rangeStart = rangeStart; + } + + public DownloadDataReq withRangeEnd(Long rangeEnd) { + this.rangeEnd = rangeEnd; + return this; + } + + /** + * 指定下载对象的结束位置 + * minimum: 0 + * maximum: 9223372036854775807 + * @return rangeEnd + */ + public Long getRangeEnd() { + return rangeEnd; + } + + public void setRangeEnd(Long rangeEnd) { + this.rangeEnd = rangeEnd; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -63,12 +111,13 @@ public boolean equals(java.lang.Object obj) { return false; } DownloadDataReq that = (DownloadDataReq) obj; - return Objects.equals(this.type, that.type) && Objects.equals(this.url, that.url); + return Objects.equals(this.type, that.type) && Objects.equals(this.url, that.url) + && Objects.equals(this.rangeStart, that.rangeStart) && Objects.equals(this.rangeEnd, that.rangeEnd); } @Override public int hashCode() { - return Objects.hash(type, url); + return Objects.hash(type, url, rangeStart, rangeEnd); } @Override @@ -77,6 +126,8 @@ public String toString() { sb.append("class DownloadDataReq {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" rangeStart: ").append(toIndentedString(rangeStart)).append("\n"); + sb.append(" rangeEnd: ").append(toIndentedString(rangeEnd)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DrugDatabaseDto.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DrugDatabaseDto.java new file mode 100644 index 0000000000..71a54b513f --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/DrugDatabaseDto.java @@ -0,0 +1,450 @@ +package com.huaweicloud.sdk.eihealth.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; + +/** + * DrugDatabaseDto + */ +public class DrugDatabaseDto { + + @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 = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @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 = "creator") + + private String creator; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "failed_message") + + private String failedMessage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "css_id") + + private String cssId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "css_name") + + private String cssName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "files") + + private List files = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "columns") + + private List columns = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "shareable") + + private Boolean shareable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_num") + + private Integer dataNum; + + public DrugDatabaseDto 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 DrugDatabaseDto withName(String name) { + this.name = name; + return this; + } + + /** + * 数据库名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public DrugDatabaseDto withType(String type) { + this.type = type; + return this; + } + + /** + * 数据库类型 + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public DrugDatabaseDto withStatus(String status) { + this.status = status; + return this; + } + + /** + * 数据库状态 + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public DrugDatabaseDto withDescription(String description) { + this.description = description; + return this; + } + + /** + * 数据库描述 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public DrugDatabaseDto withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 数据库创建时间 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public DrugDatabaseDto withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 数据库更新时间 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + public DrugDatabaseDto withCreator(String creator) { + this.creator = creator; + return this; + } + + /** + * 创建数据库的用户名称 + * @return creator + */ + public String getCreator() { + return creator; + } + + public void setCreator(String creator) { + this.creator = creator; + } + + public DrugDatabaseDto withFailedMessage(String failedMessage) { + this.failedMessage = failedMessage; + return this; + } + + /** + * 失败提示,当作业执行失败时会返回 + * @return failedMessage + */ + public String getFailedMessage() { + return failedMessage; + } + + public void setFailedMessage(String failedMessage) { + this.failedMessage = failedMessage; + } + + public DrugDatabaseDto withCssId(String cssId) { + this.cssId = cssId; + return this; + } + + /** + * css集群id + * @return cssId + */ + public String getCssId() { + return cssId; + } + + public void setCssId(String cssId) { + this.cssId = cssId; + } + + public DrugDatabaseDto withCssName(String cssName) { + this.cssName = cssName; + return this; + } + + /** + * css集群名称 + * @return cssName + */ + public String getCssName() { + return cssName; + } + + public void setCssName(String cssName) { + this.cssName = cssName; + } + + public DrugDatabaseDto withFiles(List files) { + this.files = files; + return this; + } + + public DrugDatabaseDto addFilesItem(DetailDatabaseFile filesItem) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(filesItem); + return this; + } + + public DrugDatabaseDto withFiles(Consumer> filesSetter) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + filesSetter.accept(this.files); + return this; + } + + /** + * 数据库文件列表 + * @return files + */ + public List getFiles() { + return files; + } + + public void setFiles(List files) { + this.files = files; + } + + public DrugDatabaseDto withColumns(List columns) { + this.columns = columns; + return this; + } + + public DrugDatabaseDto addColumnsItem(String columnsItem) { + if (this.columns == null) { + this.columns = new ArrayList<>(); + } + this.columns.add(columnsItem); + return this; + } + + public DrugDatabaseDto withColumns(Consumer> columnsSetter) { + if (this.columns == null) { + this.columns = new ArrayList<>(); + } + columnsSetter.accept(this.columns); + return this; + } + + /** + * 数据库列名 + * @return columns + */ + public List getColumns() { + return columns; + } + + public void setColumns(List columns) { + this.columns = columns; + } + + public DrugDatabaseDto withShareable(Boolean shareable) { + this.shareable = shareable; + return this; + } + + /** + * 是否打开组织共享 + * @return shareable + */ + public Boolean getShareable() { + return shareable; + } + + public void setShareable(Boolean shareable) { + this.shareable = shareable; + } + + public DrugDatabaseDto withDataNum(Integer dataNum) { + this.dataNum = dataNum; + return this; + } + + /** + * 分子数量 + * @return dataNum + */ + public Integer getDataNum() { + return dataNum; + } + + public void setDataNum(Integer dataNum) { + this.dataNum = dataNum; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DrugDatabaseDto that = (DrugDatabaseDto) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.type, that.type) && Objects.equals(this.status, that.status) + && Objects.equals(this.description, that.description) && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.creator, that.creator) + && Objects.equals(this.failedMessage, that.failedMessage) && Objects.equals(this.cssId, that.cssId) + && Objects.equals(this.cssName, that.cssName) && Objects.equals(this.files, that.files) + && Objects.equals(this.columns, that.columns) && Objects.equals(this.shareable, that.shareable) + && Objects.equals(this.dataNum, that.dataNum); + } + + @Override + public int hashCode() { + return Objects.hash(id, + name, + type, + status, + description, + createTime, + updateTime, + creator, + failedMessage, + cssId, + cssName, + files, + columns, + shareable, + dataNum); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DrugDatabaseDto {\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(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" creator: ").append(toIndentedString(creator)).append("\n"); + sb.append(" failedMessage: ").append(toIndentedString(failedMessage)).append("\n"); + sb.append(" cssId: ").append(toIndentedString(cssId)).append("\n"); + sb.append(" cssName: ").append(toIndentedString(cssName)).append("\n"); + sb.append(" files: ").append(toIndentedString(files)).append("\n"); + sb.append(" columns: ").append(toIndentedString(columns)).append("\n"); + sb.append(" shareable: ").append(toIndentedString(shareable)).append("\n"); + sb.append(" dataNum: ").append(toIndentedString(dataNum)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/GetArchiveConfigRsp.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/GetArchiveConfigRsp.java index a93b3c0362..d604220f36 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/GetArchiveConfigRsp.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/GetArchiveConfigRsp.java @@ -20,11 +20,6 @@ public class GetArchiveConfigRsp { private Boolean currentRegion; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "bucket_name") - - private String bucketName; - public GetArchiveConfigRsp withRegionId(String regionId) { this.regionId = regionId; return this; @@ -59,23 +54,6 @@ public void setCurrentRegion(Boolean currentRegion) { this.currentRegion = currentRegion; } - public GetArchiveConfigRsp withBucketName(String bucketName) { - this.bucketName = bucketName; - return this; - } - - /** - * 归档桶名称 - * @return bucketName - */ - public String getBucketName() { - return bucketName; - } - - public void setBucketName(String bucketName) { - this.bucketName = bucketName; - } - @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -85,13 +63,12 @@ public boolean equals(java.lang.Object obj) { return false; } GetArchiveConfigRsp that = (GetArchiveConfigRsp) obj; - return Objects.equals(this.regionId, that.regionId) && Objects.equals(this.currentRegion, that.currentRegion) - && Objects.equals(this.bucketName, that.bucketName); + return Objects.equals(this.regionId, that.regionId) && Objects.equals(this.currentRegion, that.currentRegion); } @Override public int hashCode() { - return Objects.hash(regionId, currentRegion, bucketName); + return Objects.hash(regionId, currentRegion); } @Override @@ -100,7 +77,6 @@ public String toString() { sb.append("class GetArchiveConfigRsp {\n"); sb.append(" regionId: ").append(toIndentedString(regionId)).append("\n"); sb.append(" currentRegion: ").append(toIndentedString(currentRegion)).append("\n"); - sb.append(" bucketName: ").append(toIndentedString(bucketName)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListCssClusterRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListCssClusterRequest.java new file mode 100644 index 0000000000..dd4e868f6b --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListCssClusterRequest.java @@ -0,0 +1,99 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListCssClusterRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + public ListCssClusterRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000] + * minimum: 1 + * maximum: 1000 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListCssClusterRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000] + * minimum: 0 + * maximum: 100000000 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListCssClusterRequest that = (ListCssClusterRequest) obj; + return Objects.equals(this.limit, that.limit) && Objects.equals(this.offset, that.offset); + } + + @Override + public int hashCode() { + return Objects.hash(limit, offset); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListCssClusterRequest {\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListCssClusterResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListCssClusterResponse.java new file mode 100644 index 0000000000..b9077ac884 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListCssClusterResponse.java @@ -0,0 +1,115 @@ +package com.huaweicloud.sdk.eihealth.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 ListCssClusterResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "css_clusters") + + private List cssClusters = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "count") + + private Integer count; + + public ListCssClusterResponse withCssClusters(List cssClusters) { + this.cssClusters = cssClusters; + return this; + } + + public ListCssClusterResponse addCssClustersItem(CssClusterDto cssClustersItem) { + if (this.cssClusters == null) { + this.cssClusters = new ArrayList<>(); + } + this.cssClusters.add(cssClustersItem); + return this; + } + + public ListCssClusterResponse withCssClusters(Consumer> cssClustersSetter) { + if (this.cssClusters == null) { + this.cssClusters = new ArrayList<>(); + } + cssClustersSetter.accept(this.cssClusters); + return this; + } + + /** + * CSS集群列表 + * @return cssClusters + */ + public List getCssClusters() { + return cssClusters; + } + + public void setCssClusters(List cssClusters) { + this.cssClusters = cssClusters; + } + + public ListCssClusterResponse withCount(Integer count) { + this.count = count; + return this; + } + + /** + * css集群总数 + * @return count + */ + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListCssClusterResponse that = (ListCssClusterResponse) obj; + return Objects.equals(this.cssClusters, that.cssClusters) && Objects.equals(this.count, that.count); + } + + @Override + public int hashCode() { + return Objects.hash(cssClusters, count); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListCssClusterResponse {\n"); + sb.append(" cssClusters: ").append(toIndentedString(cssClusters)).append("\n"); + sb.append(" count: ").append(toIndentedString(count)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListDrugDatabaseRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListDrugDatabaseRequest.java new file mode 100644 index 0000000000..c202f2cccd --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListDrugDatabaseRequest.java @@ -0,0 +1,193 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListDrugDatabaseRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "search_key") + + private String searchKey; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @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 = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + public ListDrugDatabaseRequest withSearchKey(String searchKey) { + this.searchKey = searchKey; + return this; + } + + /** + * 数据库名称搜索 + * @return searchKey + */ + public String getSearchKey() { + return searchKey; + } + + public void setSearchKey(String searchKey) { + this.searchKey = searchKey; + } + + public ListDrugDatabaseRequest withType(String type) { + this.type = type; + return this; + } + + /** + * 数据库类型搜索 + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public ListDrugDatabaseRequest withSortKey(String sortKey) { + this.sortKey = sortKey; + return this; + } + + /** + * 排序规则 目前默认时间降序,支持根据create_time|update_time + * @return sortKey + */ + public String getSortKey() { + return sortKey; + } + + public void setSortKey(String sortKey) { + this.sortKey = sortKey; + } + + public ListDrugDatabaseRequest withSortDir(String sortDir) { + this.sortDir = sortDir; + return this; + } + + /** + * 排序规则 目前默认时间降序 + * @return sortDir + */ + public String getSortDir() { + return sortDir; + } + + public void setSortDir(String sortDir) { + this.sortDir = sortDir; + } + + public ListDrugDatabaseRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000] + * minimum: 1 + * maximum: 1000 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListDrugDatabaseRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000] + * minimum: 0 + * maximum: 100000000 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListDrugDatabaseRequest that = (ListDrugDatabaseRequest) obj; + return Objects.equals(this.searchKey, that.searchKey) && Objects.equals(this.type, that.type) + && Objects.equals(this.sortKey, that.sortKey) && Objects.equals(this.sortDir, that.sortDir) + && Objects.equals(this.limit, that.limit) && Objects.equals(this.offset, that.offset); + } + + @Override + public int hashCode() { + return Objects.hash(searchKey, type, sortKey, sortDir, limit, offset); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDrugDatabaseRequest {\n"); + sb.append(" searchKey: ").append(toIndentedString(searchKey)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" sortKey: ").append(toIndentedString(sortKey)).append("\n"); + sb.append(" sortDir: ").append(toIndentedString(sortDir)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListDrugDatabaseResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListDrugDatabaseResponse.java new file mode 100644 index 0000000000..24168230f1 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListDrugDatabaseResponse.java @@ -0,0 +1,115 @@ +package com.huaweicloud.sdk.eihealth.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 ListDrugDatabaseResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "databases") + + private List databases = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "count") + + private Integer count; + + public ListDrugDatabaseResponse withDatabases(List databases) { + this.databases = databases; + return this; + } + + public ListDrugDatabaseResponse addDatabasesItem(DrugDatabaseDto databasesItem) { + if (this.databases == null) { + this.databases = new ArrayList<>(); + } + this.databases.add(databasesItem); + return this; + } + + public ListDrugDatabaseResponse withDatabases(Consumer> databasesSetter) { + if (this.databases == null) { + this.databases = new ArrayList<>(); + } + databasesSetter.accept(this.databases); + return this; + } + + /** + * 数据库列表 + * @return databases + */ + public List getDatabases() { + return databases; + } + + public void setDatabases(List databases) { + this.databases = databases; + } + + public ListDrugDatabaseResponse withCount(Integer count) { + this.count = count; + return this; + } + + /** + * 数据库总数 + * @return count + */ + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListDrugDatabaseResponse that = (ListDrugDatabaseResponse) obj; + return Objects.equals(this.databases, that.databases) && Objects.equals(this.count, that.count); + } + + @Override + public int hashCode() { + return Objects.hash(databases, count); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDrugDatabaseResponse {\n"); + sb.append(" databases: ").append(toIndentedString(databases)).append("\n"); + sb.append(" count: ").append(toIndentedString(count)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListTermTenantCssClusterRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListTermTenantCssClusterRequest.java new file mode 100644 index 0000000000..4f707bb86b --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListTermTenantCssClusterRequest.java @@ -0,0 +1,99 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListTermTenantCssClusterRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + public ListTermTenantCssClusterRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000] + * minimum: 1 + * maximum: 1000 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListTermTenantCssClusterRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000] + * minimum: 0 + * maximum: 100000000 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListTermTenantCssClusterRequest that = (ListTermTenantCssClusterRequest) obj; + return Objects.equals(this.limit, that.limit) && Objects.equals(this.offset, that.offset); + } + + @Override + public int hashCode() { + return Objects.hash(limit, offset); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListTermTenantCssClusterRequest {\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListTermTenantCssClusterResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListTermTenantCssClusterResponse.java new file mode 100644 index 0000000000..8775e965c3 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListTermTenantCssClusterResponse.java @@ -0,0 +1,115 @@ +package com.huaweicloud.sdk.eihealth.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 ListTermTenantCssClusterResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "css_clusters") + + private List cssClusters = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "count") + + private Integer count; + + public ListTermTenantCssClusterResponse withCssClusters(List cssClusters) { + this.cssClusters = cssClusters; + return this; + } + + public ListTermTenantCssClusterResponse addCssClustersItem(TermTenantCssClusterDto cssClustersItem) { + if (this.cssClusters == null) { + this.cssClusters = new ArrayList<>(); + } + this.cssClusters.add(cssClustersItem); + return this; + } + + public ListTermTenantCssClusterResponse withCssClusters(Consumer> cssClustersSetter) { + if (this.cssClusters == null) { + this.cssClusters = new ArrayList<>(); + } + cssClustersSetter.accept(this.cssClusters); + return this; + } + + /** + * 最终租户CSS集群列表 + * @return cssClusters + */ + public List getCssClusters() { + return cssClusters; + } + + public void setCssClusters(List cssClusters) { + this.cssClusters = cssClusters; + } + + public ListTermTenantCssClusterResponse withCount(Integer count) { + this.count = count; + return this; + } + + /** + * 最终租户css集群总数 + * @return count + */ + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListTermTenantCssClusterResponse that = (ListTermTenantCssClusterResponse) obj; + return Objects.equals(this.cssClusters, that.cssClusters) && Objects.equals(this.count, that.count); + } + + @Override + public int hashCode() { + return Objects.hash(cssClusters, count); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListTermTenantCssClusterResponse {\n"); + sb.append(" cssClusters: ").append(toIndentedString(cssClusters)).append("\n"); + sb.append(" count: ").append(toIndentedString(count)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/SearchType.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/SearchType.java new file mode 100644 index 0000000000..9f5f284baf --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/SearchType.java @@ -0,0 +1,78 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; + +/** + * Gets or Sets SearchType + */ +public class SearchType { + + /** + * Enum ECFP_4 for value: "ECFP_4" + */ + public static final SearchType ECFP_4 = new SearchType("ECFP_4"); + + /** + * Enum SCAFFOLD for value: "SCAFFOLD" + */ + public static final SearchType SCAFFOLD = new SearchType("SCAFFOLD"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("ECFP_4", ECFP_4); + map.put("SCAFFOLD", SCAFFOLD); + return Collections.unmodifiableMap(map); + } + + private String value; + + SearchType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static SearchType fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new SearchType(value)); + } + + public static SearchType 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 SearchType) { + return this.value.equals(((SearchType) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowMolBatchDownloadTaskRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowMolBatchDownloadTaskRequest.java new file mode 100644 index 0000000000..3e28d74600 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowMolBatchDownloadTaskRequest.java @@ -0,0 +1,96 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowMolBatchDownloadTaskRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "eihealth_project_id") + + private String eihealthProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_id") + + private String taskId; + + public ShowMolBatchDownloadTaskRequest withEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + return this; + } + + /** + * 平台项目ID。 + * @return eihealthProjectId + */ + public String getEihealthProjectId() { + return eihealthProjectId; + } + + public void setEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + } + + public ShowMolBatchDownloadTaskRequest withTaskId(String taskId) { + this.taskId = taskId; + return this; + } + + /** + * 下载任务ID。 + * @return taskId + */ + public String getTaskId() { + return taskId; + } + + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowMolBatchDownloadTaskRequest that = (ShowMolBatchDownloadTaskRequest) obj; + return Objects.equals(this.eihealthProjectId, that.eihealthProjectId) + && Objects.equals(this.taskId, that.taskId); + } + + @Override + public int hashCode() { + return Objects.hash(eihealthProjectId, taskId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowMolBatchDownloadTaskRequest {\n"); + sb.append(" eihealthProjectId: ").append(toIndentedString(eihealthProjectId)).append("\n"); + sb.append(" taskId: ").append(toIndentedString(taskId)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowMolBatchDownloadTaskResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowMolBatchDownloadTaskResponse.java new file mode 100644 index 0000000000..faf9fca089 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowMolBatchDownloadTaskResponse.java @@ -0,0 +1,120 @@ +package com.huaweicloud.sdk.eihealth.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 ShowMolBatchDownloadTaskResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "filename") + + private String filename; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "out_dir") + + private String outDir; + + public ShowMolBatchDownloadTaskResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 任务状态:WAITING、RUNNING、FINISHED、CANCELLED、ABNORMAL、FAILED + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public ShowMolBatchDownloadTaskResponse withFilename(String filename) { + this.filename = filename; + return this; + } + + /** + * 下载文件名 + * @return filename + */ + public String getFilename() { + return filename; + } + + public void setFilename(String filename) { + this.filename = filename; + } + + public ShowMolBatchDownloadTaskResponse withOutDir(String outDir) { + this.outDir = outDir; + return this; + } + + /** + * 下载路径 + * @return outDir + */ + public String getOutDir() { + return outDir; + } + + public void setOutDir(String outDir) { + this.outDir = outDir; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowMolBatchDownloadTaskResponse that = (ShowMolBatchDownloadTaskResponse) obj; + return Objects.equals(this.status, that.status) && Objects.equals(this.filename, that.filename) + && Objects.equals(this.outDir, that.outDir); + } + + @Override + public int hashCode() { + return Objects.hash(status, filename, outDir); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowMolBatchDownloadTaskResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" filename: ").append(toIndentedString(filename)).append("\n"); + sb.append(" outDir: ").append(toIndentedString(outDir)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowOptmJobResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowOptmJobResponse.java index 9d425f69ef..c65833c3dd 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowOptmJobResponse.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowOptmJobResponse.java @@ -39,6 +39,11 @@ public class ShowOptmJobResponse extends SdkResponse { private BindSiteDto bindingSite; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "binding_sites") + + private List bindingSites = null; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "weak_constraints") @@ -178,6 +183,39 @@ public void setBindingSite(BindSiteDto bindingSite) { this.bindingSite = bindingSite; } + public ShowOptmJobResponse withBindingSites(List bindingSites) { + this.bindingSites = bindingSites; + return this; + } + + public ShowOptmJobResponse addBindingSitesItem(BindSiteDto bindingSitesItem) { + if (this.bindingSites == null) { + this.bindingSites = new ArrayList<>(); + } + this.bindingSites.add(bindingSitesItem); + return this; + } + + public ShowOptmJobResponse withBindingSites(Consumer> bindingSitesSetter) { + if (this.bindingSites == null) { + this.bindingSites = new ArrayList<>(); + } + bindingSitesSetter.accept(this.bindingSites); + return this; + } + + /** + * 受体列表和受体是二选一的关系,受体列表优先级最高 + * @return bindingSites + */ + public List getBindingSites() { + return bindingSites; + } + + public void setBindingSites(List bindingSites) { + this.bindingSites = bindingSites; + } + public ShowOptmJobResponse withWeakConstraints(List weakConstraints) { this.weakConstraints = weakConstraints; return this; @@ -332,6 +370,7 @@ public boolean equals(java.lang.Object obj) { return Objects.equals(this.basicInfo, that.basicInfo) && Objects.equals(this.smiles, that.smiles) && Objects.equals(this.moleculeFile, that.moleculeFile) && Objects.equals(this.numTrials, that.numTrials) && Objects.equals(this.bindingSite, that.bindingSite) + && Objects.equals(this.bindingSites, that.bindingSites) && Objects.equals(this.weakConstraints, that.weakConstraints) && Objects.equals(this.strongConstraints, that.strongConstraints) && Objects.equals(this.samplerMixinWeight, that.samplerMixinWeight) @@ -345,6 +384,7 @@ public int hashCode() { moleculeFile, numTrials, bindingSite, + bindingSites, weakConstraints, strongConstraints, samplerMixinWeight, @@ -361,6 +401,7 @@ public String toString() { sb.append(" moleculeFile: ").append(toIndentedString(moleculeFile)).append("\n"); sb.append(" numTrials: ").append(toIndentedString(numTrials)).append("\n"); sb.append(" bindingSite: ").append(toIndentedString(bindingSite)).append("\n"); + sb.append(" bindingSites: ").append(toIndentedString(bindingSites)).append("\n"); sb.append(" weakConstraints: ").append(toIndentedString(weakConstraints)).append("\n"); sb.append(" strongConstraints: ").append(toIndentedString(strongConstraints)).append("\n"); sb.append(" samplerMixinWeight: ").append(toIndentedString(samplerMixinWeight)).append("\n"); diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowSearchJobRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowSearchJobRequest.java new file mode 100644 index 0000000000..a0b2fc0aa2 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowSearchJobRequest.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowSearchJobRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "eihealth_project_id") + + private String eihealthProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + public ShowSearchJobRequest withEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + return this; + } + + /** + * 平台项目ID。 + * @return eihealthProjectId + */ + public String getEihealthProjectId() { + return eihealthProjectId; + } + + public void setEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + } + + public ShowSearchJobRequest 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; + } + ShowSearchJobRequest that = (ShowSearchJobRequest) obj; + return Objects.equals(this.eihealthProjectId, that.eihealthProjectId) && Objects.equals(this.jobId, that.jobId); + } + + @Override + public int hashCode() { + return Objects.hash(eihealthProjectId, jobId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowSearchJobRequest {\n"); + sb.append(" eihealthProjectId: ").append(toIndentedString(eihealthProjectId)).append("\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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowSearchJobResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowSearchJobResponse.java new file mode 100644 index 0000000000..4b82d64cd3 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowSearchJobResponse.java @@ -0,0 +1,348 @@ +package com.huaweicloud.sdk.eihealth.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 ShowSearchJobResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "basic_info") + + private DrugJobDto basicInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "smiles") + + private String smiles; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "scaffold") + + private String scaffold; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "top_n") + + private Integer topN; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "databases") + + private List databases = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_databases") + + private List customDatabases = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "models") + + private List models = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "search_method") + + private SearchType searchMethod; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "part_failed_reason") + + private List partFailedReason = null; + + public ShowSearchJobResponse withBasicInfo(DrugJobDto basicInfo) { + this.basicInfo = basicInfo; + return this; + } + + public ShowSearchJobResponse withBasicInfo(Consumer basicInfoSetter) { + if (this.basicInfo == null) { + this.basicInfo = new DrugJobDto(); + basicInfoSetter.accept(this.basicInfo); + } + + return this; + } + + /** + * Get basicInfo + * @return basicInfo + */ + public DrugJobDto getBasicInfo() { + return basicInfo; + } + + public void setBasicInfo(DrugJobDto basicInfo) { + this.basicInfo = basicInfo; + } + + public ShowSearchJobResponse withSmiles(String smiles) { + this.smiles = smiles; + return this; + } + + /** + * 分子SMILES表达式 + * @return smiles + */ + public String getSmiles() { + return smiles; + } + + public void setSmiles(String smiles) { + this.smiles = smiles; + } + + public ShowSearchJobResponse withScaffold(String scaffold) { + this.scaffold = scaffold; + return this; + } + + /** + * 分子骨架表达式 + * @return scaffold + */ + public String getScaffold() { + return scaffold; + } + + public void setScaffold(String scaffold) { + this.scaffold = scaffold; + } + + public ShowSearchJobResponse withTopN(Integer topN) { + this.topN = topN; + return this; + } + + /** + * 生成分子数量 + * minimum: 0 + * maximum: 1000 + * @return topN + */ + public Integer getTopN() { + return topN; + } + + public void setTopN(Integer topN) { + this.topN = topN; + } + + public ShowSearchJobResponse withDatabases(List databases) { + this.databases = databases; + return this; + } + + public ShowSearchJobResponse addDatabasesItem(String databasesItem) { + if (this.databases == null) { + this.databases = new ArrayList<>(); + } + this.databases.add(databasesItem); + return this; + } + + public ShowSearchJobResponse withDatabases(Consumer> databasesSetter) { + if (this.databases == null) { + this.databases = new ArrayList<>(); + } + databasesSetter.accept(this.databases); + return this; + } + + /** + * 可供搜索分子的公共数据库名称列表 + * @return databases + */ + public List getDatabases() { + return databases; + } + + public void setDatabases(List databases) { + this.databases = databases; + } + + public ShowSearchJobResponse withCustomDatabases(List customDatabases) { + this.customDatabases = customDatabases; + return this; + } + + public ShowSearchJobResponse addCustomDatabasesItem(String customDatabasesItem) { + if (this.customDatabases == null) { + this.customDatabases = new ArrayList<>(); + } + this.customDatabases.add(customDatabasesItem); + return this; + } + + public ShowSearchJobResponse withCustomDatabases(Consumer> customDatabasesSetter) { + if (this.customDatabases == null) { + this.customDatabases = new ArrayList<>(); + } + customDatabasesSetter.accept(this.customDatabases); + return this; + } + + /** + * 可供搜索分子的自定义数据库名称列表 + * @return customDatabases + */ + public List getCustomDatabases() { + return customDatabases; + } + + public void setCustomDatabases(List customDatabases) { + this.customDatabases = customDatabases; + } + + public ShowSearchJobResponse withModels(List models) { + this.models = models; + return this; + } + + public ShowSearchJobResponse addModelsItem(BasicDrugModel modelsItem) { + if (this.models == null) { + this.models = new ArrayList<>(); + } + this.models.add(modelsItem); + return this; + } + + public ShowSearchJobResponse withModels(Consumer> modelsSetter) { + if (this.models == null) { + this.models = new ArrayList<>(); + } + modelsSetter.accept(this.models); + return this; + } + + /** + * 模型信息 + * @return models + */ + public List getModels() { + return models; + } + + public void setModels(List models) { + this.models = models; + } + + public ShowSearchJobResponse withSearchMethod(SearchType searchMethod) { + this.searchMethod = searchMethod; + return this; + } + + /** + * Get searchMethod + * @return searchMethod + */ + public SearchType getSearchMethod() { + return searchMethod; + } + + public void setSearchMethod(SearchType searchMethod) { + this.searchMethod = searchMethod; + } + + public ShowSearchJobResponse withPartFailedReason(List partFailedReason) { + this.partFailedReason = partFailedReason; + return this; + } + + public ShowSearchJobResponse addPartFailedReasonItem(FailedReasonRecord partFailedReasonItem) { + if (this.partFailedReason == null) { + this.partFailedReason = new ArrayList<>(); + } + this.partFailedReason.add(partFailedReasonItem); + return this; + } + + public ShowSearchJobResponse withPartFailedReason(Consumer> partFailedReasonSetter) { + if (this.partFailedReason == null) { + this.partFailedReason = new ArrayList<>(); + } + partFailedReasonSetter.accept(this.partFailedReason); + return this; + } + + /** + * 部分失败原因和数量 + * @return partFailedReason + */ + public List getPartFailedReason() { + return partFailedReason; + } + + public void setPartFailedReason(List partFailedReason) { + this.partFailedReason = partFailedReason; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowSearchJobResponse that = (ShowSearchJobResponse) obj; + return Objects.equals(this.basicInfo, that.basicInfo) && Objects.equals(this.smiles, that.smiles) + && Objects.equals(this.scaffold, that.scaffold) && Objects.equals(this.topN, that.topN) + && Objects.equals(this.databases, that.databases) + && Objects.equals(this.customDatabases, that.customDatabases) && Objects.equals(this.models, that.models) + && Objects.equals(this.searchMethod, that.searchMethod) + && Objects.equals(this.partFailedReason, that.partFailedReason); + } + + @Override + public int hashCode() { + return Objects.hash(basicInfo, + smiles, + scaffold, + topN, + databases, + customDatabases, + models, + searchMethod, + partFailedReason); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowSearchJobResponse {\n"); + sb.append(" basicInfo: ").append(toIndentedString(basicInfo)).append("\n"); + sb.append(" smiles: ").append(toIndentedString(smiles)).append("\n"); + sb.append(" scaffold: ").append(toIndentedString(scaffold)).append("\n"); + sb.append(" topN: ").append(toIndentedString(topN)).append("\n"); + sb.append(" databases: ").append(toIndentedString(databases)).append("\n"); + sb.append(" customDatabases: ").append(toIndentedString(customDatabases)).append("\n"); + sb.append(" models: ").append(toIndentedString(models)).append("\n"); + sb.append(" searchMethod: ").append(toIndentedString(searchMethod)).append("\n"); + sb.append(" partFailedReason: ").append(toIndentedString(partFailedReason)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/TermTenantCssClusterDto.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/TermTenantCssClusterDto.java new file mode 100644 index 0000000000..a0c8ba20db --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/TermTenantCssClusterDto.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 最终租户css集群详情 + */ +public class TermTenantCssClusterDto { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "css_id") + + private String cssId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_active") + + private Boolean isActive; + + public TermTenantCssClusterDto withCssId(String cssId) { + this.cssId = cssId; + return this; + } + + /** + * css集群id + * @return cssId + */ + public String getCssId() { + return cssId; + } + + public void setCssId(String cssId) { + this.cssId = cssId; + } + + public TermTenantCssClusterDto withName(String name) { + this.name = name; + return this; + } + + /** + * css集群名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public TermTenantCssClusterDto withIsActive(Boolean isActive) { + this.isActive = isActive; + return this; + } + + /** + * 集群是否可用 + * @return isActive + */ + public Boolean getIsActive() { + return isActive; + } + + public void setIsActive(Boolean isActive) { + this.isActive = isActive; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + TermTenantCssClusterDto that = (TermTenantCssClusterDto) obj; + return Objects.equals(this.cssId, that.cssId) && Objects.equals(this.name, that.name) + && Objects.equals(this.isActive, that.isActive); + } + + @Override + public int hashCode() { + return Objects.hash(cssId, name, isActive); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TermTenantCssClusterDto {\n"); + sb.append(" cssId: ").append(toIndentedString(cssId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" isActive: ").append(toIndentedString(isActive)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UpdateDrugDatabaseReq.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UpdateDrugDatabaseReq.java new file mode 100644 index 0000000000..fad358a6c9 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UpdateDrugDatabaseReq.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 数据库更新请求体 + */ +public class UpdateDrugDatabaseReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "shareable") + + private Boolean shareable; + + public UpdateDrugDatabaseReq withShareable(Boolean shareable) { + this.shareable = shareable; + return this; + } + + /** + * 是否共享 + * @return shareable + */ + public Boolean getShareable() { + return shareable; + } + + public void setShareable(Boolean shareable) { + this.shareable = shareable; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateDrugDatabaseReq that = (UpdateDrugDatabaseReq) obj; + return Objects.equals(this.shareable, that.shareable); + } + + @Override + public int hashCode() { + return Objects.hash(shareable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateDrugDatabaseReq {\n"); + sb.append(" shareable: ").append(toIndentedString(shareable)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UpdateDrugDatabaseRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UpdateDrugDatabaseRequest.java new file mode 100644 index 0000000000..6466f9e8c2 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UpdateDrugDatabaseRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.eihealth.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 UpdateDrugDatabaseRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "database_id") + + private String databaseId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdateDrugDatabaseReq body; + + public UpdateDrugDatabaseRequest withDatabaseId(String databaseId) { + this.databaseId = databaseId; + return this; + } + + /** + * 数据库id + * @return databaseId + */ + public String getDatabaseId() { + return databaseId; + } + + public void setDatabaseId(String databaseId) { + this.databaseId = databaseId; + } + + public UpdateDrugDatabaseRequest withBody(UpdateDrugDatabaseReq body) { + this.body = body; + return this; + } + + public UpdateDrugDatabaseRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdateDrugDatabaseReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdateDrugDatabaseReq getBody() { + return body; + } + + public void setBody(UpdateDrugDatabaseReq 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; + } + UpdateDrugDatabaseRequest that = (UpdateDrugDatabaseRequest) obj; + return Objects.equals(this.databaseId, that.databaseId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(databaseId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateDrugDatabaseRequest {\n"); + sb.append(" databaseId: ").append(toIndentedString(databaseId)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UpdateDrugDatabaseResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UpdateDrugDatabaseResponse.java new file mode 100644 index 0000000000..16df57c31a --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UpdateDrugDatabaseResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class UpdateDrugDatabaseResponse 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 UpdateDrugDatabaseResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UpdateDrugJobReq.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UpdateDrugJobReq.java new file mode 100644 index 0000000000..5d3db69750 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UpdateDrugJobReq.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.eihealth.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 UpdateDrugJobReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "labels") + + private List labels = null; + + public UpdateDrugJobReq withLabels(List labels) { + this.labels = labels; + return this; + } + + public UpdateDrugJobReq addLabelsItem(String labelsItem) { + if (this.labels == null) { + this.labels = new ArrayList<>(); + } + this.labels.add(labelsItem); + return this; + } + + public UpdateDrugJobReq withLabels(Consumer> labelsSetter) { + if (this.labels == null) { + this.labels = new ArrayList<>(); + } + labelsSetter.accept(this.labels); + return this; + } + + /** + * 标签,取值范围[0,5],单个标签最大长度32字符,支持中文、字母、数字、空格、下划线和中划线,且不能以空格开头或者尾 + * @return labels + */ + public List getLabels() { + return labels; + } + + public void setLabels(List labels) { + this.labels = labels; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateDrugJobReq that = (UpdateDrugJobReq) obj; + return Objects.equals(this.labels, that.labels); + } + + @Override + public int hashCode() { + return Objects.hash(labels); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateDrugJobReq {\n"); + sb.append(" labels: ").append(toIndentedString(labels)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UpdateDrugJobRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UpdateDrugJobRequest.java new file mode 100644 index 0000000000..776212b757 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UpdateDrugJobRequest.java @@ -0,0 +1,129 @@ +package com.huaweicloud.sdk.eihealth.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 UpdateDrugJobRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "eihealth_project_id") + + private String eihealthProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdateDrugJobReq body; + + public UpdateDrugJobRequest withEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + return this; + } + + /** + * 平台项目ID。 + * @return eihealthProjectId + */ + public String getEihealthProjectId() { + return eihealthProjectId; + } + + public void setEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + } + + public UpdateDrugJobRequest withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 作业id + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public UpdateDrugJobRequest withBody(UpdateDrugJobReq body) { + this.body = body; + return this; + } + + public UpdateDrugJobRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdateDrugJobReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdateDrugJobReq getBody() { + return body; + } + + public void setBody(UpdateDrugJobReq 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; + } + UpdateDrugJobRequest that = (UpdateDrugJobRequest) obj; + return Objects.equals(this.eihealthProjectId, that.eihealthProjectId) && Objects.equals(this.jobId, that.jobId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(eihealthProjectId, jobId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateDrugJobRequest {\n"); + sb.append(" eihealthProjectId: ").append(toIndentedString(eihealthProjectId)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UpdateDrugJobResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UpdateDrugJobResponse.java new file mode 100644 index 0000000000..dacaae53d6 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UpdateDrugJobResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class UpdateDrugJobResponse 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 UpdateDrugJobResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UploadDataRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UploadDataRequest.java index 15d8c12e89..36f6d1330c 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UploadDataRequest.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UploadDataRequest.java @@ -16,36 +16,6 @@ public class UploadDataRequest { private String eihealthProjectId; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "target_folder") - - private String targetFolder; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "part_number") - - private Integer partNumber; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "total_part") - - private Integer totalPart; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "multipart_id") - - private String multipartId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "file_name") - - private String fileName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "md5") - - private String md5; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "body") @@ -68,112 +38,6 @@ public void setEihealthProjectId(String eihealthProjectId) { this.eihealthProjectId = eihealthProjectId; } - public UploadDataRequest withTargetFolder(String targetFolder) { - this.targetFolder = targetFolder; - return this; - } - - /** - * 目标文件夹 - * @return targetFolder - */ - public String getTargetFolder() { - return targetFolder; - } - - public void setTargetFolder(String targetFolder) { - this.targetFolder = targetFolder; - } - - public UploadDataRequest withPartNumber(Integer partNumber) { - this.partNumber = partNumber; - return this; - } - - /** - * 分段序号,表示第几个文件片段 - * minimum: 1 - * maximum: 128 - * @return partNumber - */ - public Integer getPartNumber() { - return partNumber; - } - - public void setPartNumber(Integer partNumber) { - this.partNumber = partNumber; - } - - public UploadDataRequest withTotalPart(Integer totalPart) { - this.totalPart = totalPart; - return this; - } - - /** - * 分段总数,上传的文件总共分成了几个片段 - * minimum: 1 - * maximum: 128 - * @return totalPart - */ - public Integer getTotalPart() { - return totalPart; - } - - public void setTotalPart(Integer totalPart) { - this.totalPart = totalPart; - } - - public UploadDataRequest withMultipartId(String multipartId) { - this.multipartId = multipartId; - return this; - } - - /** - * 分段上传任务id,除了第一个片段外,后续的片段都需要标识出任务id - * @return multipartId - */ - public String getMultipartId() { - return multipartId; - } - - public void setMultipartId(String multipartId) { - this.multipartId = multipartId; - } - - public UploadDataRequest withFileName(String fileName) { - this.fileName = fileName; - return this; - } - - /** - * 文件名称 - * @return fileName - */ - public String getFileName() { - return fileName; - } - - public void setFileName(String fileName) { - this.fileName = fileName; - } - - public UploadDataRequest withMd5(String md5) { - this.md5 = md5; - return this; - } - - /** - * MD5 - * @return md5 - */ - public String getMd5() { - return md5; - } - - public void setMd5(String md5) { - this.md5 = md5; - } - public UploadDataRequest withBody(UploadDataRequestBody body) { this.body = body; return this; @@ -209,16 +73,12 @@ public boolean equals(java.lang.Object obj) { return false; } UploadDataRequest that = (UploadDataRequest) obj; - return Objects.equals(this.eihealthProjectId, that.eihealthProjectId) - && Objects.equals(this.targetFolder, that.targetFolder) && Objects.equals(this.partNumber, that.partNumber) - && Objects.equals(this.totalPart, that.totalPart) && Objects.equals(this.multipartId, that.multipartId) - && Objects.equals(this.fileName, that.fileName) && Objects.equals(this.md5, that.md5) - && Objects.equals(this.body, that.body); + return Objects.equals(this.eihealthProjectId, that.eihealthProjectId) && Objects.equals(this.body, that.body); } @Override public int hashCode() { - return Objects.hash(eihealthProjectId, targetFolder, partNumber, totalPart, multipartId, fileName, md5, body); + return Objects.hash(eihealthProjectId, body); } @Override @@ -226,12 +86,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UploadDataRequest {\n"); sb.append(" eihealthProjectId: ").append(toIndentedString(eihealthProjectId)).append("\n"); - sb.append(" targetFolder: ").append(toIndentedString(targetFolder)).append("\n"); - sb.append(" partNumber: ").append(toIndentedString(partNumber)).append("\n"); - sb.append(" totalPart: ").append(toIndentedString(totalPart)).append("\n"); - sb.append(" multipartId: ").append(toIndentedString(multipartId)).append("\n"); - sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); - sb.append(" md5: ").append(toIndentedString(md5)).append("\n"); sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UploadDataRequestBody.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UploadDataRequestBody.java index 8ddeafe03d..18555bfcec 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UploadDataRequestBody.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/UploadDataRequestBody.java @@ -1,5 +1,6 @@ package com.huaweicloud.sdk.eihealth.v1.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.huaweicloud.sdk.core.http.FormDataFilePart; import com.huaweicloud.sdk.core.http.FormDataPart; @@ -19,6 +20,36 @@ public class UploadDataRequestBody implements SdkFormDataBody { private FormDataFilePart file; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_folder") + + private String targetFolder; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "part_number") + + private String partNumber; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_part") + + private String totalPart; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "multipart_id") + + private String multipartId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "file_name") + + private String fileName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "md5") + + private String md5; + public UploadDataRequestBody withFile(FormDataFilePart file) { this.file = file; return this; @@ -36,6 +67,108 @@ public void setFile(FormDataFilePart file) { this.file = file; } + public UploadDataRequestBody withTargetFolder(String targetFolder) { + this.targetFolder = targetFolder; + return this; + } + + /** + * 目标文件夹 + * @return targetFolder + */ + public String getTargetFolder() { + return targetFolder; + } + + public void setTargetFolder(String targetFolder) { + this.targetFolder = targetFolder; + } + + public UploadDataRequestBody withPartNumber(String partNumber) { + this.partNumber = partNumber; + return this; + } + + /** + * 分段序号,表示第几个文件片段 + * @return partNumber + */ + public String getPartNumber() { + return partNumber; + } + + public void setPartNumber(String partNumber) { + this.partNumber = partNumber; + } + + public UploadDataRequestBody withTotalPart(String totalPart) { + this.totalPart = totalPart; + return this; + } + + /** + * 分段总数,上传的文件总共分成了几个片段 + * @return totalPart + */ + public String getTotalPart() { + return totalPart; + } + + public void setTotalPart(String totalPart) { + this.totalPart = totalPart; + } + + public UploadDataRequestBody withMultipartId(String multipartId) { + this.multipartId = multipartId; + return this; + } + + /** + * 分段上传任务id,除了第一个片段外,后续的片段都需要标识出任务id + * @return multipartId + */ + public String getMultipartId() { + return multipartId; + } + + public void setMultipartId(String multipartId) { + this.multipartId = multipartId; + } + + public UploadDataRequestBody withFileName(String fileName) { + this.fileName = fileName; + return this; + } + + /** + * 文件名称 + * @return fileName + */ + public String getFileName() { + return fileName; + } + + public void setFileName(String fileName) { + this.fileName = fileName; + } + + public UploadDataRequestBody withMd5(String md5) { + this.md5 = md5; + return this; + } + + /** + * MD5 + * @return md5 + */ + public String getMd5() { + return md5; + } + + public void setMd5(String md5) { + this.md5 = md5; + } + public UploadDataRequestBody withFile(InputStream inputStream, String fileName, String contentType) { this.file = new FormDataFilePart(inputStream, fileName).withContentType(contentType); return this; @@ -58,6 +191,24 @@ public Map> buildFormData() { private static final long serialVersionUID = 1L; { put("file", file); + if (targetFolder != null) { + put("target_folder", new FormDataPart<>(targetFolder)); + } + if (partNumber != null) { + put("part_number", new FormDataPart<>(partNumber)); + } + if (totalPart != null) { + put("total_part", new FormDataPart<>(totalPart)); + } + if (multipartId != null) { + put("multipart_id", new FormDataPart<>(multipartId)); + } + if (fileName != null) { + put("file_name", new FormDataPart<>(fileName)); + } + if (md5 != null) { + put("md5", new FormDataPart<>(md5)); + } } }; } @@ -71,12 +222,15 @@ public boolean equals(java.lang.Object obj) { return false; } UploadDataRequestBody that = (UploadDataRequestBody) obj; - return Objects.equals(this.file, that.file); + return Objects.equals(this.file, that.file) && Objects.equals(this.targetFolder, that.targetFolder) + && Objects.equals(this.partNumber, that.partNumber) && Objects.equals(this.totalPart, that.totalPart) + && Objects.equals(this.multipartId, that.multipartId) && Objects.equals(this.fileName, that.fileName) + && Objects.equals(this.md5, that.md5); } @Override public int hashCode() { - return Objects.hash(file); + return Objects.hash(file, targetFolder, partNumber, totalPart, multipartId, fileName, md5); } @Override @@ -84,6 +238,12 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UploadDataRequestBody {\n"); sb.append(" file: ").append(toIndentedString("[resource:will-not-print]")).append("\n"); + sb.append(" targetFolder: ").append(toIndentedString(targetFolder)).append("\n"); + sb.append(" partNumber: ").append(toIndentedString(partNumber)).append("\n"); + sb.append(" totalPart: ").append(toIndentedString(totalPart)).append("\n"); + sb.append(" multipartId: ").append(toIndentedString(multipartId)).append("\n"); + sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); + sb.append(" md5: ").append(toIndentedString(md5)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ValidateCssConnectionRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ValidateCssConnectionRequest.java new file mode 100644 index 0000000000..edf2bdeafd --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ValidateCssConnectionRequest.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.eihealth.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 ValidateCssConnectionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateCssClusterReq body; + + public ValidateCssConnectionRequest withBody(CreateCssClusterReq body) { + this.body = body; + return this; + } + + public ValidateCssConnectionRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateCssClusterReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateCssClusterReq getBody() { + return body; + } + + public void setBody(CreateCssClusterReq 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; + } + ValidateCssConnectionRequest that = (ValidateCssConnectionRequest) 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 ValidateCssConnectionRequest {\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/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ValidateCssConnectionResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ValidateCssConnectionResponse.java new file mode 100644 index 0000000000..58587874b1 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ValidateCssConnectionResponse.java @@ -0,0 +1,96 @@ +package com.huaweicloud.sdk.eihealth.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 ValidateCssConnectionResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "connected") + + private Boolean connected; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "reason") + + private String reason; + + public ValidateCssConnectionResponse withConnected(Boolean connected) { + this.connected = connected; + return this; + } + + /** + * 是否连通 + * @return connected + */ + public Boolean getConnected() { + return connected; + } + + public void setConnected(Boolean connected) { + this.connected = connected; + } + + public ValidateCssConnectionResponse 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; + } + ValidateCssConnectionResponse that = (ValidateCssConnectionResponse) obj; + return Objects.equals(this.connected, that.connected) && Objects.equals(this.reason, that.reason); + } + + @Override + public int hashCode() { + return Objects.hash(connected, reason); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ValidateCssConnectionResponse {\n"); + sb.append(" connected: ").append(toIndentedString(connected)).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/eip/pom.xml b/services/eip/pom.xml index b5c5631747..2a9c5054e9 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-eip - 3.1.94 + 3.1.95 Huawei Cloud SDK for EIP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/elb/pom.xml b/services/elb/pom.xml index 8bfe8403ca..d9820619b0 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-elb - 3.1.94 + 3.1.95 Huawei Cloud SDK for ELB 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/eps/pom.xml b/services/eps/pom.xml index d628f36349..31ee715f35 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-eps - 3.1.94 + 3.1.95 Huawei Cloud SDK for EPS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/er/pom.xml b/services/er/pom.xml index 4841e4a66b..2872311157 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-er - 3.1.94 + 3.1.95 Huawei Cloud SDK for ER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/evs/pom.xml b/services/evs/pom.xml index 32daaf8868..8196075412 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-evs - 3.1.94 + 3.1.95 Huawei Cloud SDK for EVS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/expert/pom.xml b/services/expert/pom.xml index 63d448ed51..d619fba5d7 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-expert - 3.1.94 + 3.1.95 Huawei Cloud SDK for EXPERT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/frs/pom.xml b/services/frs/pom.xml index 4c5e7d0d39..8f4274005e 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-frs - 3.1.94 + 3.1.95 Huawei Cloud SDK for FRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/functiongraph/pom.xml b/services/functiongraph/pom.xml index eee473ef26..a5bd8e6198 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-functiongraph - 3.1.94 + 3.1.95 Huawei Cloud SDK for FUNCTIONGRAPH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/model/CreateFunctionRequestBody.java b/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/model/CreateFunctionRequestBody.java index b5967196c3..65d2b4fb6f 100644 --- a/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/model/CreateFunctionRequestBody.java +++ b/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/model/CreateFunctionRequestBody.java @@ -271,6 +271,11 @@ public int hashCode() { private Integer gpuMemory; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "gpu_type") + + private String gpuType; + /** * 函数代码类型,取值有5种。 inline: UI在线编辑代码。 zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。 Custom-Image-Swr: 函数代码来源与SWR自定义镜像。 */ @@ -712,6 +717,23 @@ public void setGpuMemory(Integer gpuMemory) { this.gpuMemory = gpuMemory; } + public CreateFunctionRequestBody withGpuType(String gpuType) { + this.gpuType = gpuType; + return this; + } + + /** + * 显卡类型。 + * @return gpuType + */ + public String getGpuType() { + return gpuType; + } + + public void setGpuType(String gpuType) { + this.gpuType = gpuType; + } + public CreateFunctionRequestBody withCodeType(CodeTypeEnum codeType) { this.codeType = codeType; return this; @@ -1128,8 +1150,9 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.handler, that.handler) && Objects.equals(this.dependVersionList, that.dependVersionList) && Objects.equals(this.funcVpc, that.funcVpc) && Objects.equals(this.memorySize, that.memorySize) - && Objects.equals(this.gpuMemory, that.gpuMemory) && Objects.equals(this.codeType, that.codeType) - && Objects.equals(this.codeUrl, that.codeUrl) && Objects.equals(this.codeFilename, that.codeFilename) + && Objects.equals(this.gpuMemory, that.gpuMemory) && Objects.equals(this.gpuType, that.gpuType) + && Objects.equals(this.codeType, that.codeType) && Objects.equals(this.codeUrl, that.codeUrl) + && Objects.equals(this.codeFilename, that.codeFilename) && Objects.equals(this.customImage, that.customImage) && Objects.equals(this.userData, that.userData) && Objects.equals(this.encryptedUserData, that.encryptedUserData) && Objects.equals(this.xrole, that.xrole) && Objects.equals(this.appXrole, that.appXrole) && Objects.equals(this.description, that.description) @@ -1156,6 +1179,7 @@ public int hashCode() { funcVpc, memorySize, gpuMemory, + gpuType, codeType, codeUrl, codeFilename, @@ -1192,6 +1216,7 @@ public String toString() { sb.append(" funcVpc: ").append(toIndentedString(funcVpc)).append("\n"); sb.append(" memorySize: ").append(toIndentedString(memorySize)).append("\n"); sb.append(" gpuMemory: ").append(toIndentedString(gpuMemory)).append("\n"); + sb.append(" gpuType: ").append(toIndentedString(gpuType)).append("\n"); sb.append(" codeType: ").append(toIndentedString(codeType)).append("\n"); sb.append(" codeUrl: ").append(toIndentedString(codeUrl)).append("\n"); sb.append(" codeFilename: ").append(toIndentedString(codeFilename)).append("\n"); diff --git a/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/model/ShowFunctionConfigResponse.java b/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/model/ShowFunctionConfigResponse.java index 1f3647fa55..80e7a1003b 100644 --- a/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/model/ShowFunctionConfigResponse.java +++ b/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/model/ShowFunctionConfigResponse.java @@ -293,6 +293,11 @@ public int hashCode() { private Integer gpuMemory; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "gpu_type") + + private String gpuType; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "cpu") @@ -651,11 +656,6 @@ public int hashCode() { private Boolean enableClassIsolation; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "gpu_type") - - private String gpuType; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "allow_ephemeral_storage") @@ -892,6 +892,23 @@ public void setGpuMemory(Integer gpuMemory) { this.gpuMemory = gpuMemory; } + public ShowFunctionConfigResponse withGpuType(String gpuType) { + this.gpuType = gpuType; + return this; + } + + /** + * 显卡类型。 + * @return gpuType + */ + public String getGpuType() { + return gpuType; + } + + public void setGpuType(String gpuType) { + this.gpuType = gpuType; + } + public ShowFunctionConfigResponse withCpu(Integer cpu) { this.cpu = cpu; return this; @@ -1656,23 +1673,6 @@ public void setEnableClassIsolation(Boolean enableClassIsolation) { this.enableClassIsolation = enableClassIsolation; } - public ShowFunctionConfigResponse withGpuType(String gpuType) { - this.gpuType = gpuType; - return this; - } - - /** - * 显卡类型。 - * @return gpuType - */ - public String getGpuType() { - return gpuType; - } - - public void setGpuType(String gpuType) { - this.gpuType = gpuType; - } - public ShowFunctionConfigResponse withAllowEphemeralStorage(Boolean allowEphemeralStorage) { this.allowEphemeralStorage = allowEphemeralStorage; return this; @@ -1748,10 +1748,10 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.projectName, that.projectName) && Objects.equals(this._package, that._package) && Objects.equals(this.runtime, that.runtime) && Objects.equals(this.timeout, that.timeout) && Objects.equals(this.handler, that.handler) && Objects.equals(this.memorySize, that.memorySize) - && Objects.equals(this.gpuMemory, that.gpuMemory) && Objects.equals(this.cpu, that.cpu) - && Objects.equals(this.codeType, that.codeType) && Objects.equals(this.codeUrl, that.codeUrl) - && Objects.equals(this.codeFilename, that.codeFilename) && Objects.equals(this.codeSize, that.codeSize) - && Objects.equals(this.userData, that.userData) + && Objects.equals(this.gpuMemory, that.gpuMemory) && Objects.equals(this.gpuType, that.gpuType) + && Objects.equals(this.cpu, that.cpu) && Objects.equals(this.codeType, that.codeType) + && Objects.equals(this.codeUrl, that.codeUrl) && Objects.equals(this.codeFilename, that.codeFilename) + && Objects.equals(this.codeSize, that.codeSize) && Objects.equals(this.userData, that.userData) && Objects.equals(this.encryptedUserData, that.encryptedUserData) && Objects.equals(this.digest, that.digest) && Objects.equals(this.version, that.version) && Objects.equals(this.imageName, that.imageName) && Objects.equals(this.xrole, that.xrole) @@ -1780,7 +1780,6 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.apigRouteEnable, that.apigRouteEnable) && Objects.equals(this.heartbeatHandler, that.heartbeatHandler) && Objects.equals(this.enableClassIsolation, that.enableClassIsolation) - && Objects.equals(this.gpuType, that.gpuType) && Objects.equals(this.allowEphemeralStorage, that.allowEphemeralStorage) && Objects.equals(this.networkController, that.networkController) && Objects.equals(this.isReturnStream, that.isReturnStream); @@ -1801,6 +1800,7 @@ public int hashCode() { handler, memorySize, gpuMemory, + gpuType, cpu, codeType, codeUrl, @@ -1841,7 +1841,6 @@ public int hashCode() { apigRouteEnable, heartbeatHandler, enableClassIsolation, - gpuType, allowEphemeralStorage, networkController, isReturnStream); @@ -1864,6 +1863,7 @@ public String toString() { sb.append(" handler: ").append(toIndentedString(handler)).append("\n"); sb.append(" memorySize: ").append(toIndentedString(memorySize)).append("\n"); sb.append(" gpuMemory: ").append(toIndentedString(gpuMemory)).append("\n"); + sb.append(" gpuType: ").append(toIndentedString(gpuType)).append("\n"); sb.append(" cpu: ").append(toIndentedString(cpu)).append("\n"); sb.append(" codeType: ").append(toIndentedString(codeType)).append("\n"); sb.append(" codeUrl: ").append(toIndentedString(codeUrl)).append("\n"); @@ -1904,7 +1904,6 @@ public String toString() { sb.append(" apigRouteEnable: ").append(toIndentedString(apigRouteEnable)).append("\n"); sb.append(" heartbeatHandler: ").append(toIndentedString(heartbeatHandler)).append("\n"); sb.append(" enableClassIsolation: ").append(toIndentedString(enableClassIsolation)).append("\n"); - sb.append(" gpuType: ").append(toIndentedString(gpuType)).append("\n"); sb.append(" allowEphemeralStorage: ").append(toIndentedString(allowEphemeralStorage)).append("\n"); sb.append(" networkController: ").append(toIndentedString(networkController)).append("\n"); sb.append(" isReturnStream: ").append(toIndentedString(isReturnStream)).append("\n"); diff --git a/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/model/UpdateFunctionCodeRequestBody.java b/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/model/UpdateFunctionCodeRequestBody.java index 3f9015048c..95e83baa6d 100644 --- a/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/model/UpdateFunctionCodeRequestBody.java +++ b/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/model/UpdateFunctionCodeRequestBody.java @@ -126,11 +126,6 @@ public int hashCode() { private FuncCode funcCode; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "depend_list") - - private List dependList = null; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "depend_version_list") @@ -213,39 +208,6 @@ public void setFuncCode(FuncCode funcCode) { this.funcCode = funcCode; } - public UpdateFunctionCodeRequestBody withDependList(List dependList) { - this.dependList = dependList; - return this; - } - - public UpdateFunctionCodeRequestBody addDependListItem(String dependListItem) { - if (this.dependList == null) { - this.dependList = new ArrayList<>(); - } - this.dependList.add(dependListItem); - return this; - } - - public UpdateFunctionCodeRequestBody withDependList(Consumer> dependListSetter) { - if (this.dependList == null) { - this.dependList = new ArrayList<>(); - } - dependListSetter.accept(this.dependList); - return this; - } - - /** - * 依赖id列表 - * @return dependList - */ - public List getDependList() { - return dependList; - } - - public void setDependList(List dependList) { - this.dependList = dependList; - } - public UpdateFunctionCodeRequestBody withDependVersionList(List dependVersionList) { this.dependVersionList = dependVersionList; return this; @@ -290,13 +252,12 @@ public boolean equals(java.lang.Object obj) { UpdateFunctionCodeRequestBody that = (UpdateFunctionCodeRequestBody) obj; return Objects.equals(this.codeType, that.codeType) && Objects.equals(this.codeUrl, that.codeUrl) && Objects.equals(this.codeFilename, that.codeFilename) && Objects.equals(this.funcCode, that.funcCode) - && Objects.equals(this.dependList, that.dependList) && Objects.equals(this.dependVersionList, that.dependVersionList); } @Override public int hashCode() { - return Objects.hash(codeType, codeUrl, codeFilename, funcCode, dependList, dependVersionList); + return Objects.hash(codeType, codeUrl, codeFilename, funcCode, dependVersionList); } @Override @@ -307,7 +268,6 @@ public String toString() { sb.append(" codeUrl: ").append(toIndentedString(codeUrl)).append("\n"); sb.append(" codeFilename: ").append(toIndentedString(codeFilename)).append("\n"); sb.append(" funcCode: ").append(toIndentedString(funcCode)).append("\n"); - sb.append(" dependList: ").append(toIndentedString(dependList)).append("\n"); sb.append(" dependVersionList: ").append(toIndentedString(dependVersionList)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/model/UpdateFunctionConfigRequestBody.java b/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/model/UpdateFunctionConfigRequestBody.java index 6497dd8f57..73c7e2a1e9 100644 --- a/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/model/UpdateFunctionConfigRequestBody.java +++ b/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/model/UpdateFunctionConfigRequestBody.java @@ -254,6 +254,11 @@ public int hashCode() { private Integer gpuMemory; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "gpu_type") + + private String gpuType; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "user_data") @@ -384,11 +389,6 @@ public int hashCode() { private Boolean enableClassIsolation; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "gpu_type") - - private String gpuType; - public UpdateFunctionConfigRequestBody withFuncName(String funcName) { this.funcName = funcName; return this; @@ -491,6 +491,23 @@ public void setGpuMemory(Integer gpuMemory) { this.gpuMemory = gpuMemory; } + public UpdateFunctionConfigRequestBody withGpuType(String gpuType) { + this.gpuType = gpuType; + return this; + } + + /** + * 显卡类型。 + * @return gpuType + */ + public String getGpuType() { + return gpuType; + } + + public void setGpuType(String gpuType) { + this.gpuType = gpuType; + } + public UpdateFunctionConfigRequestBody withUserData(String userData) { this.userData = userData; return this; @@ -988,23 +1005,6 @@ public void setEnableClassIsolation(Boolean enableClassIsolation) { this.enableClassIsolation = enableClassIsolation; } - public UpdateFunctionConfigRequestBody withGpuType(String gpuType) { - this.gpuType = gpuType; - return this; - } - - /** - * 显卡类型。 - * @return gpuType - */ - public String getGpuType() { - return gpuType; - } - - public void setGpuType(String gpuType) { - this.gpuType = gpuType; - } - @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -1017,7 +1017,7 @@ public boolean equals(java.lang.Object obj) { return Objects.equals(this.funcName, that.funcName) && Objects.equals(this.runtime, that.runtime) && Objects.equals(this.timeout, that.timeout) && Objects.equals(this.handler, that.handler) && Objects.equals(this.memorySize, that.memorySize) && Objects.equals(this.gpuMemory, that.gpuMemory) - && Objects.equals(this.userData, that.userData) + && Objects.equals(this.gpuType, that.gpuType) && Objects.equals(this.userData, that.userData) && Objects.equals(this.encryptedUserData, that.encryptedUserData) && Objects.equals(this.xrole, that.xrole) && Objects.equals(this.appXrole, that.appXrole) && Objects.equals(this.description, that.description) && Objects.equals(this.funcVpc, that.funcVpc) && Objects.equals(this.mountConfig, that.mountConfig) @@ -1039,8 +1039,7 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.restoreHookHandler, that.restoreHookHandler) && Objects.equals(this.restoreHookTimeout, that.restoreHookTimeout) && Objects.equals(this.heartbeatHandler, that.heartbeatHandler) - && Objects.equals(this.enableClassIsolation, that.enableClassIsolation) - && Objects.equals(this.gpuType, that.gpuType); + && Objects.equals(this.enableClassIsolation, that.enableClassIsolation); } @Override @@ -1051,6 +1050,7 @@ public int hashCode() { handler, memorySize, gpuMemory, + gpuType, userData, encryptedUserData, xrole, @@ -1076,8 +1076,7 @@ public int hashCode() { restoreHookHandler, restoreHookTimeout, heartbeatHandler, - enableClassIsolation, - gpuType); + enableClassIsolation); } @Override @@ -1090,6 +1089,7 @@ public String toString() { sb.append(" handler: ").append(toIndentedString(handler)).append("\n"); sb.append(" memorySize: ").append(toIndentedString(memorySize)).append("\n"); sb.append(" gpuMemory: ").append(toIndentedString(gpuMemory)).append("\n"); + sb.append(" gpuType: ").append(toIndentedString(gpuType)).append("\n"); sb.append(" userData: ").append(toIndentedString(userData)).append("\n"); sb.append(" encryptedUserData: ").append(toIndentedString(encryptedUserData)).append("\n"); sb.append(" xrole: ").append(toIndentedString(xrole)).append("\n"); @@ -1116,7 +1116,6 @@ public String toString() { sb.append(" restoreHookTimeout: ").append(toIndentedString(restoreHookTimeout)).append("\n"); sb.append(" heartbeatHandler: ").append(toIndentedString(heartbeatHandler)).append("\n"); sb.append(" enableClassIsolation: ").append(toIndentedString(enableClassIsolation)).append("\n"); - sb.append(" gpuType: ").append(toIndentedString(gpuType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ga/pom.xml b/services/ga/pom.xml index 45c817ab3e..a1dbaa8136 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-ga - 3.1.94 + 3.1.95 Huawei Cloud SDK for GA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/gaussdb/pom.xml b/services/gaussdb/pom.xml index c3f8200e03..80bd41c980 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-gaussdb - 3.1.94 + 3.1.95 Huawei Cloud SDK for GAUSSDB 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/GaussDBAsyncClient.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/GaussDBAsyncClient.java index 7441795d5a..a3fb29616b 100644 --- a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/GaussDBAsyncClient.java +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/GaussDBAsyncClient.java @@ -15,8 +15,12 @@ import com.huaweicloud.sdk.gaussdb.v3.model.ChangeGaussMySqlInstanceSpecificationResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ChangeGaussMySqlProxySpecificationRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ChangeGaussMySqlProxySpecificationResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.CheckDataBaseConfigRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.CheckDataBaseConfigResponse; import com.huaweicloud.sdk.gaussdb.v3.model.CheckResourceRequest; import com.huaweicloud.sdk.gaussdb.v3.model.CheckResourceResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.CheckTableConfigRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.CheckTableConfigResponse; import com.huaweicloud.sdk.gaussdb.v3.model.CopyConfigurationsRequest; import com.huaweicloud.sdk.gaussdb.v3.model.CopyConfigurationsResponse; import com.huaweicloud.sdk.gaussdb.v3.model.CopyInstanceConfigurationsRequest; @@ -41,6 +45,8 @@ import com.huaweicloud.sdk.gaussdb.v3.model.CreateGaussMysqlDnsResponse; import com.huaweicloud.sdk.gaussdb.v3.model.CreateRestoreTablesRequest; import com.huaweicloud.sdk.gaussdb.v3.model.CreateRestoreTablesResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.CreateStarRocksDataReplicationRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.CreateStarRocksDataReplicationResponse; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteDatabasePermissionRequest; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteDatabasePermissionResponse; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteGaussMySqlBackupRequest; @@ -61,6 +67,8 @@ import com.huaweicloud.sdk.gaussdb.v3.model.DeleteScheduleTasKResponse; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteSqlFilterRuleRequest; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteSqlFilterRuleResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.DeleteStarRocksDataReplicationRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.DeleteStarRocksDataReplicationResponse; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteTaskRecordRequest; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteTaskRecordResponse; import com.huaweicloud.sdk.gaussdb.v3.model.DescribeBackupEncryptStatusRequest; @@ -113,6 +121,14 @@ import com.huaweicloud.sdk.gaussdb.v3.model.ListProjectTagsResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ListScheduleJobsRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ListScheduleJobsResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarRocksDataBasesRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarRocksDataBasesResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarRocksDataReplicationConfigRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarRocksDataReplicationConfigResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarRocksDataReplicationsRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarRocksDataReplicationsResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarRocksDbParametersRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarRocksDbParametersResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ModifyBackupEncryptStatusRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ModifyBackupEncryptStatusResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ModifyGaussMySqlProxyRouteModeRequest; @@ -3691,6 +3707,244 @@ public AsyncInvoker(request, GaussDBMeta.upgradeGaussMySqlInstanceDatabase, hcClient); } + /** + * HTAP数据同步库配置校验 + * + * HTAP数据同步库配置校验。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CheckDataBaseConfigRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture checkDataBaseConfigAsync(CheckDataBaseConfigRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.checkDataBaseConfig); + } + + /** + * HTAP数据同步库配置校验 + * + * HTAP数据同步库配置校验。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CheckDataBaseConfigRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker checkDataBaseConfigAsyncInvoker( + CheckDataBaseConfigRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.checkDataBaseConfig, hcClient); + } + + /** + * HTAP数据同步表配置校验 + * + * HTAP数据同步表配置校验。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CheckTableConfigRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture checkTableConfigAsync(CheckTableConfigRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.checkTableConfig); + } + + /** + * HTAP数据同步表配置校验 + * + * HTAP数据同步表配置校验。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CheckTableConfigRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker checkTableConfigAsyncInvoker( + CheckTableConfigRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.checkTableConfig, hcClient); + } + + /** + * 创建StarRocks数据同步 + * + * 创建StarRocks数据同步。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateStarRocksDataReplicationRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createStarRocksDataReplicationAsync( + CreateStarRocksDataReplicationRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.createStarRocksDataReplication); + } + + /** + * 创建StarRocks数据同步 + * + * 创建StarRocks数据同步。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateStarRocksDataReplicationRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createStarRocksDataReplicationAsyncInvoker( + CreateStarRocksDataReplicationRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.createStarRocksDataReplication, hcClient); + } + + /** + * 删除StarRocks数据同步 + * + * 删除StarRocks数据同步。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteStarRocksDataReplicationRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteStarRocksDataReplicationAsync( + DeleteStarRocksDataReplicationRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.deleteStarRocksDataReplication); + } + + /** + * 删除StarRocks数据同步 + * + * 删除StarRocks数据同步。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteStarRocksDataReplicationRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteStarRocksDataReplicationAsyncInvoker( + DeleteStarRocksDataReplicationRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.deleteStarRocksDataReplication, hcClient); + } + + /** + * 查询StarRocks数据库 + * + * 查询StarRocks数据库。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListStarRocksDataBasesRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listStarRocksDataBasesAsync( + ListStarRocksDataBasesRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.listStarRocksDataBases); + } + + /** + * 查询StarRocks数据库 + * + * 查询StarRocks数据库。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListStarRocksDataBasesRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listStarRocksDataBasesAsyncInvoker( + ListStarRocksDataBasesRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.listStarRocksDataBases, hcClient); + } + + /** + * 查询StarRocks数据同步配置信息 + * + * 查询StarRocks数据同步配置信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListStarRocksDataReplicationConfigRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listStarRocksDataReplicationConfigAsync( + ListStarRocksDataReplicationConfigRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.listStarRocksDataReplicationConfig); + } + + /** + * 查询StarRocks数据同步配置信息 + * + * 查询StarRocks数据同步配置信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListStarRocksDataReplicationConfigRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listStarRocksDataReplicationConfigAsyncInvoker( + ListStarRocksDataReplicationConfigRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.listStarRocksDataReplicationConfig, hcClient); + } + + /** + * 查询StarRocks数据同步状态信息 + * + * 查询StarRocks数据同步状态信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListStarRocksDataReplicationsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listStarRocksDataReplicationsAsync( + ListStarRocksDataReplicationsRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.listStarRocksDataReplications); + } + + /** + * 查询StarRocks数据同步状态信息 + * + * 查询StarRocks数据同步状态信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListStarRocksDataReplicationsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listStarRocksDataReplicationsAsyncInvoker( + ListStarRocksDataReplicationsRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.listStarRocksDataReplications, hcClient); + } + + /** + * 查询StarRocks数据同步的库参数配置 + * + * 查询StarRocks数据同步的库参数配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListStarRocksDbParametersRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listStarRocksDbParametersAsync( + ListStarRocksDbParametersRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.listStarRocksDbParameters); + } + + /** + * 查询StarRocks数据同步的库参数配置 + * + * 查询StarRocks数据同步的库参数配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListStarRocksDbParametersRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listStarRocksDbParametersAsyncInvoker( + ListStarRocksDbParametersRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.listStarRocksDbParameters, hcClient); + } + /** * 删除SQL限流规则 * diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/GaussDBClient.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/GaussDBClient.java index ba8e9d6ef1..2614ad1bb3 100644 --- a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/GaussDBClient.java +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/GaussDBClient.java @@ -15,8 +15,12 @@ import com.huaweicloud.sdk.gaussdb.v3.model.ChangeGaussMySqlInstanceSpecificationResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ChangeGaussMySqlProxySpecificationRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ChangeGaussMySqlProxySpecificationResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.CheckDataBaseConfigRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.CheckDataBaseConfigResponse; import com.huaweicloud.sdk.gaussdb.v3.model.CheckResourceRequest; import com.huaweicloud.sdk.gaussdb.v3.model.CheckResourceResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.CheckTableConfigRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.CheckTableConfigResponse; import com.huaweicloud.sdk.gaussdb.v3.model.CopyConfigurationsRequest; import com.huaweicloud.sdk.gaussdb.v3.model.CopyConfigurationsResponse; import com.huaweicloud.sdk.gaussdb.v3.model.CopyInstanceConfigurationsRequest; @@ -41,6 +45,8 @@ import com.huaweicloud.sdk.gaussdb.v3.model.CreateGaussMysqlDnsResponse; import com.huaweicloud.sdk.gaussdb.v3.model.CreateRestoreTablesRequest; import com.huaweicloud.sdk.gaussdb.v3.model.CreateRestoreTablesResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.CreateStarRocksDataReplicationRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.CreateStarRocksDataReplicationResponse; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteDatabasePermissionRequest; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteDatabasePermissionResponse; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteGaussMySqlBackupRequest; @@ -61,6 +67,8 @@ import com.huaweicloud.sdk.gaussdb.v3.model.DeleteScheduleTasKResponse; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteSqlFilterRuleRequest; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteSqlFilterRuleResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.DeleteStarRocksDataReplicationRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.DeleteStarRocksDataReplicationResponse; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteTaskRecordRequest; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteTaskRecordResponse; import com.huaweicloud.sdk.gaussdb.v3.model.DescribeBackupEncryptStatusRequest; @@ -113,6 +121,14 @@ import com.huaweicloud.sdk.gaussdb.v3.model.ListProjectTagsResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ListScheduleJobsRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ListScheduleJobsResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarRocksDataBasesRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarRocksDataBasesResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarRocksDataReplicationConfigRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarRocksDataReplicationConfigResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarRocksDataReplicationsRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarRocksDataReplicationsResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarRocksDbParametersRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarRocksDbParametersResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ModifyBackupEncryptStatusRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ModifyBackupEncryptStatusResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ModifyGaussMySqlProxyRouteModeRequest; @@ -3634,6 +3650,242 @@ public SyncInvoker(request, GaussDBMeta.upgradeGaussMySqlInstanceDatabase, hcClient); } + /** + * HTAP数据同步库配置校验 + * + * HTAP数据同步库配置校验。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CheckDataBaseConfigRequest 请求对象 + * @return CheckDataBaseConfigResponse + */ + public CheckDataBaseConfigResponse checkDataBaseConfig(CheckDataBaseConfigRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.checkDataBaseConfig); + } + + /** + * HTAP数据同步库配置校验 + * + * HTAP数据同步库配置校验。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CheckDataBaseConfigRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker checkDataBaseConfigInvoker( + CheckDataBaseConfigRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.checkDataBaseConfig, hcClient); + } + + /** + * HTAP数据同步表配置校验 + * + * HTAP数据同步表配置校验。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CheckTableConfigRequest 请求对象 + * @return CheckTableConfigResponse + */ + public CheckTableConfigResponse checkTableConfig(CheckTableConfigRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.checkTableConfig); + } + + /** + * HTAP数据同步表配置校验 + * + * HTAP数据同步表配置校验。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CheckTableConfigRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker checkTableConfigInvoker( + CheckTableConfigRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.checkTableConfig, hcClient); + } + + /** + * 创建StarRocks数据同步 + * + * 创建StarRocks数据同步。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateStarRocksDataReplicationRequest 请求对象 + * @return CreateStarRocksDataReplicationResponse + */ + public CreateStarRocksDataReplicationResponse createStarRocksDataReplication( + CreateStarRocksDataReplicationRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.createStarRocksDataReplication); + } + + /** + * 创建StarRocks数据同步 + * + * 创建StarRocks数据同步。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateStarRocksDataReplicationRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createStarRocksDataReplicationInvoker( + CreateStarRocksDataReplicationRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.createStarRocksDataReplication, hcClient); + } + + /** + * 删除StarRocks数据同步 + * + * 删除StarRocks数据同步。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteStarRocksDataReplicationRequest 请求对象 + * @return DeleteStarRocksDataReplicationResponse + */ + public DeleteStarRocksDataReplicationResponse deleteStarRocksDataReplication( + DeleteStarRocksDataReplicationRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.deleteStarRocksDataReplication); + } + + /** + * 删除StarRocks数据同步 + * + * 删除StarRocks数据同步。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteStarRocksDataReplicationRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteStarRocksDataReplicationInvoker( + DeleteStarRocksDataReplicationRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.deleteStarRocksDataReplication, hcClient); + } + + /** + * 查询StarRocks数据库 + * + * 查询StarRocks数据库。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListStarRocksDataBasesRequest 请求对象 + * @return ListStarRocksDataBasesResponse + */ + public ListStarRocksDataBasesResponse listStarRocksDataBases(ListStarRocksDataBasesRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.listStarRocksDataBases); + } + + /** + * 查询StarRocks数据库 + * + * 查询StarRocks数据库。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListStarRocksDataBasesRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listStarRocksDataBasesInvoker( + ListStarRocksDataBasesRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.listStarRocksDataBases, hcClient); + } + + /** + * 查询StarRocks数据同步配置信息 + * + * 查询StarRocks数据同步配置信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListStarRocksDataReplicationConfigRequest 请求对象 + * @return ListStarRocksDataReplicationConfigResponse + */ + public ListStarRocksDataReplicationConfigResponse listStarRocksDataReplicationConfig( + ListStarRocksDataReplicationConfigRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.listStarRocksDataReplicationConfig); + } + + /** + * 查询StarRocks数据同步配置信息 + * + * 查询StarRocks数据同步配置信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListStarRocksDataReplicationConfigRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listStarRocksDataReplicationConfigInvoker( + ListStarRocksDataReplicationConfigRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.listStarRocksDataReplicationConfig, hcClient); + } + + /** + * 查询StarRocks数据同步状态信息 + * + * 查询StarRocks数据同步状态信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListStarRocksDataReplicationsRequest 请求对象 + * @return ListStarRocksDataReplicationsResponse + */ + public ListStarRocksDataReplicationsResponse listStarRocksDataReplications( + ListStarRocksDataReplicationsRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.listStarRocksDataReplications); + } + + /** + * 查询StarRocks数据同步状态信息 + * + * 查询StarRocks数据同步状态信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListStarRocksDataReplicationsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listStarRocksDataReplicationsInvoker( + ListStarRocksDataReplicationsRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.listStarRocksDataReplications, hcClient); + } + + /** + * 查询StarRocks数据同步的库参数配置 + * + * 查询StarRocks数据同步的库参数配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListStarRocksDbParametersRequest 请求对象 + * @return ListStarRocksDbParametersResponse + */ + public ListStarRocksDbParametersResponse listStarRocksDbParameters(ListStarRocksDbParametersRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.listStarRocksDbParameters); + } + + /** + * 查询StarRocks数据同步的库参数配置 + * + * 查询StarRocks数据同步的库参数配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListStarRocksDbParametersRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listStarRocksDbParametersInvoker( + ListStarRocksDbParametersRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.listStarRocksDbParameters, hcClient); + } + /** * 删除SQL限流规则 * diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/GaussDBMeta.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/GaussDBMeta.java index 1c49c2fef5..bf8716543c 100644 --- a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/GaussDBMeta.java +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/GaussDBMeta.java @@ -21,9 +21,13 @@ import com.huaweicloud.sdk.gaussdb.v3.model.ChangeGaussMySqlInstanceSpecificationResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ChangeGaussMySqlProxySpecificationRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ChangeGaussMySqlProxySpecificationResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.CheckDataBaseConfigRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.CheckDataBaseConfigResponse; import com.huaweicloud.sdk.gaussdb.v3.model.CheckResourceRequest; import com.huaweicloud.sdk.gaussdb.v3.model.CheckResourceRequestBody; import com.huaweicloud.sdk.gaussdb.v3.model.CheckResourceResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.CheckTableConfigRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.CheckTableConfigResponse; import com.huaweicloud.sdk.gaussdb.v3.model.CloseMysqlProxyRequestBody; import com.huaweicloud.sdk.gaussdb.v3.model.CopyConfigurationsRequest; import com.huaweicloud.sdk.gaussdb.v3.model.CopyConfigurationsRequestBody; @@ -57,6 +61,10 @@ import com.huaweicloud.sdk.gaussdb.v3.model.CreateRestoreTablesRequest; import com.huaweicloud.sdk.gaussdb.v3.model.CreateRestoreTablesRequestBody; import com.huaweicloud.sdk.gaussdb.v3.model.CreateRestoreTablesResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.CreateStarRocksDataReplication; +import com.huaweicloud.sdk.gaussdb.v3.model.CreateStarRocksDataReplicationRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.CreateStarRocksDataReplicationResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.DbConfigCheckRequestV3; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteDatabasePermissionRequest; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteDatabasePermissionRequestBody; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteDatabasePermissionResponse; @@ -82,6 +90,9 @@ import com.huaweicloud.sdk.gaussdb.v3.model.DeleteSqlFilterRuleReq; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteSqlFilterRuleRequest; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteSqlFilterRuleResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.DeleteStarRocksDataReplication; +import com.huaweicloud.sdk.gaussdb.v3.model.DeleteStarRocksDataReplicationRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.DeleteStarRocksDataReplicationResponse; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteTaskRecordRequest; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteTaskRecordResponse; import com.huaweicloud.sdk.gaussdb.v3.model.DescribeBackupEncryptStatusRequest; @@ -137,6 +148,14 @@ import com.huaweicloud.sdk.gaussdb.v3.model.ListProjectTagsResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ListScheduleJobsRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ListScheduleJobsResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarRocksDataBasesRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarRocksDataBasesResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarRocksDataReplicationConfigRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarRocksDataReplicationConfigResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarRocksDataReplicationsRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarRocksDataReplicationsResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarRocksDbParametersRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarRocksDbParametersResponse; import com.huaweicloud.sdk.gaussdb.v3.model.LtsLogErrorQueryRequest; import com.huaweicloud.sdk.gaussdb.v3.model.LtsLogSlowQueryRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ModifyAliasRequest; @@ -250,6 +269,7 @@ import com.huaweicloud.sdk.gaussdb.v3.model.SwitchGaussMySqlProxySslResponse; import com.huaweicloud.sdk.gaussdb.v3.model.SwitchProxySSLRequest; import com.huaweicloud.sdk.gaussdb.v3.model.SwitchSSLRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.TableConfigCheckRequestV3; import com.huaweicloud.sdk.gaussdb.v3.model.TaurusModifyInstanceMonitorRequestBody; import com.huaweicloud.sdk.gaussdb.v3.model.TaurusModifyProxyWeightRequest; import com.huaweicloud.sdk.gaussdb.v3.model.TaurusProxyScaleRequest; @@ -4812,6 +4832,315 @@ private static HttpRequestDef checkDataBaseConfig = + genForCheckDataBaseConfig(); + + private static HttpRequestDef genForCheckDataBaseConfig() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, CheckDataBaseConfigRequest.class, CheckDataBaseConfigResponse.class) + .withName("CheckDataBaseConfig") + .withUri( + "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/database-config-check") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CheckDataBaseConfigRequest::getInstanceId, + CheckDataBaseConfigRequest::setInstanceId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CheckDataBaseConfigRequest::getXLanguage, CheckDataBaseConfigRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(DbConfigCheckRequestV3.class), + f -> f.withMarshaller(CheckDataBaseConfigRequest::getBody, CheckDataBaseConfigRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef checkTableConfig = + genForCheckTableConfig(); + + private static HttpRequestDef genForCheckTableConfig() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, CheckTableConfigRequest.class, CheckTableConfigResponse.class) + .withName("CheckTableConfig") + .withUri("/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/table-config-check") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CheckTableConfigRequest::getInstanceId, CheckTableConfigRequest::setInstanceId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CheckTableConfigRequest::getXLanguage, CheckTableConfigRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(TableConfigCheckRequestV3.class), + f -> f.withMarshaller(CheckTableConfigRequest::getBody, CheckTableConfigRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef createStarRocksDataReplication = + genForCreateStarRocksDataReplication(); + + private static HttpRequestDef genForCreateStarRocksDataReplication() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + CreateStarRocksDataReplicationRequest.class, + CreateStarRocksDataReplicationResponse.class) + .withName("CreateStarRocksDataReplication") + .withUri("/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateStarRocksDataReplicationRequest::getInstanceId, + CreateStarRocksDataReplicationRequest::setInstanceId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateStarRocksDataReplicationRequest::getXLanguage, + CreateStarRocksDataReplicationRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateStarRocksDataReplication.class), + f -> f.withMarshaller(CreateStarRocksDataReplicationRequest::getBody, + CreateStarRocksDataReplicationRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef deleteStarRocksDataReplication = + genForDeleteStarRocksDataReplication(); + + private static HttpRequestDef genForDeleteStarRocksDataReplication() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.DELETE, + DeleteStarRocksDataReplicationRequest.class, + DeleteStarRocksDataReplicationResponse.class) + .withName("DeleteStarRocksDataReplication") + .withUri("/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteStarRocksDataReplicationRequest::getInstanceId, + DeleteStarRocksDataReplicationRequest::setInstanceId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteStarRocksDataReplicationRequest::getXLanguage, + DeleteStarRocksDataReplicationRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(DeleteStarRocksDataReplication.class), + f -> f.withMarshaller(DeleteStarRocksDataReplicationRequest::getBody, + DeleteStarRocksDataReplicationRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listStarRocksDataBases = + genForListStarRocksDataBases(); + + private static HttpRequestDef genForListStarRocksDataBases() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ListStarRocksDataBasesRequest.class, ListStarRocksDataBasesResponse.class) + .withName("ListStarRocksDataBases") + .withUri("/v3/{project_id}/instances/{instance_id}/starrocks/databases") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListStarRocksDataBasesRequest::getInstanceId, + ListStarRocksDataBasesRequest::setInstanceId)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListStarRocksDataBasesRequest::getLimit, ListStarRocksDataBasesRequest::setLimit)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListStarRocksDataBasesRequest::getOffset, ListStarRocksDataBasesRequest::setOffset)); + builder.withRequestField("database_name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListStarRocksDataBasesRequest::getDatabaseName, + ListStarRocksDataBasesRequest::setDatabaseName)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListStarRocksDataBasesRequest::getXLanguage, + ListStarRocksDataBasesRequest::setXLanguage)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listStarRocksDataReplicationConfig = + genForListStarRocksDataReplicationConfig(); + + private static HttpRequestDef genForListStarRocksDataReplicationConfig() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ListStarRocksDataReplicationConfigRequest.class, + ListStarRocksDataReplicationConfigResponse.class) + .withName("ListStarRocksDataReplicationConfig") + .withUri("/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/configuration") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListStarRocksDataReplicationConfigRequest::getInstanceId, + ListStarRocksDataReplicationConfigRequest::setInstanceId)); + builder.withRequestField("task_name", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListStarRocksDataReplicationConfigRequest::getTaskName, + ListStarRocksDataReplicationConfigRequest::setTaskName)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListStarRocksDataReplicationConfigRequest::getXLanguage, + ListStarRocksDataReplicationConfigRequest::setXLanguage)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listStarRocksDataReplications = + genForListStarRocksDataReplications(); + + private static HttpRequestDef genForListStarRocksDataReplications() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ListStarRocksDataReplicationsRequest.class, + ListStarRocksDataReplicationsResponse.class) + .withName("ListStarRocksDataReplications") + .withUri("/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListStarRocksDataReplicationsRequest::getInstanceId, + ListStarRocksDataReplicationsRequest::setInstanceId)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListStarRocksDataReplicationsRequest::getLimit, + ListStarRocksDataReplicationsRequest::setLimit)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListStarRocksDataReplicationsRequest::getOffset, + ListStarRocksDataReplicationsRequest::setOffset)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListStarRocksDataReplicationsRequest::getXLanguage, + ListStarRocksDataReplicationsRequest::setXLanguage)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listStarRocksDbParameters = + genForListStarRocksDbParameters(); + + private static HttpRequestDef genForListStarRocksDbParameters() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ListStarRocksDbParametersRequest.class, + ListStarRocksDbParametersResponse.class) + .withName("ListStarRocksDbParameters") + .withUri("/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/database-parameters") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListStarRocksDbParametersRequest::getInstanceId, + ListStarRocksDbParametersRequest::setInstanceId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListStarRocksDbParametersRequest::getXLanguage, + ListStarRocksDbParametersRequest::setXLanguage)); + + // response + + return builder.build(); + } + public static final HttpRequestDef deleteSqlFilterRule = genForDeleteSqlFilterRule(); diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CheckDataBaseConfigRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CheckDataBaseConfigRequest.java new file mode 100644 index 0000000000..e598e4dd38 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CheckDataBaseConfigRequest.java @@ -0,0 +1,131 @@ +package com.huaweicloud.sdk.gaussdb.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 CheckDataBaseConfigRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private DbConfigCheckRequestV3 body; + + public CheckDataBaseConfigRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + + public CheckDataBaseConfigRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * StarRocks实例ID,严格匹配UUID规则。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public CheckDataBaseConfigRequest withBody(DbConfigCheckRequestV3 body) { + this.body = body; + return this; + } + + public CheckDataBaseConfigRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new DbConfigCheckRequestV3(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public DbConfigCheckRequestV3 getBody() { + return body; + } + + public void setBody(DbConfigCheckRequestV3 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; + } + CheckDataBaseConfigRequest that = (CheckDataBaseConfigRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, instanceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CheckDataBaseConfigRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CheckDataBaseConfigResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CheckDataBaseConfigResponse.java new file mode 100644 index 0000000000..1cc7970df2 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CheckDataBaseConfigResponse.java @@ -0,0 +1,214 @@ +package com.huaweicloud.sdk.gaussdb.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 CheckDataBaseConfigResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_database_name") + + private String sourceDatabaseName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_db_config_check_results") + + private List sourceDbConfigCheckResults = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_database_name") + + private String targetDatabaseName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_db_config_check_results") + + private List targetDbConfigCheckResults = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_name") + + private String taskName; + + public CheckDataBaseConfigResponse withSourceDatabaseName(String sourceDatabaseName) { + this.sourceDatabaseName = sourceDatabaseName; + return this; + } + + /** + * GaussDB(for MySQL)数据库名称。 + * @return sourceDatabaseName + */ + public String getSourceDatabaseName() { + return sourceDatabaseName; + } + + public void setSourceDatabaseName(String sourceDatabaseName) { + this.sourceDatabaseName = sourceDatabaseName; + } + + public CheckDataBaseConfigResponse withSourceDbConfigCheckResults( + List sourceDbConfigCheckResults) { + this.sourceDbConfigCheckResults = sourceDbConfigCheckResults; + return this; + } + + public CheckDataBaseConfigResponse addSourceDbConfigCheckResultsItem( + DbConfigCheckResult sourceDbConfigCheckResultsItem) { + if (this.sourceDbConfigCheckResults == null) { + this.sourceDbConfigCheckResults = new ArrayList<>(); + } + this.sourceDbConfigCheckResults.add(sourceDbConfigCheckResultsItem); + return this; + } + + public CheckDataBaseConfigResponse withSourceDbConfigCheckResults( + Consumer> sourceDbConfigCheckResultsSetter) { + if (this.sourceDbConfigCheckResults == null) { + this.sourceDbConfigCheckResults = new ArrayList<>(); + } + sourceDbConfigCheckResultsSetter.accept(this.sourceDbConfigCheckResults); + return this; + } + + /** + * GaussDB(for MySQL)数据库配置检查结果。 + * @return sourceDbConfigCheckResults + */ + public List getSourceDbConfigCheckResults() { + return sourceDbConfigCheckResults; + } + + public void setSourceDbConfigCheckResults(List sourceDbConfigCheckResults) { + this.sourceDbConfigCheckResults = sourceDbConfigCheckResults; + } + + public CheckDataBaseConfigResponse withTargetDatabaseName(String targetDatabaseName) { + this.targetDatabaseName = targetDatabaseName; + return this; + } + + /** + * 目标数据库名称。 + * @return targetDatabaseName + */ + public String getTargetDatabaseName() { + return targetDatabaseName; + } + + public void setTargetDatabaseName(String targetDatabaseName) { + this.targetDatabaseName = targetDatabaseName; + } + + public CheckDataBaseConfigResponse withTargetDbConfigCheckResults( + List targetDbConfigCheckResults) { + this.targetDbConfigCheckResults = targetDbConfigCheckResults; + return this; + } + + public CheckDataBaseConfigResponse addTargetDbConfigCheckResultsItem( + DbConfigCheckResult targetDbConfigCheckResultsItem) { + if (this.targetDbConfigCheckResults == null) { + this.targetDbConfigCheckResults = new ArrayList<>(); + } + this.targetDbConfigCheckResults.add(targetDbConfigCheckResultsItem); + return this; + } + + public CheckDataBaseConfigResponse withTargetDbConfigCheckResults( + Consumer> targetDbConfigCheckResultsSetter) { + if (this.targetDbConfigCheckResults == null) { + this.targetDbConfigCheckResults = new ArrayList<>(); + } + targetDbConfigCheckResultsSetter.accept(this.targetDbConfigCheckResults); + return this; + } + + /** + * 目标数据库配置检查结果。 + * @return targetDbConfigCheckResults + */ + public List getTargetDbConfigCheckResults() { + return targetDbConfigCheckResults; + } + + public void setTargetDbConfigCheckResults(List targetDbConfigCheckResults) { + this.targetDbConfigCheckResults = targetDbConfigCheckResults; + } + + public CheckDataBaseConfigResponse withTaskName(String taskName) { + this.taskName = taskName; + return this; + } + + /** + * 同步任务名称。 + * @return taskName + */ + public String getTaskName() { + return taskName; + } + + public void setTaskName(String taskName) { + this.taskName = taskName; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CheckDataBaseConfigResponse that = (CheckDataBaseConfigResponse) obj; + return Objects.equals(this.sourceDatabaseName, that.sourceDatabaseName) + && Objects.equals(this.sourceDbConfigCheckResults, that.sourceDbConfigCheckResults) + && Objects.equals(this.targetDatabaseName, that.targetDatabaseName) + && Objects.equals(this.targetDbConfigCheckResults, that.targetDbConfigCheckResults) + && Objects.equals(this.taskName, that.taskName); + } + + @Override + public int hashCode() { + return Objects.hash(sourceDatabaseName, + sourceDbConfigCheckResults, + targetDatabaseName, + targetDbConfigCheckResults, + taskName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CheckDataBaseConfigResponse {\n"); + sb.append(" sourceDatabaseName: ").append(toIndentedString(sourceDatabaseName)).append("\n"); + sb.append(" sourceDbConfigCheckResults: ").append(toIndentedString(sourceDbConfigCheckResults)).append("\n"); + sb.append(" targetDatabaseName: ").append(toIndentedString(targetDatabaseName)).append("\n"); + sb.append(" targetDbConfigCheckResults: ").append(toIndentedString(targetDbConfigCheckResults)).append("\n"); + sb.append(" taskName: ").append(toIndentedString(taskName)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CheckTableConfigRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CheckTableConfigRequest.java new file mode 100644 index 0000000000..db087ed539 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CheckTableConfigRequest.java @@ -0,0 +1,131 @@ +package com.huaweicloud.sdk.gaussdb.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 CheckTableConfigRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private TableConfigCheckRequestV3 body; + + public CheckTableConfigRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + + public CheckTableConfigRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * StarRocks实例ID,严格匹配UUID规则。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public CheckTableConfigRequest withBody(TableConfigCheckRequestV3 body) { + this.body = body; + return this; + } + + public CheckTableConfigRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new TableConfigCheckRequestV3(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public TableConfigCheckRequestV3 getBody() { + return body; + } + + public void setBody(TableConfigCheckRequestV3 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; + } + CheckTableConfigRequest that = (CheckTableConfigRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, instanceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CheckTableConfigRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CheckTableConfigResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CheckTableConfigResponse.java new file mode 100644 index 0000000000..e71ce03232 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CheckTableConfigResponse.java @@ -0,0 +1,165 @@ +package com.huaweicloud.sdk.gaussdb.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 CheckTableConfigResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_database_name") + + private String sourceDatabaseName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_database_name") + + private String targetDatabaseName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tbl_config_check_results") + + private List tblConfigCheckResults = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_name") + + private String taskName; + + public CheckTableConfigResponse withSourceDatabaseName(String sourceDatabaseName) { + this.sourceDatabaseName = sourceDatabaseName; + return this; + } + + /** + * GaussDB(for MySQL)数据库名。 + * @return sourceDatabaseName + */ + public String getSourceDatabaseName() { + return sourceDatabaseName; + } + + public void setSourceDatabaseName(String sourceDatabaseName) { + this.sourceDatabaseName = sourceDatabaseName; + } + + public CheckTableConfigResponse withTargetDatabaseName(String targetDatabaseName) { + this.targetDatabaseName = targetDatabaseName; + return this; + } + + /** + * 目标数据库名。 + * @return targetDatabaseName + */ + public String getTargetDatabaseName() { + return targetDatabaseName; + } + + public void setTargetDatabaseName(String targetDatabaseName) { + this.targetDatabaseName = targetDatabaseName; + } + + public CheckTableConfigResponse withTblConfigCheckResults(List tblConfigCheckResults) { + this.tblConfigCheckResults = tblConfigCheckResults; + return this; + } + + public CheckTableConfigResponse addTblConfigCheckResultsItem(TableConfigCheckResult tblConfigCheckResultsItem) { + if (this.tblConfigCheckResults == null) { + this.tblConfigCheckResults = new ArrayList<>(); + } + this.tblConfigCheckResults.add(tblConfigCheckResultsItem); + return this; + } + + public CheckTableConfigResponse withTblConfigCheckResults( + Consumer> tblConfigCheckResultsSetter) { + if (this.tblConfigCheckResults == null) { + this.tblConfigCheckResults = new ArrayList<>(); + } + tblConfigCheckResultsSetter.accept(this.tblConfigCheckResults); + return this; + } + + /** + * 表配置检查结果。 + * @return tblConfigCheckResults + */ + public List getTblConfigCheckResults() { + return tblConfigCheckResults; + } + + public void setTblConfigCheckResults(List tblConfigCheckResults) { + this.tblConfigCheckResults = tblConfigCheckResults; + } + + public CheckTableConfigResponse withTaskName(String taskName) { + this.taskName = taskName; + return this; + } + + /** + * 同步任务名称。 + * @return taskName + */ + public String getTaskName() { + return taskName; + } + + public void setTaskName(String taskName) { + this.taskName = taskName; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CheckTableConfigResponse that = (CheckTableConfigResponse) obj; + return Objects.equals(this.sourceDatabaseName, that.sourceDatabaseName) + && Objects.equals(this.targetDatabaseName, that.targetDatabaseName) + && Objects.equals(this.tblConfigCheckResults, that.tblConfigCheckResults) + && Objects.equals(this.taskName, that.taskName); + } + + @Override + public int hashCode() { + return Objects.hash(sourceDatabaseName, targetDatabaseName, tblConfigCheckResults, taskName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CheckTableConfigResponse {\n"); + sb.append(" sourceDatabaseName: ").append(toIndentedString(sourceDatabaseName)).append("\n"); + sb.append(" targetDatabaseName: ").append(toIndentedString(targetDatabaseName)).append("\n"); + sb.append(" tblConfigCheckResults: ").append(toIndentedString(tblConfigCheckResults)).append("\n"); + sb.append(" taskName: ").append(toIndentedString(taskName)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CreateStarRocksDataReplication.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CreateStarRocksDataReplication.java new file mode 100644 index 0000000000..5528b927c1 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CreateStarRocksDataReplication.java @@ -0,0 +1,167 @@ +package com.huaweicloud.sdk.gaussdb.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * StarRocks创建数据同步请求。 + */ +public class CreateStarRocksDataReplication { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_instance_id") + + private String sourceInstanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_node_id") + + private String sourceNodeId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_database") + + private String sourceDatabase; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_database") + + private String targetDatabase; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_name") + + private String taskName; + + public CreateStarRocksDataReplication withSourceInstanceId(String sourceInstanceId) { + this.sourceInstanceId = sourceInstanceId; + return this; + } + + /** + * GaussDB(for MySQL)实例ID。 + * @return sourceInstanceId + */ + public String getSourceInstanceId() { + return sourceInstanceId; + } + + public void setSourceInstanceId(String sourceInstanceId) { + this.sourceInstanceId = sourceInstanceId; + } + + public CreateStarRocksDataReplication withSourceNodeId(String sourceNodeId) { + this.sourceNodeId = sourceNodeId; + return this; + } + + /** + * GaussDB(for MySQL)只读节点ID。如为空,则取GaussDB(for MySQL)主节点ID + * @return sourceNodeId + */ + public String getSourceNodeId() { + return sourceNodeId; + } + + public void setSourceNodeId(String sourceNodeId) { + this.sourceNodeId = sourceNodeId; + } + + public CreateStarRocksDataReplication withSourceDatabase(String sourceDatabase) { + this.sourceDatabase = sourceDatabase; + return this; + } + + /** + * 源数据库。 + * @return sourceDatabase + */ + public String getSourceDatabase() { + return sourceDatabase; + } + + public void setSourceDatabase(String sourceDatabase) { + this.sourceDatabase = sourceDatabase; + } + + public CreateStarRocksDataReplication withTargetDatabase(String targetDatabase) { + this.targetDatabase = targetDatabase; + return this; + } + + /** + * 目标数据库。 字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。 + * @return targetDatabase + */ + public String getTargetDatabase() { + return targetDatabase; + } + + public void setTargetDatabase(String targetDatabase) { + this.targetDatabase = targetDatabase; + } + + public CreateStarRocksDataReplication withTaskName(String taskName) { + this.taskName = taskName; + return this; + } + + /** + * 同步任务名。 字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。 + * @return taskName + */ + public String getTaskName() { + return taskName; + } + + public void setTaskName(String taskName) { + this.taskName = taskName; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateStarRocksDataReplication that = (CreateStarRocksDataReplication) obj; + return Objects.equals(this.sourceInstanceId, that.sourceInstanceId) + && Objects.equals(this.sourceNodeId, that.sourceNodeId) + && Objects.equals(this.sourceDatabase, that.sourceDatabase) + && Objects.equals(this.targetDatabase, that.targetDatabase) && Objects.equals(this.taskName, that.taskName); + } + + @Override + public int hashCode() { + return Objects.hash(sourceInstanceId, sourceNodeId, sourceDatabase, targetDatabase, taskName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateStarRocksDataReplication {\n"); + sb.append(" sourceInstanceId: ").append(toIndentedString(sourceInstanceId)).append("\n"); + sb.append(" sourceNodeId: ").append(toIndentedString(sourceNodeId)).append("\n"); + sb.append(" sourceDatabase: ").append(toIndentedString(sourceDatabase)).append("\n"); + sb.append(" targetDatabase: ").append(toIndentedString(targetDatabase)).append("\n"); + sb.append(" taskName: ").append(toIndentedString(taskName)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CreateStarRocksDataReplicationRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CreateStarRocksDataReplicationRequest.java new file mode 100644 index 0000000000..0fed6b04cf --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CreateStarRocksDataReplicationRequest.java @@ -0,0 +1,131 @@ +package com.huaweicloud.sdk.gaussdb.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 CreateStarRocksDataReplicationRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateStarRocksDataReplication body; + + public CreateStarRocksDataReplicationRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * StarRocks实例ID,严格匹配UUID规则。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public CreateStarRocksDataReplicationRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + + public CreateStarRocksDataReplicationRequest withBody(CreateStarRocksDataReplication body) { + this.body = body; + return this; + } + + public CreateStarRocksDataReplicationRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateStarRocksDataReplication(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateStarRocksDataReplication getBody() { + return body; + } + + public void setBody(CreateStarRocksDataReplication 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; + } + CreateStarRocksDataReplicationRequest that = (CreateStarRocksDataReplicationRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.xLanguage, that.xLanguage) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, xLanguage, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateStarRocksDataReplicationRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CreateStarRocksDataReplicationResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CreateStarRocksDataReplicationResponse.java new file mode 100644 index 0000000000..d79edff92a --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CreateStarRocksDataReplicationResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.gaussdb.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 CreateStarRocksDataReplicationResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + public CreateStarRocksDataReplicationResponse 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; + } + CreateStarRocksDataReplicationResponse that = (CreateStarRocksDataReplicationResponse) 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 CreateStarRocksDataReplicationResponse {\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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DataBaseInfo.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DataBaseInfo.java new file mode 100644 index 0000000000..8fed6e764e --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DataBaseInfo.java @@ -0,0 +1,115 @@ +package com.huaweicloud.sdk.gaussdb.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 DataBaseInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "database_name") + + private String databaseName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "db_config_check_results") + + private List dbConfigCheckResults = null; + + public DataBaseInfo withDatabaseName(String databaseName) { + this.databaseName = databaseName; + return this; + } + + /** + * 数据库名称。 + * @return databaseName + */ + public String getDatabaseName() { + return databaseName; + } + + public void setDatabaseName(String databaseName) { + this.databaseName = databaseName; + } + + public DataBaseInfo withDbConfigCheckResults(List dbConfigCheckResults) { + this.dbConfigCheckResults = dbConfigCheckResults; + return this; + } + + public DataBaseInfo addDbConfigCheckResultsItem(DbConfigCheckResult dbConfigCheckResultsItem) { + if (this.dbConfigCheckResults == null) { + this.dbConfigCheckResults = new ArrayList<>(); + } + this.dbConfigCheckResults.add(dbConfigCheckResultsItem); + return this; + } + + public DataBaseInfo withDbConfigCheckResults(Consumer> dbConfigCheckResultsSetter) { + if (this.dbConfigCheckResults == null) { + this.dbConfigCheckResults = new ArrayList<>(); + } + dbConfigCheckResultsSetter.accept(this.dbConfigCheckResults); + return this; + } + + /** + * 数据库配置检查结果。 + * @return dbConfigCheckResults + */ + public List getDbConfigCheckResults() { + return dbConfigCheckResults; + } + + public void setDbConfigCheckResults(List dbConfigCheckResults) { + this.dbConfigCheckResults = dbConfigCheckResults; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DataBaseInfo that = (DataBaseInfo) obj; + return Objects.equals(this.databaseName, that.databaseName) + && Objects.equals(this.dbConfigCheckResults, that.dbConfigCheckResults); + } + + @Override + public int hashCode() { + return Objects.hash(databaseName, dbConfigCheckResults); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DataBaseInfo {\n"); + sb.append(" databaseName: ").append(toIndentedString(databaseName)).append("\n"); + sb.append(" dbConfigCheckResults: ").append(toIndentedString(dbConfigCheckResults)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DbConfig.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DbConfig.java new file mode 100644 index 0000000000..df950cfe9d --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DbConfig.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.gaussdb.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 数据库配置。 + */ +public class DbConfig { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "param_name") + + private String paramName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private String value; + + public DbConfig withParamName(String paramName) { + this.paramName = paramName; + return this; + } + + /** + * 参数名。 + * @return paramName + */ + public String getParamName() { + return paramName; + } + + public void setParamName(String paramName) { + this.paramName = paramName; + } + + public DbConfig withValue(String value) { + this.value = value; + return this; + } + + /** + * 参数值。 + * @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; + } + DbConfig that = (DbConfig) obj; + return Objects.equals(this.paramName, that.paramName) && Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(paramName, value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DbConfig {\n"); + sb.append(" paramName: ").append(toIndentedString(paramName)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DbConfigCheckRequestV3.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DbConfigCheckRequestV3.java new file mode 100644 index 0000000000..b06ccaa1fb --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DbConfigCheckRequestV3.java @@ -0,0 +1,249 @@ +package com.huaweicloud.sdk.gaussdb.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; + +/** + * HTAP库配置校验请求体。 + */ +public class DbConfigCheckRequestV3 { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_instance_id") + + private String sourceInstanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_node_id") + + private String sourceNodeId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_database_name") + + private String sourceDatabaseName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_database_name") + + private String targetDatabaseName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_name") + + private String taskName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "db_configs") + + private List dbConfigs = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "table_repl_config") + + private TableReplConfig tableReplConfig; + + public DbConfigCheckRequestV3 withSourceInstanceId(String sourceInstanceId) { + this.sourceInstanceId = sourceInstanceId; + return this; + } + + /** + * GaussDB(for MySQL)实例ID。 + * @return sourceInstanceId + */ + public String getSourceInstanceId() { + return sourceInstanceId; + } + + public void setSourceInstanceId(String sourceInstanceId) { + this.sourceInstanceId = sourceInstanceId; + } + + public DbConfigCheckRequestV3 withSourceNodeId(String sourceNodeId) { + this.sourceNodeId = sourceNodeId; + return this; + } + + /** + * GaussDB(for MySQL)只读节点ID。如为空,则取GaussDB(for MySQL)主节点ID + * @return sourceNodeId + */ + public String getSourceNodeId() { + return sourceNodeId; + } + + public void setSourceNodeId(String sourceNodeId) { + this.sourceNodeId = sourceNodeId; + } + + public DbConfigCheckRequestV3 withSourceDatabaseName(String sourceDatabaseName) { + this.sourceDatabaseName = sourceDatabaseName; + return this; + } + + /** + * GaussDB(for MySQL)数据库名。 + * @return sourceDatabaseName + */ + public String getSourceDatabaseName() { + return sourceDatabaseName; + } + + public void setSourceDatabaseName(String sourceDatabaseName) { + this.sourceDatabaseName = sourceDatabaseName; + } + + public DbConfigCheckRequestV3 withTargetDatabaseName(String targetDatabaseName) { + this.targetDatabaseName = targetDatabaseName; + return this; + } + + /** + * 目标数据库名。字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。 + * @return targetDatabaseName + */ + public String getTargetDatabaseName() { + return targetDatabaseName; + } + + public void setTargetDatabaseName(String targetDatabaseName) { + this.targetDatabaseName = targetDatabaseName; + } + + public DbConfigCheckRequestV3 withTaskName(String taskName) { + this.taskName = taskName; + return this; + } + + /** + * 同步任务名称。字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。 + * @return taskName + */ + public String getTaskName() { + return taskName; + } + + public void setTaskName(String taskName) { + this.taskName = taskName; + } + + public DbConfigCheckRequestV3 withDbConfigs(List dbConfigs) { + this.dbConfigs = dbConfigs; + return this; + } + + public DbConfigCheckRequestV3 addDbConfigsItem(DbConfig dbConfigsItem) { + if (this.dbConfigs == null) { + this.dbConfigs = new ArrayList<>(); + } + this.dbConfigs.add(dbConfigsItem); + return this; + } + + public DbConfigCheckRequestV3 withDbConfigs(Consumer> dbConfigsSetter) { + if (this.dbConfigs == null) { + this.dbConfigs = new ArrayList<>(); + } + dbConfigsSetter.accept(this.dbConfigs); + return this; + } + + /** + * 库配置列表。 + * @return dbConfigs + */ + public List getDbConfigs() { + return dbConfigs; + } + + public void setDbConfigs(List dbConfigs) { + this.dbConfigs = dbConfigs; + } + + public DbConfigCheckRequestV3 withTableReplConfig(TableReplConfig tableReplConfig) { + this.tableReplConfig = tableReplConfig; + return this; + } + + public DbConfigCheckRequestV3 withTableReplConfig(Consumer tableReplConfigSetter) { + if (this.tableReplConfig == null) { + this.tableReplConfig = new TableReplConfig(); + tableReplConfigSetter.accept(this.tableReplConfig); + } + + return this; + } + + /** + * Get tableReplConfig + * @return tableReplConfig + */ + public TableReplConfig getTableReplConfig() { + return tableReplConfig; + } + + public void setTableReplConfig(TableReplConfig tableReplConfig) { + this.tableReplConfig = tableReplConfig; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DbConfigCheckRequestV3 that = (DbConfigCheckRequestV3) obj; + return Objects.equals(this.sourceInstanceId, that.sourceInstanceId) + && Objects.equals(this.sourceNodeId, that.sourceNodeId) + && Objects.equals(this.sourceDatabaseName, that.sourceDatabaseName) + && Objects.equals(this.targetDatabaseName, that.targetDatabaseName) + && Objects.equals(this.taskName, that.taskName) && Objects.equals(this.dbConfigs, that.dbConfigs) + && Objects.equals(this.tableReplConfig, that.tableReplConfig); + } + + @Override + public int hashCode() { + return Objects.hash(sourceInstanceId, + sourceNodeId, + sourceDatabaseName, + targetDatabaseName, + taskName, + dbConfigs, + tableReplConfig); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DbConfigCheckRequestV3 {\n"); + sb.append(" sourceInstanceId: ").append(toIndentedString(sourceInstanceId)).append("\n"); + sb.append(" sourceNodeId: ").append(toIndentedString(sourceNodeId)).append("\n"); + sb.append(" sourceDatabaseName: ").append(toIndentedString(sourceDatabaseName)).append("\n"); + sb.append(" targetDatabaseName: ").append(toIndentedString(targetDatabaseName)).append("\n"); + sb.append(" taskName: ").append(toIndentedString(taskName)).append("\n"); + sb.append(" dbConfigs: ").append(toIndentedString(dbConfigs)).append("\n"); + sb.append(" tableReplConfig: ").append(toIndentedString(tableReplConfig)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DbConfigCheckResult.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DbConfigCheckResult.java new file mode 100644 index 0000000000..b2950a0143 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DbConfigCheckResult.java @@ -0,0 +1,194 @@ +package com.huaweicloud.sdk.gaussdb.v3.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 DbConfigCheckResult { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "param_name") + + private String paramName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private String value; + + /** + * 校验结果。 + */ + public static final class CheckResultEnum { + + /** + * Enum SUCCESS for value: "success" + */ + public static final CheckResultEnum SUCCESS = new CheckResultEnum("success"); + + /** + * Enum FAIL for value: "fail" + */ + public static final CheckResultEnum FAIL = new CheckResultEnum("fail"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("success", SUCCESS); + map.put("fail", FAIL); + return Collections.unmodifiableMap(map); + } + + private String value; + + CheckResultEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CheckResultEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new CheckResultEnum(value)); + } + + public static CheckResultEnum 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 CheckResultEnum) { + return this.value.equals(((CheckResultEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "check_result") + + private CheckResultEnum checkResult; + + public DbConfigCheckResult withParamName(String paramName) { + this.paramName = paramName; + return this; + } + + /** + * 参数名。 + * @return paramName + */ + public String getParamName() { + return paramName; + } + + public void setParamName(String paramName) { + this.paramName = paramName; + } + + public DbConfigCheckResult withValue(String value) { + this.value = value; + return this; + } + + /** + * 参数值。 + * @return value + */ + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public DbConfigCheckResult withCheckResult(CheckResultEnum checkResult) { + this.checkResult = checkResult; + return this; + } + + /** + * 校验结果。 + * @return checkResult + */ + public CheckResultEnum getCheckResult() { + return checkResult; + } + + public void setCheckResult(CheckResultEnum checkResult) { + this.checkResult = checkResult; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DbConfigCheckResult that = (DbConfigCheckResult) obj; + return Objects.equals(this.paramName, that.paramName) && Objects.equals(this.value, that.value) + && Objects.equals(this.checkResult, that.checkResult); + } + + @Override + public int hashCode() { + return Objects.hash(paramName, value, checkResult); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DbConfigCheckResult {\n"); + sb.append(" paramName: ").append(toIndentedString(paramName)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" checkResult: ").append(toIndentedString(checkResult)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DbParameter.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DbParameter.java new file mode 100644 index 0000000000..7085ada988 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DbParameter.java @@ -0,0 +1,166 @@ +package com.huaweicloud.sdk.gaussdb.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 数据库配置参数。 + */ +public class DbParameter { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "param_name") + + private String paramName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_type") + + private String dataType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "default_value") + + private String defaultValue; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value_range") + + private String valueRange; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + public DbParameter withParamName(String paramName) { + this.paramName = paramName; + return this; + } + + /** + * 参数名称。 + * @return paramName + */ + public String getParamName() { + return paramName; + } + + public void setParamName(String paramName) { + this.paramName = paramName; + } + + public DbParameter withDataType(String dataType) { + this.dataType = dataType; + return this; + } + + /** + * 参数类型。 + * @return dataType + */ + public String getDataType() { + return dataType; + } + + public void setDataType(String dataType) { + this.dataType = dataType; + } + + public DbParameter withDefaultValue(String defaultValue) { + this.defaultValue = defaultValue; + return this; + } + + /** + * 参数默认值。 + * @return defaultValue + */ + public String getDefaultValue() { + return defaultValue; + } + + public void setDefaultValue(String defaultValue) { + this.defaultValue = defaultValue; + } + + public DbParameter withValueRange(String valueRange) { + this.valueRange = valueRange; + return this; + } + + /** + * 参数取值范围。 + * @return valueRange + */ + public String getValueRange() { + return valueRange; + } + + public void setValueRange(String valueRange) { + this.valueRange = valueRange; + } + + public DbParameter withDescription(String description) { + this.description = description; + return this; + } + + /** + * 参数描述。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DbParameter that = (DbParameter) obj; + return Objects.equals(this.paramName, that.paramName) && Objects.equals(this.dataType, that.dataType) + && Objects.equals(this.defaultValue, that.defaultValue) && Objects.equals(this.valueRange, that.valueRange) + && Objects.equals(this.description, that.description); + } + + @Override + public int hashCode() { + return Objects.hash(paramName, dataType, defaultValue, valueRange, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DbParameter {\n"); + sb.append(" paramName: ").append(toIndentedString(paramName)).append("\n"); + sb.append(" dataType: ").append(toIndentedString(dataType)).append("\n"); + sb.append(" defaultValue: ").append(toIndentedString(defaultValue)).append("\n"); + sb.append(" valueRange: ").append(toIndentedString(valueRange)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarRocksDataReplication.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarRocksDataReplication.java new file mode 100644 index 0000000000..86bd3dbca4 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarRocksDataReplication.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.gaussdb.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 删除StarRocks数据同步任务请求体。 + */ +public class DeleteStarRocksDataReplication { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_name") + + private String taskName; + + public DeleteStarRocksDataReplication withTaskName(String taskName) { + this.taskName = taskName; + return this; + } + + /** + * 数据同步任务名。字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。 + * @return taskName + */ + public String getTaskName() { + return taskName; + } + + public void setTaskName(String taskName) { + this.taskName = taskName; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteStarRocksDataReplication that = (DeleteStarRocksDataReplication) obj; + return Objects.equals(this.taskName, that.taskName); + } + + @Override + public int hashCode() { + return Objects.hash(taskName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteStarRocksDataReplication {\n"); + sb.append(" taskName: ").append(toIndentedString(taskName)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarRocksDataReplicationRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarRocksDataReplicationRequest.java new file mode 100644 index 0000000000..50275a7825 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarRocksDataReplicationRequest.java @@ -0,0 +1,131 @@ +package com.huaweicloud.sdk.gaussdb.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 DeleteStarRocksDataReplicationRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private DeleteStarRocksDataReplication body; + + public DeleteStarRocksDataReplicationRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * StarRocks实例ID,严格匹配UUID规则。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public DeleteStarRocksDataReplicationRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + + public DeleteStarRocksDataReplicationRequest withBody(DeleteStarRocksDataReplication body) { + this.body = body; + return this; + } + + public DeleteStarRocksDataReplicationRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new DeleteStarRocksDataReplication(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public DeleteStarRocksDataReplication getBody() { + return body; + } + + public void setBody(DeleteStarRocksDataReplication 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; + } + DeleteStarRocksDataReplicationRequest that = (DeleteStarRocksDataReplicationRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.xLanguage, that.xLanguage) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, xLanguage, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteStarRocksDataReplicationRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarRocksDataReplicationResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarRocksDataReplicationResponse.java new file mode 100644 index 0000000000..29b72c7fd9 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarRocksDataReplicationResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.gaussdb.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 DeleteStarRocksDataReplicationResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + public DeleteStarRocksDataReplicationResponse 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; + } + DeleteStarRocksDataReplicationResponse that = (DeleteStarRocksDataReplicationResponse) 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 DeleteStarRocksDataReplicationResponse {\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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDataBasesRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDataBasesRequest.java new file mode 100644 index 0000000000..7a5be2916f --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDataBasesRequest.java @@ -0,0 +1,168 @@ +package com.huaweicloud.sdk.gaussdb.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListStarRocksDataBasesRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private String limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private String offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "database_name") + + private String databaseName; + + public ListStarRocksDataBasesRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + + public ListStarRocksDataBasesRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * StarRocks实例ID,严格匹配UUID规则。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ListStarRocksDataBasesRequest withLimit(String limit) { + this.limit = limit; + return this; + } + + /** + * 查询记录数 + * @return limit + */ + public String getLimit() { + return limit; + } + + public void setLimit(String limit) { + this.limit = limit; + } + + public ListStarRocksDataBasesRequest withOffset(String offset) { + this.offset = offset; + return this; + } + + /** + * 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + * @return offset + */ + public String getOffset() { + return offset; + } + + public void setOffset(String offset) { + this.offset = offset; + } + + public ListStarRocksDataBasesRequest withDatabaseName(String databaseName) { + this.databaseName = databaseName; + return this; + } + + /** + * 查询的数据库名称,支持模糊搜索。 + * @return databaseName + */ + public String getDatabaseName() { + return databaseName; + } + + public void setDatabaseName(String databaseName) { + this.databaseName = databaseName; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListStarRocksDataBasesRequest that = (ListStarRocksDataBasesRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.limit, that.limit) && Objects.equals(this.offset, that.offset) + && Objects.equals(this.databaseName, that.databaseName); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, instanceId, limit, offset, databaseName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListStarRocksDataBasesRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" databaseName: ").append(toIndentedString(databaseName)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDataBasesResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDataBasesResponse.java new file mode 100644 index 0000000000..6d136b203a --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDataBasesResponse.java @@ -0,0 +1,143 @@ +package com.huaweicloud.sdk.gaussdb.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 ListStarRocksDataBasesResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "databases") + + private List databases = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_count") + + private Integer totalCount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "timestamp") + + private Integer timestamp; + + public ListStarRocksDataBasesResponse withDatabases(List databases) { + this.databases = databases; + return this; + } + + public ListStarRocksDataBasesResponse addDatabasesItem(String databasesItem) { + if (this.databases == null) { + this.databases = new ArrayList<>(); + } + this.databases.add(databasesItem); + return this; + } + + public ListStarRocksDataBasesResponse withDatabases(Consumer> databasesSetter) { + if (this.databases == null) { + this.databases = new ArrayList<>(); + } + databasesSetter.accept(this.databases); + return this; + } + + /** + * 数据库名称。 + * @return databases + */ + public List getDatabases() { + return databases; + } + + public void setDatabases(List databases) { + this.databases = databases; + } + + public ListStarRocksDataBasesResponse withTotalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * 数据库数量。 + * minimum: 0 + * maximum: 9999 + * @return totalCount + */ + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public ListStarRocksDataBasesResponse withTimestamp(Integer timestamp) { + this.timestamp = timestamp; + return this; + } + + /** + * 查询时间戳。 + * minimum: 0 + * maximum: 2147483647 + * @return timestamp + */ + public Integer getTimestamp() { + return timestamp; + } + + public void setTimestamp(Integer timestamp) { + this.timestamp = timestamp; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListStarRocksDataBasesResponse that = (ListStarRocksDataBasesResponse) obj; + return Objects.equals(this.databases, that.databases) && Objects.equals(this.totalCount, that.totalCount) + && Objects.equals(this.timestamp, that.timestamp); + } + + @Override + public int hashCode() { + return Objects.hash(databases, totalCount, timestamp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListStarRocksDataBasesResponse {\n"); + sb.append(" databases: ").append(toIndentedString(databases)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" timestamp: ").append(toIndentedString(timestamp)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDataReplicationConfigRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDataReplicationConfigRequest.java new file mode 100644 index 0000000000..68852f79c1 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDataReplicationConfigRequest.java @@ -0,0 +1,121 @@ +package com.huaweicloud.sdk.gaussdb.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListStarRocksDataReplicationConfigRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_name") + + private String taskName; + + public ListStarRocksDataReplicationConfigRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * StarRocks实例ID,严格匹配UUID规则。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ListStarRocksDataReplicationConfigRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + + public ListStarRocksDataReplicationConfigRequest withTaskName(String taskName) { + this.taskName = taskName; + return this; + } + + /** + * 数据同步任务名。 字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。 + * @return taskName + */ + public String getTaskName() { + return taskName; + } + + public void setTaskName(String taskName) { + this.taskName = taskName; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListStarRocksDataReplicationConfigRequest that = (ListStarRocksDataReplicationConfigRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.xLanguage, that.xLanguage) + && Objects.equals(this.taskName, that.taskName); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, xLanguage, taskName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListStarRocksDataReplicationConfigRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" taskName: ").append(toIndentedString(taskName)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDataReplicationConfigResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDataReplicationConfigResponse.java new file mode 100644 index 0000000000..f5f814c0d4 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDataReplicationConfigResponse.java @@ -0,0 +1,321 @@ +package com.huaweicloud.sdk.gaussdb.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 ListStarRocksDataReplicationConfigResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_instance_id") + + private String sourceInstanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_node_id") + + private String sourceNodeId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "database_info") + + private DataBaseInfo databaseInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "table_infos") + + private List tableInfos = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "table_repl_config") + + private TableReplConfig tableReplConfig; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "new_table_repl_config") + + private TableReplConfig newTableReplConfig; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_database_name") + + private String targetDatabaseName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_tables_change") + + private Boolean isTablesChange; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_error_of_alter_table") + + private String lastErrorOfAlterTable; + + public ListStarRocksDataReplicationConfigResponse withSourceInstanceId(String sourceInstanceId) { + this.sourceInstanceId = sourceInstanceId; + return this; + } + + /** + * GaussDB(for MySQL)实例ID。 + * @return sourceInstanceId + */ + public String getSourceInstanceId() { + return sourceInstanceId; + } + + public void setSourceInstanceId(String sourceInstanceId) { + this.sourceInstanceId = sourceInstanceId; + } + + public ListStarRocksDataReplicationConfigResponse withSourceNodeId(String sourceNodeId) { + this.sourceNodeId = sourceNodeId; + return this; + } + + /** + * GaussDB(for MySQL)节点ID。 + * @return sourceNodeId + */ + public String getSourceNodeId() { + return sourceNodeId; + } + + public void setSourceNodeId(String sourceNodeId) { + this.sourceNodeId = sourceNodeId; + } + + public ListStarRocksDataReplicationConfigResponse withDatabaseInfo(DataBaseInfo databaseInfo) { + this.databaseInfo = databaseInfo; + return this; + } + + public ListStarRocksDataReplicationConfigResponse withDatabaseInfo(Consumer databaseInfoSetter) { + if (this.databaseInfo == null) { + this.databaseInfo = new DataBaseInfo(); + databaseInfoSetter.accept(this.databaseInfo); + } + + return this; + } + + /** + * Get databaseInfo + * @return databaseInfo + */ + public DataBaseInfo getDatabaseInfo() { + return databaseInfo; + } + + public void setDatabaseInfo(DataBaseInfo databaseInfo) { + this.databaseInfo = databaseInfo; + } + + public ListStarRocksDataReplicationConfigResponse withTableInfos(List tableInfos) { + this.tableInfos = tableInfos; + return this; + } + + public ListStarRocksDataReplicationConfigResponse addTableInfosItem(TableConfigCheckResult tableInfosItem) { + if (this.tableInfos == null) { + this.tableInfos = new ArrayList<>(); + } + this.tableInfos.add(tableInfosItem); + return this; + } + + public ListStarRocksDataReplicationConfigResponse withTableInfos( + Consumer> tableInfosSetter) { + if (this.tableInfos == null) { + this.tableInfos = new ArrayList<>(); + } + tableInfosSetter.accept(this.tableInfos); + return this; + } + + /** + * 表配置信息。 + * @return tableInfos + */ + public List getTableInfos() { + return tableInfos; + } + + public void setTableInfos(List tableInfos) { + this.tableInfos = tableInfos; + } + + public ListStarRocksDataReplicationConfigResponse withTableReplConfig(TableReplConfig tableReplConfig) { + this.tableReplConfig = tableReplConfig; + return this; + } + + public ListStarRocksDataReplicationConfigResponse withTableReplConfig( + Consumer tableReplConfigSetter) { + if (this.tableReplConfig == null) { + this.tableReplConfig = new TableReplConfig(); + tableReplConfigSetter.accept(this.tableReplConfig); + } + + return this; + } + + /** + * Get tableReplConfig + * @return tableReplConfig + */ + public TableReplConfig getTableReplConfig() { + return tableReplConfig; + } + + public void setTableReplConfig(TableReplConfig tableReplConfig) { + this.tableReplConfig = tableReplConfig; + } + + public ListStarRocksDataReplicationConfigResponse withNewTableReplConfig(TableReplConfig newTableReplConfig) { + this.newTableReplConfig = newTableReplConfig; + return this; + } + + public ListStarRocksDataReplicationConfigResponse withNewTableReplConfig( + Consumer newTableReplConfigSetter) { + if (this.newTableReplConfig == null) { + this.newTableReplConfig = new TableReplConfig(); + newTableReplConfigSetter.accept(this.newTableReplConfig); + } + + return this; + } + + /** + * Get newTableReplConfig + * @return newTableReplConfig + */ + public TableReplConfig getNewTableReplConfig() { + return newTableReplConfig; + } + + public void setNewTableReplConfig(TableReplConfig newTableReplConfig) { + this.newTableReplConfig = newTableReplConfig; + } + + public ListStarRocksDataReplicationConfigResponse withTargetDatabaseName(String targetDatabaseName) { + this.targetDatabaseName = targetDatabaseName; + return this; + } + + /** + * 目标数据库名。 + * @return targetDatabaseName + */ + public String getTargetDatabaseName() { + return targetDatabaseName; + } + + public void setTargetDatabaseName(String targetDatabaseName) { + this.targetDatabaseName = targetDatabaseName; + } + + public ListStarRocksDataReplicationConfigResponse withIsTablesChange(Boolean isTablesChange) { + this.isTablesChange = isTablesChange; + return this; + } + + /** + * 同步任务表是否变化。 + * @return isTablesChange + */ + public Boolean getIsTablesChange() { + return isTablesChange; + } + + public void setIsTablesChange(Boolean isTablesChange) { + this.isTablesChange = isTablesChange; + } + + public ListStarRocksDataReplicationConfigResponse withLastErrorOfAlterTable(String lastErrorOfAlterTable) { + this.lastErrorOfAlterTable = lastErrorOfAlterTable; + return this; + } + + /** + * 最近一次alter table的异常信息。 + * @return lastErrorOfAlterTable + */ + public String getLastErrorOfAlterTable() { + return lastErrorOfAlterTable; + } + + public void setLastErrorOfAlterTable(String lastErrorOfAlterTable) { + this.lastErrorOfAlterTable = lastErrorOfAlterTable; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListStarRocksDataReplicationConfigResponse that = (ListStarRocksDataReplicationConfigResponse) obj; + return Objects.equals(this.sourceInstanceId, that.sourceInstanceId) + && Objects.equals(this.sourceNodeId, that.sourceNodeId) + && Objects.equals(this.databaseInfo, that.databaseInfo) && Objects.equals(this.tableInfos, that.tableInfos) + && Objects.equals(this.tableReplConfig, that.tableReplConfig) + && Objects.equals(this.newTableReplConfig, that.newTableReplConfig) + && Objects.equals(this.targetDatabaseName, that.targetDatabaseName) + && Objects.equals(this.isTablesChange, that.isTablesChange) + && Objects.equals(this.lastErrorOfAlterTable, that.lastErrorOfAlterTable); + } + + @Override + public int hashCode() { + return Objects.hash(sourceInstanceId, + sourceNodeId, + databaseInfo, + tableInfos, + tableReplConfig, + newTableReplConfig, + targetDatabaseName, + isTablesChange, + lastErrorOfAlterTable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListStarRocksDataReplicationConfigResponse {\n"); + sb.append(" sourceInstanceId: ").append(toIndentedString(sourceInstanceId)).append("\n"); + sb.append(" sourceNodeId: ").append(toIndentedString(sourceNodeId)).append("\n"); + sb.append(" databaseInfo: ").append(toIndentedString(databaseInfo)).append("\n"); + sb.append(" tableInfos: ").append(toIndentedString(tableInfos)).append("\n"); + sb.append(" tableReplConfig: ").append(toIndentedString(tableReplConfig)).append("\n"); + sb.append(" newTableReplConfig: ").append(toIndentedString(newTableReplConfig)).append("\n"); + sb.append(" targetDatabaseName: ").append(toIndentedString(targetDatabaseName)).append("\n"); + sb.append(" isTablesChange: ").append(toIndentedString(isTablesChange)).append("\n"); + sb.append(" lastErrorOfAlterTable: ").append(toIndentedString(lastErrorOfAlterTable)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDataReplicationsRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDataReplicationsRequest.java new file mode 100644 index 0000000000..df76dfc441 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDataReplicationsRequest.java @@ -0,0 +1,144 @@ +package com.huaweicloud.sdk.gaussdb.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListStarRocksDataReplicationsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private String limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private String offset; + + public ListStarRocksDataReplicationsRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * StarRocks实例ID,严格匹配UUID规则。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ListStarRocksDataReplicationsRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + + public ListStarRocksDataReplicationsRequest withLimit(String limit) { + this.limit = limit; + return this; + } + + /** + * 查询记录数。每页查询数据同步任务的数量。 + * @return limit + */ + public String getLimit() { + return limit; + } + + public void setLimit(String limit) { + this.limit = limit; + } + + public ListStarRocksDataReplicationsRequest withOffset(String offset) { + this.offset = offset; + return this; + } + + /** + * 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + * @return offset + */ + public String getOffset() { + return offset; + } + + public void setOffset(String offset) { + this.offset = offset; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListStarRocksDataReplicationsRequest that = (ListStarRocksDataReplicationsRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.xLanguage, that.xLanguage) + && Objects.equals(this.limit, that.limit) && Objects.equals(this.offset, that.offset); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, xLanguage, limit, offset); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListStarRocksDataReplicationsRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDataReplicationsResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDataReplicationsResponse.java new file mode 100644 index 0000000000..7341c562c4 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDataReplicationsResponse.java @@ -0,0 +1,140 @@ +package com.huaweicloud.sdk.gaussdb.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 ListStarRocksDataReplicationsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_count") + + private String totalCount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "replications") + + private List replications = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ext_text") + + private String extText; + + public ListStarRocksDataReplicationsResponse withTotalCount(String totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * 查询数据同步任务数。 + * @return totalCount + */ + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public ListStarRocksDataReplicationsResponse withReplications(List replications) { + this.replications = replications; + return this; + } + + public ListStarRocksDataReplicationsResponse addReplicationsItem(StarRocksReplicationInfo replicationsItem) { + if (this.replications == null) { + this.replications = new ArrayList<>(); + } + this.replications.add(replicationsItem); + return this; + } + + public ListStarRocksDataReplicationsResponse withReplications( + Consumer> replicationsSetter) { + if (this.replications == null) { + this.replications = new ArrayList<>(); + } + replicationsSetter.accept(this.replications); + return this; + } + + /** + * 数据同步任务信息。 + * @return replications + */ + public List getReplications() { + return replications; + } + + public void setReplications(List replications) { + this.replications = replications; + } + + public ListStarRocksDataReplicationsResponse withExtText(String extText) { + this.extText = extText; + return this; + } + + /** + * 扩展字段。 + * @return extText + */ + public String getExtText() { + return extText; + } + + public void setExtText(String extText) { + this.extText = extText; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListStarRocksDataReplicationsResponse that = (ListStarRocksDataReplicationsResponse) obj; + return Objects.equals(this.totalCount, that.totalCount) && Objects.equals(this.replications, that.replications) + && Objects.equals(this.extText, that.extText); + } + + @Override + public int hashCode() { + return Objects.hash(totalCount, replications, extText); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListStarRocksDataReplicationsResponse {\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" replications: ").append(toIndentedString(replications)).append("\n"); + sb.append(" extText: ").append(toIndentedString(extText)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDbParametersRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDbParametersRequest.java new file mode 100644 index 0000000000..bd3a788a7e --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDbParametersRequest.java @@ -0,0 +1,97 @@ +package com.huaweicloud.sdk.gaussdb.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListStarRocksDbParametersRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + public ListStarRocksDbParametersRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * StarRocks实例ID,严格匹配UUID规则。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ListStarRocksDbParametersRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListStarRocksDbParametersRequest that = (ListStarRocksDbParametersRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.xLanguage, that.xLanguage); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, xLanguage); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListStarRocksDbParametersRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDbParametersResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDbParametersResponse.java new file mode 100644 index 0000000000..b4794c270c --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarRocksDbParametersResponse.java @@ -0,0 +1,92 @@ +package com.huaweicloud.sdk.gaussdb.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 ListStarRocksDbParametersResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "db_parameters") + + private List dbParameters = null; + + public ListStarRocksDbParametersResponse withDbParameters(List dbParameters) { + this.dbParameters = dbParameters; + return this; + } + + public ListStarRocksDbParametersResponse addDbParametersItem(DbParameter dbParametersItem) { + if (this.dbParameters == null) { + this.dbParameters = new ArrayList<>(); + } + this.dbParameters.add(dbParametersItem); + return this; + } + + public ListStarRocksDbParametersResponse withDbParameters(Consumer> dbParametersSetter) { + if (this.dbParameters == null) { + this.dbParameters = new ArrayList<>(); + } + dbParametersSetter.accept(this.dbParameters); + return this; + } + + /** + * 库参数信息。 + * @return dbParameters + */ + public List getDbParameters() { + return dbParameters; + } + + public void setDbParameters(List dbParameters) { + this.dbParameters = dbParameters; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListStarRocksDbParametersResponse that = (ListStarRocksDbParametersResponse) obj; + return Objects.equals(this.dbParameters, that.dbParameters); + } + + @Override + public int hashCode() { + return Objects.hash(dbParameters); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListStarRocksDbParametersResponse {\n"); + sb.append(" dbParameters: ").append(toIndentedString(dbParameters)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksReplicationInfo.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksReplicationInfo.java new file mode 100644 index 0000000000..1acc873791 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksReplicationInfo.java @@ -0,0 +1,489 @@ +package com.huaweicloud.sdk.gaussdb.v3.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; + +/** + * StarRocks同步任务信息。 + */ +public class StarRocksReplicationInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_database") + + private String sourceDatabase; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_database") + + private String targetDatabase; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_name") + + private String taskName; + + /** + * 当前状态。Yes:正常;No:异常。 + */ + public static final class StatusEnum { + + /** + * Enum YES for value: "Yes" + */ + public static final StatusEnum YES = new StatusEnum("Yes"); + + /** + * Enum NO for value: "No" + */ + public static final StatusEnum NO = new StatusEnum("No"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("Yes", YES); + map.put("No", NO); + return Collections.unmodifiableMap(map); + } + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StatusEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new StatusEnum(value)); + } + + public static StatusEnum 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 StatusEnum) { + return this.value.equals(((StatusEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private StatusEnum status; + + /** + * 同步阶段。wait:等待同步;incremental:增量同步;full:全量同步;cancelled:删除;paused:暂停同步。 + */ + public static final class StageEnum { + + /** + * Enum WAIT for value: "wait" + */ + public static final StageEnum WAIT = new StageEnum("wait"); + + /** + * Enum INCREMENTAL for value: "incremental" + */ + public static final StageEnum INCREMENTAL = new StageEnum("incremental"); + + /** + * Enum FULL for value: "full" + */ + public static final StageEnum FULL = new StageEnum("full"); + + /** + * Enum CANCELLED for value: "cancelled" + */ + public static final StageEnum CANCELLED = new StageEnum("cancelled"); + + /** + * Enum PAUSED for value: "paused" + */ + public static final StageEnum PAUSED = new StageEnum("paused"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("wait", WAIT); + map.put("incremental", INCREMENTAL); + map.put("full", FULL); + map.put("cancelled", CANCELLED); + map.put("paused", PAUSED); + return Collections.unmodifiableMap(map); + } + + private String value; + + StageEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StageEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new StageEnum(value)); + } + + public static StageEnum 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 StageEnum) { + return this.value.equals(((StageEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "stage") + + private StageEnum stage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "percentage") + + private String percentage; + + /** + * 追赶阶段。wait:等待同步;incremental:增量同步;full:全量同步;cancelled:删除;paused:暂停同步。 + */ + public static final class CatchupStageEnum { + + /** + * Enum WAIT for value: "wait" + */ + public static final CatchupStageEnum WAIT = new CatchupStageEnum("wait"); + + /** + * Enum INCREMENTAL for value: "incremental" + */ + public static final CatchupStageEnum INCREMENTAL = new CatchupStageEnum("incremental"); + + /** + * Enum FULL for value: "full" + */ + public static final CatchupStageEnum FULL = new CatchupStageEnum("full"); + + /** + * Enum CANCELLED for value: "cancelled" + */ + public static final CatchupStageEnum CANCELLED = new CatchupStageEnum("cancelled"); + + /** + * Enum PAUSED for value: "paused" + */ + public static final CatchupStageEnum PAUSED = new CatchupStageEnum("paused"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("wait", WAIT); + map.put("incremental", INCREMENTAL); + map.put("full", FULL); + map.put("cancelled", CANCELLED); + map.put("paused", PAUSED); + return Collections.unmodifiableMap(map); + } + + private String value; + + CatchupStageEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CatchupStageEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new CatchupStageEnum(value)); + } + + public static CatchupStageEnum 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 CatchupStageEnum) { + return this.value.equals(((CatchupStageEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "catchup_stage") + + private CatchupStageEnum catchupStage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "catchup_percentage") + + private String catchupPercentage; + + public StarRocksReplicationInfo withSourceDatabase(String sourceDatabase) { + this.sourceDatabase = sourceDatabase; + return this; + } + + /** + * GaussDB(for MySQL)数据库。 + * @return sourceDatabase + */ + public String getSourceDatabase() { + return sourceDatabase; + } + + public void setSourceDatabase(String sourceDatabase) { + this.sourceDatabase = sourceDatabase; + } + + public StarRocksReplicationInfo withTargetDatabase(String targetDatabase) { + this.targetDatabase = targetDatabase; + return this; + } + + /** + * 目标数据库。 + * @return targetDatabase + */ + public String getTargetDatabase() { + return targetDatabase; + } + + public void setTargetDatabase(String targetDatabase) { + this.targetDatabase = targetDatabase; + } + + public StarRocksReplicationInfo withTaskName(String taskName) { + this.taskName = taskName; + return this; + } + + /** + * 同步任务名。 + * @return taskName + */ + public String getTaskName() { + return taskName; + } + + public void setTaskName(String taskName) { + this.taskName = taskName; + } + + public StarRocksReplicationInfo withStatus(StatusEnum status) { + this.status = status; + return this; + } + + /** + * 当前状态。Yes:正常;No:异常。 + * @return status + */ + public StatusEnum getStatus() { + return status; + } + + public void setStatus(StatusEnum status) { + this.status = status; + } + + public StarRocksReplicationInfo withStage(StageEnum stage) { + this.stage = stage; + return this; + } + + /** + * 同步阶段。wait:等待同步;incremental:增量同步;full:全量同步;cancelled:删除;paused:暂停同步。 + * @return stage + */ + public StageEnum getStage() { + return stage; + } + + public void setStage(StageEnum stage) { + this.stage = stage; + } + + public StarRocksReplicationInfo withPercentage(String percentage) { + this.percentage = percentage; + return this; + } + + /** + * 进度百分比。 + * @return percentage + */ + public String getPercentage() { + return percentage; + } + + public void setPercentage(String percentage) { + this.percentage = percentage; + } + + public StarRocksReplicationInfo withCatchupStage(CatchupStageEnum catchupStage) { + this.catchupStage = catchupStage; + return this; + } + + /** + * 追赶阶段。wait:等待同步;incremental:增量同步;full:全量同步;cancelled:删除;paused:暂停同步。 + * @return catchupStage + */ + public CatchupStageEnum getCatchupStage() { + return catchupStage; + } + + public void setCatchupStage(CatchupStageEnum catchupStage) { + this.catchupStage = catchupStage; + } + + public StarRocksReplicationInfo withCatchupPercentage(String catchupPercentage) { + this.catchupPercentage = catchupPercentage; + return this; + } + + /** + * 追赶进度百分比。 + * @return catchupPercentage + */ + public String getCatchupPercentage() { + return catchupPercentage; + } + + public void setCatchupPercentage(String catchupPercentage) { + this.catchupPercentage = catchupPercentage; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StarRocksReplicationInfo that = (StarRocksReplicationInfo) obj; + return Objects.equals(this.sourceDatabase, that.sourceDatabase) + && Objects.equals(this.targetDatabase, that.targetDatabase) && Objects.equals(this.taskName, that.taskName) + && Objects.equals(this.status, that.status) && Objects.equals(this.stage, that.stage) + && Objects.equals(this.percentage, that.percentage) && Objects.equals(this.catchupStage, that.catchupStage) + && Objects.equals(this.catchupPercentage, that.catchupPercentage); + } + + @Override + public int hashCode() { + return Objects + .hash(sourceDatabase, targetDatabase, taskName, status, stage, percentage, catchupStage, catchupPercentage); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StarRocksReplicationInfo {\n"); + sb.append(" sourceDatabase: ").append(toIndentedString(sourceDatabase)).append("\n"); + sb.append(" targetDatabase: ").append(toIndentedString(targetDatabase)).append("\n"); + sb.append(" taskName: ").append(toIndentedString(taskName)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" stage: ").append(toIndentedString(stage)).append("\n"); + sb.append(" percentage: ").append(toIndentedString(percentage)).append("\n"); + sb.append(" catchupStage: ").append(toIndentedString(catchupStage)).append("\n"); + sb.append(" catchupPercentage: ").append(toIndentedString(catchupPercentage)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/TableConfigCheckRequestV3.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/TableConfigCheckRequestV3.java new file mode 100644 index 0000000000..a7cd69af37 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/TableConfigCheckRequestV3.java @@ -0,0 +1,265 @@ +package com.huaweicloud.sdk.gaussdb.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; + +/** + * HTAP表配置校验请求体。 + */ +public class TableConfigCheckRequestV3 { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_instance_id") + + private String sourceInstanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_node_id") + + private String sourceNodeId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_database_name") + + private String sourceDatabaseName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_name") + + private String taskName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "db_configs") + + private List dbConfigs = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tables_configs") + + private List tablesConfigs = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "table_repl_config") + + private TableReplConfig tableReplConfig; + + public TableConfigCheckRequestV3 withSourceInstanceId(String sourceInstanceId) { + this.sourceInstanceId = sourceInstanceId; + return this; + } + + /** + * GaussDB(for MySQL)实例ID。 + * @return sourceInstanceId + */ + public String getSourceInstanceId() { + return sourceInstanceId; + } + + public void setSourceInstanceId(String sourceInstanceId) { + this.sourceInstanceId = sourceInstanceId; + } + + public TableConfigCheckRequestV3 withSourceNodeId(String sourceNodeId) { + this.sourceNodeId = sourceNodeId; + return this; + } + + /** + * GaussDB(for MySQL)只读节点ID。如为空,则取GaussDB(for MySQL)主节点ID + * @return sourceNodeId + */ + public String getSourceNodeId() { + return sourceNodeId; + } + + public void setSourceNodeId(String sourceNodeId) { + this.sourceNodeId = sourceNodeId; + } + + public TableConfigCheckRequestV3 withSourceDatabaseName(String sourceDatabaseName) { + this.sourceDatabaseName = sourceDatabaseName; + return this; + } + + /** + * GaussDB(for MySQL)数据库名。 + * @return sourceDatabaseName + */ + public String getSourceDatabaseName() { + return sourceDatabaseName; + } + + public void setSourceDatabaseName(String sourceDatabaseName) { + this.sourceDatabaseName = sourceDatabaseName; + } + + public TableConfigCheckRequestV3 withTaskName(String taskName) { + this.taskName = taskName; + return this; + } + + /** + * 同步任务名称。字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。 + * @return taskName + */ + public String getTaskName() { + return taskName; + } + + public void setTaskName(String taskName) { + this.taskName = taskName; + } + + public TableConfigCheckRequestV3 withDbConfigs(List dbConfigs) { + this.dbConfigs = dbConfigs; + return this; + } + + public TableConfigCheckRequestV3 addDbConfigsItem(DbConfig dbConfigsItem) { + if (this.dbConfigs == null) { + this.dbConfigs = new ArrayList<>(); + } + this.dbConfigs.add(dbConfigsItem); + return this; + } + + public TableConfigCheckRequestV3 withDbConfigs(Consumer> dbConfigsSetter) { + if (this.dbConfigs == null) { + this.dbConfigs = new ArrayList<>(); + } + dbConfigsSetter.accept(this.dbConfigs); + return this; + } + + /** + * 库配置列表。 + * @return dbConfigs + */ + public List getDbConfigs() { + return dbConfigs; + } + + public void setDbConfigs(List dbConfigs) { + this.dbConfigs = dbConfigs; + } + + public TableConfigCheckRequestV3 withTablesConfigs(List tablesConfigs) { + this.tablesConfigs = tablesConfigs; + return this; + } + + public TableConfigCheckRequestV3 addTablesConfigsItem(TablesConfig tablesConfigsItem) { + if (this.tablesConfigs == null) { + this.tablesConfigs = new ArrayList<>(); + } + this.tablesConfigs.add(tablesConfigsItem); + return this; + } + + public TableConfigCheckRequestV3 withTablesConfigs(Consumer> tablesConfigsSetter) { + if (this.tablesConfigs == null) { + this.tablesConfigs = new ArrayList<>(); + } + tablesConfigsSetter.accept(this.tablesConfigs); + return this; + } + + /** + * 表配置信息。 + * @return tablesConfigs + */ + public List getTablesConfigs() { + return tablesConfigs; + } + + public void setTablesConfigs(List tablesConfigs) { + this.tablesConfigs = tablesConfigs; + } + + public TableConfigCheckRequestV3 withTableReplConfig(TableReplConfig tableReplConfig) { + this.tableReplConfig = tableReplConfig; + return this; + } + + public TableConfigCheckRequestV3 withTableReplConfig(Consumer tableReplConfigSetter) { + if (this.tableReplConfig == null) { + this.tableReplConfig = new TableReplConfig(); + tableReplConfigSetter.accept(this.tableReplConfig); + } + + return this; + } + + /** + * Get tableReplConfig + * @return tableReplConfig + */ + public TableReplConfig getTableReplConfig() { + return tableReplConfig; + } + + public void setTableReplConfig(TableReplConfig tableReplConfig) { + this.tableReplConfig = tableReplConfig; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + TableConfigCheckRequestV3 that = (TableConfigCheckRequestV3) obj; + return Objects.equals(this.sourceInstanceId, that.sourceInstanceId) + && Objects.equals(this.sourceNodeId, that.sourceNodeId) + && Objects.equals(this.sourceDatabaseName, that.sourceDatabaseName) + && Objects.equals(this.taskName, that.taskName) && Objects.equals(this.dbConfigs, that.dbConfigs) + && Objects.equals(this.tablesConfigs, that.tablesConfigs) + && Objects.equals(this.tableReplConfig, that.tableReplConfig); + } + + @Override + public int hashCode() { + return Objects.hash(sourceInstanceId, + sourceNodeId, + sourceDatabaseName, + taskName, + dbConfigs, + tablesConfigs, + tableReplConfig); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TableConfigCheckRequestV3 {\n"); + sb.append(" sourceInstanceId: ").append(toIndentedString(sourceInstanceId)).append("\n"); + sb.append(" sourceNodeId: ").append(toIndentedString(sourceNodeId)).append("\n"); + sb.append(" sourceDatabaseName: ").append(toIndentedString(sourceDatabaseName)).append("\n"); + sb.append(" taskName: ").append(toIndentedString(taskName)).append("\n"); + sb.append(" dbConfigs: ").append(toIndentedString(dbConfigs)).append("\n"); + sb.append(" tablesConfigs: ").append(toIndentedString(tablesConfigs)).append("\n"); + sb.append(" tableReplConfig: ").append(toIndentedString(tableReplConfig)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/TableConfigCheckResult.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/TableConfigCheckResult.java new file mode 100644 index 0000000000..6186528e6b --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/TableConfigCheckResult.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.gaussdb.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 表配置校验结果。 + */ +public class TableConfigCheckResult { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "table_name") + + private String tableName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "table_config") + + private String tableConfig; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "check_result") + + private String checkResult; + + public TableConfigCheckResult withTableName(String tableName) { + this.tableName = tableName; + return this; + } + + /** + * 表名。 + * @return tableName + */ + public String getTableName() { + return tableName; + } + + public void setTableName(String tableName) { + this.tableName = tableName; + } + + public TableConfigCheckResult withTableConfig(String tableConfig) { + this.tableConfig = tableConfig; + return this; + } + + /** + * 表配置项。 + * @return tableConfig + */ + public String getTableConfig() { + return tableConfig; + } + + public void setTableConfig(String tableConfig) { + this.tableConfig = tableConfig; + } + + public TableConfigCheckResult withCheckResult(String checkResult) { + this.checkResult = checkResult; + return this; + } + + /** + * 校验结果。 + * @return checkResult + */ + public String getCheckResult() { + return checkResult; + } + + public void setCheckResult(String checkResult) { + this.checkResult = checkResult; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + TableConfigCheckResult that = (TableConfigCheckResult) obj; + return Objects.equals(this.tableName, that.tableName) && Objects.equals(this.tableConfig, that.tableConfig) + && Objects.equals(this.checkResult, that.checkResult); + } + + @Override + public int hashCode() { + return Objects.hash(tableName, tableConfig, checkResult); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TableConfigCheckResult {\n"); + sb.append(" tableName: ").append(toIndentedString(tableName)).append("\n"); + sb.append(" tableConfig: ").append(toIndentedString(tableConfig)).append("\n"); + sb.append(" checkResult: ").append(toIndentedString(checkResult)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/TableReplConfig.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/TableReplConfig.java new file mode 100644 index 0000000000..1328114fec --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/TableReplConfig.java @@ -0,0 +1,283 @@ +package com.huaweicloud.sdk.gaussdb.v3.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 TableReplConfig { + + /** + * 表同步类型。include_tables:白名单,exclude_tables:黑名单。 + */ + public static final class ReplTypeEnum { + + /** + * Enum INCLUDE_TABLES for value: "include_tables" + */ + public static final ReplTypeEnum INCLUDE_TABLES = new ReplTypeEnum("include_tables"); + + /** + * Enum EXCLUDE_TABLES for value: "exclude_tables" + */ + public static final ReplTypeEnum EXCLUDE_TABLES = new ReplTypeEnum("exclude_tables"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("include_tables", INCLUDE_TABLES); + map.put("exclude_tables", EXCLUDE_TABLES); + return Collections.unmodifiableMap(map); + } + + private String value; + + ReplTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ReplTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ReplTypeEnum(value)); + } + + public static ReplTypeEnum 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 ReplTypeEnum) { + return this.value.equals(((ReplTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "repl_type") + + private ReplTypeEnum replType; + + /** + * 表同步范围。all:全量同步,part:部分同步。 + */ + public static final class ReplScopeEnum { + + /** + * Enum ALL for value: "all" + */ + public static final ReplScopeEnum ALL = new ReplScopeEnum("all"); + + /** + * Enum PART for value: "part" + */ + public static final ReplScopeEnum PART = new ReplScopeEnum("part"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("all", ALL); + map.put("part", PART); + return Collections.unmodifiableMap(map); + } + + private String value; + + ReplScopeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ReplScopeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ReplScopeEnum(value)); + } + + public static ReplScopeEnum 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 ReplScopeEnum) { + return this.value.equals(((ReplScopeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "repl_scope") + + private ReplScopeEnum replScope; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tables") + + private List tables = null; + + public TableReplConfig withReplType(ReplTypeEnum replType) { + this.replType = replType; + return this; + } + + /** + * 表同步类型。include_tables:白名单,exclude_tables:黑名单。 + * @return replType + */ + public ReplTypeEnum getReplType() { + return replType; + } + + public void setReplType(ReplTypeEnum replType) { + this.replType = replType; + } + + public TableReplConfig withReplScope(ReplScopeEnum replScope) { + this.replScope = replScope; + return this; + } + + /** + * 表同步范围。all:全量同步,part:部分同步。 + * @return replScope + */ + public ReplScopeEnum getReplScope() { + return replScope; + } + + public void setReplScope(ReplScopeEnum replScope) { + this.replScope = replScope; + } + + public TableReplConfig withTables(List tables) { + this.tables = tables; + return this; + } + + public TableReplConfig addTablesItem(String tablesItem) { + if (this.tables == null) { + this.tables = new ArrayList<>(); + } + this.tables.add(tablesItem); + return this; + } + + public TableReplConfig withTables(Consumer> tablesSetter) { + if (this.tables == null) { + this.tables = new ArrayList<>(); + } + tablesSetter.accept(this.tables); + return this; + } + + /** + * 白名单或黑名单的表范围。 + * @return tables + */ + public List getTables() { + return tables; + } + + public void setTables(List tables) { + this.tables = tables; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + TableReplConfig that = (TableReplConfig) obj; + return Objects.equals(this.replType, that.replType) && Objects.equals(this.replScope, that.replScope) + && Objects.equals(this.tables, that.tables); + } + + @Override + public int hashCode() { + return Objects.hash(replType, replScope, tables); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TableReplConfig {\n"); + sb.append(" replType: ").append(toIndentedString(replType)).append("\n"); + sb.append(" replScope: ").append(toIndentedString(replScope)).append("\n"); + sb.append(" tables: ").append(toIndentedString(tables)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/TablesConfig.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/TablesConfig.java new file mode 100644 index 0000000000..8727a6d535 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/TablesConfig.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.gaussdb.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 表配置。 + */ +public class TablesConfig { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "table_name") + + private String tableName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "table_config") + + private String tableConfig; + + public TablesConfig withTableName(String tableName) { + this.tableName = tableName; + return this; + } + + /** + * 表名。 + * @return tableName + */ + public String getTableName() { + return tableName; + } + + public void setTableName(String tableName) { + this.tableName = tableName; + } + + public TablesConfig withTableConfig(String tableConfig) { + this.tableConfig = tableConfig; + return this; + } + + /** + * 表配置值。 + * @return tableConfig + */ + public String getTableConfig() { + return tableConfig; + } + + public void setTableConfig(String tableConfig) { + this.tableConfig = tableConfig; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + TablesConfig that = (TablesConfig) obj; + return Objects.equals(this.tableName, that.tableName) && Objects.equals(this.tableConfig, that.tableConfig); + } + + @Override + public int hashCode() { + return Objects.hash(tableName, tableConfig); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TablesConfig {\n"); + sb.append(" tableName: ").append(toIndentedString(tableName)).append("\n"); + sb.append(" tableConfig: ").append(toIndentedString(tableConfig)).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/gaussdbfornosql/pom.xml b/services/gaussdbfornosql/pom.xml index 15689f8012..6a9f51983d 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-gaussdbfornosql - 3.1.94 + 3.1.95 Huawei Cloud SDK for GAUSSDBFORNOSQL 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/gaussdbforopengauss/pom.xml b/services/gaussdbforopengauss/pom.xml index 790a57ebda..7cdd99dc1a 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-gaussdbforopengauss - 3.1.94 + 3.1.95 Huawei Cloud SDK for GAUSSDBFOROPENGAUSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/geip/pom.xml b/services/geip/pom.xml index 2091c4791e..993c2d6582 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-geip - 3.1.94 + 3.1.95 Huawei Cloud SDK for GEIP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/ges/pom.xml b/services/ges/pom.xml index eef8391001..3a0333fad8 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-ges - 3.1.94 + 3.1.95 Huawei Cloud SDK for GES 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/GesMeta.java b/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/GesMeta.java index 629a611e15..a19279c3bf 100644 --- a/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/GesMeta.java +++ b/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/GesMeta.java @@ -273,6 +273,11 @@ private static HttpRequestDef genForD FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(Boolean.class), f -> f.withMarshaller(DeleteGraph2Request::getKeepBackup, DeleteGraph2Request::setKeepBackup)); + builder.withRequestField("delete_eip", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Boolean.class), + f -> f.withMarshaller(DeleteGraph2Request::getDeleteEip, DeleteGraph2Request::setDeleteEip)); // response diff --git a/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/model/CreateGraphReqGraph.java b/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/model/CreateGraphReqGraph.java index c59af1b893..c0d09371a0 100644 --- a/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/model/CreateGraphReqGraph.java +++ b/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/model/CreateGraphReqGraph.java @@ -118,6 +118,11 @@ public class CreateGraphReqGraph { private Integer capacityRatio; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_dynamic_graph") + + private Boolean isDynamicGraph; + public CreateGraphReqGraph withName(String name) { this.name = name; return this; @@ -544,6 +549,23 @@ public void setCapacityRatio(Integer capacityRatio) { this.capacityRatio = capacityRatio; } + public CreateGraphReqGraph withIsDynamicGraph(Boolean isDynamicGraph) { + this.isDynamicGraph = isDynamicGraph; + return this; + } + + /** + * 是否为动态图 + * @return isDynamicGraph + */ + public Boolean getIsDynamicGraph() { + return isDynamicGraph; + } + + public void setIsDynamicGraph(Boolean isDynamicGraph) { + this.isDynamicGraph = isDynamicGraph; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -568,7 +590,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.enableHttps, that.enableHttps) && Objects.equals(this.productType, that.productType) && Objects.equals(this.vertexIdType, that.vertexIdType) && Objects.equals(this.enableMultiLabel, that.enableMultiLabel) - && Objects.equals(this.capacityRatio, that.capacityRatio); + && Objects.equals(this.capacityRatio, that.capacityRatio) + && Objects.equals(this.isDynamicGraph, that.isDynamicGraph); } @Override @@ -593,7 +616,8 @@ public int hashCode() { productType, vertexIdType, enableMultiLabel, - capacityRatio); + capacityRatio, + isDynamicGraph); } @Override @@ -621,6 +645,7 @@ public String toString() { sb.append(" vertexIdType: ").append(toIndentedString(vertexIdType)).append("\n"); sb.append(" enableMultiLabel: ").append(toIndentedString(enableMultiLabel)).append("\n"); sb.append(" capacityRatio: ").append(toIndentedString(capacityRatio)).append("\n"); + sb.append(" isDynamicGraph: ").append(toIndentedString(isDynamicGraph)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/model/DeleteGraph2Request.java b/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/model/DeleteGraph2Request.java index f900c46763..d0111a4086 100644 --- a/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/model/DeleteGraph2Request.java +++ b/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/model/DeleteGraph2Request.java @@ -20,6 +20,11 @@ public class DeleteGraph2Request { private Boolean keepBackup; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "delete_eip") + + private Boolean deleteEip; + public DeleteGraph2Request withGraphId(String graphId) { this.graphId = graphId; return this; @@ -54,6 +59,23 @@ public void setKeepBackup(Boolean keepBackup) { this.keepBackup = keepBackup; } + public DeleteGraph2Request withDeleteEip(Boolean deleteEip) { + this.deleteEip = deleteEip; + return this; + } + + /** + * 是否同时删除EIP。 + * @return deleteEip + */ + public Boolean getDeleteEip() { + return deleteEip; + } + + public void setDeleteEip(Boolean deleteEip) { + this.deleteEip = deleteEip; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -63,12 +85,13 @@ public boolean equals(java.lang.Object obj) { return false; } DeleteGraph2Request that = (DeleteGraph2Request) obj; - return Objects.equals(this.graphId, that.graphId) && Objects.equals(this.keepBackup, that.keepBackup); + return Objects.equals(this.graphId, that.graphId) && Objects.equals(this.keepBackup, that.keepBackup) + && Objects.equals(this.deleteEip, that.deleteEip); } @Override public int hashCode() { - return Objects.hash(graphId, keepBackup); + return Objects.hash(graphId, keepBackup, deleteEip); } @Override @@ -77,6 +100,7 @@ public String toString() { sb.append("class DeleteGraph2Request {\n"); sb.append(" graphId: ").append(toIndentedString(graphId)).append("\n"); sb.append(" keepBackup: ").append(toIndentedString(keepBackup)).append("\n"); + sb.append(" deleteEip: ").append(toIndentedString(deleteEip)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/gsl/pom.xml b/services/gsl/pom.xml index 3782577460..d57ae639df 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-gsl - 3.1.94 + 3.1.95 Huawei Cloud SDK for GSL 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/hilens/pom.xml b/services/hilens/pom.xml index 7f2c6dbe1e..10e68cb2d9 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-hilens - 3.1.94 + 3.1.95 Huawei Cloud SDK for HILENS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/hss/pom.xml b/services/hss/pom.xml index d5d53fec53..c99a70f829 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-hss - 3.1.94 + 3.1.95 Huawei Cloud SDK for HSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/iam/pom.xml b/services/iam/pom.xml index 46b9accb6a..d715d4f3d3 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-iam - 3.1.94 + 3.1.95 Huawei Cloud SDK for IAM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/iamaccessanalyzer/pom.xml b/services/iamaccessanalyzer/pom.xml index 6f631c568f..f55e95ea3f 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-iamaccessanalyzer - 3.1.94 + 3.1.95 Huawei Cloud SDK for IAMACCESSANALYZER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/identitycenter/pom.xml b/services/identitycenter/pom.xml index fd68845490..baf6c11f6f 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-identitycenter - 3.1.94 + 3.1.95 Huawei Cloud SDK for IDENTITYCENTER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/identitycenterstore/pom.xml b/services/identitycenterstore/pom.xml index 41a0378c61..7ba97202d3 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-identitycenterstore - 3.1.94 + 3.1.95 Huawei Cloud SDK for IDENTITYCENTERSTORE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/idme/pom.xml b/services/idme/pom.xml index 7797074f17..c0e2b0cf2f 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-idme - 3.1.94 + 3.1.95 Huawei Cloud SDK for IDME 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/idmeclassicapi/pom.xml b/services/idmeclassicapi/pom.xml index 7fc22f2a5d..24d3a08ea3 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-idmeclassicapi - 3.1.94 + 3.1.95 Huawei Cloud SDK for IDMECLASSICAPI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/iec/pom.xml b/services/iec/pom.xml index a8ba5ff38f..dd77304112 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-iec - 3.1.94 + 3.1.95 Huawei Cloud SDK for IEC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/ief/pom.xml b/services/ief/pom.xml index 41244eec79..cb2c9ab96a 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-ief - 3.1.94 + 3.1.95 Huawei Cloud SDK for IEF 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/image/pom.xml b/services/image/pom.xml index 03bc23f05e..08f13ca81c 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-image - 3.1.94 + 3.1.95 Huawei Cloud SDK for IMAGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/imagesearch/pom.xml b/services/imagesearch/pom.xml index 2e226f4d42..1244c88ad3 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-imagesearch - 3.1.94 + 3.1.95 Huawei Cloud SDK for IMAGESEARCH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/ims/pom.xml b/services/ims/pom.xml index fd45130dfc..53929702a7 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-ims - 3.1.94 + 3.1.95 Huawei Cloud SDK for IMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/iotanalytics/pom.xml b/services/iotanalytics/pom.xml index ca9aaa4010..247d2536ad 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-iotanalytics - 3.1.94 + 3.1.95 Huawei Cloud SDK for IOTANALYTICS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/iotda/pom.xml b/services/iotda/pom.xml index 78948035a9..2ae8d43b7d 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-iotda - 3.1.94 + 3.1.95 Huawei Cloud SDK for IOTDA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 junit diff --git a/services/iotedge/pom.xml b/services/iotedge/pom.xml index 78b0bce349..5bf3532366 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-iotedge - 3.1.94 + 3.1.95 Huawei Cloud SDK for IOTEDGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/ivs/pom.xml b/services/ivs/pom.xml index 3f7ab61161..ef9b2f3d7d 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-ivs - 3.1.94 + 3.1.95 Huawei Cloud SDK for IVS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/kafka/pom.xml b/services/kafka/pom.xml index d29104bf0b..8e78ee9fa4 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-kafka - 3.1.94 + 3.1.95 Huawei Cloud SDK for KAFKA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/kms/pom.xml b/services/kms/pom.xml index a92c918be3..14a2489f35 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-kms - 3.1.94 + 3.1.95 Huawei Cloud SDK for KMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/koomap/pom.xml b/services/koomap/pom.xml index 3fac7a4e7d..0b131d473e 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-koomap - 3.1.94 + 3.1.95 Huawei Cloud SDK for KOOMAP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/koomessage/pom.xml b/services/koomessage/pom.xml index 6c22e39492..c7f761f6c2 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-koomessage - 3.1.94 + 3.1.95 Huawei Cloud SDK for KOOMESSAGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/koophone/pom.xml b/services/koophone/pom.xml index 2016b5b4da..acd55247cc 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-koophone - 3.1.94 + 3.1.95 Huawei Cloud SDK for KOOPHONE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/kps/pom.xml b/services/kps/pom.xml index 400e28b1bb..3b41c8b17c 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-kps - 3.1.94 + 3.1.95 Huawei Cloud SDK for KPS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/kvs/pom.xml b/services/kvs/pom.xml index 3d8d70227c..fb5e4879db 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-kvs - 3.1.94 + 3.1.95 Huawei Cloud SDK for KVS 4.0.0 @@ -17,12 +17,12 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-core-bson - 3.1.94 + 3.1.95 diff --git a/services/lakeformation/pom.xml b/services/lakeformation/pom.xml index c63bbc0e15..74d59776ee 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-lakeformation - 3.1.94 + 3.1.95 Huawei Cloud SDK for LAKEFORMATION 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/live/pom.xml b/services/live/pom.xml index fe557fdae2..4aa3f16734 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-live - 3.1.94 + 3.1.95 Huawei Cloud SDK for LIVE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/lts/pom.xml b/services/lts/pom.xml index f99bf20bc1..dc48a46222 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-lts - 3.1.94 + 3.1.95 Huawei Cloud SDK for LTS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/mapds/pom.xml b/services/mapds/pom.xml index 1a5953f8e3..6700a47971 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-mapds - 3.1.94 + 3.1.95 Huawei Cloud SDK for MAPDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/mas/pom.xml b/services/mas/pom.xml index 279a82c3e8..f5eb3629d2 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-mas - 3.1.94 + 3.1.95 Huawei Cloud SDK for MAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/meeting/pom.xml b/services/meeting/pom.xml index 85de8293ec..ce642ce812 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-meeting - 3.1.94 + 3.1.95 Huawei Cloud SDK for MEETING 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/metastudio/pom.xml b/services/metastudio/pom.xml index c29792d705..1cca9c1633 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-metastudio - 3.1.94 + 3.1.95 Huawei Cloud SDK for METASTUDIO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/BackgroundConfigInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/BackgroundConfigInfo.java index 5dc74477d1..77ae42f685 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/BackgroundConfigInfo.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/BackgroundConfigInfo.java @@ -146,7 +146,7 @@ public BackgroundConfigInfo withBackgroundConfig(String backgroundConfig) { } /** - * 背景文件的URL。 > * 仅直播支持外部URL,其他业务通过资产库查询获取,不支持外部URL。 > * background_type=COLOR时需要填写。 + * 背景文件的URL。 > * 仅直播支持外部URL,其他业务通过资产库查询获取,不支持外部URL。 > * background_type=IMAGE时需要填写。 * @return backgroundConfig */ public String getBackgroundConfig() { @@ -163,7 +163,7 @@ public BackgroundConfigInfo withBackgroundColorConfig(String backgroundColorConf } /** - * 纯色背景的RGB颜色值。 > * background_type=IMAGE时需要填写。 + * 纯色背景的RGB颜色值。 > * background_type=COLOR时需要填写。 * @return backgroundColorConfig */ public String getBackgroundColorConfig() { diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateSmartChatRoomReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateSmartChatRoomReq.java index 847b79ab69..2848a45e4c 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateSmartChatRoomReq.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateSmartChatRoomReq.java @@ -1,10 +1,15 @@ 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; @@ -68,6 +73,87 @@ public class CreateSmartChatRoomReq { private ChatSubtitleConfig chatSubtitleConfig; + /** + * 智能交互对话端配置。 * COMPUTER: 电脑端 * MOBILE: 手机端 * HUB: 大屏 + */ + public static final class ChatVideoTypeEnum { + + /** + * Enum COMPUTER for value: "COMPUTER" + */ + public static final ChatVideoTypeEnum COMPUTER = new ChatVideoTypeEnum("COMPUTER"); + + /** + * Enum MOBILE for value: "MOBILE" + */ + public static final ChatVideoTypeEnum MOBILE = new ChatVideoTypeEnum("MOBILE"); + + /** + * Enum HUB for value: "HUB" + */ + public static final ChatVideoTypeEnum HUB = new ChatVideoTypeEnum("HUB"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("COMPUTER", COMPUTER); + map.put("MOBILE", MOBILE); + map.put("HUB", HUB); + return Collections.unmodifiableMap(map); + } + + private String value; + + ChatVideoTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ChatVideoTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ChatVideoTypeEnum(value)); + } + + public static ChatVideoTypeEnum 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 ChatVideoTypeEnum) { + return this.value.equals(((ChatVideoTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "chat_video_type") + + private ChatVideoTypeEnum chatVideoType; + public CreateSmartChatRoomReq withRoomName(String roomName) { this.roomName = roomName; return this; @@ -318,6 +404,23 @@ public void setChatSubtitleConfig(ChatSubtitleConfig chatSubtitleConfig) { this.chatSubtitleConfig = chatSubtitleConfig; } + public CreateSmartChatRoomReq withChatVideoType(ChatVideoTypeEnum chatVideoType) { + this.chatVideoType = chatVideoType; + return this; + } + + /** + * 智能交互对话端配置。 * COMPUTER: 电脑端 * MOBILE: 手机端 * HUB: 大屏 + * @return chatVideoType + */ + public ChatVideoTypeEnum getChatVideoType() { + return chatVideoType; + } + + public void setChatVideoType(ChatVideoTypeEnum chatVideoType) { + this.chatVideoType = chatVideoType; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -336,7 +439,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.backgroundConfig, that.backgroundConfig) && Objects.equals(this.layerConfig, that.layerConfig) && Objects.equals(this.reviewConfig, that.reviewConfig) - && Objects.equals(this.chatSubtitleConfig, that.chatSubtitleConfig); + && Objects.equals(this.chatSubtitleConfig, that.chatSubtitleConfig) + && Objects.equals(this.chatVideoType, that.chatVideoType); } @Override @@ -351,7 +455,8 @@ public int hashCode() { backgroundConfig, layerConfig, reviewConfig, - chatSubtitleConfig); + chatSubtitleConfig, + chatVideoType); } @Override @@ -369,6 +474,7 @@ public String toString() { sb.append(" layerConfig: ").append(toIndentedString(layerConfig)).append("\n"); sb.append(" reviewConfig: ").append(toIndentedString(reviewConfig)).append("\n"); sb.append(" chatSubtitleConfig: ").append(toIndentedString(chatSubtitleConfig)).append("\n"); + sb.append(" chatVideoType: ").append(toIndentedString(chatVideoType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateVideoScriptsReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateVideoScriptsReq.java index 58cb7f6f47..3dd97d20c1 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateVideoScriptsReq.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateVideoScriptsReq.java @@ -28,6 +28,81 @@ public class CreateVideoScriptsReq { private String scriptDescription; + /** + * 横竖屏类型。默认值是LANDSCAPE。 * LANDSCAPE:横屏。 * VERTICAL: 竖屏。 + */ + public static final class ViewModeEnum { + + /** + * Enum LANDSCAPE for value: "LANDSCAPE" + */ + public static final ViewModeEnum LANDSCAPE = new ViewModeEnum("LANDSCAPE"); + + /** + * Enum VERTICAL for value: "VERTICAL" + */ + public static final ViewModeEnum VERTICAL = new ViewModeEnum("VERTICAL"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("LANDSCAPE", LANDSCAPE); + map.put("VERTICAL", VERTICAL); + return Collections.unmodifiableMap(map); + } + + private String value; + + ViewModeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ViewModeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ViewModeEnum(value)); + } + + public static ViewModeEnum 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 ViewModeEnum) { + return this.value.equals(((ViewModeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "view_mode") + + private ViewModeEnum viewMode; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "model_asset_id") @@ -177,6 +252,23 @@ public void setScriptDescription(String scriptDescription) { this.scriptDescription = scriptDescription; } + public CreateVideoScriptsReq withViewMode(ViewModeEnum viewMode) { + this.viewMode = viewMode; + return this; + } + + /** + * 横竖屏类型。默认值是LANDSCAPE。 * LANDSCAPE:横屏。 * VERTICAL: 竖屏。 + * @return viewMode + */ + public ViewModeEnum getViewMode() { + return viewMode; + } + + public void setViewMode(ViewModeEnum viewMode) { + this.viewMode = viewMode; + } + public CreateVideoScriptsReq withModelAssetId(String modelAssetId) { this.modelAssetId = modelAssetId; return this; @@ -394,7 +486,7 @@ public boolean equals(java.lang.Object obj) { CreateVideoScriptsReq that = (CreateVideoScriptsReq) obj; return Objects.equals(this.scriptName, that.scriptName) && Objects.equals(this.scriptDescription, that.scriptDescription) - && Objects.equals(this.modelAssetId, that.modelAssetId) + && Objects.equals(this.viewMode, that.viewMode) && Objects.equals(this.modelAssetId, that.modelAssetId) && Objects.equals(this.modelAssetType, that.modelAssetType) && Objects.equals(this.voiceConfig, that.voiceConfig) && Objects.equals(this.videoConfig, that.videoConfig) && Objects.equals(this.sceneAssetId, that.sceneAssetId) && Objects.equals(this.privData, that.privData) @@ -407,6 +499,7 @@ public boolean equals(java.lang.Object obj) { public int hashCode() { return Objects.hash(scriptName, scriptDescription, + viewMode, modelAssetId, modelAssetType, voiceConfig, @@ -424,6 +517,7 @@ public String toString() { sb.append("class CreateVideoScriptsReq {\n"); sb.append(" scriptName: ").append(toIndentedString(scriptName)).append("\n"); sb.append(" scriptDescription: ").append(toIndentedString(scriptDescription)).append("\n"); + sb.append(" viewMode: ").append(toIndentedString(viewMode)).append("\n"); sb.append(" modelAssetId: ").append(toIndentedString(modelAssetId)).append("\n"); sb.append(" modelAssetType: ").append(toIndentedString(modelAssetType)).append("\n"); sb.append(" voiceConfig: ").append(toIndentedString(voiceConfig)).append("\n"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowSmartChatJobResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowSmartChatJobResponse.java index f08f90ed31..bff05f123c 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowSmartChatJobResponse.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowSmartChatJobResponse.java @@ -166,6 +166,87 @@ public int hashCode() { private ChatVideoConfigRsp videoConfig; + /** + * 智能交互对话端配置。 * COMPUTER: 电脑端 * MOBILE: 手机端 * HUB: 大屏 + */ + public static final class ChatVideoTypeEnum { + + /** + * Enum COMPUTER for value: "COMPUTER" + */ + public static final ChatVideoTypeEnum COMPUTER = new ChatVideoTypeEnum("COMPUTER"); + + /** + * Enum MOBILE for value: "MOBILE" + */ + public static final ChatVideoTypeEnum MOBILE = new ChatVideoTypeEnum("MOBILE"); + + /** + * Enum HUB for value: "HUB" + */ + public static final ChatVideoTypeEnum HUB = new ChatVideoTypeEnum("HUB"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("COMPUTER", COMPUTER); + map.put("MOBILE", MOBILE); + map.put("HUB", HUB); + return Collections.unmodifiableMap(map); + } + + private String value; + + ChatVideoTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ChatVideoTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ChatVideoTypeEnum(value)); + } + + public static ChatVideoTypeEnum 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 ChatVideoTypeEnum) { + return this.value.equals(((ChatVideoTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "chat_video_type") + + private ChatVideoTypeEnum chatVideoType; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "X-Request-Id") @@ -396,6 +477,23 @@ public void setVideoConfig(ChatVideoConfigRsp videoConfig) { this.videoConfig = videoConfig; } + public ShowSmartChatJobResponse withChatVideoType(ChatVideoTypeEnum chatVideoType) { + this.chatVideoType = chatVideoType; + return this; + } + + /** + * 智能交互对话端配置。 * COMPUTER: 电脑端 * MOBILE: 手机端 * HUB: 大屏 + * @return chatVideoType + */ + public ChatVideoTypeEnum getChatVideoType() { + return chatVideoType; + } + + public void setChatVideoType(ChatVideoTypeEnum chatVideoType) { + this.chatVideoType = chatVideoType; + } + public ShowSmartChatJobResponse withXRequestId(String xRequestId) { this.xRequestId = xRequestId; return this; @@ -431,7 +529,9 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.lastupdateTime, that.lastupdateTime) && Objects.equals(this.rtcRoomInfo, that.rtcRoomInfo) && Objects.equals(this.chatSubtitleConfig, that.chatSubtitleConfig) - && Objects.equals(this.videoConfig, that.videoConfig) && Objects.equals(this.xRequestId, that.xRequestId); + && Objects.equals(this.videoConfig, that.videoConfig) + && Objects.equals(this.chatVideoType, that.chatVideoType) + && Objects.equals(this.xRequestId, that.xRequestId); } @Override @@ -447,6 +547,7 @@ public int hashCode() { rtcRoomInfo, chatSubtitleConfig, videoConfig, + chatVideoType, xRequestId); } @@ -465,6 +566,7 @@ public String toString() { sb.append(" rtcRoomInfo: ").append(toIndentedString(rtcRoomInfo)).append("\n"); sb.append(" chatSubtitleConfig: ").append(toIndentedString(chatSubtitleConfig)).append("\n"); sb.append(" videoConfig: ").append(toIndentedString(videoConfig)).append("\n"); + sb.append(" chatVideoType: ").append(toIndentedString(chatVideoType)).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/ShowSmartChatRoomResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowSmartChatRoomResponse.java index 84bc269784..d99147523d 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowSmartChatRoomResponse.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowSmartChatRoomResponse.java @@ -1,11 +1,16 @@ 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; @@ -69,6 +74,87 @@ public class ShowSmartChatRoomResponse extends SdkResponse { private ChatSubtitleConfig chatSubtitleConfig; + /** + * 智能交互对话端配置。 * COMPUTER: 电脑端 * MOBILE: 手机端 * HUB: 大屏 + */ + public static final class ChatVideoTypeEnum { + + /** + * Enum COMPUTER for value: "COMPUTER" + */ + public static final ChatVideoTypeEnum COMPUTER = new ChatVideoTypeEnum("COMPUTER"); + + /** + * Enum MOBILE for value: "MOBILE" + */ + public static final ChatVideoTypeEnum MOBILE = new ChatVideoTypeEnum("MOBILE"); + + /** + * Enum HUB for value: "HUB" + */ + public static final ChatVideoTypeEnum HUB = new ChatVideoTypeEnum("HUB"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("COMPUTER", COMPUTER); + map.put("MOBILE", MOBILE); + map.put("HUB", HUB); + return Collections.unmodifiableMap(map); + } + + private String value; + + ChatVideoTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ChatVideoTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ChatVideoTypeEnum(value)); + } + + public static ChatVideoTypeEnum 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 ChatVideoTypeEnum) { + return this.value.equals(((ChatVideoTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "chat_video_type") + + private ChatVideoTypeEnum chatVideoType; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "room_id") @@ -344,6 +430,23 @@ public void setChatSubtitleConfig(ChatSubtitleConfig chatSubtitleConfig) { this.chatSubtitleConfig = chatSubtitleConfig; } + public ShowSmartChatRoomResponse withChatVideoType(ChatVideoTypeEnum chatVideoType) { + this.chatVideoType = chatVideoType; + return this; + } + + /** + * 智能交互对话端配置。 * COMPUTER: 电脑端 * MOBILE: 手机端 * HUB: 大屏 + * @return chatVideoType + */ + public ChatVideoTypeEnum getChatVideoType() { + return chatVideoType; + } + + public void setChatVideoType(ChatVideoTypeEnum chatVideoType) { + this.chatVideoType = chatVideoType; + } + public ShowSmartChatRoomResponse withRoomId(String roomId) { this.roomId = roomId; return this; @@ -450,9 +553,9 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.layerConfig, that.layerConfig) && Objects.equals(this.reviewConfig, that.reviewConfig) && Objects.equals(this.chatSubtitleConfig, that.chatSubtitleConfig) - && Objects.equals(this.roomId, that.roomId) && Objects.equals(this.createTime, that.createTime) - && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.coverUrl, that.coverUrl) - && Objects.equals(this.xRequestId, that.xRequestId); + && Objects.equals(this.chatVideoType, that.chatVideoType) && Objects.equals(this.roomId, that.roomId) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.coverUrl, that.coverUrl) && Objects.equals(this.xRequestId, that.xRequestId); } @Override @@ -468,6 +571,7 @@ public int hashCode() { layerConfig, reviewConfig, chatSubtitleConfig, + chatVideoType, roomId, createTime, updateTime, @@ -490,6 +594,7 @@ public String toString() { sb.append(" layerConfig: ").append(toIndentedString(layerConfig)).append("\n"); sb.append(" reviewConfig: ").append(toIndentedString(reviewConfig)).append("\n"); sb.append(" chatSubtitleConfig: ").append(toIndentedString(chatSubtitleConfig)).append("\n"); + sb.append(" chatVideoType: ").append(toIndentedString(chatVideoType)).append("\n"); sb.append(" roomId: ").append(toIndentedString(roomId)).append("\n"); sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowVideoScriptResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowVideoScriptResponse.java index 9efeccc7c4..65113edc75 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowVideoScriptResponse.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowVideoScriptResponse.java @@ -29,6 +29,81 @@ public class ShowVideoScriptResponse extends SdkResponse { private String scriptDescription; + /** + * 横竖屏类型。默认值是LANDSCAPE。 * LANDSCAPE:横屏。 * VERTICAL: 竖屏。 + */ + public static final class ViewModeEnum { + + /** + * Enum LANDSCAPE for value: "LANDSCAPE" + */ + public static final ViewModeEnum LANDSCAPE = new ViewModeEnum("LANDSCAPE"); + + /** + * Enum VERTICAL for value: "VERTICAL" + */ + public static final ViewModeEnum VERTICAL = new ViewModeEnum("VERTICAL"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("LANDSCAPE", LANDSCAPE); + map.put("VERTICAL", VERTICAL); + return Collections.unmodifiableMap(map); + } + + private String value; + + ViewModeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ViewModeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ViewModeEnum(value)); + } + + public static ViewModeEnum 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 ViewModeEnum) { + return this.value.equals(((ViewModeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "view_mode") + + private ViewModeEnum viewMode; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "model_asset_id") @@ -208,6 +283,23 @@ public void setScriptDescription(String scriptDescription) { this.scriptDescription = scriptDescription; } + public ShowVideoScriptResponse withViewMode(ViewModeEnum viewMode) { + this.viewMode = viewMode; + return this; + } + + /** + * 横竖屏类型。默认值是LANDSCAPE。 * LANDSCAPE:横屏。 * VERTICAL: 竖屏。 + * @return viewMode + */ + public ViewModeEnum getViewMode() { + return viewMode; + } + + public void setViewMode(ViewModeEnum viewMode) { + this.viewMode = viewMode; + } + public ShowVideoScriptResponse withModelAssetId(String modelAssetId) { this.modelAssetId = modelAssetId; return this; @@ -538,7 +630,7 @@ public boolean equals(java.lang.Object obj) { ShowVideoScriptResponse that = (ShowVideoScriptResponse) obj; return Objects.equals(this.scriptName, that.scriptName) && Objects.equals(this.scriptDescription, that.scriptDescription) - && Objects.equals(this.modelAssetId, that.modelAssetId) + && Objects.equals(this.viewMode, that.viewMode) && Objects.equals(this.modelAssetId, that.modelAssetId) && Objects.equals(this.modelAssetType, that.modelAssetType) && Objects.equals(this.voiceConfig, that.voiceConfig) && Objects.equals(this.videoConfig, that.videoConfig) && Objects.equals(this.sceneAssetId, that.sceneAssetId) && Objects.equals(this.privData, that.privData) @@ -555,6 +647,7 @@ public boolean equals(java.lang.Object obj) { public int hashCode() { return Objects.hash(scriptName, scriptDescription, + viewMode, modelAssetId, modelAssetType, voiceConfig, @@ -578,6 +671,7 @@ public String toString() { sb.append("class ShowVideoScriptResponse {\n"); sb.append(" scriptName: ").append(toIndentedString(scriptName)).append("\n"); sb.append(" scriptDescription: ").append(toIndentedString(scriptDescription)).append("\n"); + sb.append(" viewMode: ").append(toIndentedString(viewMode)).append("\n"); sb.append(" modelAssetId: ").append(toIndentedString(modelAssetId)).append("\n"); sb.append(" modelAssetType: ").append(toIndentedString(modelAssetType)).append("\n"); sb.append(" voiceConfig: ").append(toIndentedString(voiceConfig)).append("\n"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SmartImageLayerConfig.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SmartImageLayerConfig.java index 7eabd3c78f..382ec89668 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SmartImageLayerConfig.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SmartImageLayerConfig.java @@ -43,7 +43,7 @@ public SmartImageLayerConfig withDisplayDuration(Integer displayDuration) { } /** - * 图片显示时长。单位s * 0表示一直显示。 + * 图片显示时长。单位s * 0 显示时长规则:若携带reply_texts,reply_audios,与播放语音内容时长保持一致; 未携带场景,与匹配的关键词语音内容时长保持一致。 * minimum: 0 * maximum: 3600 * @return displayDuration diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SmartLayerConfig.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SmartLayerConfig.java index 244fbbef5d..a6c41497f8 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SmartLayerConfig.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SmartLayerConfig.java @@ -17,7 +17,7 @@ public class SmartLayerConfig { /** - * 图层类型。 - IMAGE: 素材图片图层 - VIDEO: 素材视频图层 + * 图层类型。 - IMAGE: 素材图片图层 - VIDEO: 素材视频图层 - TEXT: 文本图层 */ public static final class LayerTypeEnum { @@ -31,12 +31,18 @@ public static final class LayerTypeEnum { */ public static final LayerTypeEnum VIDEO = new LayerTypeEnum("VIDEO"); + /** + * Enum TEXT for value: "TEXT" + */ + public static final LayerTypeEnum TEXT = new LayerTypeEnum("TEXT"); + 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("TEXT", TEXT); return Collections.unmodifiableMap(map); } @@ -116,13 +122,18 @@ public int hashCode() { private SmartVideoLayerConfig videoConfig; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "text_config") + + private SmartTextLayerConfig textConfig; + public SmartLayerConfig withLayerType(LayerTypeEnum layerType) { this.layerType = layerType; return this; } /** - * 图层类型。 - IMAGE: 素材图片图层 - VIDEO: 素材视频图层 + * 图层类型。 - IMAGE: 素材图片图层 - VIDEO: 素材视频图层 - TEXT: 文本图层 * @return layerType */ public LayerTypeEnum getLayerType() { @@ -254,6 +265,32 @@ public void setVideoConfig(SmartVideoLayerConfig videoConfig) { this.videoConfig = videoConfig; } + public SmartLayerConfig withTextConfig(SmartTextLayerConfig textConfig) { + this.textConfig = textConfig; + return this; + } + + public SmartLayerConfig withTextConfig(Consumer textConfigSetter) { + if (this.textConfig == null) { + this.textConfig = new SmartTextLayerConfig(); + textConfigSetter.accept(this.textConfig); + } + + return this; + } + + /** + * Get textConfig + * @return textConfig + */ + public SmartTextLayerConfig getTextConfig() { + return textConfig; + } + + public void setTextConfig(SmartTextLayerConfig textConfig) { + this.textConfig = textConfig; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -265,12 +302,13 @@ public boolean equals(java.lang.Object obj) { SmartLayerConfig that = (SmartLayerConfig) obj; return Objects.equals(this.layerType, that.layerType) && Objects.equals(this.assetId, that.assetId) && Objects.equals(this.position, that.position) && Objects.equals(this.size, that.size) - && Objects.equals(this.imageConfig, that.imageConfig) && Objects.equals(this.videoConfig, that.videoConfig); + && Objects.equals(this.imageConfig, that.imageConfig) && Objects.equals(this.videoConfig, that.videoConfig) + && Objects.equals(this.textConfig, that.textConfig); } @Override public int hashCode() { - return Objects.hash(layerType, assetId, position, size, imageConfig, videoConfig); + return Objects.hash(layerType, assetId, position, size, imageConfig, videoConfig, textConfig); } @Override @@ -283,6 +321,7 @@ public String toString() { sb.append(" size: ").append(toIndentedString(size)).append("\n"); sb.append(" imageConfig: ").append(toIndentedString(imageConfig)).append("\n"); sb.append(" videoConfig: ").append(toIndentedString(videoConfig)).append("\n"); + sb.append(" textConfig: ").append(toIndentedString(textConfig)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SmartTextLayerConfig.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SmartTextLayerConfig.java new file mode 100644 index 0000000000..5f6fd04826 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SmartTextLayerConfig.java @@ -0,0 +1,269 @@ +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 SmartTextLayerConfig { + + /** + * 文本类型。 * DYNAMIC: 动态文本,需要进行关键字替换。 * STATIC: 静态文本。 + */ + public static final class TextTypeEnum { + + /** + * Enum DYNAMIC for value: "DYNAMIC" + */ + public static final TextTypeEnum DYNAMIC = new TextTypeEnum("DYNAMIC"); + + /** + * Enum STATIC for value: "STATIC" + */ + public static final TextTypeEnum STATIC = new TextTypeEnum("STATIC"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("DYNAMIC", DYNAMIC); + map.put("STATIC", STATIC); + return Collections.unmodifiableMap(map); + } + + private String value; + + TextTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TextTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new TextTypeEnum(value)); + } + + public static TextTypeEnum 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 TextTypeEnum) { + return this.value.equals(((TextTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "text_type") + + private TextTypeEnum textType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "text_context") + + private String textContext; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "font_name") + + private String fontName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "font_size") + + private Integer fontSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "font_color") + + private String fontColor; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "display_duration") + + private Integer displayDuration; + + public SmartTextLayerConfig withTextType(TextTypeEnum textType) { + this.textType = textType; + return this; + } + + /** + * 文本类型。 * DYNAMIC: 动态文本,需要进行关键字替换。 * STATIC: 静态文本。 + * @return textType + */ + public TextTypeEnum getTextType() { + return textType; + } + + public void setTextType(TextTypeEnum textType) { + this.textType = textType; + } + + public SmartTextLayerConfig withTextContext(String textContext) { + this.textContext = textContext; + return this; + } + + /** + * 文本。 + * @return textContext + */ + public String getTextContext() { + return textContext; + } + + public void setTextContext(String textContext) { + this.textContext = textContext; + } + + public SmartTextLayerConfig withFontName(String fontName) { + this.fontName = fontName; + return this; + } + + /** + * 字体。当前支持的字体: * HarmonyOS_Sans_SC_Black:鸿蒙粗体 * HarmonyOS_Sans_SC_Regular:鸿蒙常规 * HarmonyOS_Sans_SC_Thin:鸿蒙细体 * fzyouh:方正瘦体 + * @return fontName + */ + public String getFontName() { + return fontName; + } + + public void setFontName(String fontName) { + this.fontName = fontName; + } + + public SmartTextLayerConfig withFontSize(Integer fontSize) { + this.fontSize = fontSize; + return this; + } + + /** + * 字体大小(像素)。 取值范围:[4, 120] + * minimum: 0 + * maximum: 120 + * @return fontSize + */ + public Integer getFontSize() { + return fontSize; + } + + public void setFontSize(Integer fontSize) { + this.fontSize = fontSize; + } + + public SmartTextLayerConfig withFontColor(String fontColor) { + this.fontColor = fontColor; + return this; + } + + /** + * 字体颜色。RGB颜色值。 + * @return fontColor + */ + public String getFontColor() { + return fontColor; + } + + public void setFontColor(String fontColor) { + this.fontColor = fontColor; + } + + public SmartTextLayerConfig withDisplayDuration(Integer displayDuration) { + this.displayDuration = displayDuration; + return this; + } + + /** + * 文本显示时长。单位s * 0 显示时长规则:若携带reply_texts,reply_audios,与播放语音内容时长保持一致; 未携带场景,与匹配的关键词语音内容时长保持一致 + * minimum: 0 + * maximum: 3600 + * @return displayDuration + */ + public Integer getDisplayDuration() { + return displayDuration; + } + + public void setDisplayDuration(Integer displayDuration) { + this.displayDuration = displayDuration; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SmartTextLayerConfig that = (SmartTextLayerConfig) obj; + return Objects.equals(this.textType, that.textType) && Objects.equals(this.textContext, that.textContext) + && Objects.equals(this.fontName, that.fontName) && Objects.equals(this.fontSize, that.fontSize) + && Objects.equals(this.fontColor, that.fontColor) + && Objects.equals(this.displayDuration, that.displayDuration); + } + + @Override + public int hashCode() { + return Objects.hash(textType, textContext, fontName, fontSize, fontColor, displayDuration); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SmartTextLayerConfig {\n"); + sb.append(" textType: ").append(toIndentedString(textType)).append("\n"); + sb.append(" textContext: ").append(toIndentedString(textContext)).append("\n"); + sb.append(" fontName: ").append(toIndentedString(fontName)).append("\n"); + sb.append(" fontSize: ").append(toIndentedString(fontSize)).append("\n"); + sb.append(" fontColor: ").append(toIndentedString(fontColor)).append("\n"); + sb.append(" displayDuration: ").append(toIndentedString(displayDuration)).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/SmartVideoLayerConfig.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SmartVideoLayerConfig.java index 3fde8ecd3d..7fa31e189e 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SmartVideoLayerConfig.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SmartVideoLayerConfig.java @@ -65,7 +65,7 @@ public SmartVideoLayerConfig withDisplayDuration(Integer displayDuration) { } /** - * 视频显示时长。单位s * 0:表示一直显示。 + * 视频显示时长。单位s * 0 显示时长规则:若携带reply_texts,reply_audios,与播放语音内容时长保持一致; 未携带场景,与匹配的关键词语音内容时长保持一致 * minimum: 0 * maximum: 3600 * @return displayDuration diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/StartSmartChatJobResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/StartSmartChatJobResponse.java index 5dd7e7c9d9..fb615197ab 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/StartSmartChatJobResponse.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/StartSmartChatJobResponse.java @@ -1,9 +1,14 @@ 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.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Consumer; @@ -32,6 +37,87 @@ public class StartSmartChatJobResponse extends SdkResponse { private ChatVideoConfigRsp videoConfig; + /** + * 智能交互对话端配置。 * COMPUTER: 电脑端 * MOBILE: 手机端 * HUB: 大屏 + */ + public static final class ChatVideoTypeEnum { + + /** + * Enum COMPUTER for value: "COMPUTER" + */ + public static final ChatVideoTypeEnum COMPUTER = new ChatVideoTypeEnum("COMPUTER"); + + /** + * Enum MOBILE for value: "MOBILE" + */ + public static final ChatVideoTypeEnum MOBILE = new ChatVideoTypeEnum("MOBILE"); + + /** + * Enum HUB for value: "HUB" + */ + public static final ChatVideoTypeEnum HUB = new ChatVideoTypeEnum("HUB"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("COMPUTER", COMPUTER); + map.put("MOBILE", MOBILE); + map.put("HUB", HUB); + return Collections.unmodifiableMap(map); + } + + private String value; + + ChatVideoTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ChatVideoTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ChatVideoTypeEnum(value)); + } + + public static ChatVideoTypeEnum 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 ChatVideoTypeEnum) { + return this.value.equals(((ChatVideoTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "chat_video_type") + + private ChatVideoTypeEnum chatVideoType; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "X-Request-Id") @@ -132,6 +218,23 @@ public void setVideoConfig(ChatVideoConfigRsp videoConfig) { this.videoConfig = videoConfig; } + public StartSmartChatJobResponse withChatVideoType(ChatVideoTypeEnum chatVideoType) { + this.chatVideoType = chatVideoType; + return this; + } + + /** + * 智能交互对话端配置。 * COMPUTER: 电脑端 * MOBILE: 手机端 * HUB: 大屏 + * @return chatVideoType + */ + public ChatVideoTypeEnum getChatVideoType() { + return chatVideoType; + } + + public void setChatVideoType(ChatVideoTypeEnum chatVideoType) { + this.chatVideoType = chatVideoType; + } + public StartSmartChatJobResponse withXRequestId(String xRequestId) { this.xRequestId = xRequestId; return this; @@ -162,12 +265,14 @@ public boolean equals(java.lang.Object obj) { StartSmartChatJobResponse that = (StartSmartChatJobResponse) obj; return Objects.equals(this.jobId, that.jobId) && Objects.equals(this.rtcRoomInfo, that.rtcRoomInfo) && Objects.equals(this.chatSubtitleConfig, that.chatSubtitleConfig) - && Objects.equals(this.videoConfig, that.videoConfig) && Objects.equals(this.xRequestId, that.xRequestId); + && Objects.equals(this.videoConfig, that.videoConfig) + && Objects.equals(this.chatVideoType, that.chatVideoType) + && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(jobId, rtcRoomInfo, chatSubtitleConfig, videoConfig, xRequestId); + return Objects.hash(jobId, rtcRoomInfo, chatSubtitleConfig, videoConfig, chatVideoType, xRequestId); } @Override @@ -178,6 +283,7 @@ public String toString() { sb.append(" rtcRoomInfo: ").append(toIndentedString(rtcRoomInfo)).append("\n"); sb.append(" chatSubtitleConfig: ").append(toIndentedString(chatSubtitleConfig)).append("\n"); sb.append(" videoConfig: ").append(toIndentedString(videoConfig)).append("\n"); + sb.append(" chatVideoType: ").append(toIndentedString(chatVideoType)).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/TriggerProcess.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/TriggerProcess.java index e579c39578..da6d5d9255 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 @@ -109,6 +109,11 @@ public int hashCode() { private SmartLayerConfig layerConfig; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "extra_layer_config") + + private SmartLayerConfig extraLayerConfig; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "reply_texts") @@ -331,6 +336,32 @@ public void setLayerConfig(SmartLayerConfig layerConfig) { this.layerConfig = layerConfig; } + public TriggerProcess withExtraLayerConfig(SmartLayerConfig extraLayerConfig) { + this.extraLayerConfig = extraLayerConfig; + return this; + } + + public TriggerProcess withExtraLayerConfig(Consumer extraLayerConfigSetter) { + if (this.extraLayerConfig == null) { + this.extraLayerConfig = new SmartLayerConfig(); + extraLayerConfigSetter.accept(this.extraLayerConfig); + } + + return this; + } + + /** + * Get extraLayerConfig + * @return extraLayerConfig + */ + public SmartLayerConfig getExtraLayerConfig() { + return extraLayerConfig; + } + + public void setExtraLayerConfig(SmartLayerConfig extraLayerConfig) { + this.extraLayerConfig = extraLayerConfig; + } + public TriggerProcess withReplyTexts(List replyTexts) { this.replyTexts = replyTexts; return this; @@ -441,14 +472,16 @@ public boolean equals(java.lang.Object obj) { } TriggerProcess that = (TriggerProcess) obj; return Objects.equals(this.timeWindow, that.timeWindow) && Objects.equals(this.replyMode, that.replyMode) - && Objects.equals(this.layerConfig, that.layerConfig) && 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.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); } @Override public int hashCode() { - return Objects.hash(timeWindow, replyMode, layerConfig, replyTexts, replyAudios, replyOrder, replyRole); + return Objects + .hash(timeWindow, replyMode, layerConfig, extraLayerConfig, replyTexts, replyAudios, replyOrder, replyRole); } @Override @@ -458,6 +491,7 @@ public String toString() { sb.append(" timeWindow: ").append(toIndentedString(timeWindow)).append("\n"); sb.append(" replyMode: ").append(toIndentedString(replyMode)).append("\n"); sb.append(" layerConfig: ").append(toIndentedString(layerConfig)).append("\n"); + sb.append(" extraLayerConfig: ").append(toIndentedString(extraLayerConfig)).append("\n"); sb.append(" replyTexts: ").append(toIndentedString(replyTexts)).append("\n"); sb.append(" replyAudios: ").append(toIndentedString(replyAudios)).append("\n"); sb.append(" replyOrder: ").append(toIndentedString(replyOrder)).append("\n"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateSmartChatRoomResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateSmartChatRoomResponse.java index 5311921a02..5a7d4432ee 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateSmartChatRoomResponse.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateSmartChatRoomResponse.java @@ -1,11 +1,16 @@ 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; @@ -69,6 +74,87 @@ public class UpdateSmartChatRoomResponse extends SdkResponse { private ChatSubtitleConfig chatSubtitleConfig; + /** + * 智能交互对话端配置。 * COMPUTER: 电脑端 * MOBILE: 手机端 * HUB: 大屏 + */ + public static final class ChatVideoTypeEnum { + + /** + * Enum COMPUTER for value: "COMPUTER" + */ + public static final ChatVideoTypeEnum COMPUTER = new ChatVideoTypeEnum("COMPUTER"); + + /** + * Enum MOBILE for value: "MOBILE" + */ + public static final ChatVideoTypeEnum MOBILE = new ChatVideoTypeEnum("MOBILE"); + + /** + * Enum HUB for value: "HUB" + */ + public static final ChatVideoTypeEnum HUB = new ChatVideoTypeEnum("HUB"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("COMPUTER", COMPUTER); + map.put("MOBILE", MOBILE); + map.put("HUB", HUB); + return Collections.unmodifiableMap(map); + } + + private String value; + + ChatVideoTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ChatVideoTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ChatVideoTypeEnum(value)); + } + + public static ChatVideoTypeEnum 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 ChatVideoTypeEnum) { + return this.value.equals(((ChatVideoTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "chat_video_type") + + private ChatVideoTypeEnum chatVideoType; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "room_id") @@ -344,6 +430,23 @@ public void setChatSubtitleConfig(ChatSubtitleConfig chatSubtitleConfig) { this.chatSubtitleConfig = chatSubtitleConfig; } + public UpdateSmartChatRoomResponse withChatVideoType(ChatVideoTypeEnum chatVideoType) { + this.chatVideoType = chatVideoType; + return this; + } + + /** + * 智能交互对话端配置。 * COMPUTER: 电脑端 * MOBILE: 手机端 * HUB: 大屏 + * @return chatVideoType + */ + public ChatVideoTypeEnum getChatVideoType() { + return chatVideoType; + } + + public void setChatVideoType(ChatVideoTypeEnum chatVideoType) { + this.chatVideoType = chatVideoType; + } + public UpdateSmartChatRoomResponse withRoomId(String roomId) { this.roomId = roomId; return this; @@ -450,9 +553,9 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.layerConfig, that.layerConfig) && Objects.equals(this.reviewConfig, that.reviewConfig) && Objects.equals(this.chatSubtitleConfig, that.chatSubtitleConfig) - && Objects.equals(this.roomId, that.roomId) && Objects.equals(this.createTime, that.createTime) - && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.coverUrl, that.coverUrl) - && Objects.equals(this.xRequestId, that.xRequestId); + && Objects.equals(this.chatVideoType, that.chatVideoType) && Objects.equals(this.roomId, that.roomId) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.coverUrl, that.coverUrl) && Objects.equals(this.xRequestId, that.xRequestId); } @Override @@ -468,6 +571,7 @@ public int hashCode() { layerConfig, reviewConfig, chatSubtitleConfig, + chatVideoType, roomId, createTime, updateTime, @@ -490,6 +594,7 @@ public String toString() { sb.append(" layerConfig: ").append(toIndentedString(layerConfig)).append("\n"); sb.append(" reviewConfig: ").append(toIndentedString(reviewConfig)).append("\n"); sb.append(" chatSubtitleConfig: ").append(toIndentedString(chatSubtitleConfig)).append("\n"); + sb.append(" chatVideoType: ").append(toIndentedString(chatVideoType)).append("\n"); sb.append(" roomId: ").append(toIndentedString(roomId)).append("\n"); sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateVideoScriptsReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateVideoScriptsReq.java index 28c7c5e110..e6a5377c26 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateVideoScriptsReq.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateVideoScriptsReq.java @@ -28,6 +28,81 @@ public class UpdateVideoScriptsReq { private String scriptDescription; + /** + * 横竖屏类型。默认值是LANDSCAPE。 * LANDSCAPE:横屏。 * VERTICAL: 竖屏。 + */ + public static final class ViewModeEnum { + + /** + * Enum LANDSCAPE for value: "LANDSCAPE" + */ + public static final ViewModeEnum LANDSCAPE = new ViewModeEnum("LANDSCAPE"); + + /** + * Enum VERTICAL for value: "VERTICAL" + */ + public static final ViewModeEnum VERTICAL = new ViewModeEnum("VERTICAL"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("LANDSCAPE", LANDSCAPE); + map.put("VERTICAL", VERTICAL); + return Collections.unmodifiableMap(map); + } + + private String value; + + ViewModeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ViewModeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ViewModeEnum(value)); + } + + public static ViewModeEnum 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 ViewModeEnum) { + return this.value.equals(((ViewModeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "view_mode") + + private ViewModeEnum viewMode; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "model_asset_id") @@ -177,6 +252,23 @@ public void setScriptDescription(String scriptDescription) { this.scriptDescription = scriptDescription; } + public UpdateVideoScriptsReq withViewMode(ViewModeEnum viewMode) { + this.viewMode = viewMode; + return this; + } + + /** + * 横竖屏类型。默认值是LANDSCAPE。 * LANDSCAPE:横屏。 * VERTICAL: 竖屏。 + * @return viewMode + */ + public ViewModeEnum getViewMode() { + return viewMode; + } + + public void setViewMode(ViewModeEnum viewMode) { + this.viewMode = viewMode; + } + public UpdateVideoScriptsReq withModelAssetId(String modelAssetId) { this.modelAssetId = modelAssetId; return this; @@ -394,7 +486,7 @@ public boolean equals(java.lang.Object obj) { UpdateVideoScriptsReq that = (UpdateVideoScriptsReq) obj; return Objects.equals(this.scriptName, that.scriptName) && Objects.equals(this.scriptDescription, that.scriptDescription) - && Objects.equals(this.modelAssetId, that.modelAssetId) + && Objects.equals(this.viewMode, that.viewMode) && Objects.equals(this.modelAssetId, that.modelAssetId) && Objects.equals(this.modelAssetType, that.modelAssetType) && Objects.equals(this.voiceConfig, that.voiceConfig) && Objects.equals(this.videoConfig, that.videoConfig) && Objects.equals(this.sceneAssetId, that.sceneAssetId) && Objects.equals(this.privData, that.privData) @@ -407,6 +499,7 @@ public boolean equals(java.lang.Object obj) { public int hashCode() { return Objects.hash(scriptName, scriptDescription, + viewMode, modelAssetId, modelAssetType, voiceConfig, @@ -424,6 +517,7 @@ public String toString() { sb.append("class UpdateVideoScriptsReq {\n"); sb.append(" scriptName: ").append(toIndentedString(scriptName)).append("\n"); sb.append(" scriptDescription: ").append(toIndentedString(scriptDescription)).append("\n"); + sb.append(" viewMode: ").append(toIndentedString(viewMode)).append("\n"); sb.append(" modelAssetId: ").append(toIndentedString(modelAssetId)).append("\n"); sb.append(" modelAssetType: ").append(toIndentedString(modelAssetType)).append("\n"); sb.append(" voiceConfig: ").append(toIndentedString(voiceConfig)).append("\n"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VideoScriptsCreateInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VideoScriptsCreateInfo.java index 8e01b2dd77..a0d3c42aa9 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VideoScriptsCreateInfo.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VideoScriptsCreateInfo.java @@ -28,6 +28,81 @@ public class VideoScriptsCreateInfo { private String scriptDescription; + /** + * 横竖屏类型。默认值是LANDSCAPE。 * LANDSCAPE:横屏。 * VERTICAL: 竖屏。 + */ + public static final class ViewModeEnum { + + /** + * Enum LANDSCAPE for value: "LANDSCAPE" + */ + public static final ViewModeEnum LANDSCAPE = new ViewModeEnum("LANDSCAPE"); + + /** + * Enum VERTICAL for value: "VERTICAL" + */ + public static final ViewModeEnum VERTICAL = new ViewModeEnum("VERTICAL"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("LANDSCAPE", LANDSCAPE); + map.put("VERTICAL", VERTICAL); + return Collections.unmodifiableMap(map); + } + + private String value; + + ViewModeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ViewModeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ViewModeEnum(value)); + } + + public static ViewModeEnum 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 ViewModeEnum) { + return this.value.equals(((ViewModeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "view_mode") + + private ViewModeEnum viewMode; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "model_asset_id") @@ -177,6 +252,23 @@ public void setScriptDescription(String scriptDescription) { this.scriptDescription = scriptDescription; } + public VideoScriptsCreateInfo withViewMode(ViewModeEnum viewMode) { + this.viewMode = viewMode; + return this; + } + + /** + * 横竖屏类型。默认值是LANDSCAPE。 * LANDSCAPE:横屏。 * VERTICAL: 竖屏。 + * @return viewMode + */ + public ViewModeEnum getViewMode() { + return viewMode; + } + + public void setViewMode(ViewModeEnum viewMode) { + this.viewMode = viewMode; + } + public VideoScriptsCreateInfo withModelAssetId(String modelAssetId) { this.modelAssetId = modelAssetId; return this; @@ -394,7 +486,7 @@ public boolean equals(java.lang.Object obj) { VideoScriptsCreateInfo that = (VideoScriptsCreateInfo) obj; return Objects.equals(this.scriptName, that.scriptName) && Objects.equals(this.scriptDescription, that.scriptDescription) - && Objects.equals(this.modelAssetId, that.modelAssetId) + && Objects.equals(this.viewMode, that.viewMode) && Objects.equals(this.modelAssetId, that.modelAssetId) && Objects.equals(this.modelAssetType, that.modelAssetType) && Objects.equals(this.voiceConfig, that.voiceConfig) && Objects.equals(this.videoConfig, that.videoConfig) && Objects.equals(this.sceneAssetId, that.sceneAssetId) && Objects.equals(this.privData, that.privData) @@ -407,6 +499,7 @@ public boolean equals(java.lang.Object obj) { public int hashCode() { return Objects.hash(scriptName, scriptDescription, + viewMode, modelAssetId, modelAssetType, voiceConfig, @@ -424,6 +517,7 @@ public String toString() { sb.append("class VideoScriptsCreateInfo {\n"); sb.append(" scriptName: ").append(toIndentedString(scriptName)).append("\n"); sb.append(" scriptDescription: ").append(toIndentedString(scriptDescription)).append("\n"); + sb.append(" viewMode: ").append(toIndentedString(viewMode)).append("\n"); sb.append(" modelAssetId: ").append(toIndentedString(modelAssetId)).append("\n"); sb.append(" modelAssetType: ").append(toIndentedString(modelAssetType)).append("\n"); sb.append(" voiceConfig: ").append(toIndentedString(voiceConfig)).append("\n"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VideoScriptsShowInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VideoScriptsShowInfo.java index 99c1a286f6..51c1ade9c2 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VideoScriptsShowInfo.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VideoScriptsShowInfo.java @@ -28,6 +28,81 @@ public class VideoScriptsShowInfo { private String scriptDescription; + /** + * 横竖屏类型。默认值是LANDSCAPE。 * LANDSCAPE:横屏。 * VERTICAL: 竖屏。 + */ + public static final class ViewModeEnum { + + /** + * Enum LANDSCAPE for value: "LANDSCAPE" + */ + public static final ViewModeEnum LANDSCAPE = new ViewModeEnum("LANDSCAPE"); + + /** + * Enum VERTICAL for value: "VERTICAL" + */ + public static final ViewModeEnum VERTICAL = new ViewModeEnum("VERTICAL"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("LANDSCAPE", LANDSCAPE); + map.put("VERTICAL", VERTICAL); + return Collections.unmodifiableMap(map); + } + + private String value; + + ViewModeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ViewModeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ViewModeEnum(value)); + } + + public static ViewModeEnum 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 ViewModeEnum) { + return this.value.equals(((ViewModeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "view_mode") + + private ViewModeEnum viewMode; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "model_asset_id") @@ -177,6 +252,23 @@ public void setScriptDescription(String scriptDescription) { this.scriptDescription = scriptDescription; } + public VideoScriptsShowInfo withViewMode(ViewModeEnum viewMode) { + this.viewMode = viewMode; + return this; + } + + /** + * 横竖屏类型。默认值是LANDSCAPE。 * LANDSCAPE:横屏。 * VERTICAL: 竖屏。 + * @return viewMode + */ + public ViewModeEnum getViewMode() { + return viewMode; + } + + public void setViewMode(ViewModeEnum viewMode) { + this.viewMode = viewMode; + } + public VideoScriptsShowInfo withModelAssetId(String modelAssetId) { this.modelAssetId = modelAssetId; return this; @@ -393,7 +485,7 @@ public boolean equals(java.lang.Object obj) { VideoScriptsShowInfo that = (VideoScriptsShowInfo) obj; return Objects.equals(this.scriptName, that.scriptName) && Objects.equals(this.scriptDescription, that.scriptDescription) - && Objects.equals(this.modelAssetId, that.modelAssetId) + && Objects.equals(this.viewMode, that.viewMode) && Objects.equals(this.modelAssetId, that.modelAssetId) && Objects.equals(this.modelAssetType, that.modelAssetType) && Objects.equals(this.voiceConfig, that.voiceConfig) && Objects.equals(this.videoConfig, that.videoConfig) && Objects.equals(this.sceneAssetId, that.sceneAssetId) && Objects.equals(this.privData, that.privData) @@ -406,6 +498,7 @@ public boolean equals(java.lang.Object obj) { public int hashCode() { return Objects.hash(scriptName, scriptDescription, + viewMode, modelAssetId, modelAssetType, voiceConfig, @@ -423,6 +516,7 @@ public String toString() { sb.append("class VideoScriptsShowInfo {\n"); sb.append(" scriptName: ").append(toIndentedString(scriptName)).append("\n"); sb.append(" scriptDescription: ").append(toIndentedString(scriptDescription)).append("\n"); + sb.append(" viewMode: ").append(toIndentedString(viewMode)).append("\n"); sb.append(" modelAssetId: ").append(toIndentedString(modelAssetId)).append("\n"); sb.append(" modelAssetType: ").append(toIndentedString(modelAssetType)).append("\n"); sb.append(" voiceConfig: ").append(toIndentedString(voiceConfig)).append("\n"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VideoScriptsSimpleInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VideoScriptsSimpleInfo.java index 3c9ac9253a..daa98f1fc8 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VideoScriptsSimpleInfo.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VideoScriptsSimpleInfo.java @@ -26,6 +26,81 @@ public class VideoScriptsSimpleInfo { private String scriptDescription; + /** + * 横竖屏类型。默认值是LANDSCAPE。 * LANDSCAPE:横屏。 * VERTICAL: 竖屏。 + */ + public static final class ViewModeEnum { + + /** + * Enum LANDSCAPE for value: "LANDSCAPE" + */ + public static final ViewModeEnum LANDSCAPE = new ViewModeEnum("LANDSCAPE"); + + /** + * Enum VERTICAL for value: "VERTICAL" + */ + public static final ViewModeEnum VERTICAL = new ViewModeEnum("VERTICAL"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("LANDSCAPE", LANDSCAPE); + map.put("VERTICAL", VERTICAL); + return Collections.unmodifiableMap(map); + } + + private String value; + + ViewModeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ViewModeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ViewModeEnum(value)); + } + + public static ViewModeEnum 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 ViewModeEnum) { + return this.value.equals(((ViewModeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "view_mode") + + private ViewModeEnum viewMode; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "model_asset_id") @@ -170,6 +245,23 @@ public void setScriptDescription(String scriptDescription) { this.scriptDescription = scriptDescription; } + public VideoScriptsSimpleInfo withViewMode(ViewModeEnum viewMode) { + this.viewMode = viewMode; + return this; + } + + /** + * 横竖屏类型。默认值是LANDSCAPE。 * LANDSCAPE:横屏。 * VERTICAL: 竖屏。 + * @return viewMode + */ + public ViewModeEnum getViewMode() { + return viewMode; + } + + public void setViewMode(ViewModeEnum viewMode) { + this.viewMode = viewMode; + } + public VideoScriptsSimpleInfo withModelAssetId(String modelAssetId) { this.modelAssetId = modelAssetId; return this; @@ -354,7 +446,7 @@ public boolean equals(java.lang.Object obj) { VideoScriptsSimpleInfo that = (VideoScriptsSimpleInfo) obj; return Objects.equals(this.scriptName, that.scriptName) && Objects.equals(this.scriptDescription, that.scriptDescription) - && Objects.equals(this.modelAssetId, that.modelAssetId) + && Objects.equals(this.viewMode, that.viewMode) && Objects.equals(this.modelAssetId, that.modelAssetId) && Objects.equals(this.modelAssetType, that.modelAssetType) && Objects.equals(this.voiceConfig, that.voiceConfig) && Objects.equals(this.videoConfig, that.videoConfig) && Objects.equals(this.sceneAssetId, that.sceneAssetId) && Objects.equals(this.privData, that.privData) @@ -366,6 +458,7 @@ public boolean equals(java.lang.Object obj) { public int hashCode() { return Objects.hash(scriptName, scriptDescription, + viewMode, modelAssetId, modelAssetType, voiceConfig, @@ -382,6 +475,7 @@ public String toString() { sb.append("class VideoScriptsSimpleInfo {\n"); sb.append(" scriptName: ").append(toIndentedString(scriptName)).append("\n"); sb.append(" scriptDescription: ").append(toIndentedString(scriptDescription)).append("\n"); + sb.append(" viewMode: ").append(toIndentedString(viewMode)).append("\n"); sb.append(" modelAssetId: ").append(toIndentedString(modelAssetId)).append("\n"); sb.append(" modelAssetType: ").append(toIndentedString(modelAssetType)).append("\n"); sb.append(" voiceConfig: ").append(toIndentedString(voiceConfig)).append("\n"); diff --git a/services/moderation/pom.xml b/services/moderation/pom.xml index 4a34675fa9..f4d6779c71 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-moderation - 3.1.94 + 3.1.95 Huawei Cloud SDK for MODERATION 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/mpc/pom.xml b/services/mpc/pom.xml index c0cc7e8afe..2e63711969 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-mpc - 3.1.94 + 3.1.95 Huawei Cloud SDK for MPC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/mpc/src/main/java/com/huaweicloud/sdk/mpc/v1/model/VideoProcess.java b/services/mpc/src/main/java/com/huaweicloud/sdk/mpc/v1/model/VideoProcess.java index eca2b02b1f..f5dc306608 100644 --- a/services/mpc/src/main/java/com/huaweicloud/sdk/mpc/v1/model/VideoProcess.java +++ b/services/mpc/src/main/java/com/huaweicloud/sdk/mpc/v1/model/VideoProcess.java @@ -191,6 +191,81 @@ public int hashCode() { private Integer upsample; + /** + * HLS切片类型。 取值如下所示: - mpegts:ts切片 - fmp4:fmp4切片 不设置默认为ts切片。 + */ + public static final class HlsSegmentTypeEnum { + + /** + * Enum MPEGTS for value: "mpegts" + */ + public static final HlsSegmentTypeEnum MPEGTS = new HlsSegmentTypeEnum("mpegts"); + + /** + * Enum FMP4 for value: "fmp4" + */ + public static final HlsSegmentTypeEnum FMP4 = new HlsSegmentTypeEnum("fmp4"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("mpegts", MPEGTS); + map.put("fmp4", FMP4); + return Collections.unmodifiableMap(map); + } + + private String value; + + HlsSegmentTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static HlsSegmentTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new HlsSegmentTypeEnum(value)); + } + + public static HlsSegmentTypeEnum 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 HlsSegmentTypeEnum) { + return this.value.equals(((HlsSegmentTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hls_segment_type") + + private HlsSegmentTypeEnum hlsSegmentType; + public VideoProcess withHlsInitCount(Integer hlsInitCount) { this.hlsInitCount = hlsInitCount; return this; @@ -301,6 +376,23 @@ public void setUpsample(Integer upsample) { this.upsample = upsample; } + public VideoProcess withHlsSegmentType(HlsSegmentTypeEnum hlsSegmentType) { + this.hlsSegmentType = hlsSegmentType; + return this; + } + + /** + * HLS切片类型。 取值如下所示: - mpegts:ts切片 - fmp4:fmp4切片 不设置默认为ts切片。 + * @return hlsSegmentType + */ + public HlsSegmentTypeEnum getHlsSegmentType() { + return hlsSegmentType; + } + + public void setHlsSegmentType(HlsSegmentTypeEnum hlsSegmentType) { + this.hlsSegmentType = hlsSegmentType; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -313,12 +405,14 @@ public boolean equals(java.lang.Object obj) { return Objects.equals(this.hlsInitCount, that.hlsInitCount) && Objects.equals(this.hlsInitInterval, that.hlsInitInterval) && Objects.equals(this.hlsStorageType, that.hlsStorageType) && Objects.equals(this.rotate, that.rotate) - && Objects.equals(this.adaptation, that.adaptation) && Objects.equals(this.upsample, that.upsample); + && Objects.equals(this.adaptation, that.adaptation) && Objects.equals(this.upsample, that.upsample) + && Objects.equals(this.hlsSegmentType, that.hlsSegmentType); } @Override public int hashCode() { - return Objects.hash(hlsInitCount, hlsInitInterval, hlsStorageType, rotate, adaptation, upsample); + return Objects + .hash(hlsInitCount, hlsInitInterval, hlsStorageType, rotate, adaptation, upsample, hlsSegmentType); } @Override @@ -331,6 +425,7 @@ public String toString() { sb.append(" rotate: ").append(toIndentedString(rotate)).append("\n"); sb.append(" adaptation: ").append(toIndentedString(adaptation)).append("\n"); sb.append(" upsample: ").append(toIndentedString(upsample)).append("\n"); + sb.append(" hlsSegmentType: ").append(toIndentedString(hlsSegmentType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/mrs/pom.xml b/services/mrs/pom.xml index dedc85b216..985cc62d5c 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-mrs - 3.1.94 + 3.1.95 Huawei Cloud SDK for MRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/msgsms/pom.xml b/services/msgsms/pom.xml index 968a5ab061..52d223991a 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-msgsms - 3.1.94 + 3.1.95 Huawei Cloud SDK for MSGSMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/mssi/pom.xml b/services/mssi/pom.xml index b5ef44af06..3590cd60ff 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-mssi - 3.1.94 + 3.1.95 Huawei Cloud SDK for MSSI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/nat/pom.xml b/services/nat/pom.xml index 33d5bb490f..2617c23b2b 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-nat - 3.1.94 + 3.1.95 Huawei Cloud SDK for NAT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/nlp/pom.xml b/services/nlp/pom.xml index 8353912561..4e4254bf44 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-nlp - 3.1.94 + 3.1.95 Huawei Cloud SDK for NLP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/oa/pom.xml b/services/oa/pom.xml index 64210da4f6..a2ad0cedcf 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-oa - 3.1.94 + 3.1.95 Huawei Cloud SDK for OA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/obs/pom.xml b/services/obs/pom.xml index db7f56b5f7..9bed56e1bf 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-obs - 3.1.94 + 3.1.95 Huawei Cloud SDK for OBS 4.0.0 @@ -17,12 +17,12 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 com.huaweicloud.sdk huaweicloud-sdk-core-xml - 3.1.94 + 3.1.95 diff --git a/services/ocr/pom.xml b/services/ocr/pom.xml index 0b9c7064c5..2c86c565e7 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-ocr - 3.1.94 + 3.1.95 Huawei Cloud SDK for OCR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/oms/pom.xml b/services/oms/pom.xml index 72d6662738..fb11dcec54 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-oms - 3.1.94 + 3.1.95 Huawei Cloud SDK for OMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/optverse/pom.xml b/services/optverse/pom.xml index 2c8807e5cd..7cae9c211f 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-optverse - 3.1.94 + 3.1.95 Huawei Cloud SDK for OPTVERSE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/organizations/pom.xml b/services/organizations/pom.xml index cf41486050..33a8fe417d 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-organizations - 3.1.94 + 3.1.95 Huawei Cloud SDK for ORGANIZATIONS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/orgid/pom.xml b/services/orgid/pom.xml index ef6f8b83c1..cf8319a943 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-orgid - 3.1.94 + 3.1.95 Huawei Cloud SDK for ORGID 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/oroas/pom.xml b/services/oroas/pom.xml index 4f2e3a0bc8..9552cbc079 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-oroas - 3.1.94 + 3.1.95 Huawei Cloud SDK for OROAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/osm/pom.xml b/services/osm/pom.xml index 4cdbf0c030..3b4b465e26 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-osm - 3.1.94 + 3.1.95 Huawei Cloud SDK for OSM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/pangulargemodels/pom.xml b/services/pangulargemodels/pom.xml index 3507c87401..d37ba3064d 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-pangulargemodels - 3.1.94 + 3.1.95 Huawei Cloud SDK for PANGULARGEMODELS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 org.springframework.boot diff --git a/services/pom.xml b/services/pom.xml index e21accbec9..e9a9770e38 100644 --- a/services/pom.xml +++ b/services/pom.xml @@ -6,187 +6,187 @@ com.huaweicloud.sdk - 3.1.94 + 3.1.95 huaweicloud-sdk com.huaweicloud.sdk huaweicloud-sdk-services - 3.1.94 + 3.1.95 pom Huawei Cloud SDK for Java Services Services code for Huawei Cloud SDK for Java https://github.com/huaweicloud/huaweicloud-sdk-java-v3 - kps - moderation - cbh - gaussdbforopengauss - mas + codeartsinspector + dis + dcs + oroas + antiddos + ces dgc - imagesearch dataartsinsight - iec - koomap - dli + cse + dris + ief + eps + kms + live + kps + mapds + bssintl + rms + er + ecs + cce + dlf + projectman + image + rds cpts - dwr - edgesec - cdn + sms + as + dli bcs - codeartsdeploy + vod + ocr + identitycenter secmaster - rds - gsl - asm - eihealth - ecs - workspaceapp - expert - ces + ga mrs - eds - config - antiddos - mpc - eip - idmeclassicapi - frs - iam + gaussdbfornosql + dc + cdm rocketmq - ief - vod - iotda - geip - nlp - kafka - image - ccm + gaussdb dds - cfw - codehub - bms - as - obs - dns + nat + scm + aad + osm sdrs - identitycenter - lts - metastudio - tms - res - codeartsartifact - vpc - dcs - csms - cms - vpn + rgc + mas + devsecurity + organizations + classroom sis - iamaccessanalyzer - msgsms - dss - cae - sts aos - er - rabbitmq - cts - codeartsinspector - lakeformation - nat - swr - codeartscheck + cph + ccm + css + cfw + asm meeting - dis - koophone - eps - cbr - devstar - cce - bssintl - bss - dc - koomessage - organizations - cloudrtc - aad - deh tics + oms + drs + cloudpond + functiongraph + iamaccessanalyzer + hss + hilens + dwr + idmeclassicapi + mssi + kafka + codeartsartifact + orgid + geip + cms + gaussdbforopengauss + codeartsbuild + edgesec + cts + mpc + roma + dss + dsc cbs - cdm - ddm - dbss - waf - css - pangulargemodels - vpcep - smn servicestage - cloudide + optverse + bss + eg + cbh + iotedge + iec + cbr + csms + ivs + idme + waf + workspace + ges + vpc + devstar ims - dws - dris - sa - roma + lts + deh vcm - ivs - devsecurity - live - kms - dlf + vpcep + codecraft + workspaceapp + metastudio + dbss + cc + eds evs - functiongraph - apig - orgid - codeartspipeline + sfsturbo + oa + koomessage + codeartsdeploy + res + frs cloudtest - elb - scm - idme + expert + dataartsstudio + gsl + rabbitmq cgs + iam + imagesearch + lakeformation + ddm + sts + bms + cloudrtc + iotda + koophone ec + campusgo vas - gaussdb - identitycenterstore - mssi - workspace - codecraft - cse + koomap + pangulargemodels + cloudtable + eihealth + cloudide + smn + config + dws + vpn + codeartscheck + ugo + das + cae + moderation + cdn + tms + apm iotanalytics - drs - eg - campusgo - gaussdbfornosql - cc - cph - osm - cloudpond - hilens kvs + apig + swr + obs ram - classroom - ga - mapds - dataartsstudio - ugo + eip + identitycenterstore + nlp + msgsms + dns + codehub aom - dsc - rms - codeartsbuild - oms - apm - ges - projectman - optverse - cloudtable - oa - hss - sfsturbo - iotedge - sms - ocr - oroas - das - rgc + codeartspipeline + elb + sa diff --git a/services/projectman/pom.xml b/services/projectman/pom.xml index bf474dfac6..82794ae74d 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-projectman - 3.1.94 + 3.1.95 Huawei Cloud SDK for PROJECTMAN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/rabbitmq/pom.xml b/services/rabbitmq/pom.xml index cbf2a72bae..c7f5c75739 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-rabbitmq - 3.1.94 + 3.1.95 Huawei Cloud SDK for RABBITMQ 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/ram/pom.xml b/services/ram/pom.xml index 87a6418c76..ec9e8d8fcc 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-ram - 3.1.94 + 3.1.95 Huawei Cloud SDK for RAM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/rds/pom.xml b/services/rds/pom.xml index edea2124e2..99754ea08a 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-rds - 3.1.94 + 3.1.95 Huawei Cloud SDK for RDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/res/pom.xml b/services/res/pom.xml index f9e1f2e0ba..fe4a9d438e 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-res - 3.1.94 + 3.1.95 Huawei Cloud SDK for RES 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/rgc/pom.xml b/services/rgc/pom.xml index 5dc58d9a0b..7c601606a0 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-rgc - 3.1.94 + 3.1.95 Huawei Cloud SDK for RGC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/rms/pom.xml b/services/rms/pom.xml index dbba4ffaac..4ab0ab8b5d 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-rms - 3.1.94 + 3.1.95 Huawei Cloud SDK for RMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/rocketmq/pom.xml b/services/rocketmq/pom.xml index ea0a86fe68..2461e6a29e 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-rocketmq - 3.1.94 + 3.1.95 Huawei Cloud SDK for ROCKETMQ 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/roma/pom.xml b/services/roma/pom.xml index b705606469..2d91ba7959 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-roma - 3.1.94 + 3.1.95 Huawei Cloud SDK for ROMA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/sa/pom.xml b/services/sa/pom.xml index 1c52e90c6c..18658b6ae9 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-sa - 3.1.94 + 3.1.95 Huawei Cloud SDK for SA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/scm/pom.xml b/services/scm/pom.xml index 415ad7441f..fec7656b59 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-scm - 3.1.94 + 3.1.95 Huawei Cloud SDK for SCM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/sdrs/pom.xml b/services/sdrs/pom.xml index 975404854b..f23e63dfd2 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-sdrs - 3.1.94 + 3.1.95 Huawei Cloud SDK for SDRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/secmaster/pom.xml b/services/secmaster/pom.xml index e5bac4f067..6cf4552b0e 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-secmaster - 3.1.94 + 3.1.95 Huawei Cloud SDK for SECMASTER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/servicestage/pom.xml b/services/servicestage/pom.xml index ad9f73323d..abca16eeaf 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-servicestage - 3.1.94 + 3.1.95 Huawei Cloud SDK for SERVICESTAGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/sfsturbo/pom.xml b/services/sfsturbo/pom.xml index 32601c3aff..ab95d46b9a 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-sfsturbo - 3.1.94 + 3.1.95 Huawei Cloud SDK for SFSTURBO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/sis/pom.xml b/services/sis/pom.xml index 20d0eca7a6..d147238100 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-sis - 3.1.94 + 3.1.95 Huawei Cloud SDK for SIS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/smn/pom.xml b/services/smn/pom.xml index 1996fc45ca..13495ab3ff 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-smn - 3.1.94 + 3.1.95 Huawei Cloud SDK for SMN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/sms/pom.xml b/services/sms/pom.xml index 6680021903..beab99ce1e 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-sms - 3.1.94 + 3.1.95 Huawei Cloud SDK for SMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/sts/pom.xml b/services/sts/pom.xml index 0b35a2d2fc..daa5f5942a 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-sts - 3.1.94 + 3.1.95 Huawei Cloud SDK for STS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/swr/pom.xml b/services/swr/pom.xml index 8ab1c3a409..913f5c41c0 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-swr - 3.1.94 + 3.1.95 Huawei Cloud SDK for SWR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/tics/pom.xml b/services/tics/pom.xml index 58c8a9d663..3607f27d1a 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-tics - 3.1.94 + 3.1.95 Huawei Cloud SDK for TICS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/tms/pom.xml b/services/tms/pom.xml index de8b4a192f..632ac9330c 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-tms - 3.1.94 + 3.1.95 Huawei Cloud SDK for TMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/ugo/pom.xml b/services/ugo/pom.xml index 0425b34f09..8ae39f7d53 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-ugo - 3.1.94 + 3.1.95 Huawei Cloud SDK for UGO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/vas/pom.xml b/services/vas/pom.xml index d032882384..487b830e60 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-vas - 3.1.94 + 3.1.95 Huawei Cloud SDK for VAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/vcm/pom.xml b/services/vcm/pom.xml index 04506a8e32..2ddae77933 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-vcm - 3.1.94 + 3.1.95 Huawei Cloud SDK for VCM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/vod/pom.xml b/services/vod/pom.xml index f11101ed46..e1525104c0 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-vod - 3.1.94 + 3.1.95 Huawei Cloud SDK for VOD 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/vpc/pom.xml b/services/vpc/pom.xml index a9ddadc7ec..979fc7b75d 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-vpc - 3.1.94 + 3.1.95 Huawei Cloud SDK for VPC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/vpcep/pom.xml b/services/vpcep/pom.xml index 4c4327d541..c057d87799 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-vpcep - 3.1.94 + 3.1.95 Huawei Cloud SDK for VPCEP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/vpn/pom.xml b/services/vpn/pom.xml index 3c963f3bb6..3947d54b01 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-vpn - 3.1.94 + 3.1.95 Huawei Cloud SDK for VPN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/waf/pom.xml b/services/waf/pom.xml index dbb6a38411..7a20c3cbbf 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-waf - 3.1.94 + 3.1.95 Huawei Cloud SDK for WAF 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/CreatePremiumHostResponse.java b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/CreatePremiumHostResponse.java index 4c3c8a740f..fc5751ab35 100644 --- a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/CreatePremiumHostResponse.java +++ b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/CreatePremiumHostResponse.java @@ -627,7 +627,7 @@ public CreatePremiumHostResponse withDomainid(String domainid) { } /** - * 帐号ID,对应华为云控制台用户名->我的凭证->帐号ID + * 账号ID,对应华为云控制台用户名->我的凭证->账号ID * @return domainid */ public String getDomainid() { diff --git a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/ResourceResponse.java b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/ResourceResponse.java index d8dd552750..844996c3c3 100644 --- a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/ResourceResponse.java +++ b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/ResourceResponse.java @@ -85,7 +85,7 @@ public ResourceResponse withResourceType(String resourceType) { } /** - * 云服务产品的资源类型 - hws.resource.type.waf:云模式包周期WAF - hws.resource.type.waf.domain:云模式包周期WAF域名扩展包 - hws.resource.type.waf.domain:云模式包周期WAF带宽扩展包 - hws.resource.type.waf.domain:云模式包周期WAF规则扩展包 - hws.resource.type.waf.instance:独享实例WAF - hws.resource.type.waf.payperuserequest : Web应用防火墙按需请求 - hws.resource.type.waf.payperusedomain:Web应用防火墙按需域名 - hws.resource.type.waf.payperuserule: Web应用防火墙按需规则 + * 云服务产品的资源类型 - hws.resource.type.waf:云模式包周期WAF - hws.resource.type.waf.domain:云模式包周期WAF域名扩展包 - hws.resource.type.waf.bandwidth:云模式包周期WAF带宽扩展包 - hws.resource.type.waf.rule:云模式包周期WAF规则扩展包 - hws.resource.type.waf.instance:独享实例WAF - hws.resource.type.waf.payperuserequest : Web应用防火墙按需请求 - hws.resource.type.waf.payperusedomain:Web应用防火墙按需域名 - hws.resource.type.waf.payperuserule: Web应用防火墙按需规则 * @return resourceType */ public String getResourceType() { diff --git a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/ShowHostResponse.java b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/ShowHostResponse.java index 10c62725b7..5be4e40287 100644 --- a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/ShowHostResponse.java +++ b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/ShowHostResponse.java @@ -471,7 +471,7 @@ public ShowHostResponse withDomainid(String domainid) { } /** - * 帐号ID,对应华为云控制台用户名->我的凭证->帐号ID + * 账号ID,对应华为云控制台用户名->我的凭证->账号ID * @return domainid */ public String getDomainid() { diff --git a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/ShowPremiumHostResponse.java b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/ShowPremiumHostResponse.java index 229a2df421..a52c5eb287 100644 --- a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/ShowPremiumHostResponse.java +++ b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/ShowPremiumHostResponse.java @@ -581,7 +581,7 @@ public ShowPremiumHostResponse withDomainid(String domainid) { } /** - * 帐号ID,对应华为云控制台用户名->我的凭证->帐号ID + * 账号ID,对应华为云控制台用户名->我的凭证->账号ID * @return domainid */ public String getDomainid() { diff --git a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/UpdateHostResponse.java b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/UpdateHostResponse.java index a8ccb77acd..943accc34c 100644 --- a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/UpdateHostResponse.java +++ b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/UpdateHostResponse.java @@ -471,7 +471,7 @@ public UpdateHostResponse withDomainid(String domainid) { } /** - * 帐号ID,对应华为云控制台用户名->我的凭证->帐号ID + * 账号ID,对应华为云控制台用户名->我的凭证->账号ID * @return domainid */ public String getDomainid() { diff --git a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/UpdatePremiumHostResponse.java b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/UpdatePremiumHostResponse.java index 9b5dc73710..a6df4752ef 100644 --- a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/UpdatePremiumHostResponse.java +++ b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/UpdatePremiumHostResponse.java @@ -586,7 +586,7 @@ public UpdatePremiumHostResponse withDomainid(String domainid) { } /** - * 帐号ID,对应华为云控制台用户名->我的凭证->帐号ID + * 账号ID,对应华为云控制台用户名->我的凭证->账号ID * @return domainid */ public String getDomainid() { diff --git a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/region/WafRegion.java b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/region/WafRegion.java index 5aed62da1a..0ec9d2cd0b 100644 --- a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/region/WafRegion.java +++ b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/region/WafRegion.java @@ -70,6 +70,8 @@ public class WafRegion { public static final Region EU_WEST_101 = new Region("eu-west-101", "https://waf.eu-west-101.myhuaweicloud.com"); + public static final Region RU_MOSCOW_1 = new Region("ru-moscow-1", "https://waf.ru-moscow-1.myhuaweicloud.com"); + private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("WAF"); private static final Map STATIC_FIELDS = createStaticFields(); @@ -101,6 +103,7 @@ private static Map createStaticFields() { map.put("tr-west-1", TR_WEST_1); map.put("me-east-1", ME_EAST_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/workspace/pom.xml b/services/workspace/pom.xml index 6b28c0e3c9..8f7442379c 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-workspace - 3.1.94 + 3.1.95 Huawei Cloud SDK for WORKSPACE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95 diff --git a/services/workspaceapp/pom.xml b/services/workspaceapp/pom.xml index 94045fe232..4d85800b81 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.94 + 3.1.95 huaweicloud-sdk-services .. huaweicloud-sdk-workspaceapp - 3.1.94 + 3.1.95 Huawei Cloud SDK for WORKSPACEAPP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.94 + 3.1.95