From 7e665e6323febea1e020725116138808dbf6db54 Mon Sep 17 00:00:00 2001 From: Huaweicloud-SDK Date: Thu, 16 May 2024 16:52:03 +0800 Subject: [PATCH] release 3.1.96 source code --- CHANGELOG.md | 416 ++++ CHANGELOG_CN.md | 416 ++++ VERSION | 2 +- all/pom.xml | 348 ++-- bundle/pom.xml | 6 +- core-bson/pom.xml | 6 +- core-xml/pom.xml | 6 +- core/pom.xml | 4 +- .../sdk/core/http/HttpRequest.java | 27 +- .../huaweicloud/sdk/core/TestHcClient.java | 20 + .../sdk/core/TestRequestBuilder.java | 60 + pom.xml | 2 +- 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 +- .../sdk/apm/v1/ApmAsyncClient.java | 153 ++ .../com/huaweicloud/sdk/apm/v1/ApmClient.java | 152 ++ .../com/huaweicloud/sdk/apm/v1/ApmMeta.java | 159 ++ .../sdk/apm/v1/model/AccessAkskVO.java | 61 +- .../sdk/apm/v1/model/AccessPointModel.java} | 41 +- .../sdk/apm/v1/model/CreateBusinessModel.java | 241 +++ .../apm/v1/model/CreateBusinessRequest.java} | 20 +- .../apm/v1/model/CreateBusinessResponse.java | 96 + .../sdk/apm/v1/model/FlameLineTreeInfo.java | 189 ++ .../apm/v1/model/ShowAccessPointRequest.java | 131 ++ .../apm/v1/model/ShowAccessPointResponse.java | 263 +++ .../v1/model/ShowFlameLineTreeRequest.java} | 20 +- .../v1/model/ShowFlameLineTreeResponse.java | 131 ++ .../model/ShowMonitorItemDetailRequest.java | 121 ++ .../model/ShowMonitorItemDetailResponse.java} | 34 +- .../sdk/apm/v1/model/ShowTokenRequest.java | 97 + .../sdk/apm/v1/model/ShowTokenResponse.java} | 34 +- .../sdk/apm/v1/model/TagParam.java | 355 +--- .../sdk/apm/v1/model/ViewBase.java | 8 +- 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 +- services/cae/pom.xml | 6 +- services/campusgo/pom.xml | 6 +- services/cbh/pom.xml | 6 +- services/cbr/pom.xml | 6 +- .../sdk/cbr/v1/region/CbrRegion.java | 3 + 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 +- .../sdk/cdn/v1/CdnAsyncClient.java | 4 + .../com/huaweicloud/sdk/cdn/v1/CdnClient.java | 4 + .../sdk/cdn/v2/model/CertificatesGetBody.java | 168 ++ .../sdk/cdn/v2/model/CertificatesPutBody.java | 193 ++ .../sdk/cdn/v2/model/HttpGetBody.java | 121 +- .../sdk/cdn/v2/model/HttpPutBody.java | 146 +- services/ces/pom.xml | 6 +- services/cfw/pom.xml | 6 +- services/cgs/pom.xml | 6 +- services/classroom/pom.xml | 6 +- services/cloudide/pom.xml | 6 +- services/cloudpond/pom.xml | 6 +- services/cloudrtc/pom.xml | 6 +- services/cloudtable/pom.xml | 6 +- services/cloudtest/pom.xml | 6 +- 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 +- .../v3/CodeArtsInspectorAsyncClient.java | 243 +++ .../v3/CodeArtsInspectorClient.java | 243 +++ .../v3/CodeArtsInspectorMeta.java | 228 ++ .../v3/model/AddGroupRequest.java} | 20 +- .../v3/model/AddGroupRequestBody.java | 72 + .../v3/model/AddGroupResponse.java | 96 + .../v3/model/BatchCreateHostsRequest.java | 82 + .../v3/model/BatchCreateHostsRequestBody.java | 91 + .../v3/model/BatchCreateHostsResponse.java | 117 ++ .../v3/model/BatchStartHostTasksRequest.java | 82 + .../model/BatchStartHostTasksRequestBody.java | 189 ++ .../v3/model/BatchStartHostTasksResponse.java | 93 + ...atchStartHostTasksResponseBodyResults.java | 95 + .../v3/model/DeleteGroupRequest.java} | 34 +- .../v3/model/DeleteGroupResponse.java} | 6 +- .../v3/model/DeleteHostRequest.java} | 34 +- .../v3/model/DeleteHostResponse.java} | 6 +- .../codeartsinspector/v3/model/Group.java} | 58 +- .../codeartsinspector/v3/model/HGHost.java | 415 ++++ .../codeartsinspector/v3/model/HostItem.java | 289 +++ .../v3/model/HostItemWithId.java | 312 +++ .../v3/model/HostVulnItem.java | 652 ++++++ .../v3/model/HostVulnItemComponentList.java | 120 ++ .../v3/model/HostVulnItemCveList.java | 95 + .../v3/model/ListGroupsRequest.java} | 60 +- .../v3/model/ListGroupsResponse.java | 117 ++ .../v3/model/ListHostResultsRequest.java | 146 ++ .../v3/model/ListHostResultsResponse.java | 117 ++ .../v3/model/ListHostsRequest.java} | 84 +- .../v3/model/ListHostsResponse.java | 117 ++ .../v3/model/ScanInfoDetail.java | 198 ++ services/codeartspipeline/pom.xml | 6 +- services/codecraft/pom.xml | 6 +- services/codehub/pom.xml | 6 +- services/config/pom.xml | 6 +- .../sdk/config/v1/ConfigAsyncClient.java | 8 +- .../sdk/config/v1/ConfigClient.java | 8 +- .../huaweicloud/sdk/config/v1/ConfigMeta.java | 24 + ...CollectTrackedResourcesSummaryRequest.java | 28 +- .../model/CountTrackedResourcesRequest.java | 27 +- .../model/ListTrackedResourceTagsRequest.java | 27 +- .../v1/model/ListTrackedResourcesRequest.java | 28 +- .../sdk/config/v1/model/ResourceEntity.java | 28 +- .../v1/model/ShowResourceByIdResponse.java | 28 +- .../v1/model/ShowResourceDetailResponse.java | 28 +- .../ShowTrackedResourceDetailResponse.java | 28 +- .../sdk/config/v1/region/ConfigRegion.java | 3 +- 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 +- .../sdk/das/v3/DasAsyncClient.java | 93 +- .../com/huaweicloud/sdk/das/v3/DasClient.java | 92 +- .../com/huaweicloud/sdk/das/v3/DasMeta.java | 81 + .../model/ChangeSqlLimitSwitchStatusBody.java | 6 + .../v3/model/CreateSqlLimitRuleOption.java | 39 +- .../das/v3/model/CreateSqlLimitRulesBody.java | 34 +- .../das/v3/model/DeleteSqlLimitRulesBody.java | 34 +- .../model/ExportSlowSqlStatisticsRequest.java | 206 ++ .../ExportSlowSqlStatisticsRequestBody.java | 399 ++++ .../ExportSlowSqlStatisticsResponse.java | 116 ++ .../v3/model/ListSqlLimitRulesRequest.java | 33 +- .../huaweicloud/sdk/das/v3/model/Quotas.java | 91 - .../sdk/das/v3/model/Resource.java | 142 -- .../sdk/das/v3/model/ShowQuotasResponse.java | 27 +- .../ShowSqlLimitSwitchStatusRequest.java | 6 + .../sdk/das/v3/model/SlowSqlStatistics.java | 492 +++++ .../sdk/das/v3/model/SqlLimitRule.java | 28 +- .../v3/model/UpdateSqlLimitRuleOption.java | 96 + .../das/v3/model/UpdateSqlLimitRulesBody.java | 241 +++ .../v3/model/UpdateSqlLimitRulesRequest.java | 206 ++ .../model/UpdateSqlLimitRulesResponse.java} | 6 +- services/dataartsinsight/pom.xml | 6 +- services/dataartsstudio/pom.xml | 6 +- .../v1/DataArtsStudioAsyncClient.java | 192 ++ .../v1/DataArtsStudioClient.java | 186 ++ .../dataartsstudio/v1/DataArtsStudioMeta.java | 287 +++ .../CreateSecurityAssignedQueueRequest.java} | 46 +- .../CreateSecurityAssignedQueueResponse.java | 92 + .../DeleteSecurityAssignedQueueRequest.java | 95 + .../DeleteSecurityAssignedQueueResponse.java} | 6 +- .../ListSecurityAssignedQueuesRequest.java | 170 ++ .../ListSecurityAssignedQueuesResponse.java | 116 ++ .../ListSecurityMemberSyncTasksRequest.java | 580 ++++++ .../ListSecurityMemberSyncTasksResponse.java | 117 ++ .../v1/model/MemberSyncTask.java | 906 ++++++++ .../v1/model/QueueSrcAssignCreateDTO.java | 185 ++ .../v1/model/QueueSrcAssignEntity.java | 421 ++++ .../v1/model/QueueSrcAssignUpdateDTO.java | 97 + .../ShowSecurityMemberSyncTaskRequest.java | 95 + .../ShowSecurityMemberSyncTaskResponse.java | 907 ++++++++ .../UpdateSecurityAssignedQueueRequest.java | 129 ++ .../UpdateSecurityAssignedQueueResponse.java | 422 ++++ services/dbss/pom.xml | 6 +- services/dc/pom.xml | 6 +- services/dcs/pom.xml | 6 +- .../sdk/dcs/v2/model/ClientInfo.java | 8 +- 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 +- .../dli/v1/model/CreateSqlJobRequestBody.java | 26 +- services/dns/pom.xml | 6 +- services/dris/pom.xml | 6 +- services/drs/pom.xml | 6 +- services/dsc/pom.xml | 6 +- services/dss/pom.xml | 6 +- services/dwr/pom.xml | 6 +- services/dws/pom.xml | 6 +- .../com/huaweicloud/sdk/dws/v2/DwsMeta.java | 5 + .../v2/model/ListUpdatableVersionRequest.java | 102 +- services/ec/pom.xml | 6 +- services/ecs/pom.xml | 6 +- services/edgesec/pom.xml | 6 +- services/eds/pom.xml | 6 +- services/eg/pom.xml | 6 +- services/eihealth/pom.xml | 6 +- .../v1/model/ListDrugDatabaseResponse.java | 28 +- 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 +- services/ga/pom.xml | 6 +- services/gaussdb/pom.xml | 6 +- .../sdk/gaussdb/v3/GaussDBAsyncClient.java | 477 +++++ .../sdk/gaussdb/v3/GaussDBClient.java | 467 +++++ .../sdk/gaussdb/v3/GaussDBMeta.java | 584 ++++++ .../model/CheckStarRocksResourceRequest.java} | 48 +- .../CheckStarRocksResourceResponse.java} | 34 +- .../CreateStarRocksDatabaseUserRequest.java | 131 ++ .../CreateStarRocksDatabaseUserResponse.java | 73 + .../model/CreateStarrocksInstanceRequest.java | 131 ++ .../CreateStarrocksInstanceResponse.java | 106 + .../DeleteStarRocksDatabaseUserRequest.java | 121 ++ .../DeleteStarRocksDatabaseUserResponse.java | 73 + .../model/DeleteStarrocksInstanceRequest.java | 122 ++ .../DeleteStarrocksInstanceResponse.java | 73 + .../v3/model/HtapFlavorInfoFlavors.java | 255 +++ .../HtapInstanceListAvailableZones.java} | 80 +- .../model/HtapInstanceListInstanceState.java | 144 ++ .../v3/model/HtapInstanceListInstances.java | 773 +++++++ .../v3/model/HtapInstanceListNetwork.java | 119 ++ .../v3/model/HtapStorageTypeStorageType.java | 138 ++ .../v3/model/ListHtapDataStoreRequest.java | 97 + .../v3/model/ListHtapDataStoreResponse.java | 92 + .../v3/model/ListHtapFlavorRequest.java | 169 ++ .../v3/model/ListHtapFlavorResponse.java | 92 + .../v3/model/ListHtapInstanceInfoRequest.java | 97 + .../model/ListHtapInstanceInfoResponse.java | 139 ++ .../v3/model/ListHtapStorageTypeRequest.java | 121 ++ .../v3/model/ListHtapStorageTypeResponse.java | 92 + .../ListStarrocksInstanceInfoRequest.java | 122 ++ .../ListStarrocksInstanceInfoResponse.java | 93 + .../sdk/gaussdb/v3/model/ParamGroup.java | 95 + .../sdk/gaussdb/v3/model/QueryAction.java | 311 +++ .../gaussdb/v3/model/ReadableNodeInfos.java | 119 ++ .../sdk/gaussdb/v3/model/ResourceCheck.java | 174 ++ .../v3/model/ResourceCheckResource.java | 369 ++++ .../RestartStarrocksInstanceRequest.java | 98 + .../RestartStarrocksInstanceResponse.java | 73 + .../v3/model/RestartStarrocksNodeRequest.java | 122 ++ .../model/RestartStarrocksNodeResponse.java | 73 + .../ShowStarRocksDatabaseUserRequest.java | 168 ++ .../ShowStarRocksDatabaseUserResponse.java | 116 ++ ...ShowStarRocksDatabaseUsersUserDetails.java | 161 ++ .../v3/model/SrCreateInstanceRspInstance.java | 468 +++++ .../SrCreateInstanceRspInstanceEngine.java} | 40 +- .../SrCreateInstanceRspInstancePayInfo.java | 166 ++ .../SrCreateInstanceRspInstanceTagsInfo.java | 132 ++ ...ateInstanceRspInstanceTagsInfoSysTags.java | 95 + ...CreateInstanceRspInstanceTagsInfoTags.java | 95 + .../v3/model/SrDataStoresDatastores.java | 119 ++ .../v3/model/StarRocksCreateRequest.java | 505 +++++ .../model/StarRocksCreateRequestBeVolume.java | 97 + .../model/StarRocksCreateRequestEngine.java} | 64 +- .../model/StarRocksCreateRequestFeVolume.java | 97 + .../v3/model/StarRocksCreateRequestHa.java} | 76 +- .../model/StarRocksCreateRequestTagsInfo.java | 92 + ...StarRocksCreateRequestTagsInfoSysTags.java | 228 ++ .../v3/model/StarRocksDatabaseUserInfo.java | 185 ++ .../v3/model/StarRocksDatabaseUserPSinfo.java | 161 ++ .../v3/model/StarRocksDatabaseUserPWinfo.java | 95 + .../model/StarRocksInstanceInfoDatastore.java | 119 ++ .../v3/model/StarRocksInstanceInfoGroups.java | 185 ++ .../model/StarRocksInstanceInfoInstances.java | 1148 +++++++++++ .../v3/model/StarRocksInstanceInfoNodes.java | 886 ++++++++ .../model/StarRocksInstanceInfoOpsWindow.java | 119 ++ .../model/StarRocksInstanceInfoPortInfo.java | 72 + .../model/StarRocksInstanceInfoTagsInfo.java | 131 ++ .../StarRocksInstanceInfoTagsInfoSysTags.java | 95 + .../StarRocksInstanceInfoTagsInfoTags.java | 95 + .../v3/model/StarRocksInstanceInfoVolume.java | 95 + ...eStarRocksDatabaseUserPasswordRequest.java | 131 ++ ...StarRocksDatabaseUserPasswordResponse.java | 73 + ...tarRocksDatabaseUserPermissionRequest.java | 131 ++ ...arRocksDatabaseUserPermissionResponse.java | 73 + services/gaussdbfornosql/pom.xml | 6 +- services/gaussdbforopengauss/pom.xml | 6 +- .../v3/GaussDBforopenGaussAsyncClient.java | 31 + .../v3/GaussDBforopenGaussClient.java | 31 + .../v3/GaussDBforopenGaussMeta.java | 31 + .../model/OpenGaussInstanceRequestBody.java | 29 +- .../v3/model/RecoveryBackupSource.java | 289 +++ .../v3/model/RecoveryBackupTarget.java | 72 + .../v3/model/RestoreInstanceRequest.java | 107 + .../v3/model/RestoreInstanceRequestBody.java | 114 + .../v3/model/RestoreInstanceResponse.java} | 34 +- .../v3/model/RestoreTableListDetail.java | 190 ++ services/geip/pom.xml | 6 +- services/ges/pom.xml | 6 +- .../sdk/ges/v2/GesAsyncClient.java | 20 +- .../com/huaweicloud/sdk/ges/v2/GesClient.java | 20 +- .../ges/v2/model/ResizeGraph2Response.java | 2 +- .../sdk/ges/v2/model/ResizeGraphReq.java | 2 +- services/gsl/pom.xml | 6 +- services/hilens/pom.xml | 6 +- services/hss/pom.xml | 6 +- services/iam/pom.xml | 6 +- .../sdk/iam/v3/model/ServiceStatement.java | 24 +- services/iamaccessanalyzer/pom.xml | 6 +- services/identitycenter/pom.xml | 6 +- services/identitycenterstore/pom.xml | 6 +- services/idme/pom.xml | 6 +- services/idmeclassicapi/pom.xml | 6 +- services/iec/pom.xml | 6 +- services/ief/pom.xml | 6 +- services/image/pom.xml | 6 +- services/imagesearch/pom.xml | 6 +- services/ims/pom.xml | 6 +- services/iotanalytics/pom.xml | 6 +- services/iotda/pom.xml | 6 +- services/iotedge/pom.xml | 6 +- .../sdk/iotedge/v2/IoTEdgeAsyncClient.java | 32 + .../sdk/iotedge/v2/IoTEdgeClient.java | 32 + .../sdk/iotedge/v2/IoTEdgeMeta.java | 42 + .../DeviceControlDefaultValuesReqDTO.java | 91 + .../iotedge/v2/model/DeviceDefaultValues.java | 119 ++ .../SetDeviceControlDefaultValuesRequest.java | 105 + ...SetDeviceControlDefaultValuesResponse.java | 73 + services/ivs/pom.xml | 6 +- services/kafka/pom.xml | 6 +- services/kms/pom.xml | 6 +- services/koomap/pom.xml | 6 +- services/koomessage/pom.xml | 6 +- services/koophone/pom.xml | 6 +- services/kps/pom.xml | 6 +- services/kvs/pom.xml | 8 +- .../sdk/kvs/v1/region/KvsRegion.java | 49 + services/lakeformation/pom.xml | 6 +- services/live/pom.xml | 6 +- services/lts/pom.xml | 6 +- .../sdk/lts/v2/model/QueryLtsLogParams.java | 32 +- .../sdk/lts/v2/model/TimeRange.java | 20 +- services/mapds/pom.xml | 6 +- services/mas/pom.xml | 6 +- services/meeting/pom.xml | 6 +- services/metastudio/pom.xml | 6 +- .../metastudio/v1/MetaStudioAsyncClient.java | 1009 +++++++++ .../sdk/metastudio/v1/MetaStudioClient.java | 994 +++++++++ .../sdk/metastudio/v1/MetaStudioMeta.java | 1834 ++++++++++++++++- .../sdk/metastudio/v1/model/CommitJobReq.java | 358 ++++ .../model/CommitVoiceTrainingJobRequest.java | 37 +- .../CreateBatchKnowledgeQuestionReq.java | 115 ++ .../CreateBatchKnowledgeQuestionRequest.java | 182 ++ .../CreateBatchKnowledgeQuestionResponse.java | 118 ++ .../model/CreateDigitalAssetRequestBody.java | 2 +- .../v1/model/CreateHotQuestionReq.java | 95 + .../v1/model/CreateHotQuestionRequest.java | 182 ++ .../v1/model/CreateHotQuestionResponse.java | 193 ++ .../v1/model/CreateIntentAndQuestionReq.java | 161 ++ .../model/CreateIntentAndQuestionRequest.java | 182 ++ .../CreateIntentAndQuestionResponse.java | 164 ++ .../v1/model/CreateKnowledgeIntentReq.java | 119 ++ .../model/CreateKnowledgeIntentRequest.java | 182 ++ .../model/CreateKnowledgeIntentResponse.java | 122 ++ .../v1/model/CreateKnowledgeIntentRsp.java | 95 + .../v1/model/CreateKnowledgeQuestionReq.java | 95 + .../model/CreateKnowledgeQuestionRequest.java | 182 ++ .../CreateKnowledgeQuestionResponse.java | 98 + .../v1/model/CreateKnowledgeSkillReq.java | 95 + .../v1/model/CreateKnowledgeSkillRequest.java | 182 ++ .../model/CreateKnowledgeSkillResponse.java | 122 ++ .../v1/model/CreateLargeFileRequest.java | 156 ++ .../v1/model/CreateLargeFileResponse.java | 141 ++ .../metastudio/v1/model/CreateRobotReq.java | 48 +- .../v1/model/CreateTrainingJobReq.java | 28 +- .../model/CreateTtsAuditionRequestBody.java | 6 +- .../v1/model/CreateWelcomeSpeechReq.java | 95 + .../v1/model/CreateWelcomeSpeechRequest.java | 182 ++ .../v1/model/CreateWelcomeSpeechResponse.java | 193 ++ .../v1/model/DeleteHotQuestionRequest.java | 191 ++ .../v1/model/DeleteHotQuestionResponse.java | 75 + .../model/DeleteKnowledgeIntentRequest.java | 191 ++ .../model/DeleteKnowledgeIntentResponse.java | 75 + .../model/DeleteKnowledgeQuestionRequest.java | 191 ++ .../DeleteKnowledgeQuestionResponse.java | 75 + .../v1/model/DeleteKnowledgeSkillRequest.java | 191 ++ .../model/DeleteKnowledgeSkillResponse.java | 75 + .../v1/model/DeleteWelcomeSpeechRequest.java | 191 ++ .../v1/model/DeleteWelcomeSpeechResponse.java | 75 + .../v1/model/ExportKnowledgeSkillRequest.java | 223 ++ .../model/ExportKnowledgeSkillResponse.java | 75 + .../metastudio/v1/model/HotQuestionInfo.java | 166 ++ .../sdk/metastudio/v1/model/JobType.java | 20 +- .../v1/model/KnowledgeIntentInfo.java | 189 ++ .../v1/model/KnowledgeQuestionCreateInfo.java | 72 + .../v1/model/KnowledgeQuestionInfo.java | 166 ++ .../v1/model/KnowledgeQuestionUpdateInfo.java | 95 + .../v1/model/KnowledgeSkillInfo.java | 166 ++ .../v1/model/LargeFilesCreateReq.java | 194 ++ .../v1/model/ListHotQuestionRequest.java | 246 +++ .../v1/model/ListHotQuestionResponse.java | 194 ++ .../v1/model/ListKnowledgeIntentRequest.java | 223 ++ .../v1/model/ListKnowledgeIntentResponse.java | 194 ++ .../model/ListKnowledgeQuestionRequest.java | 223 ++ .../model/ListKnowledgeQuestionResponse.java | 194 ++ .../v1/model/ListKnowledgeSkillRequest.java | 199 ++ .../v1/model/ListKnowledgeSkillResponse.java | 194 ++ .../v1/model/ListWelcomeSpeechRequest.java | 223 ++ .../v1/model/ListWelcomeSpeechResponse.java | 194 ++ .../sdk/metastudio/v1/model/MobvoiConfig.java | 119 ++ .../sdk/metastudio/v1/model/RobotInfo.java | 63 +- .../v1/model/ShowHotQuestionRequest.java | 172 ++ .../v1/model/ShowHotQuestionResponse.java | 193 ++ .../v1/model/ShowKnowledgeIntentRequest.java | 172 ++ .../v1/model/ShowKnowledgeIntentResponse.java | 216 ++ .../model/ShowKnowledgeQuestionRequest.java | 172 ++ .../model/ShowKnowledgeQuestionResponse.java | 192 ++ .../v1/model/ShowKnowledgeSkillRequest.java | 172 ++ .../v1/model/ShowKnowledgeSkillResponse.java | 192 ++ .../v1/model/ShowRobotResponse.java | 61 +- .../model/ShowVoiceTrainingJobResponse.java | 29 +- .../v1/model/ShowWelcomeSpeechRequest.java | 172 ++ .../v1/model/ShowWelcomeSpeechResponse.java | 193 ++ .../model/ShowWelcomeSpeechSwitchRequest.java | 172 ++ .../ShowWelcomeSpeechSwitchResponse.java | 99 + .../metastudio/v1/model/TrainingJobInfo.java | 29 +- .../UpdateBatchKnowledgeQuestionReq.java | 92 + .../UpdateBatchKnowledgeQuestionRequest.java | 182 ++ .../UpdateBatchKnowledgeQuestionResponse.java | 75 + .../model/UpdateDigitalAssetRequestBody.java | 2 +- .../v1/model/UpdateHotQuestionReq.java | 72 + .../v1/model/UpdateHotQuestionRequest.java | 205 ++ .../v1/model/UpdateHotQuestionResponse.java | 193 ++ .../v1/model/UpdateKnowledgeIntentReq.java | 95 + .../model/UpdateKnowledgeIntentRequest.java | 205 ++ .../model/UpdateKnowledgeIntentResponse.java | 75 + .../v1/model/UpdateKnowledgeQuestionReq.java | 72 + .../model/UpdateKnowledgeQuestionRequest.java | 205 ++ .../UpdateKnowledgeQuestionResponse.java | 75 + .../v1/model/UpdateKnowledgeSkillReq.java | 95 + .../v1/model/UpdateKnowledgeSkillRequest.java | 205 ++ .../model/UpdateKnowledgeSkillResponse.java | 75 + .../metastudio/v1/model/UpdateRobotReq.java | 48 +- .../v1/model/UpdateWelcomeSpeechReq.java | 72 + .../v1/model/UpdateWelcomeSpeechRequest.java | 205 ++ .../v1/model/UpdateWelcomeSpeechResponse.java | 193 ++ .../model/UpdateWelcomeSpeechSwitchReq.java | 96 + .../UpdateWelcomeSpeechSwitchRequest.java | 182 ++ .../UpdateWelcomeSpeechSwitchResponse.java | 75 + .../v1/model/WelcomeSpeechInfo.java | 166 ++ services/moderation/pom.xml | 6 +- services/mpc/pom.xml | 6 +- services/mrs/pom.xml | 6 +- services/msgsms/pom.xml | 6 +- services/mssi/pom.xml | 6 +- services/nat/pom.xml | 6 +- services/nlp/pom.xml | 6 +- services/oa/pom.xml | 6 +- services/obs/pom.xml | 8 +- services/ocr/pom.xml | 6 +- .../com/huaweicloud/sdk/ocr/v1/OcrMeta.java | 299 +++ .../RecognizeAcceptanceBillResponse.java | 29 +- .../RecognizeAutoClassificationResponse.java | 29 +- .../model/RecognizeBankReceiptResponse.java | 29 +- .../v1/model/RecognizeBankcardResponse.java | 29 +- .../model/RecognizeBusinessCardResponse.java | 29 +- .../RecognizeBusinessLicenseResponse.java | 29 +- .../RecognizeCambodianIdCardResponse.java | 29 +- .../model/RecognizeChileIdCardResponse.java | 29 +- .../RecognizeColombiaIdCardResponse.java | 29 +- .../RecognizeCustomTemplateResponse.java | 30 +- .../model/RecognizeDriverLicenseResponse.java | 29 +- .../RecognizeExitEntryPermitResponse.java | 29 +- .../RecognizeFinancialStatementResponse.java | 29 +- .../RecognizeFlightItineraryResponse.java | 29 +- .../model/RecognizeGeneralTableResponse.java | 29 +- .../model/RecognizeGeneralTextResponse.java | 29 +- .../model/RecognizeHandwritingResponse.java | 29 +- .../v1/model/RecognizeHealthCodeResponse.java | 29 +- .../v1/model/RecognizeHkIdCardResponse.java | 29 +- .../RecognizeHouseholdRegisterResponse.java | 29 +- .../ocr/v1/model/RecognizeIdCardResponse.java | 29 +- .../v1/model/RecognizeIdDocumentResponse.java | 29 +- .../RecognizeInsurancePolicyResponse.java | 29 +- .../RecognizeInvoiceVerificationResponse.java | 29 +- .../model/RecognizeLicensePlateResponse.java | 29 +- .../model/RecognizeMacaoIdCardResponse.java | 29 +- ...RecognizeMainlandTravelPermitResponse.java | 29 +- .../v1/model/RecognizeMvsInvoiceResponse.java | 29 +- ...RecognizeMyanmarDriverLicenseResponse.java | 29 +- .../model/RecognizeMyanmarIdcardResponse.java | 29 +- .../v1/model/RecognizePassportResponse.java | 29 +- .../model/RecognizePcrTestRecordResponse.java | 29 +- .../v1/model/RecognizePeruIdCardResponse.java | 29 +- ...gnizeQualificationCertificateResponse.java | 29 +- .../model/RecognizeQuotaInvoiceResponse.java | 29 +- ...ecognizeRealEstateCertificateResponse.java | 29 +- .../ocr/v1/model/RecognizeSealResponse.java | 29 +- ...ognizeSmartDocumentRecognizerResponse.java | 29 +- .../model/RecognizeTaxiInvoiceResponse.java | 29 +- .../RecognizeThailandIdcardResponse.java | 29 +- ...RecognizeThailandLicensePlateResponse.java | 29 +- .../model/RecognizeTollInvoiceResponse.java | 29 +- .../model/RecognizeTrainTicketResponse.java | 29 +- ...ecognizeTransportationLicenseResponse.java | 29 +- .../v1/model/RecognizeVatInvoiceResponse.java | 29 +- .../RecognizeVehicleCertificateResponse.java | 29 +- .../RecognizeVehicleLicenseResponse.java | 29 +- .../model/RecognizeVietnamIdCardResponse.java | 29 +- .../ocr/v1/model/RecognizeVinResponse.java | 29 +- .../RecognizeWaybillElectronicResponse.java | 29 +- .../v1/model/RecognizeWebImageResponse.java | 29 +- .../SmartDocumentRecognizerRequestBody.java | 27 +- 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 | 298 +-- services/projectman/pom.xml | 6 +- services/rabbitmq/pom.xml | 6 +- .../rabbitmq/v2/model/CreateInstanceReq.java | 4 +- services/ram/pom.xml | 6 +- services/rds/pom.xml | 6 +- services/res/pom.xml | 6 +- services/rgc/pom.xml | 6 +- .../sdk/rgc/v1/RgcAsyncClient.java | 1166 ----------- .../com/huaweicloud/sdk/rgc/v1/RgcClient.java | 1151 ----------- .../com/huaweicloud/sdk/rgc/v1/RgcMeta.java | 1047 ---------- .../v1/model/AccessLoggingBucketBaseline.java | 74 - .../sdk/rgc/v1/model/AccountBaseline.java | 247 --- .../sdk/rgc/v1/model/AccountBaselineRsp.java | 224 -- .../sdk/rgc/v1/model/Blueprint.java | 146 -- .../sdk/rgc/v1/model/CheckLaunchRequest.java | 34 - .../sdk/rgc/v1/model/CommonConfiguration.java | 96 - .../rgc/v1/model/ConfigRuleCompliance.java | 142 -- .../huaweicloud/sdk/rgc/v1/model/Control.java | 427 ---- .../sdk/rgc/v1/model/ControlViolation.java | 318 --- .../v1/model/CreateManagedAccountRequest.java | 256 --- .../rgc/v1/model/CreateOrganizationUnit.java | 273 --- .../v1/model/CreateTemplateRequestBody.java | 243 --- .../rgc/v1/model/CreateTemplateResponse.java | 121 -- ...leteManagedOrganizationalUnitsRequest.java | 72 - .../DeregisterOrganizationalUnitRequest.java | 72 - .../DeregisterOrganizationalUnitResponse.java | 76 - .../sdk/rgc/v1/model/DriftDetail.java | 192 -- .../sdk/rgc/v1/model/EnabledControl.java | 245 --- .../v1/model/EnrollAccountRequestBody.java | 106 - .../rgc/v1/model/LandingZoneErrorMessage.java | 95 - .../ListConfigRuleComplianceRequest.java | 72 - .../ListConfigRuleComplianceResponse.java | 119 -- .../model/ListControlViolationsRequest.java | 96 - .../model/ListControlViolationsResponse.java | 93 - .../model/ListControlsForAccountRequest.java | 121 -- .../model/ListControlsForAccountResponse.java | 148 -- .../sdk/rgc/v1/model/ListControlsRequest.java | 97 - .../rgc/v1/model/ListControlsResponse.java | 124 -- .../rgc/v1/model/ListDriftDetailsRequest.java | 34 - .../v1/model/ListDriftDetailsResponse.java | 92 - .../v1/model/ListEnabledControlsResponse.java | 125 -- .../ListManagedAccountsForParentRequest.java | 121 -- .../ListManagedAccountsForParentResponse.java | 126 -- .../v1/model/ListManagedAccountsResponse.java | 125 -- ...ListManagedOrganizationalUnitsRequest.java | 121 -- ...istManagedOrganizationalUnitsResponse.java | 128 -- .../rgc/v1/model/ListOperationRequest.java | 96 - .../rgc/v1/model/ListOperationResponse.java | 189 -- .../model/ListPredefinedTemplatesRequest.java | 34 - .../ListPredefinedTemplatesResponse.java | 92 - .../rgc/v1/model/LoggingBucketBaseline.java | 74 - .../rgc/v1/model/LoggingConfiguration.java | 116 -- .../sdk/rgc/v1/model/ManagedAccount.java | 515 ----- .../rgc/v1/model/ManagedOrganizationUnit.java | 322 --- .../model/OrganizationStructureBaseLine.java | 140 -- .../OrganizationStructureBaseLineRsp.java | 140 -- .../model/OrganizationalPercentageDetail.java | 96 - .../rgc/v1/model/OrganizationalUnitType.java | 84 - .../model/OrganizationalUnitTypeForSetup.java | 79 - .../sdk/rgc/v1/model/PercentageDetail.java | 96 - .../sdk/rgc/v1/model/PermissionSet.java | 120 -- .../sdk/rgc/v1/model/PredefinedTemplate.java | 120 -- .../ReRegisterOrganizationalUnitRequest.java | 72 - .../ReRegisterOrganizationalUnitResponse.java | 76 - .../rgc/v1/model/RegionConfigurationList.java | 173 -- .../RegisterOrganizationalUnitRequest.java | 72 - .../RegisterOrganizationalUnitResponse.java | 75 - .../rgc/v1/model/SetupLandingZoneReqBody.java | 321 --- ...andingZoneReqBodyLoggingConfiguration.java | 118 -- .../v1/model/ShowAvailableUpdatesRequest.java | 34 - .../model/ShowAvailableUpdatesResponse.java | 173 -- ...ShowComplianceStatusForAccountRequest.java | 96 - ...howComplianceStatusForAccountResponse.java | 73 - ...ianceStatusForOrganizationUnitRequest.java | 97 - ...anceStatusForOrganizationUnitResponse.java | 73 - .../sdk/rgc/v1/model/ShowControlResponse.java | 461 ----- ...howControlsForOrganizationUnitRequest.java | 96 - ...owControlsForOrganizationUnitResponse.java | 195 -- .../rgc/v1/model/ShowHomeRegionRequest.java | 34 - .../ShowLandingZoneConfigurationRequest.java | 34 - .../ShowLandingZoneConfigurationResponse.java | 203 -- .../ShowLandingZoneIdentityCenterRequest.java | 34 - ...ShowLandingZoneIdentityCenterResponse.java | 180 -- .../model/ShowLandingZoneStatusRequest.java | 34 - .../model/ShowLandingZoneStatusResponse.java | 276 --- .../v1/model/ShowManagedAccountRequest.java | 72 - .../v1/model/ShowManagedAccountResponse.java | 517 ----- .../model/ShowManagedCoreAccountResponse.java | 140 -- .../ShowManagedOrganizationalUnitRequest.java | 72 - ...ShowManagedOrganizationalUnitResponse.java | 323 --- .../rgc/v1/model/ShowOperationResponse.java | 189 -- .../ShowTemplateDeployParamsResponse.java | 92 - .../rgc/v1/model/TemplateParamVariable.java | 232 --- .../TemplateParamVariableValidation.java | 95 - .../rgc/v1/model/UnEnrollAccountRequest.java | 72 - .../UpdateManagedAccountRequestBody.java | 130 -- .../model/UpdateManagedAccountResponse.java | 73 - 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 +- .../scm/v3/model/ShowCertificateResponse.java | 27 +- 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 +- .../sdk/vpc/v2/region/VpcRegion.java | 9 + .../sdk/vpc/v3/region/VpcRegion.java | 9 + services/vpcep/pom.xml | 6 +- services/vpn/pom.xml | 6 +- services/waf/pom.xml | 6 +- services/workspace/pom.xml | 6 +- .../workspace/v2/WorkspaceAsyncClient.java | 30 + .../sdk/workspace/v2/WorkspaceClient.java | 30 + .../sdk/workspace/v2/WorkspaceMeta.java | 24 + .../workspace/v2/model/ShowJobRequest.java} | 34 +- .../workspace/v2/model/ShowJobResponse.java | 280 +++ services/workspaceapp/pom.xml | 6 +- 650 files changed, 50556 insertions(+), 18150 deletions(-) create mode 100644 core/src/test/java/com/huaweicloud/sdk/core/TestRequestBuilder.java rename services/{rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/RegionManagedList.java => apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/AccessPointModel.java} (54%) create mode 100644 services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/CreateBusinessModel.java rename services/{rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateTemplateRequest.java => apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/CreateBusinessRequest.java} (71%) create mode 100644 services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/CreateBusinessResponse.java create mode 100644 services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/FlameLineTreeInfo.java create mode 100644 services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowAccessPointRequest.java create mode 100644 services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowAccessPointResponse.java rename services/{rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/SetupLandingZoneRequest.java => apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowFlameLineTreeRequest.java} (71%) create mode 100644 services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowFlameLineTreeResponse.java create mode 100644 services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowMonitorItemDetailRequest.java rename services/{rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowHomeRegionResponse.java => apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowMonitorItemDetailResponse.java} (56%) create mode 100644 services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowTokenRequest.java rename services/{rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/EnrollAccountResponse.java => apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowTokenResponse.java} (55%) create mode 100644 services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/CertificatesGetBody.java create mode 100644 services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/CertificatesPutBody.java rename services/{rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateAccountRequest.java => codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/AddGroupRequest.java} (71%) create mode 100644 services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/AddGroupRequestBody.java create mode 100644 services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/AddGroupResponse.java create mode 100644 services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchCreateHostsRequest.java create mode 100644 services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchCreateHostsRequestBody.java create mode 100644 services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchCreateHostsResponse.java create mode 100644 services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchStartHostTasksRequest.java create mode 100644 services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchStartHostTasksRequestBody.java create mode 100644 services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchStartHostTasksResponse.java create mode 100644 services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchStartHostTasksResponseBodyResults.java rename services/{rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowControlRequest.java => codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/DeleteGroupRequest.java} (57%) rename services/{rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CheckLaunchResponse.java => codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/DeleteGroupResponse.java} (78%) rename services/{rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowOperationRequest.java => codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/DeleteHostRequest.java} (56%) rename services/{rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/SetupLandingZoneResponse.java => codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/DeleteHostResponse.java} (78%) rename services/{rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/Content.java => codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/Group.java} (53%) create mode 100644 services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/HGHost.java create mode 100644 services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/HostItem.java create mode 100644 services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/HostItemWithId.java create mode 100644 services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/HostVulnItem.java create mode 100644 services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/HostVulnItemComponentList.java create mode 100644 services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/HostVulnItemCveList.java rename services/{rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListEnabledControlsRequest.java => codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ListGroupsRequest.java} (60%) create mode 100644 services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ListGroupsResponse.java create mode 100644 services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ListHostResultsRequest.java create mode 100644 services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ListHostResultsResponse.java rename services/{rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListManagedAccountsRequest.java => codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ListHostsRequest.java} (52%) create mode 100644 services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ListHostsResponse.java create mode 100644 services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ScanInfoDetail.java create mode 100644 services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ExportSlowSqlStatisticsRequest.java create mode 100644 services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ExportSlowSqlStatisticsRequestBody.java create mode 100644 services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ExportSlowSqlStatisticsResponse.java delete mode 100644 services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/Quotas.java delete mode 100644 services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/Resource.java create mode 100644 services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/SlowSqlStatistics.java create mode 100644 services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/UpdateSqlLimitRuleOption.java create mode 100644 services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/UpdateSqlLimitRulesBody.java create mode 100644 services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/UpdateSqlLimitRulesRequest.java rename services/{rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DeleteTemplateResponse.java => das/src/main/java/com/huaweicloud/sdk/das/v3/model/UpdateSqlLimitRulesResponse.java} (78%) rename services/{rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/EnrollAccountRequest.java => dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateSecurityAssignedQueueRequest.java} (53%) create mode 100644 services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateSecurityAssignedQueueResponse.java create mode 100644 services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteSecurityAssignedQueueRequest.java rename services/{rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DeleteManagedOrganizationalUnitsResponse.java => dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteSecurityAssignedQueueResponse.java} (75%) create mode 100644 services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSecurityAssignedQueuesRequest.java create mode 100644 services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSecurityAssignedQueuesResponse.java create mode 100644 services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSecurityMemberSyncTasksRequest.java create mode 100644 services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSecurityMemberSyncTasksResponse.java create mode 100644 services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/MemberSyncTask.java create mode 100644 services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/QueueSrcAssignCreateDTO.java create mode 100644 services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/QueueSrcAssignEntity.java create mode 100644 services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/QueueSrcAssignUpdateDTO.java create mode 100644 services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowSecurityMemberSyncTaskRequest.java create mode 100644 services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowSecurityMemberSyncTaskResponse.java create mode 100644 services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateSecurityAssignedQueueRequest.java create mode 100644 services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateSecurityAssignedQueueResponse.java rename services/{rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/UpdateManagedAccountRequest.java => gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CheckStarRocksResourceRequest.java} (51%) rename services/{rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateAccountResponse.java => gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CheckStarRocksResourceResponse.java} (55%) create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CreateStarRocksDatabaseUserRequest.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CreateStarRocksDatabaseUserResponse.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CreateStarrocksInstanceRequest.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CreateStarrocksInstanceResponse.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarRocksDatabaseUserRequest.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarRocksDatabaseUserResponse.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarrocksInstanceRequest.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarrocksInstanceResponse.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/HtapFlavorInfoFlavors.java rename services/{rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/IdentityCenterGroup.java => gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/HtapInstanceListAvailableZones.java} (51%) create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/HtapInstanceListInstanceState.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/HtapInstanceListInstances.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/HtapInstanceListNetwork.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/HtapStorageTypeStorageType.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListHtapDataStoreRequest.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListHtapDataStoreResponse.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListHtapFlavorRequest.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListHtapFlavorResponse.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListHtapInstanceInfoRequest.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListHtapInstanceInfoResponse.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListHtapStorageTypeRequest.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListHtapStorageTypeResponse.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarrocksInstanceInfoRequest.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarrocksInstanceInfoResponse.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ParamGroup.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/QueryAction.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ReadableNodeInfos.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ResourceCheck.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ResourceCheckResource.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/RestartStarrocksInstanceRequest.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/RestartStarrocksInstanceResponse.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/RestartStarrocksNodeRequest.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/RestartStarrocksNodeResponse.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowStarRocksDatabaseUserRequest.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowStarRocksDatabaseUserResponse.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowStarRocksDatabaseUsersUserDetails.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrCreateInstanceRspInstance.java rename services/{rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowTemplateDeployParamsRequest.java => gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrCreateInstanceRspInstanceEngine.java} (58%) create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrCreateInstanceRspInstancePayInfo.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrCreateInstanceRspInstanceTagsInfo.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrCreateInstanceRspInstanceTagsInfoSysTags.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrCreateInstanceRspInstanceTagsInfoTags.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrDataStoresDatastores.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequest.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequestBeVolume.java rename services/{rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/Artifact.java => gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequestEngine.java} (57%) create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequestFeVolume.java rename services/{rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowManagedCoreAccountRequest.java => gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequestHa.java} (50%) create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequestTagsInfo.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequestTagsInfoSysTags.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksDatabaseUserInfo.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksDatabaseUserPSinfo.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksDatabaseUserPWinfo.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoDatastore.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoGroups.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoInstances.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoNodes.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoOpsWindow.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoPortInfo.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoTagsInfo.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoTagsInfoSysTags.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoTagsInfoTags.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoVolume.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpdateStarRocksDatabaseUserPasswordRequest.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpdateStarRocksDatabaseUserPasswordResponse.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpdateStarRocksDatabaseUserPermissionRequest.java create mode 100644 services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpdateStarRocksDatabaseUserPermissionResponse.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RecoveryBackupSource.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RecoveryBackupTarget.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RestoreInstanceRequest.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RestoreInstanceRequestBody.java rename services/{rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/UnEnrollAccountResponse.java => gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RestoreInstanceResponse.java} (55%) create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RestoreTableListDetail.java create mode 100644 services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/DeviceControlDefaultValuesReqDTO.java create mode 100644 services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/DeviceDefaultValues.java create mode 100644 services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/SetDeviceControlDefaultValuesRequest.java create mode 100644 services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/SetDeviceControlDefaultValuesResponse.java create mode 100644 services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/region/KvsRegion.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CommitJobReq.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateBatchKnowledgeQuestionReq.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateBatchKnowledgeQuestionRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateBatchKnowledgeQuestionResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateHotQuestionReq.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateHotQuestionRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateHotQuestionResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateIntentAndQuestionReq.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateIntentAndQuestionRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateIntentAndQuestionResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeIntentReq.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeIntentRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeIntentResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeIntentRsp.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeQuestionReq.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeQuestionRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeQuestionResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeSkillReq.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeSkillRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeSkillResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateLargeFileRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateLargeFileResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateWelcomeSpeechReq.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateWelcomeSpeechRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateWelcomeSpeechResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteHotQuestionRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteHotQuestionResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteKnowledgeIntentRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteKnowledgeIntentResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteKnowledgeQuestionRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteKnowledgeQuestionResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteKnowledgeSkillRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteKnowledgeSkillResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteWelcomeSpeechRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteWelcomeSpeechResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ExportKnowledgeSkillRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ExportKnowledgeSkillResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/HotQuestionInfo.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/KnowledgeIntentInfo.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/KnowledgeQuestionCreateInfo.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/KnowledgeQuestionInfo.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/KnowledgeQuestionUpdateInfo.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/KnowledgeSkillInfo.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/LargeFilesCreateReq.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListHotQuestionRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListHotQuestionResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListKnowledgeIntentRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListKnowledgeIntentResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListKnowledgeQuestionRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListKnowledgeQuestionResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListKnowledgeSkillRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListKnowledgeSkillResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListWelcomeSpeechRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListWelcomeSpeechResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/MobvoiConfig.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowHotQuestionRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowHotQuestionResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowKnowledgeIntentRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowKnowledgeIntentResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowKnowledgeQuestionRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowKnowledgeQuestionResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowKnowledgeSkillRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowKnowledgeSkillResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowWelcomeSpeechRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowWelcomeSpeechResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowWelcomeSpeechSwitchRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowWelcomeSpeechSwitchResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateBatchKnowledgeQuestionReq.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateBatchKnowledgeQuestionRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateBatchKnowledgeQuestionResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateHotQuestionReq.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateHotQuestionRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateHotQuestionResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeIntentReq.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeIntentRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeIntentResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeQuestionReq.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeQuestionRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeQuestionResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeSkillReq.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeSkillRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeSkillResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateWelcomeSpeechReq.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateWelcomeSpeechRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateWelcomeSpeechResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateWelcomeSpeechSwitchReq.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateWelcomeSpeechSwitchRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateWelcomeSpeechSwitchResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/WelcomeSpeechInfo.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/AccessLoggingBucketBaseline.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/AccountBaseline.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/AccountBaselineRsp.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/Blueprint.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CheckLaunchRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CommonConfiguration.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ConfigRuleCompliance.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/Control.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ControlViolation.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateManagedAccountRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateOrganizationUnit.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateTemplateRequestBody.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateTemplateResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DeleteManagedOrganizationalUnitsRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DeregisterOrganizationalUnitRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DeregisterOrganizationalUnitResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DriftDetail.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/EnabledControl.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/EnrollAccountRequestBody.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/LandingZoneErrorMessage.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListConfigRuleComplianceRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListConfigRuleComplianceResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlViolationsRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlViolationsResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsForAccountRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsForAccountResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListDriftDetailsRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListDriftDetailsResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListEnabledControlsResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListManagedAccountsForParentRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListManagedAccountsForParentResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListManagedAccountsResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListManagedOrganizationalUnitsRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListManagedOrganizationalUnitsResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListOperationRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListOperationResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListPredefinedTemplatesRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListPredefinedTemplatesResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/LoggingBucketBaseline.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/LoggingConfiguration.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ManagedAccount.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ManagedOrganizationUnit.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/OrganizationStructureBaseLine.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/OrganizationStructureBaseLineRsp.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/OrganizationalPercentageDetail.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/OrganizationalUnitType.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/OrganizationalUnitTypeForSetup.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/PercentageDetail.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/PermissionSet.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/PredefinedTemplate.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ReRegisterOrganizationalUnitRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ReRegisterOrganizationalUnitResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/RegionConfigurationList.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/RegisterOrganizationalUnitRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/RegisterOrganizationalUnitResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/SetupLandingZoneReqBody.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/SetupLandingZoneReqBodyLoggingConfiguration.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowAvailableUpdatesRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowAvailableUpdatesResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowComplianceStatusForAccountRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowComplianceStatusForAccountResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowComplianceStatusForOrganizationUnitRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowComplianceStatusForOrganizationUnitResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowControlResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowControlsForOrganizationUnitRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowControlsForOrganizationUnitResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowHomeRegionRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowLandingZoneConfigurationRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowLandingZoneConfigurationResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowLandingZoneIdentityCenterRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowLandingZoneIdentityCenterResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowLandingZoneStatusRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowLandingZoneStatusResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowManagedAccountRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowManagedAccountResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowManagedCoreAccountResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowManagedOrganizationalUnitRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowManagedOrganizationalUnitResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowOperationResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowTemplateDeployParamsResponse.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/TemplateParamVariable.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/TemplateParamVariableValidation.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/UnEnrollAccountRequest.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/UpdateManagedAccountRequestBody.java delete mode 100644 services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/UpdateManagedAccountResponse.java rename services/{rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DeleteTemplateRequest.java => workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/ShowJobRequest.java} (55%) create mode 100644 services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/ShowJobResponse.java diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a464abcff..21bf6ab32f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,419 @@ +# 3.1.96 2024-05-16 + +### HuaweiCloud SDK APM + +- _Features_ + - Support the following APIs: + - `ShowMonitorItemDetail` + - `CreateBusiness` + - `ShowToken` + - `ShowAccessPoint` + - `ShowFlameLineTree` +- _Bug Fix_ + - None +- _Change_ + - **ListAkSk** + - changes of response param + - `+ access_ak_sk_models.gmt_create_timestamp` + - `+ access_ak_sk_models.gmt_modify_timestamp` + - **ListEnvTags** + - changes of request param + - `- tag_id` + - `- tag_name` + - `- env_id` + - `- descp` + - `- env_id_list` + - `- tag_id_list` + - `- add_env_id_list` + - `- add_tag_id_list` + - `- remove_tag_id_list` + - `- remove_env_id_list` + - **ShowAkSks** + - changes of response param + - `+ access_ak_sk_models.gmt_create_timestamp` + - `+ access_ak_sk_models.gmt_modify_timestamp` + - **ShowMonitorItemViewConfig** + - changes of response param + - `* view_row_list.view_list.latest: string -> boolean` + +### HuaweiCloud SDK CDN + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Deprecate the APIs `UpdateDomainFullConfig`, `ShowDomainFullConfig` + - **ShowDomainFullConfig** + - changes of response param + - `+ configs.https.enc_certificate_value` + - `+ configs.https.certificates` + - **UpdateDomainFullConfig** + - changes of request param + - `+ configs.https.enc_certificate_value` + - `+ configs.https.enc_private_key` + - `+ configs.https.certificates` + +### HuaweiCloud SDK CodeArtsInspector + +- _Features_ + - Support the following APIs: + - `ListHosts` + - `BatchCreateHosts` + - `DeleteHost` + - `BatchStartHostTasks` + - `ListHostResults` + - `ListGroups` + - `AddGroup` + - `DeleteGroup` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK Config + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CountTrackedResources** + - changes of request param + - `+ resource_deleted` + - **ShowTrackedResourceDetail** + - changes of response param + - `+ state` + - **ShowResourceById** + - changes of response param + - `+ state` + - **ShowResourceDetail** + - changes of response param + - `+ state` + - **ListResources** + - changes of response param + - `+ state` + - `+ resources.state` + - **ListTrackedResources** + - changes of request param + - `+ resource_deleted` + - changes of response param + - `+ state` + - `+ resources.state` + - **ListTrackedResourceTags** + - changes of request param + - `+ resource_deleted` + - **CollectTrackedResourcesSummary** + - changes of request param + - `+ resource_deleted` + - **ListAllResources** + - changes of response param + - `+ state` + - `+ resources.state` + - **ShowResourceHistory** + - changes of response param + - `+ state` + - `+ items.resource.state` + +### HuaweiCloud SDK DataArtsStudio + +- _Features_ + - Support the following APIs: + - `ListSecurityMemberSyncTasks` + - `ShowSecurityMemberSyncTask` + - `ListSecurityAssignedQueues` + - `CreateSecurityAssignedQueue` + - `UpdateSecurityAssignedQueue` + - `DeleteSecurityAssignedQueue` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DCS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListClients** + - changes of response param + - `* clients.idle: string -> int32` + +### HuaweiCloud SDK DLI + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateSqlJob** + - changes of request param + - `+ current_catalog` + +### HuaweiCloud SDK DWS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListUpdatableVersion** + - changes of request param + - `+ type` + +### HuaweiCloud SDK eiHealth + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListDrugDatabase** + - changes of response param + - `+ cur_user_count` + +### HuaweiCloud SDK GaussDB + +- _Features_ + - Support the following APIs: + - `CreateStarrocksInstance` + - `ListStarrocksInstanceInfo` + - `DeleteStarrocksInstance` + - `RestartStarrocksInstance` + - `RestartStarrocksNode` + - `CheckStarRocksResource` + - `ListHtapDataStore` + - `ListHtapStorageType` + - `ListHtapFlavor` + - `ListHtapInstanceInfo` + - `ShowStarRocksDatabaseUser` + - `CreateStarRocksDatabaseUser` + - `DeleteStarRocksDatabaseUser` + - `UpdateStarRocksDatabaseUserPassword` + - `UpdateStarRocksDatabaseUserPermission` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK GaussDBforopenGauss + +- _Features_ + - Support the API `RestoreInstance` +- _Bug Fix_ + - None +- _Change_ + - **CreateDbInstance** + - changes of request param + - `+ enable_single_float_ip` + +### HuaweiCloud SDK IAM + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListCustomPolicies** + - changes of response param + - `* roles.policy.Statement.Resource: list -> object` + - **CreateCloudServiceCustomPolicy** + - changes of request param + - `* role.policy.Statement.Resource: list -> object` + - changes of response param + - `* role.policy.Statement.Resource: list -> object` + - **ShowCustomPolicy** + - changes of response param + - `* role.policy.Statement.Resource: list -> object` + - **UpdateCloudServiceCustomPolicy** + - changes of request param + - `* role.policy.Statement.Resource: list -> object` + - changes of response param + - `* role.policy.Statement.Resource: list -> object` + - **CreateTemporaryAccessKeyByToken** + - changes of request param + - `* auth.identity.policy.Statement.Resource: list -> object` + - **CreateTemporaryAccessKeyByAgency** + - changes of request param + - `* auth.identity.policy.Statement.Resource: list -> object` + +### HuaweiCloud SDK IoTEdge + +- _Features_ + - Support the API `SetDeviceControlDefaultValues` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK LTS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListLogs** + - changes of request param + - `+ __time__` + - **ListStructuredLogsWithTimeRange** + - changes of request param + - `* time_range.start_time: string -> int64` + - `* time_range.end_time: string -> int64` + +### HuaweiCloud SDK MetaStudio + +- _Features_ + - Support the following APIs: + - `CreateLargeFile` + - `ListHotQuestion` + - `CreateHotQuestion` + - `ShowHotQuestion` + - `UpdateHotQuestion` + - `DeleteHotQuestion` + - `ListKnowledgeSkill` + - `CreateKnowledgeSkill` + - `ShowKnowledgeSkill` + - `UpdateKnowledgeSkill` + - `DeleteKnowledgeSkill` + - `ExportKnowledgeSkill` + - `ListKnowledgeIntent` + - `CreateKnowledgeIntent` + - `ShowKnowledgeIntent` + - `UpdateKnowledgeIntent` + - `DeleteKnowledgeIntent` + - `CreateIntentAndQuestion` + - `ListKnowledgeQuestion` + - `CreateKnowledgeQuestion` + - `ShowKnowledgeQuestion` + - `UpdateKnowledgeQuestion` + - `DeleteKnowledgeQuestion` + - `UpdateBatchKnowledgeQuestion` + - `CreateBatchKnowledgeQuestion` + - `ListWelcomeSpeech` + - `CreateWelcomeSpeech` + - `ShowWelcomeSpeech` + - `UpdateWelcomeSpeech` + - `DeleteWelcomeSpeech` + - `ShowWelcomeSpeechSwitch` + - `UpdateWelcomeSpeechSwitch` +- _Bug Fix_ + - None +- _Change_ + - **ShowRobot** + - changes of response param + - `+ app_key` + - `+ role_id` + - **UpdateRobot** + - changes of request param + - `+ mobvoi_config` + - **CreateTrainingBasicJob** + - changes of request param + - `+ phone` + - **CreateTrainingMiddleJob** + - changes of request param + - `+ phone` + - **CreateTrainingAdvanceJob** + - changes of request param + - `+ phone` + - **ShowVoiceTrainingJob** + - changes of response param + - `+ phone` + - `+ job_type: enum value [LLM_MAJOR,LLM_MINOR,THIRD_PARTY]` + - **CreateRobot** + - changes of request param + - `+ mobvoi_config` + - **ListRobot** + - changes of response param + - `+ app_key` + - `+ role_id` + - `+ data.app_key` + - `+ data.role_id` + - **ListVoiceTrainingJob** + - changes of response param + - `+ phone` + - `+ jobs.phone` + - `+ jobs.job_type: enum value [LLM_MAJOR,LLM_MINOR,THIRD_PARTY]` + +### HuaweiCloud SDK OCR + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **RecognizeSmartDocumentRecognizer** + - changes of request param + - `+ pdf_page_number` + +### HuaweiCloud SDK RGC + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Remove the following APIs: + - `ListControls` + - `ListControlViolations` + - `ShowControl` + - `ListEnabledControls` + - `ListControlsForAccount` + - `ShowComplianceStatusForAccount` + - `ShowComplianceStatusForOrganizationUnit` + - `ShowControlsForOrganizationUnit` + - `ListConfigRuleCompliance` + - `ListDriftDetails` + - `RegisterOrganizationalUnit` + - `ReRegisterOrganizationalUnit` + - `DeregisterOrganizationalUnit` + - `ListOperation` + - `ShowOperation` + - `ShowManagedOrganizationalUnit` + - `DeleteManagedOrganizationalUnits` + - `ListManagedOrganizationalUnits` + - `EnrollAccount` + - `UnEnrollAccount` + - `UpdateManagedAccount` + - `ShowManagedAccount` + - `ListManagedAccountsForParent` + - `ListManagedAccounts` + - `CreateAccount` + - `ShowManagedCoreAccount` + - `ShowHomeRegion` + - `CheckLaunch` + - `SetupLandingZone` + - `ShowLandingZoneStatus` + - `ShowAvailableUpdates` + - `ShowLandingZoneConfiguration` + - `ShowLandingZoneIdentityCenter` + - `ShowTemplateDeployParams` + - `CreateTemplate` + - `DeleteTemplate` + - `ListPredefinedTemplates` + +### HuaweiCloud SDK SCM + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowCertificate** + - changes of response param + - `+ multi_domain_type` + +### HuaweiCloud SDK Workspace + +- _Features_ + - Support the API `ShowJob` +- _Bug Fix_ + - None +- _Change_ + - None + # 3.1.95 2024-05-09 ### HuaweiCloud SDK Core diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 209df6ac60..90807fef7e 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,419 @@ +# 3.1.96 2024-05-16 + +### HuaweiCloud SDK APM + +- _新增特性_ + - 支持以下接口: + - `ShowMonitorItemDetail` + - `CreateBusiness` + - `ShowToken` + - `ShowAccessPoint` + - `ShowFlameLineTree` +- _解决问题_ + - 无 +- _特性变更_ + - **ListAkSk** + - 响应参数变更 + - `+ access_ak_sk_models.gmt_create_timestamp` + - `+ access_ak_sk_models.gmt_modify_timestamp` + - **ListEnvTags** + - 请求参数变更 + - `- tag_id` + - `- tag_name` + - `- env_id` + - `- descp` + - `- env_id_list` + - `- tag_id_list` + - `- add_env_id_list` + - `- add_tag_id_list` + - `- remove_tag_id_list` + - `- remove_env_id_list` + - **ShowAkSks** + - 响应参数变更 + - `+ access_ak_sk_models.gmt_create_timestamp` + - `+ access_ak_sk_models.gmt_modify_timestamp` + - **ShowMonitorItemViewConfig** + - 响应参数变更 + - `* view_row_list.view_list.latest: string -> boolean` + +### HuaweiCloud SDK CDN + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 废弃接口`UpdateDomainFullConfig`、`ShowDomainFullConfig` + - **ShowDomainFullConfig** + - 响应参数变更 + - `+ configs.https.enc_certificate_value` + - `+ configs.https.certificates` + - **UpdateDomainFullConfig** + - 请求参数变更 + - `+ configs.https.enc_certificate_value` + - `+ configs.https.enc_private_key` + - `+ configs.https.certificates` + +### HuaweiCloud SDK CodeArtsInspector + +- _新增特性_ + - 支持以下接口: + - `ListHosts` + - `BatchCreateHosts` + - `DeleteHost` + - `BatchStartHostTasks` + - `ListHostResults` + - `ListGroups` + - `AddGroup` + - `DeleteGroup` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK Config + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CountTrackedResources** + - 请求参数变更 + - `+ resource_deleted` + - **ShowTrackedResourceDetail** + - 响应参数变更 + - `+ state` + - **ShowResourceById** + - 响应参数变更 + - `+ state` + - **ShowResourceDetail** + - 响应参数变更 + - `+ state` + - **ListResources** + - 响应参数变更 + - `+ state` + - `+ resources.state` + - **ListTrackedResources** + - 请求参数变更 + - `+ resource_deleted` + - 响应参数变更 + - `+ state` + - `+ resources.state` + - **ListTrackedResourceTags** + - 请求参数变更 + - `+ resource_deleted` + - **CollectTrackedResourcesSummary** + - 请求参数变更 + - `+ resource_deleted` + - **ListAllResources** + - 响应参数变更 + - `+ state` + - `+ resources.state` + - **ShowResourceHistory** + - 响应参数变更 + - `+ state` + - `+ items.resource.state` + +### HuaweiCloud SDK DataArtsStudio + +- _新增特性_ + - 支持以下接口: + - `ListSecurityMemberSyncTasks` + - `ShowSecurityMemberSyncTask` + - `ListSecurityAssignedQueues` + - `CreateSecurityAssignedQueue` + - `UpdateSecurityAssignedQueue` + - `DeleteSecurityAssignedQueue` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DCS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListClients** + - 响应参数变更 + - `* clients.idle: string -> int32` + +### HuaweiCloud SDK DLI + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateSqlJob** + - 请求参数变更 + - `+ current_catalog` + +### HuaweiCloud SDK DWS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListUpdatableVersion** + - 请求参数变更 + - `+ type` + +### HuaweiCloud SDK eiHealth + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListDrugDatabase** + - 响应参数变更 + - `+ cur_user_count` + +### HuaweiCloud SDK GaussDB + +- _新增特性_ + - 支持以下接口: + - `CreateStarrocksInstance` + - `ListStarrocksInstanceInfo` + - `DeleteStarrocksInstance` + - `RestartStarrocksInstance` + - `RestartStarrocksNode` + - `CheckStarRocksResource` + - `ListHtapDataStore` + - `ListHtapStorageType` + - `ListHtapFlavor` + - `ListHtapInstanceInfo` + - `ShowStarRocksDatabaseUser` + - `CreateStarRocksDatabaseUser` + - `DeleteStarRocksDatabaseUser` + - `UpdateStarRocksDatabaseUserPassword` + - `UpdateStarRocksDatabaseUserPermission` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK GaussDBforopenGauss + +- _新增特性_ + - 支持接口`RestoreInstance` +- _解决问题_ + - 无 +- _特性变更_ + - **CreateDbInstance** + - 请求参数变更 + - `+ enable_single_float_ip` + +### HuaweiCloud SDK IAM + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListCustomPolicies** + - 响应参数变更 + - `* roles.policy.Statement.Resource: list -> object` + - **CreateCloudServiceCustomPolicy** + - 请求参数变更 + - `* role.policy.Statement.Resource: list -> object` + - 响应参数变更 + - `* role.policy.Statement.Resource: list -> object` + - **ShowCustomPolicy** + - 响应参数变更 + - `* role.policy.Statement.Resource: list -> object` + - **UpdateCloudServiceCustomPolicy** + - 请求参数变更 + - `* role.policy.Statement.Resource: list -> object` + - 响应参数变更 + - `* role.policy.Statement.Resource: list -> object` + - **CreateTemporaryAccessKeyByToken** + - 请求参数变更 + - `* auth.identity.policy.Statement.Resource: list -> object` + - **CreateTemporaryAccessKeyByAgency** + - 请求参数变更 + - `* auth.identity.policy.Statement.Resource: list -> object` + +### HuaweiCloud SDK IoTEdge + +- _新增特性_ + - 支持接口`SetDeviceControlDefaultValues` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK LTS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListLogs** + - 请求参数变更 + - `+ __time__` + - **ListStructuredLogsWithTimeRange** + - 请求参数变更 + - `* time_range.start_time: string -> int64` + - `* time_range.end_time: string -> int64` + +### HuaweiCloud SDK MetaStudio + +- _新增特性_ + - 支持以下接口: + - `CreateLargeFile` + - `ListHotQuestion` + - `CreateHotQuestion` + - `ShowHotQuestion` + - `UpdateHotQuestion` + - `DeleteHotQuestion` + - `ListKnowledgeSkill` + - `CreateKnowledgeSkill` + - `ShowKnowledgeSkill` + - `UpdateKnowledgeSkill` + - `DeleteKnowledgeSkill` + - `ExportKnowledgeSkill` + - `ListKnowledgeIntent` + - `CreateKnowledgeIntent` + - `ShowKnowledgeIntent` + - `UpdateKnowledgeIntent` + - `DeleteKnowledgeIntent` + - `CreateIntentAndQuestion` + - `ListKnowledgeQuestion` + - `CreateKnowledgeQuestion` + - `ShowKnowledgeQuestion` + - `UpdateKnowledgeQuestion` + - `DeleteKnowledgeQuestion` + - `UpdateBatchKnowledgeQuestion` + - `CreateBatchKnowledgeQuestion` + - `ListWelcomeSpeech` + - `CreateWelcomeSpeech` + - `ShowWelcomeSpeech` + - `UpdateWelcomeSpeech` + - `DeleteWelcomeSpeech` + - `ShowWelcomeSpeechSwitch` + - `UpdateWelcomeSpeechSwitch` +- _解决问题_ + - 无 +- _特性变更_ + - **ShowRobot** + - 响应参数变更 + - `+ app_key` + - `+ role_id` + - **UpdateRobot** + - 请求参数变更 + - `+ mobvoi_config` + - **CreateTrainingBasicJob** + - 请求参数变更 + - `+ phone` + - **CreateTrainingMiddleJob** + - 请求参数变更 + - `+ phone` + - **CreateTrainingAdvanceJob** + - 请求参数变更 + - `+ phone` + - **ShowVoiceTrainingJob** + - 响应参数变更 + - `+ phone` + - `+ job_type: enum value [LLM_MAJOR,LLM_MINOR,THIRD_PARTY]` + - **CreateRobot** + - 请求参数变更 + - `+ mobvoi_config` + - **ListRobot** + - 响应参数变更 + - `+ app_key` + - `+ role_id` + - `+ data.app_key` + - `+ data.role_id` + - **ListVoiceTrainingJob** + - 响应参数变更 + - `+ phone` + - `+ jobs.phone` + - `+ jobs.job_type: enum value [LLM_MAJOR,LLM_MINOR,THIRD_PARTY]` + +### HuaweiCloud SDK OCR + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **RecognizeSmartDocumentRecognizer** + - 请求参数变更 + - `+ pdf_page_number` + +### HuaweiCloud SDK RGC + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 移除以下接口: + - `ListControls` + - `ListControlViolations` + - `ShowControl` + - `ListEnabledControls` + - `ListControlsForAccount` + - `ShowComplianceStatusForAccount` + - `ShowComplianceStatusForOrganizationUnit` + - `ShowControlsForOrganizationUnit` + - `ListConfigRuleCompliance` + - `ListDriftDetails` + - `RegisterOrganizationalUnit` + - `ReRegisterOrganizationalUnit` + - `DeregisterOrganizationalUnit` + - `ListOperation` + - `ShowOperation` + - `ShowManagedOrganizationalUnit` + - `DeleteManagedOrganizationalUnits` + - `ListManagedOrganizationalUnits` + - `EnrollAccount` + - `UnEnrollAccount` + - `UpdateManagedAccount` + - `ShowManagedAccount` + - `ListManagedAccountsForParent` + - `ListManagedAccounts` + - `CreateAccount` + - `ShowManagedCoreAccount` + - `ShowHomeRegion` + - `CheckLaunch` + - `SetupLandingZone` + - `ShowLandingZoneStatus` + - `ShowAvailableUpdates` + - `ShowLandingZoneConfiguration` + - `ShowLandingZoneIdentityCenter` + - `ShowTemplateDeployParams` + - `CreateTemplate` + - `DeleteTemplate` + - `ListPredefinedTemplates` + +### HuaweiCloud SDK SCM + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowCertificate** + - 响应参数变更 + - `+ multi_domain_type` + +### HuaweiCloud SDK Workspace + +- _新增特性_ + - 支持接口`ShowJob` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + # 3.1.95 2024-05-09 ### HuaweiCloud SDK Core diff --git a/VERSION b/VERSION index f6fc1dc0f8..c9f6385c05 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.95 +3.1.96 diff --git a/all/pom.xml b/all/pom.xml index bb8c64de2b..ec23057716 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.95 + 3.1.96 huaweicloud-sdk 4.0.0 huaweicloud-sdk-all - 3.1.95 + 3.1.96 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.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-orgid - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-cfw - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-antiddos - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-oa - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-aom - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-apig - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-as - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-asm - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-bcs - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-bms - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-bss - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-bssintl - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-cbr - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-cce - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-ces - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-classroom - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-cloudrtc - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-cloudide - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-codeartspipeline - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-cloudpond - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-cloudtest - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-codeartscheck - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-cts - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-das - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-dcs - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-ddm - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-dds - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-dis - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-devstar - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-dlf - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-dgc - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-dli - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-dns - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-drs - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-ecs - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-eihealth - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-eip - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-geip - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-elb - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-eps - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-evs - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-dss - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-functiongraph - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-gaussdbfornosql - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-hss - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-cgs - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-iam - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-iec - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-ief - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-image - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-ims - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-iotda - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-iotedge - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-kafka - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-kms - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-kps - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-live - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-meeting - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-moderation - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-mpc - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-mrs - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-nat - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-oms - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-osm - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-projectman - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-rabbitmq - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-rds - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-rms - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-roma - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-sa - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-secmaster - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-scm - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-servicestage - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-smn - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-sms - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-swr - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-tms - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-vpc - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-vpcep - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-cdn - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-ugo - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-ocr - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-waf - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-optverse - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-oroas - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-vod - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-lts - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-gaussdb - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-ccm - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-csms - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-codeartsdeploy - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-frs - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-codecraft - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-imagesearch - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-cbs - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-cpts - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-ivs - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-gsl - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-cdm - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-sdrs - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-dbss - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-dsc - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-codeartsinspector - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-nlp - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-gaussdbforopengauss - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-campusgo - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-codehub - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-vas - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-cbh - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-ges - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-sfsturbo - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-sis - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-cloudtable - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-deh - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-res - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-hilens - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-iotanalytics - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-expert - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-css - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-dws - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-vcm - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-cc - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-cse - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-cae - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-rocketmq - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-apm - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-cph - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-eg - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-er - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-ga - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-workspace - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-workspaceapp - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-codeartsartifact - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-koomessage - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-koophone - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-koomap - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-devsecurity - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-dc - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-aos - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-mas - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-dwr - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-dris - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-mapds - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-codeartsbuild - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-lakeformation - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-dataartsinsight - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-organizations - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-ram - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-idme - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-idmeclassicapi - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-metastudio - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-cms - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-msgsms - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-eds - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-obs - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-dataartsstudio - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-tics - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-config - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-identitycenter - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-identitycenterstore - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-pangulargemodels - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-edgesec - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-ec - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-kvs - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-vpn - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-aad - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-rgc - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-iamaccessanalyzer - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-sts - 3.1.95 + 3.1.96 - ${project.artifactId}-3.1.95 + ${project.artifactId}-3.1.96 maven-dependency-plugin diff --git a/bundle/pom.xml b/bundle/pom.xml index 28f9d5124b..fe3a910c74 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.95 + 3.1.96 huaweicloud-sdk 4.0.0 huaweicloud-sdk-bundle - 3.1.95 + 3.1.96 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.95 + 3.1.96 diff --git a/core-bson/pom.xml b/core-bson/pom.xml index ba9b1672a3..76b471be4c 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.95 + 3.1.96 huaweicloud-sdk 4.0.0 jar huaweicloud-sdk-core-bson - 3.1.95 + 3.1.96 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.95 + 3.1.96 ch.qos.logback diff --git a/core-xml/pom.xml b/core-xml/pom.xml index f03258494a..5ae9e735ab 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.95 + 3.1.96 huaweicloud-sdk 4.0.0 jar huaweicloud-sdk-core-xml - 3.1.95 + 3.1.96 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.95 + 3.1.96 ch.qos.logback diff --git a/core/pom.xml b/core/pom.xml index 16e078b4f3..6f2c3bbcb7 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -5,14 +5,14 @@ com.huaweicloud.sdk - 3.1.95 + 3.1.96 huaweicloud-sdk 4.0.0 jar huaweicloud-sdk-core - 3.1.95 + 3.1.96 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/http/HttpRequest.java b/core/src/main/java/com/huaweicloud/sdk/core/http/HttpRequest.java index 3c7387c2aa..6d0e914b31 100644 --- a/core/src/main/java/com/huaweicloud/sdk/core/http/HttpRequest.java +++ b/core/src/main/java/com/huaweicloud/sdk/core/http/HttpRequest.java @@ -33,7 +33,7 @@ import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; -import java.util.Collections; +import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.List; @@ -95,10 +95,23 @@ public HttpRequestBuilder withBody(InputStream body) { } public HttpRequestBuilder addHeader(String key, String value) { - if (httpRequest.headers.containsKey(key) && Objects.nonNull(httpRequest.headers.get(key))) { - httpRequest.headers.get(key).add(value); + if (!httpRequest.headers.containsKey(key)) { + httpRequest.headers.put(key, new ArrayList() { + + private static final long serialVersionUID = 1L; + + { + add(value); + } + }); } else { - httpRequest.headers.put(key, Collections.singletonList(value)); + List values = httpRequest.headers.get(key); + if (Objects.isNull(values)) { + values = new ArrayList<>(); + } + if (!values.contains(value)) { + values.add(value); + } } return this; } @@ -322,10 +335,10 @@ public Impl clone() throws CloneNotSupportedException { private Impl buildPathParamsString() { this.pathParamsString = Objects.isNull(path) ? "" : path; pathParams.forEach((key, value) -> pathParamsString = pathParamsString.replace(String.format("{%s}", key), - value.toString())); - autoFilledPathParams.forEach( - (key, value) -> pathParamsString = pathParamsString.replace(String.format("{%s}", key), value.toString())); + autoFilledPathParams.forEach( + (key, value) -> pathParamsString = pathParamsString.replace(String.format("{%s}", key), + value.toString())); return this; } diff --git a/core/src/test/java/com/huaweicloud/sdk/core/TestHcClient.java b/core/src/test/java/com/huaweicloud/sdk/core/TestHcClient.java index 7a978da0fc..4ea306b93a 100644 --- a/core/src/test/java/com/huaweicloud/sdk/core/TestHcClient.java +++ b/core/src/test/java/com/huaweicloud/sdk/core/TestHcClient.java @@ -46,6 +46,7 @@ import java.util.Collections; import java.util.HashMap; import java.util.Locale; +import java.util.Map; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -132,6 +133,13 @@ public void init() { .withBody("") .withStatus(200))); + wireMockRule.stubFor(WireMock.get("/host") + .withHeader("Host", equalTo("www.example.com")) + .willReturn(WireMock.aResponse() + .withHeader("Content-Type", MEDIATYPE.APPLICATION_JSON) + .withBody("") + .withStatus(200))); + wireMockRule.stubFor(WireMock.get("/test-extra-headers") .withHeader("User-Agent", equalTo("huaweicloud-usdk-java/3.0;test-user-agent")) .withHeader("Test-Client-Header", equalTo("Test-Client-Header-Value")) @@ -255,6 +263,18 @@ public void testUserAgentHeader() { Assert.assertEquals(200, response.getHttpStatusCode()); } + @Test + public void testHostHeader() { + HttpRequestDef reqDef = new HttpRequestDef.Builder(HttpMethod.GET, Object.class, SdkResponse.class) + .withName("TestHost") + .withUri("/host") + .withContentType("application/json").build(); + Map map = new HashMap<>(); + map.put("Host", "www.example.com"); + SdkResponse response = (SdkResponse) hcClient.preInvoke(map).syncInvokeHttp(new Object(), reqDef); + Assert.assertEquals(200, response.getHttpStatusCode()); + } + @Test public void testExtraHeaders() { String endpoint = String.format(Locale.ROOT, "https://127.0.0.1:%d", wireMockRule.httpsPort()); diff --git a/core/src/test/java/com/huaweicloud/sdk/core/TestRequestBuilder.java b/core/src/test/java/com/huaweicloud/sdk/core/TestRequestBuilder.java new file mode 100644 index 0000000000..0e949fa0d6 --- /dev/null +++ b/core/src/test/java/com/huaweicloud/sdk/core/TestRequestBuilder.java @@ -0,0 +1,60 @@ +/* + * 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.http.HttpRequest; +import org.junit.Assert; +import org.junit.Test; + +import java.util.List; + +public class TestRequestBuilder { + @Test + public void testAddHeader() { + HttpRequest request = HttpRequest.newBuilder() + .withEndpoint("https://example.com") + .withPath("/") + .addHeader("key1", "value1") + .addHeader("key2", "value2") + .build(); + + Assert.assertEquals(2, request.getHeaders().size()); + Assert.assertEquals("value1", request.getHeaders().get("key1").get(0)); + Assert.assertEquals("value2", request.getHeaders().get("key2").get(0)); + } + + @Test + public void testAddHeader2() { + HttpRequest request = HttpRequest.newBuilder() + .withEndpoint("https://example.com") + .withPath("/") + .addHeader("key", "value1") + .addHeader("key", "value1") + .addHeader("key", "value2") + .build(); + + Assert.assertEquals(1, request.getHeaders().size()); + List values = request.getHeaders().get("key"); + Assert.assertEquals(2, values.size()); + Assert.assertEquals("value1", values.get(0)); + Assert.assertEquals("value2", values.get(1)); + } +} diff --git a/pom.xml b/pom.xml index 0fcab6951f..edc1807cc4 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ pom com.huaweicloud.sdk huaweicloud-sdk - 3.1.95 + 3.1.96 Huawei Cloud SDK for Java Parent Huawei Cloud SDK for Java https://github.com/huaweicloud/huaweicloud-sdk-java-v3 diff --git a/services/aad/pom.xml b/services/aad/pom.xml index 8aa8dda4ca..211cb3ef62 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-aad - 3.1.95 + 3.1.96 Huawei Cloud SDK for AAD 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/antiddos/pom.xml b/services/antiddos/pom.xml index 06a7d3bf33..a09c11014c 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-antiddos - 3.1.95 + 3.1.96 Huawei Cloud SDK for ANTIDDOS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/aom/pom.xml b/services/aom/pom.xml index e9e11db7f2..93c338f5be 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-aom - 3.1.95 + 3.1.96 Huawei Cloud SDK for AOM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/aos/pom.xml b/services/aos/pom.xml index a7876f728a..eef61b2f88 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-aos - 3.1.95 + 3.1.96 Huawei Cloud SDK for AOS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/apig/pom.xml b/services/apig/pom.xml index aa4e9f899b..e84c241362 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-apig - 3.1.95 + 3.1.96 Huawei Cloud SDK for APIG 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/apm/pom.xml b/services/apm/pom.xml index 2559526f90..fb0700eb3d 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-apm - 3.1.95 + 3.1.96 Huawei Cloud SDK for APM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/ApmAsyncClient.java b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/ApmAsyncClient.java index 0c1163060e..aa3fad84c1 100644 --- a/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/ApmAsyncClient.java +++ b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/ApmAsyncClient.java @@ -4,6 +4,8 @@ import com.huaweicloud.sdk.apm.v1.model.ChangeAgentStatusResponse; import com.huaweicloud.sdk.apm.v1.model.CreateAkSkRequest; import com.huaweicloud.sdk.apm.v1.model.CreateAkSkResponse; +import com.huaweicloud.sdk.apm.v1.model.CreateBusinessRequest; +import com.huaweicloud.sdk.apm.v1.model.CreateBusinessResponse; import com.huaweicloud.sdk.apm.v1.model.DeleteAgentRequest; import com.huaweicloud.sdk.apm.v1.model.DeleteAgentResponse; import com.huaweicloud.sdk.apm.v1.model.DeleteAkSkRequest; @@ -48,6 +50,8 @@ import com.huaweicloud.sdk.apm.v1.model.SearchTransactionConfigResponse; import com.huaweicloud.sdk.apm.v1.model.SearchTransactionRequest; import com.huaweicloud.sdk.apm.v1.model.SearchTransactionResponse; +import com.huaweicloud.sdk.apm.v1.model.ShowAccessPointRequest; +import com.huaweicloud.sdk.apm.v1.model.ShowAccessPointResponse; import com.huaweicloud.sdk.apm.v1.model.ShowAkSksRequest; import com.huaweicloud.sdk.apm.v1.model.ShowAkSksResponse; import com.huaweicloud.sdk.apm.v1.model.ShowBusinessDetailRequest; @@ -58,8 +62,12 @@ import com.huaweicloud.sdk.apm.v1.model.ShowEnvMonitorItemsResponse; import com.huaweicloud.sdk.apm.v1.model.ShowEventDetailRequest; import com.huaweicloud.sdk.apm.v1.model.ShowEventDetailResponse; +import com.huaweicloud.sdk.apm.v1.model.ShowFlameLineTreeRequest; +import com.huaweicloud.sdk.apm.v1.model.ShowFlameLineTreeResponse; import com.huaweicloud.sdk.apm.v1.model.ShowMasterAddressRequest; import com.huaweicloud.sdk.apm.v1.model.ShowMasterAddressResponse; +import com.huaweicloud.sdk.apm.v1.model.ShowMonitorItemDetailRequest; +import com.huaweicloud.sdk.apm.v1.model.ShowMonitorItemDetailResponse; import com.huaweicloud.sdk.apm.v1.model.ShowMonitorItemViewConfigRequest; import com.huaweicloud.sdk.apm.v1.model.ShowMonitorItemViewConfigResponse; import com.huaweicloud.sdk.apm.v1.model.ShowRawTableRequest; @@ -70,6 +78,8 @@ import com.huaweicloud.sdk.apm.v1.model.ShowSubBusinessDetailResponse; import com.huaweicloud.sdk.apm.v1.model.ShowSumTableRequest; import com.huaweicloud.sdk.apm.v1.model.ShowSumTableResponse; +import com.huaweicloud.sdk.apm.v1.model.ShowTokenRequest; +import com.huaweicloud.sdk.apm.v1.model.ShowTokenResponse; import com.huaweicloud.sdk.apm.v1.model.ShowTopologyRequest; import com.huaweicloud.sdk.apm.v1.model.ShowTopologyResponse; import com.huaweicloud.sdk.apm.v1.model.ShowTopologyTreeRequest; @@ -700,6 +710,33 @@ public AsyncInvoker showTopol return new AsyncInvoker<>(request, ApmMeta.showTopologyTree, hcClient); } + /** + * + * + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowFlameLineTreeRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showFlameLineTreeAsync(ShowFlameLineTreeRequest request) { + return hcClient.asyncInvokeHttp(request, ApmMeta.showFlameLineTree); + } + + /** + * + * + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowFlameLineTreeRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showFlameLineTreeAsyncInvoker( + ShowFlameLineTreeRequest request) { + return new AsyncInvoker<>(request, ApmMeta.showFlameLineTree, hcClient); + } + /** * 查询开通的region * @@ -817,6 +854,92 @@ public AsyncInvoker searchE return new AsyncInvoker<>(request, ApmMeta.searchEnvTopology, hcClient); } + /** + * 创建链路追踪应用 + * + * 创建链路追踪应用 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateBusinessRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createBusinessAsync(CreateBusinessRequest request) { + return hcClient.asyncInvokeHttp(request, ApmMeta.createBusiness); + } + + /** + * 创建链路追踪应用 + * + * 创建链路追踪应用 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateBusinessRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createBusinessAsyncInvoker( + CreateBusinessRequest request) { + return new AsyncInvoker<>(request, ApmMeta.createBusiness, hcClient); + } + + /** + * 获取链路追踪应用接入地址 + * + * 获取链路追踪应用接入地址 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowAccessPointRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showAccessPointAsync(ShowAccessPointRequest request) { + return hcClient.asyncInvokeHttp(request, ApmMeta.showAccessPoint); + } + + /** + * 获取链路追踪应用接入地址 + * + * 获取链路追踪应用接入地址 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowAccessPointRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showAccessPointAsyncInvoker( + ShowAccessPointRequest request) { + return new AsyncInvoker<>(request, ApmMeta.showAccessPoint, hcClient); + } + + /** + * 获取链路追踪应用的token + * + * 获取链路追踪应用的token + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowTokenRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showTokenAsync(ShowTokenRequest request) { + return hcClient.asyncInvokeHttp(request, ApmMeta.showToken); + } + + /** + * 获取链路追踪应用的token + * + * 获取链路追踪应用的token + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowTokenRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showTokenAsyncInvoker(ShowTokenRequest request) { + return new AsyncInvoker<>(request, ApmMeta.showToken, hcClient); + } + /** * 查询URL跟踪Region环境列表 * @@ -1051,6 +1174,36 @@ public AsyncInvoker showEventDe return new AsyncInvoker<>(request, ApmMeta.showEventDetail, hcClient); } + /** + * 获取一个监控项的详情 + * + * 获取一个监控项的详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowMonitorItemDetailRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showMonitorItemDetailAsync( + ShowMonitorItemDetailRequest request) { + return hcClient.asyncInvokeHttp(request, ApmMeta.showMonitorItemDetail); + } + + /** + * 获取一个监控项的详情 + * + * 获取一个监控项的详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowMonitorItemDetailRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showMonitorItemDetailAsyncInvoker( + ShowMonitorItemDetailRequest request) { + return new AsyncInvoker<>(request, ApmMeta.showMonitorItemDetail, hcClient); + } + /** * 查询监控项配置信息 * diff --git a/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/ApmClient.java b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/ApmClient.java index 7f1d991a4b..b503f739de 100644 --- a/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/ApmClient.java +++ b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/ApmClient.java @@ -4,6 +4,8 @@ import com.huaweicloud.sdk.apm.v1.model.ChangeAgentStatusResponse; import com.huaweicloud.sdk.apm.v1.model.CreateAkSkRequest; import com.huaweicloud.sdk.apm.v1.model.CreateAkSkResponse; +import com.huaweicloud.sdk.apm.v1.model.CreateBusinessRequest; +import com.huaweicloud.sdk.apm.v1.model.CreateBusinessResponse; import com.huaweicloud.sdk.apm.v1.model.DeleteAgentRequest; import com.huaweicloud.sdk.apm.v1.model.DeleteAgentResponse; import com.huaweicloud.sdk.apm.v1.model.DeleteAkSkRequest; @@ -48,6 +50,8 @@ import com.huaweicloud.sdk.apm.v1.model.SearchTransactionConfigResponse; import com.huaweicloud.sdk.apm.v1.model.SearchTransactionRequest; import com.huaweicloud.sdk.apm.v1.model.SearchTransactionResponse; +import com.huaweicloud.sdk.apm.v1.model.ShowAccessPointRequest; +import com.huaweicloud.sdk.apm.v1.model.ShowAccessPointResponse; import com.huaweicloud.sdk.apm.v1.model.ShowAkSksRequest; import com.huaweicloud.sdk.apm.v1.model.ShowAkSksResponse; import com.huaweicloud.sdk.apm.v1.model.ShowBusinessDetailRequest; @@ -58,8 +62,12 @@ import com.huaweicloud.sdk.apm.v1.model.ShowEnvMonitorItemsResponse; import com.huaweicloud.sdk.apm.v1.model.ShowEventDetailRequest; import com.huaweicloud.sdk.apm.v1.model.ShowEventDetailResponse; +import com.huaweicloud.sdk.apm.v1.model.ShowFlameLineTreeRequest; +import com.huaweicloud.sdk.apm.v1.model.ShowFlameLineTreeResponse; import com.huaweicloud.sdk.apm.v1.model.ShowMasterAddressRequest; import com.huaweicloud.sdk.apm.v1.model.ShowMasterAddressResponse; +import com.huaweicloud.sdk.apm.v1.model.ShowMonitorItemDetailRequest; +import com.huaweicloud.sdk.apm.v1.model.ShowMonitorItemDetailResponse; import com.huaweicloud.sdk.apm.v1.model.ShowMonitorItemViewConfigRequest; import com.huaweicloud.sdk.apm.v1.model.ShowMonitorItemViewConfigResponse; import com.huaweicloud.sdk.apm.v1.model.ShowRawTableRequest; @@ -70,6 +78,8 @@ import com.huaweicloud.sdk.apm.v1.model.ShowSubBusinessDetailResponse; import com.huaweicloud.sdk.apm.v1.model.ShowSumTableRequest; import com.huaweicloud.sdk.apm.v1.model.ShowSumTableResponse; +import com.huaweicloud.sdk.apm.v1.model.ShowTokenRequest; +import com.huaweicloud.sdk.apm.v1.model.ShowTokenResponse; import com.huaweicloud.sdk.apm.v1.model.ShowTopologyRequest; import com.huaweicloud.sdk.apm.v1.model.ShowTopologyResponse; import com.huaweicloud.sdk.apm.v1.model.ShowTopologyTreeRequest; @@ -694,6 +704,33 @@ public SyncInvoker showTopolo return new SyncInvoker<>(request, ApmMeta.showTopologyTree, hcClient); } + /** + * + * + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowFlameLineTreeRequest 请求对象 + * @return ShowFlameLineTreeResponse + */ + public ShowFlameLineTreeResponse showFlameLineTree(ShowFlameLineTreeRequest request) { + return hcClient.syncInvokeHttp(request, ApmMeta.showFlameLineTree); + } + + /** + * + * + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowFlameLineTreeRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showFlameLineTreeInvoker( + ShowFlameLineTreeRequest request) { + return new SyncInvoker<>(request, ApmMeta.showFlameLineTree, hcClient); + } + /** * 查询开通的region * @@ -810,6 +847,92 @@ public SyncInvoker searchEn return new SyncInvoker<>(request, ApmMeta.searchEnvTopology, hcClient); } + /** + * 创建链路追踪应用 + * + * 创建链路追踪应用 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateBusinessRequest 请求对象 + * @return CreateBusinessResponse + */ + public CreateBusinessResponse createBusiness(CreateBusinessRequest request) { + return hcClient.syncInvokeHttp(request, ApmMeta.createBusiness); + } + + /** + * 创建链路追踪应用 + * + * 创建链路追踪应用 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateBusinessRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createBusinessInvoker( + CreateBusinessRequest request) { + return new SyncInvoker<>(request, ApmMeta.createBusiness, hcClient); + } + + /** + * 获取链路追踪应用接入地址 + * + * 获取链路追踪应用接入地址 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowAccessPointRequest 请求对象 + * @return ShowAccessPointResponse + */ + public ShowAccessPointResponse showAccessPoint(ShowAccessPointRequest request) { + return hcClient.syncInvokeHttp(request, ApmMeta.showAccessPoint); + } + + /** + * 获取链路追踪应用接入地址 + * + * 获取链路追踪应用接入地址 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowAccessPointRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showAccessPointInvoker( + ShowAccessPointRequest request) { + return new SyncInvoker<>(request, ApmMeta.showAccessPoint, hcClient); + } + + /** + * 获取链路追踪应用的token + * + * 获取链路追踪应用的token + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowTokenRequest 请求对象 + * @return ShowTokenResponse + */ + public ShowTokenResponse showToken(ShowTokenRequest request) { + return hcClient.syncInvokeHttp(request, ApmMeta.showToken); + } + + /** + * 获取链路追踪应用的token + * + * 获取链路追踪应用的token + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowTokenRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showTokenInvoker(ShowTokenRequest request) { + return new SyncInvoker<>(request, ApmMeta.showToken, hcClient); + } + /** * 查询URL跟踪Region环境列表 * @@ -1042,6 +1165,35 @@ public SyncInvoker showEventDet return new SyncInvoker<>(request, ApmMeta.showEventDetail, hcClient); } + /** + * 获取一个监控项的详情 + * + * 获取一个监控项的详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowMonitorItemDetailRequest 请求对象 + * @return ShowMonitorItemDetailResponse + */ + public ShowMonitorItemDetailResponse showMonitorItemDetail(ShowMonitorItemDetailRequest request) { + return hcClient.syncInvokeHttp(request, ApmMeta.showMonitorItemDetail); + } + + /** + * 获取一个监控项的详情 + * + * 获取一个监控项的详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowMonitorItemDetailRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showMonitorItemDetailInvoker( + ShowMonitorItemDetailRequest request) { + return new SyncInvoker<>(request, ApmMeta.showMonitorItemDetail, hcClient); + } + /** * 查询监控项配置信息 * diff --git a/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/ApmMeta.java b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/ApmMeta.java index 5083d88030..7958bdaaf0 100644 --- a/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/ApmMeta.java +++ b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/ApmMeta.java @@ -1,5 +1,6 @@ package com.huaweicloud.sdk.apm.v1; +import com.huaweicloud.sdk.apm.v1.model.AccessPointModel; import com.huaweicloud.sdk.apm.v1.model.AgentDeleteParam; import com.huaweicloud.sdk.apm.v1.model.AgentSearchParam; import com.huaweicloud.sdk.apm.v1.model.AgentStatusChangeParam; @@ -13,6 +14,9 @@ import com.huaweicloud.sdk.apm.v1.model.CreateAkSkRequest; import com.huaweicloud.sdk.apm.v1.model.CreateAkSkResponse; import com.huaweicloud.sdk.apm.v1.model.CreateAkskModel; +import com.huaweicloud.sdk.apm.v1.model.CreateBusinessModel; +import com.huaweicloud.sdk.apm.v1.model.CreateBusinessRequest; +import com.huaweicloud.sdk.apm.v1.model.CreateBusinessResponse; import com.huaweicloud.sdk.apm.v1.model.DeleteAgentRequest; import com.huaweicloud.sdk.apm.v1.model.DeleteAgentResponse; import com.huaweicloud.sdk.apm.v1.model.DeleteAkSkRequest; @@ -20,6 +24,7 @@ import com.huaweicloud.sdk.apm.v1.model.DeleteAppRequest; import com.huaweicloud.sdk.apm.v1.model.DeleteAppResponse; import com.huaweicloud.sdk.apm.v1.model.EnvTopoRequest; +import com.huaweicloud.sdk.apm.v1.model.FlameLineTreeInfo; import com.huaweicloud.sdk.apm.v1.model.GetClobDetailParam; import com.huaweicloud.sdk.apm.v1.model.GetEnvMonitorItemListParam; import com.huaweicloud.sdk.apm.v1.model.InstanceSearchParam; @@ -63,6 +68,8 @@ import com.huaweicloud.sdk.apm.v1.model.SearchTransactionConfigResponse; import com.huaweicloud.sdk.apm.v1.model.SearchTransactionRequest; import com.huaweicloud.sdk.apm.v1.model.SearchTransactionResponse; +import com.huaweicloud.sdk.apm.v1.model.ShowAccessPointRequest; +import com.huaweicloud.sdk.apm.v1.model.ShowAccessPointResponse; import com.huaweicloud.sdk.apm.v1.model.ShowAkSksRequest; import com.huaweicloud.sdk.apm.v1.model.ShowAkSksResponse; import com.huaweicloud.sdk.apm.v1.model.ShowBusinessDetailRequest; @@ -73,8 +80,12 @@ import com.huaweicloud.sdk.apm.v1.model.ShowEnvMonitorItemsResponse; import com.huaweicloud.sdk.apm.v1.model.ShowEventDetailRequest; import com.huaweicloud.sdk.apm.v1.model.ShowEventDetailResponse; +import com.huaweicloud.sdk.apm.v1.model.ShowFlameLineTreeRequest; +import com.huaweicloud.sdk.apm.v1.model.ShowFlameLineTreeResponse; import com.huaweicloud.sdk.apm.v1.model.ShowMasterAddressRequest; import com.huaweicloud.sdk.apm.v1.model.ShowMasterAddressResponse; +import com.huaweicloud.sdk.apm.v1.model.ShowMonitorItemDetailRequest; +import com.huaweicloud.sdk.apm.v1.model.ShowMonitorItemDetailResponse; import com.huaweicloud.sdk.apm.v1.model.ShowMonitorItemViewConfigRequest; import com.huaweicloud.sdk.apm.v1.model.ShowMonitorItemViewConfigResponse; import com.huaweicloud.sdk.apm.v1.model.ShowRawTableRequest; @@ -85,6 +96,8 @@ import com.huaweicloud.sdk.apm.v1.model.ShowSubBusinessDetailResponse; import com.huaweicloud.sdk.apm.v1.model.ShowSumTableRequest; import com.huaweicloud.sdk.apm.v1.model.ShowSumTableResponse; +import com.huaweicloud.sdk.apm.v1.model.ShowTokenRequest; +import com.huaweicloud.sdk.apm.v1.model.ShowTokenResponse; import com.huaweicloud.sdk.apm.v1.model.ShowTopologyRequest; import com.huaweicloud.sdk.apm.v1.model.ShowTopologyResponse; import com.huaweicloud.sdk.apm.v1.model.ShowTopologyTreeRequest; @@ -663,6 +676,29 @@ private static HttpRequestDef return builder.build(); } + public static final HttpRequestDef showFlameLineTree = + genForShowFlameLineTree(); + + private static HttpRequestDef genForShowFlameLineTree() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, ShowFlameLineTreeRequest.class, ShowFlameLineTreeResponse.class) + .withName("ShowFlameLineTree") + .withUri("/v1/apm2/openapi/view/profiling/flame-line-tree") + .withContentType("application/json"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(FlameLineTreeInfo.class), + f -> f.withMarshaller(ShowFlameLineTreeRequest::getBody, ShowFlameLineTreeRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listOpenRegion = genForListOpenRegion(); @@ -756,6 +792,89 @@ private static HttpRequestDef createBusiness = + genForCreateBusiness(); + + private static HttpRequestDef genForCreateBusiness() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, CreateBusinessRequest.class, CreateBusinessResponse.class) + .withName("CreateBusiness") + .withUri("/v1/apm2/openapi/tracing/business/create") + .withContentType("application/json"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateBusinessModel.class), + f -> f.withMarshaller(CreateBusinessRequest::getBody, CreateBusinessRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef showAccessPoint = + genForShowAccessPoint(); + + private static HttpRequestDef genForShowAccessPoint() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, ShowAccessPointRequest.class, ShowAccessPointResponse.class) + .withName("ShowAccessPoint") + .withUri("/v1/apm2/openapi/tracing/access/get-access-point/{business_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("business_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowAccessPointRequest::getBusinessId, ShowAccessPointRequest::setBusinessId)); + builder.withRequestField("x-business-id", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ShowAccessPointRequest::getXBusinessId, ShowAccessPointRequest::setXBusinessId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(AccessPointModel.class), + f -> f.withMarshaller(ShowAccessPointRequest::getBody, ShowAccessPointRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef showToken = genForShowToken(); + + private static HttpRequestDef genForShowToken() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowTokenRequest.class, ShowTokenResponse.class) + .withName("ShowToken") + .withUri("/v1/apm2/openapi/tracing/business/token/{business_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("business_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowTokenRequest::getBusinessId, ShowTokenRequest::setBusinessId)); + builder.withRequestField("x-business-id", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ShowTokenRequest::getXBusinessId, ShowTokenRequest::setXBusinessId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listBusinessEnv = genForListBusinessEnv(); @@ -993,6 +1112,46 @@ private static HttpRequestDef g return builder.build(); } + public static final HttpRequestDef showMonitorItemDetail = + genForShowMonitorItemDetail(); + + private static HttpRequestDef genForShowMonitorItemDetail() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ShowMonitorItemDetailRequest.class, ShowMonitorItemDetailResponse.class) + .withName("ShowMonitorItemDetail") + .withUri("/v1/apm2/openapi/apm-service/monitor-item-mgr/get-monitor-item-detail") + .withContentType("application/json"); + + // requests + builder.withRequestField("monitor_item_id", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(Long.class), + f -> f.withMarshaller(ShowMonitorItemDetailRequest::getMonitorItemId, + ShowMonitorItemDetailRequest::setMonitorItemId)); + builder.withRequestField("env_id", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(Long.class), + f -> f.withMarshaller(ShowMonitorItemDetailRequest::getEnvId, ShowMonitorItemDetailRequest::setEnvId)); + builder.withRequestField("x-business-id", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(Long.class), + f -> f.withMarshaller(ShowMonitorItemDetailRequest::getXBusinessId, + ShowMonitorItemDetailRequest::setXBusinessId)); + + // response + builder.withResponseField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(ShowMonitorItemDetailResponse::getBody, ShowMonitorItemDetailResponse::setBody)); + + return builder.build(); + } + public static final HttpRequestDef showMonitorItemViewConfig = genForShowMonitorItemViewConfig(); diff --git a/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/AccessAkskVO.java b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/AccessAkskVO.java index 5bea37c85d..a9e4844d3f 100644 --- a/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/AccessAkskVO.java +++ b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/AccessAkskVO.java @@ -50,6 +50,16 @@ public class AccessAkskVO { private String descp; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "gmt_create_timestamp") + + private Long gmtCreateTimestamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "gmt_modify_timestamp") + + private Long gmtModifyTimestamp; + public AccessAkskVO withId(Integer id) { this.id = id; return this; @@ -186,6 +196,40 @@ public void setDescp(String descp) { this.descp = descp; } + public AccessAkskVO withGmtCreateTimestamp(Long gmtCreateTimestamp) { + this.gmtCreateTimestamp = gmtCreateTimestamp; + return this; + } + + /** + * ak/sk的生成时间戳。 + * @return gmtCreateTimestamp + */ + public Long getGmtCreateTimestamp() { + return gmtCreateTimestamp; + } + + public void setGmtCreateTimestamp(Long gmtCreateTimestamp) { + this.gmtCreateTimestamp = gmtCreateTimestamp; + } + + public AccessAkskVO withGmtModifyTimestamp(Long gmtModifyTimestamp) { + this.gmtModifyTimestamp = gmtModifyTimestamp; + return this; + } + + /** + * ak/sk的修改时间戳。 + * @return gmtModifyTimestamp + */ + public Long getGmtModifyTimestamp() { + return gmtModifyTimestamp; + } + + public void setGmtModifyTimestamp(Long gmtModifyTimestamp) { + this.gmtModifyTimestamp = gmtModifyTimestamp; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -198,12 +242,23 @@ public boolean equals(java.lang.Object obj) { return Objects.equals(this.id, that.id) && Objects.equals(this.gmtCreate, that.gmtCreate) && Objects.equals(this.gmtModify, that.gmtModify) && Objects.equals(this.innerDomainId, that.innerDomainId) && Objects.equals(this.ak, that.ak) && Objects.equals(this.sk, that.sk) - && Objects.equals(this.status, that.status) && Objects.equals(this.descp, that.descp); + && Objects.equals(this.status, that.status) && Objects.equals(this.descp, that.descp) + && Objects.equals(this.gmtCreateTimestamp, that.gmtCreateTimestamp) + && Objects.equals(this.gmtModifyTimestamp, that.gmtModifyTimestamp); } @Override public int hashCode() { - return Objects.hash(id, gmtCreate, gmtModify, innerDomainId, ak, sk, status, descp); + return Objects.hash(id, + gmtCreate, + gmtModify, + innerDomainId, + ak, + sk, + status, + descp, + gmtCreateTimestamp, + gmtModifyTimestamp); } @Override @@ -218,6 +273,8 @@ public String toString() { sb.append(" sk: ").append(toIndentedString(sk)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" descp: ").append(toIndentedString(descp)).append("\n"); + sb.append(" gmtCreateTimestamp: ").append(toIndentedString(gmtCreateTimestamp)).append("\n"); + sb.append(" gmtModifyTimestamp: ").append(toIndentedString(gmtModifyTimestamp)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/RegionManagedList.java b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/AccessPointModel.java similarity index 54% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/RegionManagedList.java rename to services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/AccessPointModel.java index 1587f36cf0..b2f7e7da62 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/RegionManagedList.java +++ b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/AccessPointModel.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.rgc.v1.model; +package com.huaweicloud.sdk.apm.v1.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -6,27 +6,22 @@ import java.util.Objects; /** - * 区域纳管情况。 + * AccessPointModel */ -public class RegionManagedList { +public class AccessPointModel { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "region") private String region; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "region_status") - - private String regionStatus; - - public RegionManagedList withRegion(String region) { + public AccessPointModel withRegion(String region) { this.region = region; return this; } /** - * 区域名字。 + * 局点名字 * @return region */ public String getRegion() { @@ -37,23 +32,6 @@ public void setRegion(String region) { this.region = region; } - public RegionManagedList withRegionStatus(String regionStatus) { - this.regionStatus = regionStatus; - return this; - } - - /** - * 区域的状态,取值为可用或者不可用。 - * @return regionStatus - */ - public String getRegionStatus() { - return regionStatus; - } - - public void setRegionStatus(String regionStatus) { - this.regionStatus = regionStatus; - } - @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -62,21 +40,20 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - RegionManagedList that = (RegionManagedList) obj; - return Objects.equals(this.region, that.region) && Objects.equals(this.regionStatus, that.regionStatus); + AccessPointModel that = (AccessPointModel) obj; + return Objects.equals(this.region, that.region); } @Override public int hashCode() { - return Objects.hash(region, regionStatus); + return Objects.hash(region); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RegionManagedList {\n"); + sb.append("class AccessPointModel {\n"); sb.append(" region: ").append(toIndentedString(region)).append("\n"); - sb.append(" regionStatus: ").append(toIndentedString(regionStatus)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/CreateBusinessModel.java b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/CreateBusinessModel.java new file mode 100644 index 0000000000..f2c078c984 --- /dev/null +++ b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/CreateBusinessModel.java @@ -0,0 +1,241 @@ +package com.huaweicloud.sdk.apm.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; + +/** + * CreateBusinessModel + */ +public class CreateBusinessModel { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "eps_id") + + private String epsId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "display_name") + + private String displayName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "descp") + + private String descp; + + /** + * 新建类型 + */ + public static final class CmdbDatasourceTypeEnum { + + /** + * Enum OTEL for value: "OTEL" + */ + public static final CmdbDatasourceTypeEnum OTEL = new CmdbDatasourceTypeEnum("OTEL"); + + /** + * Enum SKYWALKING for value: "SKYWALKING" + */ + public static final CmdbDatasourceTypeEnum SKYWALKING = new CmdbDatasourceTypeEnum("SKYWALKING"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("OTEL", OTEL); + map.put("SKYWALKING", SKYWALKING); + return Collections.unmodifiableMap(map); + } + + private String value; + + CmdbDatasourceTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CmdbDatasourceTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new CmdbDatasourceTypeEnum(value)); + } + + public static CmdbDatasourceTypeEnum 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 CmdbDatasourceTypeEnum) { + return this.value.equals(((CmdbDatasourceTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cmdb_datasource_type") + + private CmdbDatasourceTypeEnum cmdbDatasourceType; + + public CreateBusinessModel withName(String name) { + this.name = name; + return this; + } + + /** + * 应用名字 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateBusinessModel withEpsId(String epsId) { + this.epsId = epsId; + return this; + } + + /** + * 企业项目ID + * @return epsId + */ + public String getEpsId() { + return epsId; + } + + public void setEpsId(String epsId) { + this.epsId = epsId; + } + + public CreateBusinessModel withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * CMDB树显示的名称 + * @return displayName + */ + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public CreateBusinessModel withDescp(String descp) { + this.descp = descp; + return this; + } + + /** + * 描述 + * @return descp + */ + public String getDescp() { + return descp; + } + + public void setDescp(String descp) { + this.descp = descp; + } + + public CreateBusinessModel withCmdbDatasourceType(CmdbDatasourceTypeEnum cmdbDatasourceType) { + this.cmdbDatasourceType = cmdbDatasourceType; + return this; + } + + /** + * 新建类型 + * @return cmdbDatasourceType + */ + public CmdbDatasourceTypeEnum getCmdbDatasourceType() { + return cmdbDatasourceType; + } + + public void setCmdbDatasourceType(CmdbDatasourceTypeEnum cmdbDatasourceType) { + this.cmdbDatasourceType = cmdbDatasourceType; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateBusinessModel that = (CreateBusinessModel) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.epsId, that.epsId) + && Objects.equals(this.displayName, that.displayName) && Objects.equals(this.descp, that.descp) + && Objects.equals(this.cmdbDatasourceType, that.cmdbDatasourceType); + } + + @Override + public int hashCode() { + return Objects.hash(name, epsId, displayName, descp, cmdbDatasourceType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateBusinessModel {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" epsId: ").append(toIndentedString(epsId)).append("\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" descp: ").append(toIndentedString(descp)).append("\n"); + sb.append(" cmdbDatasourceType: ").append(toIndentedString(cmdbDatasourceType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateTemplateRequest.java b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/CreateBusinessRequest.java similarity index 71% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateTemplateRequest.java rename to services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/CreateBusinessRequest.java index eae6abaf64..9890552ad5 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateTemplateRequest.java +++ b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/CreateBusinessRequest.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.rgc.v1.model; +package com.huaweicloud.sdk.apm.v1.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -9,21 +9,21 @@ /** * Request Object */ -public class CreateTemplateRequest { +public class CreateBusinessRequest { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "body") - private CreateTemplateRequestBody body; + private CreateBusinessModel body; - public CreateTemplateRequest withBody(CreateTemplateRequestBody body) { + public CreateBusinessRequest withBody(CreateBusinessModel body) { this.body = body; return this; } - public CreateTemplateRequest withBody(Consumer bodySetter) { + public CreateBusinessRequest withBody(Consumer bodySetter) { if (this.body == null) { - this.body = new CreateTemplateRequestBody(); + this.body = new CreateBusinessModel(); bodySetter.accept(this.body); } @@ -34,11 +34,11 @@ public CreateTemplateRequest withBody(Consumer bodySe * Get body * @return body */ - public CreateTemplateRequestBody getBody() { + public CreateBusinessModel getBody() { return body; } - public void setBody(CreateTemplateRequestBody body) { + public void setBody(CreateBusinessModel body) { this.body = body; } @@ -50,7 +50,7 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - CreateTemplateRequest that = (CreateTemplateRequest) obj; + CreateBusinessRequest that = (CreateBusinessRequest) obj; return Objects.equals(this.body, that.body); } @@ -62,7 +62,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateTemplateRequest {\n"); + sb.append("class CreateBusinessRequest {\n"); sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/CreateBusinessResponse.java b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/CreateBusinessResponse.java new file mode 100644 index 0000000000..bdaf41f856 --- /dev/null +++ b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/CreateBusinessResponse.java @@ -0,0 +1,96 @@ +package com.huaweicloud.sdk.apm.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 CreateBusinessResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private Integer id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ok") + + private String ok; + + public CreateBusinessResponse withId(Integer id) { + this.id = id; + return this; + } + + /** + * 应用的id + * @return id + */ + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public CreateBusinessResponse withOk(String ok) { + this.ok = ok; + return this; + } + + /** + * Get ok + * @return ok + */ + public String getOk() { + return ok; + } + + public void setOk(String ok) { + this.ok = ok; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateBusinessResponse that = (CreateBusinessResponse) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.ok, that.ok); + } + + @Override + public int hashCode() { + return Objects.hash(id, ok); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateBusinessResponse {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" ok: ").append(toIndentedString(ok)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/FlameLineTreeInfo.java b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/FlameLineTreeInfo.java new file mode 100644 index 0000000000..59a986ec97 --- /dev/null +++ b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/FlameLineTreeInfo.java @@ -0,0 +1,189 @@ +package com.huaweicloud.sdk.apm.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * FlameLineTreeInfo + */ +public class FlameLineTreeInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "from") + + private Long from; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "to") + + private Long to; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private Long instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "api") + + private String api; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "region") + + private String region; + + public FlameLineTreeInfo withFrom(Long from) { + this.from = from; + return this; + } + + /** + * 开始时间,比如1704271204595 + * @return from + */ + public Long getFrom() { + return from; + } + + public void setFrom(Long from) { + this.from = from; + } + + public FlameLineTreeInfo withTo(Long to) { + this.to = to; + return this; + } + + /** + * 结束时间, 比如1704275169491 + * @return to + */ + public Long getTo() { + return to; + } + + public void setTo(Long to) { + this.to = to; + } + + public FlameLineTreeInfo withType(String type) { + this.type = type; + return this; + } + + /** + * 数据类型, CPU 或者 LATENCY + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public FlameLineTreeInfo withInstanceId(Long instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例id + * @return instanceId + */ + public Long getInstanceId() { + return instanceId; + } + + public void setInstanceId(Long instanceId) { + this.instanceId = instanceId; + } + + public FlameLineTreeInfo withApi(String api) { + this.api = api; + return this; + } + + /** + * api的url,比如: GET_/user/{id} + * @return api + */ + public String getApi() { + return api; + } + + public void setApi(String api) { + this.api = api; + } + + public FlameLineTreeInfo withRegion(String region) { + this.region = region; + return this; + } + + /** + * 实例所在区域 + * @return region + */ + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + FlameLineTreeInfo that = (FlameLineTreeInfo) obj; + return Objects.equals(this.from, that.from) && Objects.equals(this.to, that.to) + && Objects.equals(this.type, that.type) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.api, that.api) && Objects.equals(this.region, that.region); + } + + @Override + public int hashCode() { + return Objects.hash(from, to, type, instanceId, api, region); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FlameLineTreeInfo {\n"); + sb.append(" from: ").append(toIndentedString(from)).append("\n"); + sb.append(" to: ").append(toIndentedString(to)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" api: ").append(toIndentedString(api)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowAccessPointRequest.java b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowAccessPointRequest.java new file mode 100644 index 0000000000..454c920fb1 --- /dev/null +++ b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowAccessPointRequest.java @@ -0,0 +1,131 @@ +package com.huaweicloud.sdk.apm.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 ShowAccessPointRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "business_id") + + private String businessId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "x-business-id") + + private Integer xBusinessId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private AccessPointModel body; + + public ShowAccessPointRequest withBusinessId(String businessId) { + this.businessId = businessId; + return this; + } + + /** + * 应用id。 + * @return businessId + */ + public String getBusinessId() { + return businessId; + } + + public void setBusinessId(String businessId) { + this.businessId = businessId; + } + + public ShowAccessPointRequest withXBusinessId(Integer xBusinessId) { + this.xBusinessId = xBusinessId; + return this; + } + + /** + * 应用id。 + * @return xBusinessId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "x-business-id") + public Integer getXBusinessId() { + return xBusinessId; + } + + public void setXBusinessId(Integer xBusinessId) { + this.xBusinessId = xBusinessId; + } + + public ShowAccessPointRequest withBody(AccessPointModel body) { + this.body = body; + return this; + } + + public ShowAccessPointRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new AccessPointModel(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public AccessPointModel getBody() { + return body; + } + + public void setBody(AccessPointModel 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; + } + ShowAccessPointRequest that = (ShowAccessPointRequest) obj; + return Objects.equals(this.businessId, that.businessId) && Objects.equals(this.xBusinessId, that.xBusinessId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(businessId, xBusinessId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowAccessPointRequest {\n"); + sb.append(" businessId: ").append(toIndentedString(businessId)).append("\n"); + sb.append(" xBusinessId: ").append(toIndentedString(xBusinessId)).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/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowAccessPointResponse.java b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowAccessPointResponse.java new file mode 100644 index 0000000000..db522f4366 --- /dev/null +++ b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowAccessPointResponse.java @@ -0,0 +1,263 @@ +package com.huaweicloud.sdk.apm.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 ShowAccessPointResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private Integer id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "gmt_create") + + private String gmtCreate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "gmt_modify") + + private String gmtModify; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "region") + + private String region; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "accessPoint") + + private String accessPoint; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "token") + + private String token; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hidden_token") + + private String hiddenToken; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sw_business_id") + + private Integer swBusinessId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "agent_download_url") + + private String agentDownloadUrl; + + public ShowAccessPointResponse withId(Integer id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + */ + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public ShowAccessPointResponse withGmtCreate(String gmtCreate) { + this.gmtCreate = gmtCreate; + return this; + } + + /** + * 创建时间 + * @return gmtCreate + */ + public String getGmtCreate() { + return gmtCreate; + } + + public void setGmtCreate(String gmtCreate) { + this.gmtCreate = gmtCreate; + } + + public ShowAccessPointResponse withGmtModify(String gmtModify) { + this.gmtModify = gmtModify; + return this; + } + + /** + * 修改时间 + * @return gmtModify + */ + public String getGmtModify() { + return gmtModify; + } + + public void setGmtModify(String gmtModify) { + this.gmtModify = gmtModify; + } + + public ShowAccessPointResponse withRegion(String region) { + this.region = region; + return this; + } + + /** + * 当前局点 + * @return region + */ + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public ShowAccessPointResponse withAccessPoint(String accessPoint) { + this.accessPoint = accessPoint; + return this; + } + + /** + * 接入点地址 + * @return accessPoint + */ + public String getAccessPoint() { + return accessPoint; + } + + public void setAccessPoint(String accessPoint) { + this.accessPoint = accessPoint; + } + + public ShowAccessPointResponse withToken(String token) { + this.token = token; + return this; + } + + /** + * token + * @return token + */ + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + + public ShowAccessPointResponse withHiddenToken(String hiddenToken) { + this.hiddenToken = hiddenToken; + return this; + } + + /** + * token隐藏字符 + * @return hiddenToken + */ + public String getHiddenToken() { + return hiddenToken; + } + + public void setHiddenToken(String hiddenToken) { + this.hiddenToken = hiddenToken; + } + + public ShowAccessPointResponse withSwBusinessId(Integer swBusinessId) { + this.swBusinessId = swBusinessId; + return this; + } + + /** + * 应用ID + * @return swBusinessId + */ + public Integer getSwBusinessId() { + return swBusinessId; + } + + public void setSwBusinessId(Integer swBusinessId) { + this.swBusinessId = swBusinessId; + } + + public ShowAccessPointResponse withAgentDownloadUrl(String agentDownloadUrl) { + this.agentDownloadUrl = agentDownloadUrl; + return this; + } + + /** + * agent下载地址 + * @return agentDownloadUrl + */ + public String getAgentDownloadUrl() { + return agentDownloadUrl; + } + + public void setAgentDownloadUrl(String agentDownloadUrl) { + this.agentDownloadUrl = agentDownloadUrl; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowAccessPointResponse that = (ShowAccessPointResponse) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.gmtCreate, that.gmtCreate) + && Objects.equals(this.gmtModify, that.gmtModify) && Objects.equals(this.region, that.region) + && Objects.equals(this.accessPoint, that.accessPoint) && Objects.equals(this.token, that.token) + && Objects.equals(this.hiddenToken, that.hiddenToken) + && Objects.equals(this.swBusinessId, that.swBusinessId) + && Objects.equals(this.agentDownloadUrl, that.agentDownloadUrl); + } + + @Override + public int hashCode() { + return Objects + .hash(id, gmtCreate, gmtModify, region, accessPoint, token, hiddenToken, swBusinessId, agentDownloadUrl); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowAccessPointResponse {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" gmtCreate: ").append(toIndentedString(gmtCreate)).append("\n"); + sb.append(" gmtModify: ").append(toIndentedString(gmtModify)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" accessPoint: ").append(toIndentedString(accessPoint)).append("\n"); + sb.append(" token: ").append(toIndentedString(token)).append("\n"); + sb.append(" hiddenToken: ").append(toIndentedString(hiddenToken)).append("\n"); + sb.append(" swBusinessId: ").append(toIndentedString(swBusinessId)).append("\n"); + sb.append(" agentDownloadUrl: ").append(toIndentedString(agentDownloadUrl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/SetupLandingZoneRequest.java b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowFlameLineTreeRequest.java similarity index 71% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/SetupLandingZoneRequest.java rename to services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowFlameLineTreeRequest.java index 6fc1e3ca32..ac2fa7ac44 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/SetupLandingZoneRequest.java +++ b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowFlameLineTreeRequest.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.rgc.v1.model; +package com.huaweicloud.sdk.apm.v1.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -9,21 +9,21 @@ /** * Request Object */ -public class SetupLandingZoneRequest { +public class ShowFlameLineTreeRequest { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "body") - private SetupLandingZoneReqBody body; + private FlameLineTreeInfo body; - public SetupLandingZoneRequest withBody(SetupLandingZoneReqBody body) { + public ShowFlameLineTreeRequest withBody(FlameLineTreeInfo body) { this.body = body; return this; } - public SetupLandingZoneRequest withBody(Consumer bodySetter) { + public ShowFlameLineTreeRequest withBody(Consumer bodySetter) { if (this.body == null) { - this.body = new SetupLandingZoneReqBody(); + this.body = new FlameLineTreeInfo(); bodySetter.accept(this.body); } @@ -34,11 +34,11 @@ public SetupLandingZoneRequest withBody(Consumer bodySe * Get body * @return body */ - public SetupLandingZoneReqBody getBody() { + public FlameLineTreeInfo getBody() { return body; } - public void setBody(SetupLandingZoneReqBody body) { + public void setBody(FlameLineTreeInfo body) { this.body = body; } @@ -50,7 +50,7 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - SetupLandingZoneRequest that = (SetupLandingZoneRequest) obj; + ShowFlameLineTreeRequest that = (ShowFlameLineTreeRequest) obj; return Objects.equals(this.body, that.body); } @@ -62,7 +62,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class SetupLandingZoneRequest {\n"); + sb.append("class ShowFlameLineTreeRequest {\n"); sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowFlameLineTreeResponse.java b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowFlameLineTreeResponse.java new file mode 100644 index 0000000000..992807e3bb --- /dev/null +++ b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowFlameLineTreeResponse.java @@ -0,0 +1,131 @@ +package com.huaweicloud.sdk.apm.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 ShowFlameLineTreeResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data") + + private List data = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "methods") + + private List methods = null; + + public ShowFlameLineTreeResponse withData(List data) { + this.data = data; + return this; + } + + public ShowFlameLineTreeResponse addDataItem(String dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + public ShowFlameLineTreeResponse withData(Consumer> dataSetter) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + dataSetter.accept(this.data); + return this; + } + + /** + * 火焰图的数据,是个二维数组 data[0][0]: self time,方法自己消耗的cpu毫秒时间,不包括方法内部调用其他方法的时间 data[0][1]: total time, 方法消耗的cpu毫秒时间,包括方法内部调用其他方法的时间 data[0][2]: 方法的index,对应methods中的数组下标 data[0][3]: 行号 data[0][4]: 方法的子节点,就是方法中调用的其他方法 + * @return data + */ + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ShowFlameLineTreeResponse withMethods(List methods) { + this.methods = methods; + return this; + } + + public ShowFlameLineTreeResponse addMethodsItem(String methodsItem) { + if (this.methods == null) { + this.methods = new ArrayList<>(); + } + this.methods.add(methodsItem); + return this; + } + + public ShowFlameLineTreeResponse withMethods(Consumer> methodsSetter) { + if (this.methods == null) { + this.methods = new ArrayList<>(); + } + methodsSetter.accept(this.methods); + return this; + } + + /** + * 调用栈上的方法信息,是个二维数组 method[0][0]: 方法的唯一id method[0][1]: 方法的package包名 method[0][2]: 方法的class name 类名 method[0][3]: 方法名 method[0][4]: 方法的参数列表 method[0][5]: 方法是否为用户的方法 method[0][6]: 方法是否为native方法 + * @return methods + */ + public List getMethods() { + return methods; + } + + public void setMethods(List methods) { + this.methods = methods; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowFlameLineTreeResponse that = (ShowFlameLineTreeResponse) obj; + return Objects.equals(this.data, that.data) && Objects.equals(this.methods, that.methods); + } + + @Override + public int hashCode() { + return Objects.hash(data, methods); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowFlameLineTreeResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" methods: ").append(toIndentedString(methods)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowMonitorItemDetailRequest.java b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowMonitorItemDetailRequest.java new file mode 100644 index 0000000000..73eee5bbb2 --- /dev/null +++ b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowMonitorItemDetailRequest.java @@ -0,0 +1,121 @@ +package com.huaweicloud.sdk.apm.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowMonitorItemDetailRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "monitor_item_id") + + private Long monitorItemId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "env_id") + + private Long envId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "x-business-id") + + private Long xBusinessId; + + public ShowMonitorItemDetailRequest withMonitorItemId(Long monitorItemId) { + this.monitorItemId = monitorItemId; + return this; + } + + /** + * 监控项ID + * @return monitorItemId + */ + public Long getMonitorItemId() { + return monitorItemId; + } + + public void setMonitorItemId(Long monitorItemId) { + this.monitorItemId = monitorItemId; + } + + public ShowMonitorItemDetailRequest withEnvId(Long envId) { + this.envId = envId; + return this; + } + + /** + * 环境ID + * @return envId + */ + public Long getEnvId() { + return envId; + } + + public void setEnvId(Long envId) { + this.envId = envId; + } + + public ShowMonitorItemDetailRequest withXBusinessId(Long xBusinessId) { + this.xBusinessId = xBusinessId; + return this; + } + + /** + * Get xBusinessId + * @return xBusinessId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "x-business-id") + public Long getXBusinessId() { + return xBusinessId; + } + + public void setXBusinessId(Long xBusinessId) { + this.xBusinessId = xBusinessId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowMonitorItemDetailRequest that = (ShowMonitorItemDetailRequest) obj; + return Objects.equals(this.monitorItemId, that.monitorItemId) && Objects.equals(this.envId, that.envId) + && Objects.equals(this.xBusinessId, that.xBusinessId); + } + + @Override + public int hashCode() { + return Objects.hash(monitorItemId, envId, xBusinessId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowMonitorItemDetailRequest {\n"); + sb.append(" monitorItemId: ").append(toIndentedString(monitorItemId)).append("\n"); + sb.append(" envId: ").append(toIndentedString(envId)).append("\n"); + sb.append(" xBusinessId: ").append(toIndentedString(xBusinessId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowHomeRegionResponse.java b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowMonitorItemDetailResponse.java similarity index 56% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowHomeRegionResponse.java rename to services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowMonitorItemDetailResponse.java index 71d3ec4ce3..950f70deb8 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowHomeRegionResponse.java +++ b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowMonitorItemDetailResponse.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.rgc.v1.model; +package com.huaweicloud.sdk.apm.v1.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -9,28 +9,28 @@ /** * Response Object */ -public class ShowHomeRegionResponse extends SdkResponse { +public class ShowMonitorItemDetailResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "home_region") + @JsonProperty(value = "body") - private String homeRegion; + private String body; - public ShowHomeRegionResponse withHomeRegion(String homeRegion) { - this.homeRegion = homeRegion; + public ShowMonitorItemDetailResponse withBody(String body) { + this.body = body; return this; } /** - * 区域名称。 - * @return homeRegion + * Get body + * @return body */ - public String getHomeRegion() { - return homeRegion; + public String getBody() { + return body; } - public void setHomeRegion(String homeRegion) { - this.homeRegion = homeRegion; + public void setBody(String body) { + this.body = body; } @Override @@ -41,20 +41,20 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - ShowHomeRegionResponse that = (ShowHomeRegionResponse) obj; - return Objects.equals(this.homeRegion, that.homeRegion); + ShowMonitorItemDetailResponse that = (ShowMonitorItemDetailResponse) obj; + return Objects.equals(this.body, that.body); } @Override public int hashCode() { - return Objects.hash(homeRegion); + return Objects.hash(body); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ShowHomeRegionResponse {\n"); - sb.append(" homeRegion: ").append(toIndentedString(homeRegion)).append("\n"); + sb.append("class ShowMonitorItemDetailResponse {\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowTokenRequest.java b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowTokenRequest.java new file mode 100644 index 0000000000..7e550f0731 --- /dev/null +++ b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowTokenRequest.java @@ -0,0 +1,97 @@ +package com.huaweicloud.sdk.apm.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowTokenRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "business_id") + + private String businessId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "x-business-id") + + private Integer xBusinessId; + + public ShowTokenRequest withBusinessId(String businessId) { + this.businessId = businessId; + return this; + } + + /** + * 应用id。 + * @return businessId + */ + public String getBusinessId() { + return businessId; + } + + public void setBusinessId(String businessId) { + this.businessId = businessId; + } + + public ShowTokenRequest withXBusinessId(Integer xBusinessId) { + this.xBusinessId = xBusinessId; + return this; + } + + /** + * 应用id。 + * @return xBusinessId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "x-business-id") + public Integer getXBusinessId() { + return xBusinessId; + } + + public void setXBusinessId(Integer xBusinessId) { + this.xBusinessId = xBusinessId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowTokenRequest that = (ShowTokenRequest) obj; + return Objects.equals(this.businessId, that.businessId) && Objects.equals(this.xBusinessId, that.xBusinessId); + } + + @Override + public int hashCode() { + return Objects.hash(businessId, xBusinessId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowTokenRequest {\n"); + sb.append(" businessId: ").append(toIndentedString(businessId)).append("\n"); + sb.append(" xBusinessId: ").append(toIndentedString(xBusinessId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/EnrollAccountResponse.java b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowTokenResponse.java similarity index 55% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/EnrollAccountResponse.java rename to services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowTokenResponse.java index 0c9feec08d..61e4ed3796 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/EnrollAccountResponse.java +++ b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ShowTokenResponse.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.rgc.v1.model; +package com.huaweicloud.sdk.apm.v1.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -9,28 +9,28 @@ /** * Response Object */ -public class EnrollAccountResponse extends SdkResponse { +public class ShowTokenResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "operation_id") + @JsonProperty(value = "token") - private String operationId; + private String token; - public EnrollAccountResponse withOperationId(String operationId) { - this.operationId = operationId; + public ShowTokenResponse withToken(String token) { + this.token = token; return this; } /** - * 创建账号、纳管账号、纳管注册OU的操作ID。 - * @return operationId + * 应用token + * @return token */ - public String getOperationId() { - return operationId; + public String getToken() { + return token; } - public void setOperationId(String operationId) { - this.operationId = operationId; + public void setToken(String token) { + this.token = token; } @Override @@ -41,20 +41,20 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - EnrollAccountResponse that = (EnrollAccountResponse) obj; - return Objects.equals(this.operationId, that.operationId); + ShowTokenResponse that = (ShowTokenResponse) obj; + return Objects.equals(this.token, that.token); } @Override public int hashCode() { - return Objects.hash(operationId); + return Objects.hash(token); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class EnrollAccountResponse {\n"); - sb.append(" operationId: ").append(toIndentedString(operationId)).append("\n"); + sb.append("class ShowTokenResponse {\n"); + sb.append(" token: ").append(toIndentedString(token)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/TagParam.java b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/TagParam.java index 1eb656bd4e..8df91d6186 100644 --- a/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/TagParam.java +++ b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/TagParam.java @@ -3,51 +3,18 @@ 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; /** * TagParam */ public class TagParam { - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "tag_id") - - private Long tagId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "tag_name") - - private String tagName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "env_id") - - private Long envId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "descp") - - private String descp; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "business_id") private Long businessId; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "env_id_list") - - private List envIdList = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "tag_id_list") - - private List tagIdList = null; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "keyword") @@ -68,94 +35,6 @@ public class TagParam { private Integer pageSize; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "add_env_id_list") - - private List addEnvIdList = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "add_tag_id_list") - - private List addTagIdList = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "remove_tag_id_list") - - private List removeTagIdList = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "remove_env_id_list") - - private List removeEnvIdList = null; - - public TagParam withTagId(Long tagId) { - this.tagId = tagId; - return this; - } - - /** - * 环境标签id。 - * @return tagId - */ - public Long getTagId() { - return tagId; - } - - public void setTagId(Long tagId) { - this.tagId = tagId; - } - - public TagParam withTagName(String tagName) { - this.tagName = tagName; - return this; - } - - /** - * 环境标签名称。 - * @return tagName - */ - public String getTagName() { - return tagName; - } - - public void setTagName(String tagName) { - this.tagName = tagName; - } - - public TagParam withEnvId(Long envId) { - this.envId = envId; - return this; - } - - /** - * 环境id。 - * @return envId - */ - public Long getEnvId() { - return envId; - } - - public void setEnvId(Long envId) { - this.envId = envId; - } - - public TagParam withDescp(String descp) { - this.descp = descp; - return this; - } - - /** - * 描述信息。 - * @return descp - */ - public String getDescp() { - return descp; - } - - public void setDescp(String descp) { - this.descp = descp; - } - public TagParam withBusinessId(Long businessId) { this.businessId = businessId; return this; @@ -173,72 +52,6 @@ public void setBusinessId(Long businessId) { this.businessId = businessId; } - public TagParam withEnvIdList(List envIdList) { - this.envIdList = envIdList; - return this; - } - - public TagParam addEnvIdListItem(Long envIdListItem) { - if (this.envIdList == null) { - this.envIdList = new ArrayList<>(); - } - this.envIdList.add(envIdListItem); - return this; - } - - public TagParam withEnvIdList(Consumer> envIdListSetter) { - if (this.envIdList == null) { - this.envIdList = new ArrayList<>(); - } - envIdListSetter.accept(this.envIdList); - return this; - } - - /** - * 环境id列表。 - * @return envIdList - */ - public List getEnvIdList() { - return envIdList; - } - - public void setEnvIdList(List envIdList) { - this.envIdList = envIdList; - } - - public TagParam withTagIdList(List tagIdList) { - this.tagIdList = tagIdList; - return this; - } - - public TagParam addTagIdListItem(Long tagIdListItem) { - if (this.tagIdList == null) { - this.tagIdList = new ArrayList<>(); - } - this.tagIdList.add(tagIdListItem); - return this; - } - - public TagParam withTagIdList(Consumer> tagIdListSetter) { - if (this.tagIdList == null) { - this.tagIdList = new ArrayList<>(); - } - tagIdListSetter.accept(this.tagIdList); - return this; - } - - /** - * 环境标签id列表。 - * @return tagIdList - */ - public List getTagIdList() { - return tagIdList; - } - - public void setTagIdList(List tagIdList) { - this.tagIdList = tagIdList; - } - public TagParam withKeyword(String keyword) { this.keyword = keyword; return this; @@ -307,138 +120,6 @@ public void setPageSize(Integer pageSize) { this.pageSize = pageSize; } - public TagParam withAddEnvIdList(List addEnvIdList) { - this.addEnvIdList = addEnvIdList; - return this; - } - - public TagParam addAddEnvIdListItem(Long addEnvIdListItem) { - if (this.addEnvIdList == null) { - this.addEnvIdList = new ArrayList<>(); - } - this.addEnvIdList.add(addEnvIdListItem); - return this; - } - - public TagParam withAddEnvIdList(Consumer> addEnvIdListSetter) { - if (this.addEnvIdList == null) { - this.addEnvIdList = new ArrayList<>(); - } - addEnvIdListSetter.accept(this.addEnvIdList); - return this; - } - - /** - * 新增环境id列表。 - * @return addEnvIdList - */ - public List getAddEnvIdList() { - return addEnvIdList; - } - - public void setAddEnvIdList(List addEnvIdList) { - this.addEnvIdList = addEnvIdList; - } - - public TagParam withAddTagIdList(List addTagIdList) { - this.addTagIdList = addTagIdList; - return this; - } - - public TagParam addAddTagIdListItem(Long addTagIdListItem) { - if (this.addTagIdList == null) { - this.addTagIdList = new ArrayList<>(); - } - this.addTagIdList.add(addTagIdListItem); - return this; - } - - public TagParam withAddTagIdList(Consumer> addTagIdListSetter) { - if (this.addTagIdList == null) { - this.addTagIdList = new ArrayList<>(); - } - addTagIdListSetter.accept(this.addTagIdList); - return this; - } - - /** - * 新增环境标签id列表。 - * @return addTagIdList - */ - public List getAddTagIdList() { - return addTagIdList; - } - - public void setAddTagIdList(List addTagIdList) { - this.addTagIdList = addTagIdList; - } - - public TagParam withRemoveTagIdList(List removeTagIdList) { - this.removeTagIdList = removeTagIdList; - return this; - } - - public TagParam addRemoveTagIdListItem(Long removeTagIdListItem) { - if (this.removeTagIdList == null) { - this.removeTagIdList = new ArrayList<>(); - } - this.removeTagIdList.add(removeTagIdListItem); - return this; - } - - public TagParam withRemoveTagIdList(Consumer> removeTagIdListSetter) { - if (this.removeTagIdList == null) { - this.removeTagIdList = new ArrayList<>(); - } - removeTagIdListSetter.accept(this.removeTagIdList); - return this; - } - - /** - * 移除环境标签id列表。 - * @return removeTagIdList - */ - public List getRemoveTagIdList() { - return removeTagIdList; - } - - public void setRemoveTagIdList(List removeTagIdList) { - this.removeTagIdList = removeTagIdList; - } - - public TagParam withRemoveEnvIdList(List removeEnvIdList) { - this.removeEnvIdList = removeEnvIdList; - return this; - } - - public TagParam addRemoveEnvIdListItem(Long removeEnvIdListItem) { - if (this.removeEnvIdList == null) { - this.removeEnvIdList = new ArrayList<>(); - } - this.removeEnvIdList.add(removeEnvIdListItem); - return this; - } - - public TagParam withRemoveEnvIdList(Consumer> removeEnvIdListSetter) { - if (this.removeEnvIdList == null) { - this.removeEnvIdList = new ArrayList<>(); - } - removeEnvIdListSetter.accept(this.removeEnvIdList); - return this; - } - - /** - * 移除的环境id列表。 - * @return removeEnvIdList - */ - public List getRemoveEnvIdList() { - return removeEnvIdList; - } - - public void setRemoveEnvIdList(List removeEnvIdList) { - this.removeEnvIdList = removeEnvIdList; - } - @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -448,55 +129,25 @@ public boolean equals(java.lang.Object obj) { return false; } TagParam that = (TagParam) obj; - return Objects.equals(this.tagId, that.tagId) && Objects.equals(this.tagName, that.tagName) - && Objects.equals(this.envId, that.envId) && Objects.equals(this.descp, that.descp) - && Objects.equals(this.businessId, that.businessId) && Objects.equals(this.envIdList, that.envIdList) - && Objects.equals(this.tagIdList, that.tagIdList) && Objects.equals(this.keyword, that.keyword) + return Objects.equals(this.businessId, that.businessId) && Objects.equals(this.keyword, that.keyword) && Objects.equals(this.pageEnable, that.pageEnable) && Objects.equals(this.pageNumber, that.pageNumber) - && Objects.equals(this.pageSize, that.pageSize) && Objects.equals(this.addEnvIdList, that.addEnvIdList) - && Objects.equals(this.addTagIdList, that.addTagIdList) - && Objects.equals(this.removeTagIdList, that.removeTagIdList) - && Objects.equals(this.removeEnvIdList, that.removeEnvIdList); + && Objects.equals(this.pageSize, that.pageSize); } @Override public int hashCode() { - return Objects.hash(tagId, - tagName, - envId, - descp, - businessId, - envIdList, - tagIdList, - keyword, - pageEnable, - pageNumber, - pageSize, - addEnvIdList, - addTagIdList, - removeTagIdList, - removeEnvIdList); + return Objects.hash(businessId, keyword, pageEnable, pageNumber, pageSize); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TagParam {\n"); - sb.append(" tagId: ").append(toIndentedString(tagId)).append("\n"); - sb.append(" tagName: ").append(toIndentedString(tagName)).append("\n"); - sb.append(" envId: ").append(toIndentedString(envId)).append("\n"); - sb.append(" descp: ").append(toIndentedString(descp)).append("\n"); sb.append(" businessId: ").append(toIndentedString(businessId)).append("\n"); - sb.append(" envIdList: ").append(toIndentedString(envIdList)).append("\n"); - sb.append(" tagIdList: ").append(toIndentedString(tagIdList)).append("\n"); sb.append(" keyword: ").append(toIndentedString(keyword)).append("\n"); sb.append(" pageEnable: ").append(toIndentedString(pageEnable)).append("\n"); sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); - sb.append(" addEnvIdList: ").append(toIndentedString(addEnvIdList)).append("\n"); - sb.append(" addTagIdList: ").append(toIndentedString(addTagIdList)).append("\n"); - sb.append(" removeTagIdList: ").append(toIndentedString(removeTagIdList)).append("\n"); - sb.append(" removeEnvIdList: ").append(toIndentedString(removeEnvIdList)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ViewBase.java b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ViewBase.java index 85015fd22d..dfe8d66c09 100644 --- a/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ViewBase.java +++ b/services/apm/src/main/java/com/huaweicloud/sdk/apm/v1/model/ViewBase.java @@ -141,7 +141,7 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "latest") - private String latest; + private Boolean latest; /** * 视图类型。 @@ -410,7 +410,7 @@ public void setOrderBy(String orderBy) { this.orderBy = orderBy; } - public ViewBase withLatest(String latest) { + public ViewBase withLatest(Boolean latest) { this.latest = latest; return this; } @@ -419,11 +419,11 @@ public ViewBase withLatest(String latest) { * 是否只展示最近一笔数据。 * @return latest */ - public String getLatest() { + public Boolean getLatest() { return latest; } - public void setLatest(String latest) { + public void setLatest(Boolean latest) { this.latest = latest; } diff --git a/services/as/pom.xml b/services/as/pom.xml index 5197ad8361..361db9f866 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-as - 3.1.95 + 3.1.96 Huawei Cloud SDK for AS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/asm/pom.xml b/services/asm/pom.xml index 9aace89193..aed6193184 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-asm - 3.1.95 + 3.1.96 Huawei Cloud SDK for ASM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/bcs/pom.xml b/services/bcs/pom.xml index 5871e666cd..73e4570ead 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-bcs - 3.1.95 + 3.1.96 Huawei Cloud SDK for BCS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/bms/pom.xml b/services/bms/pom.xml index b2227966e2..2b02dcc227 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-bms - 3.1.95 + 3.1.96 Huawei Cloud SDK for BMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/bss/pom.xml b/services/bss/pom.xml index a94831066d..5bcff0ea63 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-bss - 3.1.95 + 3.1.96 Huawei Cloud SDK for BSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/bssintl/pom.xml b/services/bssintl/pom.xml index 1b2efed220..8c32243e6a 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-bssintl - 3.1.95 + 3.1.96 Huawei Cloud SDK for BSSINTL 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/cae/pom.xml b/services/cae/pom.xml index cb68000676..21756f70d1 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-cae - 3.1.95 + 3.1.96 Huawei Cloud SDK for CAE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/campusgo/pom.xml b/services/campusgo/pom.xml index 691ce2f0cf..5a02d9fe6b 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-campusgo - 3.1.95 + 3.1.96 Huawei Cloud SDK for CAMPUSGO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/cbh/pom.xml b/services/cbh/pom.xml index 38b0c5bf6a..bfdaeafae2 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-cbh - 3.1.95 + 3.1.96 Huawei Cloud SDK for CBH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/cbr/pom.xml b/services/cbr/pom.xml index 5d019a0b45..0ff438ce84 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-cbr - 3.1.95 + 3.1.96 Huawei Cloud SDK for CBR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/cbr/src/main/java/com/huaweicloud/sdk/cbr/v1/region/CbrRegion.java b/services/cbr/src/main/java/com/huaweicloud/sdk/cbr/v1/region/CbrRegion.java index 2be1f8dda6..43571e64b2 100644 --- a/services/cbr/src/main/java/com/huaweicloud/sdk/cbr/v1/region/CbrRegion.java +++ b/services/cbr/src/main/java/com/huaweicloud/sdk/cbr/v1/region/CbrRegion.java @@ -70,6 +70,8 @@ public class CbrRegion { public static final Region MY_KUALALUMPUR_1 = new Region("my-kualalumpur-1", "https://cbr.my-kualalumpur-1.myhuaweicloud.com"); + public static final Region RU_MOSCOW_1 = new Region("ru-moscow-1", "https://cbr.ru-moscow-1.myhuaweicloud.com"); + private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("CBR"); private static final Map STATIC_FIELDS = createStaticFields(); @@ -101,6 +103,7 @@ private static Map createStaticFields() { map.put("ae-ad-1", AE_AD_1); map.put("eu-west-0", EU_WEST_0); map.put("my-kualalumpur-1", MY_KUALALUMPUR_1); + map.put("ru-moscow-1", RU_MOSCOW_1); return Collections.unmodifiableMap(map); } diff --git a/services/cbs/pom.xml b/services/cbs/pom.xml index 5cab6e5212..88c1d0b7c5 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-cbs - 3.1.95 + 3.1.96 Huawei Cloud SDK for CBS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/cc/pom.xml b/services/cc/pom.xml index 7187810699..be0a4c044a 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-cc - 3.1.95 + 3.1.96 Huawei Cloud SDK for CC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/cce/pom.xml b/services/cce/pom.xml index 8acdce260c..0846ffebe9 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-cce - 3.1.95 + 3.1.96 Huawei Cloud SDK for CCE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/ccm/pom.xml b/services/ccm/pom.xml index ed06639863..17ae3c21b2 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-ccm - 3.1.95 + 3.1.96 Huawei Cloud SDK for CCM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/cdm/pom.xml b/services/cdm/pom.xml index 07a43ab0a9..98d9360301 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-cdm - 3.1.95 + 3.1.96 Huawei Cloud SDK for CDM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/cdn/pom.xml b/services/cdn/pom.xml index 4009943f6f..8a3d809769 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-cdn - 3.1.95 + 3.1.96 Huawei Cloud SDK for CDN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v1/CdnAsyncClient.java b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v1/CdnAsyncClient.java index 8b6d0ec307..a86a44792e 100644 --- a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v1/CdnAsyncClient.java +++ b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v1/CdnAsyncClient.java @@ -491,6 +491,7 @@ public AsyncInvoker showDomai * @param request ShowDomainFullConfigRequest 请求对象 * @return CompletableFuture */ + @Deprecated public CompletableFuture showDomainFullConfigAsync( ShowDomainFullConfigRequest request) { return hcClient.asyncInvokeHttp(request, CdnMeta.showDomainFullConfig); @@ -507,6 +508,7 @@ public CompletableFuture showDomainFullConfigAsync * @param request ShowDomainFullConfigRequest 请求对象 * @return AsyncInvoker */ + @Deprecated public AsyncInvoker showDomainFullConfigAsyncInvoker( ShowDomainFullConfigRequest request) { return new AsyncInvoker<>(request, CdnMeta.showDomainFullConfig, hcClient); @@ -1166,6 +1168,7 @@ public AsyncInvoker updateCac * @param request UpdateDomainFullConfigRequest 请求对象 * @return CompletableFuture */ + @Deprecated public CompletableFuture updateDomainFullConfigAsync( UpdateDomainFullConfigRequest request) { return hcClient.asyncInvokeHttp(request, CdnMeta.updateDomainFullConfig); @@ -1182,6 +1185,7 @@ public CompletableFuture updateDomainFullConfigA * @param request UpdateDomainFullConfigRequest 请求对象 * @return AsyncInvoker */ + @Deprecated public AsyncInvoker updateDomainFullConfigAsyncInvoker( UpdateDomainFullConfigRequest request) { return new AsyncInvoker<>(request, CdnMeta.updateDomainFullConfig, hcClient); diff --git a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v1/CdnClient.java b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v1/CdnClient.java index c14c762f10..8250a99e62 100644 --- a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v1/CdnClient.java +++ b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v1/CdnClient.java @@ -483,6 +483,7 @@ public SyncInvoker showDomain * @param request ShowDomainFullConfigRequest 请求对象 * @return ShowDomainFullConfigResponse */ + @Deprecated public ShowDomainFullConfigResponse showDomainFullConfig(ShowDomainFullConfigRequest request) { return hcClient.syncInvokeHttp(request, CdnMeta.showDomainFullConfig); } @@ -498,6 +499,7 @@ public ShowDomainFullConfigResponse showDomainFullConfig(ShowDomainFullConfigReq * @param request ShowDomainFullConfigRequest 请求对象 * @return SyncInvoker */ + @Deprecated public SyncInvoker showDomainFullConfigInvoker( ShowDomainFullConfigRequest request) { return new SyncInvoker<>(request, CdnMeta.showDomainFullConfig, hcClient); @@ -1152,6 +1154,7 @@ public SyncInvoker updateCach * @param request UpdateDomainFullConfigRequest 请求对象 * @return UpdateDomainFullConfigResponse */ + @Deprecated public UpdateDomainFullConfigResponse updateDomainFullConfig(UpdateDomainFullConfigRequest request) { return hcClient.syncInvokeHttp(request, CdnMeta.updateDomainFullConfig); } @@ -1167,6 +1170,7 @@ public UpdateDomainFullConfigResponse updateDomainFullConfig(UpdateDomainFullCon * @param request UpdateDomainFullConfigRequest 请求对象 * @return SyncInvoker */ + @Deprecated public SyncInvoker updateDomainFullConfigInvoker( UpdateDomainFullConfigRequest request) { return new SyncInvoker<>(request, CdnMeta.updateDomainFullConfig, hcClient); diff --git a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/CertificatesGetBody.java b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/CertificatesGetBody.java new file mode 100644 index 0000000000..734216801f --- /dev/null +++ b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/CertificatesGetBody.java @@ -0,0 +1,168 @@ +package com.huaweicloud.sdk.cdn.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 双证书配置查询响应体。 + */ +public class CertificatesGetBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "certificate_type") + + private String certificateType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "certificate_name") + + private String certificateName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "certificate_value") + + private String certificateValue; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enc_certificate_value") + + private String encCertificateValue; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "expire_time") + + private Long expireTime; + + public CertificatesGetBody withCertificateType(String certificateType) { + this.certificateType = certificateType; + return this; + } + + /** + * 证书类型,server:国际证书;server_sm:国密证书。 + * @return certificateType + */ + public String getCertificateType() { + return certificateType; + } + + public void setCertificateType(String certificateType) { + this.certificateType = certificateType; + } + + public CertificatesGetBody withCertificateName(String certificateName) { + this.certificateName = certificateName; + return this; + } + + /** + * 证书名字。 + * @return certificateName + */ + public String getCertificateName() { + return certificateName; + } + + public void setCertificateName(String certificateName) { + this.certificateName = certificateName; + } + + public CertificatesGetBody withCertificateValue(String certificateValue) { + this.certificateValue = certificateValue; + return this; + } + + /** + * HTTPS协议使用的证书内容,PEM编码格式。 + * @return certificateValue + */ + public String getCertificateValue() { + return certificateValue; + } + + public void setCertificateValue(String certificateValue) { + this.certificateValue = certificateValue; + } + + public CertificatesGetBody withEncCertificateValue(String encCertificateValue) { + this.encCertificateValue = encCertificateValue; + return this; + } + + /** + * 国密证书加密证书内容,PEM编码格式。 + * @return encCertificateValue + */ + public String getEncCertificateValue() { + return encCertificateValue; + } + + public void setEncCertificateValue(String encCertificateValue) { + this.encCertificateValue = encCertificateValue; + } + + public CertificatesGetBody withExpireTime(Long expireTime) { + this.expireTime = expireTime; + return this; + } + + /** + * 证书过期时间。 > UTC时间。 + * @return expireTime + */ + public Long getExpireTime() { + return expireTime; + } + + public void setExpireTime(Long expireTime) { + this.expireTime = expireTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CertificatesGetBody that = (CertificatesGetBody) obj; + return Objects.equals(this.certificateType, that.certificateType) + && Objects.equals(this.certificateName, that.certificateName) + && Objects.equals(this.certificateValue, that.certificateValue) + && Objects.equals(this.encCertificateValue, that.encCertificateValue) + && Objects.equals(this.expireTime, that.expireTime); + } + + @Override + public int hashCode() { + return Objects.hash(certificateType, certificateName, certificateValue, encCertificateValue, expireTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CertificatesGetBody {\n"); + sb.append(" certificateType: ").append(toIndentedString(certificateType)).append("\n"); + sb.append(" certificateName: ").append(toIndentedString(certificateName)).append("\n"); + sb.append(" certificateValue: ").append(toIndentedString(certificateValue)).append("\n"); + sb.append(" encCertificateValue: ").append(toIndentedString(encCertificateValue)).append("\n"); + sb.append(" expireTime: ").append(toIndentedString(expireTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/CertificatesPutBody.java b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/CertificatesPutBody.java new file mode 100644 index 0000000000..8c5ac34d8b --- /dev/null +++ b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/CertificatesPutBody.java @@ -0,0 +1,193 @@ +package com.huaweicloud.sdk.cdn.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 配置双证书时必传,需要同时传入国际证书和国密证书,不支持传两个国际证书或两个国密证书。 > - 您也可以在certificates参数下传入一个国际证书或一个国密证书。 > - 如果certificates传了证书(国际证书、国密证书或国际+国密双证书),外层证书配置将失效,仅保留当前参数传入的证书信息。 + */ +public class CertificatesPutBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "certificate_type") + + private String certificateType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "certificate_name") + + private String certificateName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "certificate_value") + + private String certificateValue; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "private_key") + + private String privateKey; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enc_certificate_value") + + private String encCertificateValue; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enc_private_key") + + private String encPrivateKey; + + public CertificatesPutBody withCertificateType(String certificateType) { + this.certificateType = certificateType; + return this; + } + + /** + * 证书类型,server:国际证书;server_sm:国密证书。 + * @return certificateType + */ + public String getCertificateType() { + return certificateType; + } + + public void setCertificateType(String certificateType) { + this.certificateType = certificateType; + } + + public CertificatesPutBody withCertificateName(String certificateName) { + this.certificateName = certificateName; + return this; + } + + /** + * 证书名字,长度限制为3-64字符。 + * @return certificateName + */ + public String getCertificateName() { + return certificateName; + } + + public void setCertificateName(String certificateName) { + this.certificateName = certificateName; + } + + public CertificatesPutBody withCertificateValue(String certificateValue) { + this.certificateValue = certificateValue; + return this; + } + + /** + * HTTPS协议使用的证书内容。 > PEM编码格式。 + * @return certificateValue + */ + public String getCertificateValue() { + return certificateValue; + } + + public void setCertificateValue(String certificateValue) { + this.certificateValue = certificateValue; + } + + public CertificatesPutBody withPrivateKey(String privateKey) { + this.privateKey = privateKey; + return this; + } + + /** + * HTTPS协议使用的私钥。 > PEM编码格式。 + * @return privateKey + */ + public String getPrivateKey() { + return privateKey; + } + + public void setPrivateKey(String privateKey) { + this.privateKey = privateKey; + } + + public CertificatesPutBody withEncCertificateValue(String encCertificateValue) { + this.encCertificateValue = encCertificateValue; + return this; + } + + /** + * 加密证书内容,证书类型为国密证书时必传。 > PEM编码格式。 + * @return encCertificateValue + */ + public String getEncCertificateValue() { + return encCertificateValue; + } + + public void setEncCertificateValue(String encCertificateValue) { + this.encCertificateValue = encCertificateValue; + } + + public CertificatesPutBody withEncPrivateKey(String encPrivateKey) { + this.encPrivateKey = encPrivateKey; + return this; + } + + /** + * 加密私钥内容,证书类型为国密证书时必传。 > PEM编码格式。 + * @return encPrivateKey + */ + public String getEncPrivateKey() { + return encPrivateKey; + } + + public void setEncPrivateKey(String encPrivateKey) { + this.encPrivateKey = encPrivateKey; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CertificatesPutBody that = (CertificatesPutBody) obj; + return Objects.equals(this.certificateType, that.certificateType) + && Objects.equals(this.certificateName, that.certificateName) + && Objects.equals(this.certificateValue, that.certificateValue) + && Objects.equals(this.privateKey, that.privateKey) + && Objects.equals(this.encCertificateValue, that.encCertificateValue) + && Objects.equals(this.encPrivateKey, that.encPrivateKey); + } + + @Override + public int hashCode() { + return Objects + .hash(certificateType, certificateName, certificateValue, privateKey, encCertificateValue, encPrivateKey); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CertificatesPutBody {\n"); + sb.append(" certificateType: ").append(toIndentedString(certificateType)).append("\n"); + sb.append(" certificateName: ").append(toIndentedString(certificateName)).append("\n"); + sb.append(" certificateValue: ").append(toIndentedString(certificateValue)).append("\n"); + sb.append(" privateKey: ").append(toIndentedString(privateKey)).append("\n"); + sb.append(" encCertificateValue: ").append(toIndentedString(encCertificateValue)).append("\n"); + sb.append(" encPrivateKey: ").append(toIndentedString(encPrivateKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/HttpGetBody.java b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/HttpGetBody.java index e2bcfd894d..ecf9e0a510 100644 --- a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/HttpGetBody.java +++ b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/HttpGetBody.java @@ -3,7 +3,10 @@ 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; /** * 证书配置查询响应体。 @@ -15,6 +18,16 @@ public class HttpGetBody { private String httpsStatus; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "certificate_type") + + private String certificateType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "certificate_source") + + private Integer certificateSource; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "certificate_name") @@ -31,14 +44,14 @@ public class HttpGetBody { private Long expireTime; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "certificate_source") + @JsonProperty(value = "enc_certificate_value") - private Integer certificateSource; + private String encCertificateValue; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "certificate_type") + @JsonProperty(value = "certificates") - private String certificateType; + private List certificates = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "http2_status") @@ -72,6 +85,40 @@ public void setHttpsStatus(String httpsStatus) { this.httpsStatus = httpsStatus; } + public HttpGetBody withCertificateType(String certificateType) { + this.certificateType = certificateType; + return this; + } + + /** + * 证书类型。server:国际证书;server_sm:国密证书。 + * @return certificateType + */ + public String getCertificateType() { + return certificateType; + } + + public void setCertificateType(String certificateType) { + this.certificateType = certificateType; + } + + public HttpGetBody withCertificateSource(Integer certificateSource) { + this.certificateSource = certificateSource; + return this; + } + + /** + * 证书来源,1:华为云托管证书,0:自有证书。 + * @return certificateSource + */ + public Integer getCertificateSource() { + return certificateSource; + } + + public void setCertificateSource(Integer certificateSource) { + this.certificateSource = certificateSource; + } + public HttpGetBody withCertificateName(String certificateName) { this.certificateName = certificateName; return this; @@ -123,38 +170,54 @@ public void setExpireTime(Long expireTime) { this.expireTime = expireTime; } - public HttpGetBody withCertificateSource(Integer certificateSource) { - this.certificateSource = certificateSource; + public HttpGetBody withEncCertificateValue(String encCertificateValue) { + this.encCertificateValue = encCertificateValue; return this; } /** - * 证书来源,0:自有证书。 - * @return certificateSource + * 国密证书加密证书内容,PEM编码格式。 + * @return encCertificateValue */ - public Integer getCertificateSource() { - return certificateSource; + public String getEncCertificateValue() { + return encCertificateValue; } - public void setCertificateSource(Integer certificateSource) { - this.certificateSource = certificateSource; + public void setEncCertificateValue(String encCertificateValue) { + this.encCertificateValue = encCertificateValue; } - public HttpGetBody withCertificateType(String certificateType) { - this.certificateType = certificateType; + public HttpGetBody withCertificates(List certificates) { + this.certificates = certificates; + return this; + } + + public HttpGetBody addCertificatesItem(CertificatesGetBody certificatesItem) { + if (this.certificates == null) { + this.certificates = new ArrayList<>(); + } + this.certificates.add(certificatesItem); + return this; + } + + public HttpGetBody withCertificates(Consumer> certificatesSetter) { + if (this.certificates == null) { + this.certificates = new ArrayList<>(); + } + certificatesSetter.accept(this.certificates); return this; } /** - * 证书类型。server:国际证书;server_sm:国密证书。 - * @return certificateType + * Get certificates + * @return certificates */ - public String getCertificateType() { - return certificateType; + public List getCertificates() { + return certificates; } - public void setCertificateType(String certificateType) { - this.certificateType = certificateType; + public void setCertificates(List certificates) { + this.certificates = certificates; } public HttpGetBody withHttp2Status(String http2Status) { @@ -218,11 +281,13 @@ public boolean equals(java.lang.Object obj) { } HttpGetBody that = (HttpGetBody) obj; return Objects.equals(this.httpsStatus, that.httpsStatus) + && Objects.equals(this.certificateType, that.certificateType) + && Objects.equals(this.certificateSource, that.certificateSource) && Objects.equals(this.certificateName, that.certificateName) && Objects.equals(this.certificateValue, that.certificateValue) && Objects.equals(this.expireTime, that.expireTime) - && Objects.equals(this.certificateSource, that.certificateSource) - && Objects.equals(this.certificateType, that.certificateType) + && Objects.equals(this.encCertificateValue, that.encCertificateValue) + && Objects.equals(this.certificates, that.certificates) && Objects.equals(this.http2Status, that.http2Status) && Objects.equals(this.tlsVersion, that.tlsVersion) && Objects.equals(this.ocspStaplingStatus, that.ocspStaplingStatus); } @@ -230,11 +295,13 @@ public boolean equals(java.lang.Object obj) { @Override public int hashCode() { return Objects.hash(httpsStatus, + certificateType, + certificateSource, certificateName, certificateValue, expireTime, - certificateSource, - certificateType, + encCertificateValue, + certificates, http2Status, tlsVersion, ocspStaplingStatus); @@ -245,11 +312,13 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class HttpGetBody {\n"); sb.append(" httpsStatus: ").append(toIndentedString(httpsStatus)).append("\n"); + sb.append(" certificateType: ").append(toIndentedString(certificateType)).append("\n"); + sb.append(" certificateSource: ").append(toIndentedString(certificateSource)).append("\n"); sb.append(" certificateName: ").append(toIndentedString(certificateName)).append("\n"); sb.append(" certificateValue: ").append(toIndentedString(certificateValue)).append("\n"); sb.append(" expireTime: ").append(toIndentedString(expireTime)).append("\n"); - sb.append(" certificateSource: ").append(toIndentedString(certificateSource)).append("\n"); - sb.append(" certificateType: ").append(toIndentedString(certificateType)).append("\n"); + sb.append(" encCertificateValue: ").append(toIndentedString(encCertificateValue)).append("\n"); + sb.append(" certificates: ").append(toIndentedString(certificates)).append("\n"); sb.append(" http2Status: ").append(toIndentedString(http2Status)).append("\n"); sb.append(" tlsVersion: ").append(toIndentedString(tlsVersion)).append("\n"); sb.append(" ocspStaplingStatus: ").append(toIndentedString(ocspStaplingStatus)).append("\n"); diff --git a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/HttpPutBody.java b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/HttpPutBody.java index e8ab9492e7..8c78bf6985 100644 --- a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/HttpPutBody.java +++ b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/HttpPutBody.java @@ -3,7 +3,10 @@ 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; /** * 证书设置 @@ -15,6 +18,16 @@ public class HttpPutBody { private String httpsStatus; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "certificate_type") + + private String certificateType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "certificate_source") + + private Integer certificateSource; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "certificate_name") @@ -31,14 +44,19 @@ public class HttpPutBody { private String privateKey; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "certificate_source") + @JsonProperty(value = "enc_certificate_value") - private Integer certificateSource; + private String encCertificateValue; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "certificate_type") + @JsonProperty(value = "enc_private_key") - private String certificateType; + private String encPrivateKey; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "certificates") + + private List certificates = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "http2_status") @@ -72,6 +90,40 @@ public void setHttpsStatus(String httpsStatus) { this.httpsStatus = httpsStatus; } + public HttpPutBody withCertificateType(String certificateType) { + this.certificateType = certificateType; + return this; + } + + /** + * 证书类型,server:国际证书;server_sm:国密证书。 + * @return certificateType + */ + public String getCertificateType() { + return certificateType; + } + + public void setCertificateType(String certificateType) { + this.certificateType = certificateType; + } + + public HttpPutBody withCertificateSource(Integer certificateSource) { + this.certificateSource = certificateSource; + return this; + } + + /** + * 证书来源,0:自有证书,默认值0。 > 证书开启时必传 + * @return certificateSource + */ + public Integer getCertificateSource() { + return certificateSource; + } + + public void setCertificateSource(Integer certificateSource) { + this.certificateSource = certificateSource; + } + public HttpPutBody withCertificateName(String certificateName) { this.certificateName = certificateName; return this; @@ -123,38 +175,71 @@ public void setPrivateKey(String privateKey) { this.privateKey = privateKey; } - public HttpPutBody withCertificateSource(Integer certificateSource) { - this.certificateSource = certificateSource; + public HttpPutBody withEncCertificateValue(String encCertificateValue) { + this.encCertificateValue = encCertificateValue; return this; } /** - * 证书来源,1:华为云托管证书,0:自有证书, 默认值0。 > 证书开启时必传 - * @return certificateSource + * 加密证书内容,证书类型为国密证书时必传。 > PEM编码格式。 + * @return encCertificateValue */ - public Integer getCertificateSource() { - return certificateSource; + public String getEncCertificateValue() { + return encCertificateValue; } - public void setCertificateSource(Integer certificateSource) { - this.certificateSource = certificateSource; + public void setEncCertificateValue(String encCertificateValue) { + this.encCertificateValue = encCertificateValue; } - public HttpPutBody withCertificateType(String certificateType) { - this.certificateType = certificateType; + public HttpPutBody withEncPrivateKey(String encPrivateKey) { + this.encPrivateKey = encPrivateKey; return this; } /** - * 证书类型,server:国际证书;server_sm:国密证书。 - * @return certificateType + * 加密私钥内容,证书类型为国密证书时必传。 > PEM编码格式。 + * @return encPrivateKey */ - public String getCertificateType() { - return certificateType; + public String getEncPrivateKey() { + return encPrivateKey; } - public void setCertificateType(String certificateType) { - this.certificateType = certificateType; + public void setEncPrivateKey(String encPrivateKey) { + this.encPrivateKey = encPrivateKey; + } + + public HttpPutBody withCertificates(List certificates) { + this.certificates = certificates; + return this; + } + + public HttpPutBody addCertificatesItem(CertificatesPutBody certificatesItem) { + if (this.certificates == null) { + this.certificates = new ArrayList<>(); + } + this.certificates.add(certificatesItem); + return this; + } + + public HttpPutBody withCertificates(Consumer> certificatesSetter) { + if (this.certificates == null) { + this.certificates = new ArrayList<>(); + } + certificatesSetter.accept(this.certificates); + return this; + } + + /** + * Get certificates + * @return certificates + */ + public List getCertificates() { + return certificates; + } + + public void setCertificates(List certificates) { + this.certificates = certificates; } public HttpPutBody withHttp2Status(String http2Status) { @@ -218,11 +303,14 @@ public boolean equals(java.lang.Object obj) { } HttpPutBody that = (HttpPutBody) obj; return Objects.equals(this.httpsStatus, that.httpsStatus) + && Objects.equals(this.certificateType, that.certificateType) + && Objects.equals(this.certificateSource, that.certificateSource) && Objects.equals(this.certificateName, that.certificateName) && Objects.equals(this.certificateValue, that.certificateValue) && Objects.equals(this.privateKey, that.privateKey) - && Objects.equals(this.certificateSource, that.certificateSource) - && Objects.equals(this.certificateType, that.certificateType) + && Objects.equals(this.encCertificateValue, that.encCertificateValue) + && Objects.equals(this.encPrivateKey, that.encPrivateKey) + && Objects.equals(this.certificates, that.certificates) && Objects.equals(this.http2Status, that.http2Status) && Objects.equals(this.tlsVersion, that.tlsVersion) && Objects.equals(this.ocspStaplingStatus, that.ocspStaplingStatus); } @@ -230,11 +318,14 @@ public boolean equals(java.lang.Object obj) { @Override public int hashCode() { return Objects.hash(httpsStatus, + certificateType, + certificateSource, certificateName, certificateValue, privateKey, - certificateSource, - certificateType, + encCertificateValue, + encPrivateKey, + certificates, http2Status, tlsVersion, ocspStaplingStatus); @@ -245,11 +336,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class HttpPutBody {\n"); sb.append(" httpsStatus: ").append(toIndentedString(httpsStatus)).append("\n"); + sb.append(" certificateType: ").append(toIndentedString(certificateType)).append("\n"); + sb.append(" certificateSource: ").append(toIndentedString(certificateSource)).append("\n"); sb.append(" certificateName: ").append(toIndentedString(certificateName)).append("\n"); sb.append(" certificateValue: ").append(toIndentedString(certificateValue)).append("\n"); sb.append(" privateKey: ").append(toIndentedString(privateKey)).append("\n"); - sb.append(" certificateSource: ").append(toIndentedString(certificateSource)).append("\n"); - sb.append(" certificateType: ").append(toIndentedString(certificateType)).append("\n"); + sb.append(" encCertificateValue: ").append(toIndentedString(encCertificateValue)).append("\n"); + sb.append(" encPrivateKey: ").append(toIndentedString(encPrivateKey)).append("\n"); + sb.append(" certificates: ").append(toIndentedString(certificates)).append("\n"); sb.append(" http2Status: ").append(toIndentedString(http2Status)).append("\n"); sb.append(" tlsVersion: ").append(toIndentedString(tlsVersion)).append("\n"); sb.append(" ocspStaplingStatus: ").append(toIndentedString(ocspStaplingStatus)).append("\n"); diff --git a/services/ces/pom.xml b/services/ces/pom.xml index 03bbf53418..46946e2b1b 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-ces - 3.1.95 + 3.1.96 Huawei Cloud SDK for CES 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/cfw/pom.xml b/services/cfw/pom.xml index e967d13c2a..bbb4061532 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-cfw - 3.1.95 + 3.1.96 Huawei Cloud SDK for CFW 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/cgs/pom.xml b/services/cgs/pom.xml index cd809c96b8..7018ec543f 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-cgs - 3.1.95 + 3.1.96 Huawei Cloud SDK for CGS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/classroom/pom.xml b/services/classroom/pom.xml index b499ad4675..e0a2274d54 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-classroom - 3.1.95 + 3.1.96 Huawei Cloud SDK for CLASSROOM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/cloudide/pom.xml b/services/cloudide/pom.xml index d2f6c481d9..89bd455680 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-cloudide - 3.1.95 + 3.1.96 Huawei Cloud SDK for CLOUDIDE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 junit diff --git a/services/cloudpond/pom.xml b/services/cloudpond/pom.xml index 286aa4ade9..961d94a6eb 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-cloudpond - 3.1.95 + 3.1.96 Huawei Cloud SDK for CLOUDPOND 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/cloudrtc/pom.xml b/services/cloudrtc/pom.xml index f6590746e8..a8f588261f 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-cloudrtc - 3.1.95 + 3.1.96 Huawei Cloud SDK for CLOUDRTC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/cloudtable/pom.xml b/services/cloudtable/pom.xml index f506b0b537..576c7efc6d 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-cloudtable - 3.1.95 + 3.1.96 Huawei Cloud SDK for CLOUDTABLE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/cloudtest/pom.xml b/services/cloudtest/pom.xml index 118a81f738..090559346d 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-cloudtest - 3.1.95 + 3.1.96 Huawei Cloud SDK for CLOUDTEST 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/cms/pom.xml b/services/cms/pom.xml index ac4757b46b..13b14b30f2 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-cms - 3.1.95 + 3.1.96 Huawei Cloud SDK for CMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/codeartsartifact/pom.xml b/services/codeartsartifact/pom.xml index b7a5b62924..b830ad6ff5 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsartifact - 3.1.95 + 3.1.96 Huawei Cloud SDK for CODEARTSARTIFACT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/codeartsbuild/pom.xml b/services/codeartsbuild/pom.xml index 8e49b178e4..31981c5525 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsbuild - 3.1.95 + 3.1.96 Huawei Cloud SDK for CODEARTSBUILD 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/codeartscheck/pom.xml b/services/codeartscheck/pom.xml index b0d18ea97c..c4cc613f73 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-codeartscheck - 3.1.95 + 3.1.96 Huawei Cloud SDK for CODEARTSCHECK 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/codeartsdeploy/pom.xml b/services/codeartsdeploy/pom.xml index 256ab36cfe..d27be23886 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsdeploy - 3.1.95 + 3.1.96 Huawei Cloud SDK for CODEARTSDEPLOY 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/codeartsinspector/pom.xml b/services/codeartsinspector/pom.xml index 9ecf02b88a..cb3fa471fd 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsinspector - 3.1.95 + 3.1.96 Huawei Cloud SDK for CODEARTSINSPECTOR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/CodeArtsInspectorAsyncClient.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/CodeArtsInspectorAsyncClient.java index 19c7a003dd..48c9472b14 100644 --- a/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/CodeArtsInspectorAsyncClient.java +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/CodeArtsInspectorAsyncClient.java @@ -1,7 +1,13 @@ package com.huaweicloud.sdk.codeartsinspector.v3; +import com.huaweicloud.sdk.codeartsinspector.v3.model.AddGroupRequest; +import com.huaweicloud.sdk.codeartsinspector.v3.model.AddGroupResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.AuthorizeDomainsRequest; import com.huaweicloud.sdk.codeartsinspector.v3.model.AuthorizeDomainsResponse; +import com.huaweicloud.sdk.codeartsinspector.v3.model.BatchCreateHostsRequest; +import com.huaweicloud.sdk.codeartsinspector.v3.model.BatchCreateHostsResponse; +import com.huaweicloud.sdk.codeartsinspector.v3.model.BatchStartHostTasksRequest; +import com.huaweicloud.sdk.codeartsinspector.v3.model.BatchStartHostTasksResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.CancelTasksRequest; import com.huaweicloud.sdk.codeartsinspector.v3.model.CancelTasksResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.CreateDomainsRequest; @@ -10,6 +16,10 @@ import com.huaweicloud.sdk.codeartsinspector.v3.model.CreateTasksResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.DeleteDomainsRequest; import com.huaweicloud.sdk.codeartsinspector.v3.model.DeleteDomainsResponse; +import com.huaweicloud.sdk.codeartsinspector.v3.model.DeleteGroupRequest; +import com.huaweicloud.sdk.codeartsinspector.v3.model.DeleteGroupResponse; +import com.huaweicloud.sdk.codeartsinspector.v3.model.DeleteHostRequest; +import com.huaweicloud.sdk.codeartsinspector.v3.model.DeleteHostResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.DownloadTaskReportRequest; import com.huaweicloud.sdk.codeartsinspector.v3.model.DownloadTaskReportResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.ExecuteGenerateReportRequest; @@ -18,6 +28,12 @@ import com.huaweicloud.sdk.codeartsinspector.v3.model.ListBusinessRisksResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.ListDomainsRequest; import com.huaweicloud.sdk.codeartsinspector.v3.model.ListDomainsResponse; +import com.huaweicloud.sdk.codeartsinspector.v3.model.ListGroupsRequest; +import com.huaweicloud.sdk.codeartsinspector.v3.model.ListGroupsResponse; +import com.huaweicloud.sdk.codeartsinspector.v3.model.ListHostResultsRequest; +import com.huaweicloud.sdk.codeartsinspector.v3.model.ListHostResultsResponse; +import com.huaweicloud.sdk.codeartsinspector.v3.model.ListHostsRequest; +import com.huaweicloud.sdk.codeartsinspector.v3.model.ListHostsResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.ListPortResultsRequest; import com.huaweicloud.sdk.codeartsinspector.v3.model.ListPortResultsResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.ListTaskHistoriesRequest; @@ -54,6 +70,233 @@ public static ClientBuilder newBuilder() { return clientBuilder; } + /** + * 批量创建主机组 + * + * 批量创建主机组 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddGroupRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture addGroupAsync(AddGroupRequest request) { + return hcClient.asyncInvokeHttp(request, CodeArtsInspectorMeta.addGroup); + } + + /** + * 批量创建主机组 + * + * 批量创建主机组 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddGroupRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker addGroupAsyncInvoker(AddGroupRequest request) { + return new AsyncInvoker<>(request, CodeArtsInspectorMeta.addGroup, hcClient); + } + + /** + * 删除主机组 + * + * 删除主机组 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteGroupRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteGroupAsync(DeleteGroupRequest request) { + return hcClient.asyncInvokeHttp(request, CodeArtsInspectorMeta.deleteGroup); + } + + /** + * 删除主机组 + * + * 删除主机组 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteGroupRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteGroupAsyncInvoker(DeleteGroupRequest request) { + return new AsyncInvoker<>(request, CodeArtsInspectorMeta.deleteGroup, hcClient); + } + + /** + * 获取主机组列表 + * + * 获取主机组列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListGroupsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listGroupsAsync(ListGroupsRequest request) { + return hcClient.asyncInvokeHttp(request, CodeArtsInspectorMeta.listGroups); + } + + /** + * 获取主机组列表 + * + * 获取主机组列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListGroupsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listGroupsAsyncInvoker(ListGroupsRequest request) { + return new AsyncInvoker<>(request, CodeArtsInspectorMeta.listGroups, hcClient); + } + + /** + * 获取主机漏洞扫描结果 + * + * 获取主机漏洞扫描结果 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHostResultsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listHostResultsAsync(ListHostResultsRequest request) { + return hcClient.asyncInvokeHttp(request, CodeArtsInspectorMeta.listHostResults); + } + + /** + * 获取主机漏洞扫描结果 + * + * 获取主机漏洞扫描结果 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHostResultsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listHostResultsAsyncInvoker( + ListHostResultsRequest request) { + return new AsyncInvoker<>(request, CodeArtsInspectorMeta.listHostResults, hcClient); + } + + /** + * 批量启动或取消主机扫描任务 + * + * 批量启动或取消主机漏洞扫描任务 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchStartHostTasksRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture batchStartHostTasksAsync(BatchStartHostTasksRequest request) { + return hcClient.asyncInvokeHttp(request, CodeArtsInspectorMeta.batchStartHostTasks); + } + + /** + * 批量启动或取消主机扫描任务 + * + * 批量启动或取消主机漏洞扫描任务 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchStartHostTasksRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker batchStartHostTasksAsyncInvoker( + BatchStartHostTasksRequest request) { + return new AsyncInvoker<>(request, CodeArtsInspectorMeta.batchStartHostTasks, hcClient); + } + + /** + * 批量创建主机资产 + * + * 批量创建租户的主机资产 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchCreateHostsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture batchCreateHostsAsync(BatchCreateHostsRequest request) { + return hcClient.asyncInvokeHttp(request, CodeArtsInspectorMeta.batchCreateHosts); + } + + /** + * 批量创建主机资产 + * + * 批量创建租户的主机资产 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchCreateHostsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker batchCreateHostsAsyncInvoker( + BatchCreateHostsRequest request) { + return new AsyncInvoker<>(request, CodeArtsInspectorMeta.batchCreateHosts, hcClient); + } + + /** + * 删除主机资产 + * + * 删除租户的主机资产 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteHostRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteHostAsync(DeleteHostRequest request) { + return hcClient.asyncInvokeHttp(request, CodeArtsInspectorMeta.deleteHost); + } + + /** + * 删除主机资产 + * + * 删除租户的主机资产 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteHostRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteHostAsyncInvoker(DeleteHostRequest request) { + return new AsyncInvoker<>(request, CodeArtsInspectorMeta.deleteHost, hcClient); + } + + /** + * 获取主机资产 + * + * 获取租户的主机资产列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHostsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listHostsAsync(ListHostsRequest request) { + return hcClient.asyncInvokeHttp(request, CodeArtsInspectorMeta.listHosts); + } + + /** + * 获取主机资产 + * + * 获取租户的主机资产列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHostsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listHostsAsyncInvoker(ListHostsRequest request) { + return new AsyncInvoker<>(request, CodeArtsInspectorMeta.listHosts, hcClient); + } + /** * 下载网站扫描报告 * diff --git a/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/CodeArtsInspectorClient.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/CodeArtsInspectorClient.java index 28c0a7d792..7464359928 100644 --- a/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/CodeArtsInspectorClient.java +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/CodeArtsInspectorClient.java @@ -1,7 +1,13 @@ package com.huaweicloud.sdk.codeartsinspector.v3; +import com.huaweicloud.sdk.codeartsinspector.v3.model.AddGroupRequest; +import com.huaweicloud.sdk.codeartsinspector.v3.model.AddGroupResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.AuthorizeDomainsRequest; import com.huaweicloud.sdk.codeartsinspector.v3.model.AuthorizeDomainsResponse; +import com.huaweicloud.sdk.codeartsinspector.v3.model.BatchCreateHostsRequest; +import com.huaweicloud.sdk.codeartsinspector.v3.model.BatchCreateHostsResponse; +import com.huaweicloud.sdk.codeartsinspector.v3.model.BatchStartHostTasksRequest; +import com.huaweicloud.sdk.codeartsinspector.v3.model.BatchStartHostTasksResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.CancelTasksRequest; import com.huaweicloud.sdk.codeartsinspector.v3.model.CancelTasksResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.CreateDomainsRequest; @@ -10,6 +16,10 @@ import com.huaweicloud.sdk.codeartsinspector.v3.model.CreateTasksResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.DeleteDomainsRequest; import com.huaweicloud.sdk.codeartsinspector.v3.model.DeleteDomainsResponse; +import com.huaweicloud.sdk.codeartsinspector.v3.model.DeleteGroupRequest; +import com.huaweicloud.sdk.codeartsinspector.v3.model.DeleteGroupResponse; +import com.huaweicloud.sdk.codeartsinspector.v3.model.DeleteHostRequest; +import com.huaweicloud.sdk.codeartsinspector.v3.model.DeleteHostResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.DownloadTaskReportRequest; import com.huaweicloud.sdk.codeartsinspector.v3.model.DownloadTaskReportResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.ExecuteGenerateReportRequest; @@ -18,6 +28,12 @@ import com.huaweicloud.sdk.codeartsinspector.v3.model.ListBusinessRisksResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.ListDomainsRequest; import com.huaweicloud.sdk.codeartsinspector.v3.model.ListDomainsResponse; +import com.huaweicloud.sdk.codeartsinspector.v3.model.ListGroupsRequest; +import com.huaweicloud.sdk.codeartsinspector.v3.model.ListGroupsResponse; +import com.huaweicloud.sdk.codeartsinspector.v3.model.ListHostResultsRequest; +import com.huaweicloud.sdk.codeartsinspector.v3.model.ListHostResultsResponse; +import com.huaweicloud.sdk.codeartsinspector.v3.model.ListHostsRequest; +import com.huaweicloud.sdk.codeartsinspector.v3.model.ListHostsResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.ListPortResultsRequest; import com.huaweicloud.sdk.codeartsinspector.v3.model.ListPortResultsResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.ListTaskHistoriesRequest; @@ -51,6 +67,233 @@ public static ClientBuilder newBuilder() { return clientBuilder; } + /** + * 批量创建主机组 + * + * 批量创建主机组 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddGroupRequest 请求对象 + * @return AddGroupResponse + */ + public AddGroupResponse addGroup(AddGroupRequest request) { + return hcClient.syncInvokeHttp(request, CodeArtsInspectorMeta.addGroup); + } + + /** + * 批量创建主机组 + * + * 批量创建主机组 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddGroupRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker addGroupInvoker(AddGroupRequest request) { + return new SyncInvoker<>(request, CodeArtsInspectorMeta.addGroup, hcClient); + } + + /** + * 删除主机组 + * + * 删除主机组 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteGroupRequest 请求对象 + * @return DeleteGroupResponse + */ + public DeleteGroupResponse deleteGroup(DeleteGroupRequest request) { + return hcClient.syncInvokeHttp(request, CodeArtsInspectorMeta.deleteGroup); + } + + /** + * 删除主机组 + * + * 删除主机组 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteGroupRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteGroupInvoker(DeleteGroupRequest request) { + return new SyncInvoker<>(request, CodeArtsInspectorMeta.deleteGroup, hcClient); + } + + /** + * 获取主机组列表 + * + * 获取主机组列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListGroupsRequest 请求对象 + * @return ListGroupsResponse + */ + public ListGroupsResponse listGroups(ListGroupsRequest request) { + return hcClient.syncInvokeHttp(request, CodeArtsInspectorMeta.listGroups); + } + + /** + * 获取主机组列表 + * + * 获取主机组列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListGroupsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listGroupsInvoker(ListGroupsRequest request) { + return new SyncInvoker<>(request, CodeArtsInspectorMeta.listGroups, hcClient); + } + + /** + * 获取主机漏洞扫描结果 + * + * 获取主机漏洞扫描结果 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHostResultsRequest 请求对象 + * @return ListHostResultsResponse + */ + public ListHostResultsResponse listHostResults(ListHostResultsRequest request) { + return hcClient.syncInvokeHttp(request, CodeArtsInspectorMeta.listHostResults); + } + + /** + * 获取主机漏洞扫描结果 + * + * 获取主机漏洞扫描结果 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHostResultsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listHostResultsInvoker( + ListHostResultsRequest request) { + return new SyncInvoker<>(request, CodeArtsInspectorMeta.listHostResults, hcClient); + } + + /** + * 批量启动或取消主机扫描任务 + * + * 批量启动或取消主机漏洞扫描任务 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchStartHostTasksRequest 请求对象 + * @return BatchStartHostTasksResponse + */ + public BatchStartHostTasksResponse batchStartHostTasks(BatchStartHostTasksRequest request) { + return hcClient.syncInvokeHttp(request, CodeArtsInspectorMeta.batchStartHostTasks); + } + + /** + * 批量启动或取消主机扫描任务 + * + * 批量启动或取消主机漏洞扫描任务 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchStartHostTasksRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker batchStartHostTasksInvoker( + BatchStartHostTasksRequest request) { + return new SyncInvoker<>(request, CodeArtsInspectorMeta.batchStartHostTasks, hcClient); + } + + /** + * 批量创建主机资产 + * + * 批量创建租户的主机资产 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchCreateHostsRequest 请求对象 + * @return BatchCreateHostsResponse + */ + public BatchCreateHostsResponse batchCreateHosts(BatchCreateHostsRequest request) { + return hcClient.syncInvokeHttp(request, CodeArtsInspectorMeta.batchCreateHosts); + } + + /** + * 批量创建主机资产 + * + * 批量创建租户的主机资产 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchCreateHostsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker batchCreateHostsInvoker( + BatchCreateHostsRequest request) { + return new SyncInvoker<>(request, CodeArtsInspectorMeta.batchCreateHosts, hcClient); + } + + /** + * 删除主机资产 + * + * 删除租户的主机资产 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteHostRequest 请求对象 + * @return DeleteHostResponse + */ + public DeleteHostResponse deleteHost(DeleteHostRequest request) { + return hcClient.syncInvokeHttp(request, CodeArtsInspectorMeta.deleteHost); + } + + /** + * 删除主机资产 + * + * 删除租户的主机资产 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteHostRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteHostInvoker(DeleteHostRequest request) { + return new SyncInvoker<>(request, CodeArtsInspectorMeta.deleteHost, hcClient); + } + + /** + * 获取主机资产 + * + * 获取租户的主机资产列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHostsRequest 请求对象 + * @return ListHostsResponse + */ + public ListHostsResponse listHosts(ListHostsRequest request) { + return hcClient.syncInvokeHttp(request, CodeArtsInspectorMeta.listHosts); + } + + /** + * 获取主机资产 + * + * 获取租户的主机资产列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHostsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listHostsInvoker(ListHostsRequest request) { + return new SyncInvoker<>(request, CodeArtsInspectorMeta.listHosts, hcClient); + } + /** * 下载网站扫描报告 * diff --git a/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/CodeArtsInspectorMeta.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/CodeArtsInspectorMeta.java index 3b20430ab6..c71dfc7b92 100644 --- a/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/CodeArtsInspectorMeta.java +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/CodeArtsInspectorMeta.java @@ -1,8 +1,17 @@ package com.huaweicloud.sdk.codeartsinspector.v3; +import com.huaweicloud.sdk.codeartsinspector.v3.model.AddGroupRequest; +import com.huaweicloud.sdk.codeartsinspector.v3.model.AddGroupRequestBody; +import com.huaweicloud.sdk.codeartsinspector.v3.model.AddGroupResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.AuthorizeDomainsRequest; import com.huaweicloud.sdk.codeartsinspector.v3.model.AuthorizeDomainsRequestBody; import com.huaweicloud.sdk.codeartsinspector.v3.model.AuthorizeDomainsResponse; +import com.huaweicloud.sdk.codeartsinspector.v3.model.BatchCreateHostsRequest; +import com.huaweicloud.sdk.codeartsinspector.v3.model.BatchCreateHostsRequestBody; +import com.huaweicloud.sdk.codeartsinspector.v3.model.BatchCreateHostsResponse; +import com.huaweicloud.sdk.codeartsinspector.v3.model.BatchStartHostTasksRequest; +import com.huaweicloud.sdk.codeartsinspector.v3.model.BatchStartHostTasksRequestBody; +import com.huaweicloud.sdk.codeartsinspector.v3.model.BatchStartHostTasksResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.CancelTasksRequest; import com.huaweicloud.sdk.codeartsinspector.v3.model.CancelTasksRequestBody; import com.huaweicloud.sdk.codeartsinspector.v3.model.CancelTasksResponse; @@ -14,6 +23,10 @@ import com.huaweicloud.sdk.codeartsinspector.v3.model.CreateTasksResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.DeleteDomainsRequest; import com.huaweicloud.sdk.codeartsinspector.v3.model.DeleteDomainsResponse; +import com.huaweicloud.sdk.codeartsinspector.v3.model.DeleteGroupRequest; +import com.huaweicloud.sdk.codeartsinspector.v3.model.DeleteGroupResponse; +import com.huaweicloud.sdk.codeartsinspector.v3.model.DeleteHostRequest; +import com.huaweicloud.sdk.codeartsinspector.v3.model.DeleteHostResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.DownloadTaskReportRequest; import com.huaweicloud.sdk.codeartsinspector.v3.model.DownloadTaskReportResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.ExecuteGenerateReportRequest; @@ -23,6 +36,12 @@ import com.huaweicloud.sdk.codeartsinspector.v3.model.ListBusinessRisksResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.ListDomainsRequest; import com.huaweicloud.sdk.codeartsinspector.v3.model.ListDomainsResponse; +import com.huaweicloud.sdk.codeartsinspector.v3.model.ListGroupsRequest; +import com.huaweicloud.sdk.codeartsinspector.v3.model.ListGroupsResponse; +import com.huaweicloud.sdk.codeartsinspector.v3.model.ListHostResultsRequest; +import com.huaweicloud.sdk.codeartsinspector.v3.model.ListHostResultsResponse; +import com.huaweicloud.sdk.codeartsinspector.v3.model.ListHostsRequest; +import com.huaweicloud.sdk.codeartsinspector.v3.model.ListHostsResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.ListPortResultsRequest; import com.huaweicloud.sdk.codeartsinspector.v3.model.ListPortResultsResponse; import com.huaweicloud.sdk.codeartsinspector.v3.model.ListTaskHistoriesRequest; @@ -50,6 +69,215 @@ @SuppressWarnings("unchecked") public class CodeArtsInspectorMeta { + public static final HttpRequestDef addGroup = genForAddGroup(); + + private static HttpRequestDef genForAddGroup() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, AddGroupRequest.class, AddGroupResponse.class) + .withName("AddGroup") + .withUri("/v3/{project_id}/hostscan/groups") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(AddGroupRequestBody.class), + f -> f.withMarshaller(AddGroupRequest::getBody, AddGroupRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef deleteGroup = genForDeleteGroup(); + + private static HttpRequestDef genForDeleteGroup() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.DELETE, DeleteGroupRequest.class, DeleteGroupResponse.class) + .withName("DeleteGroup") + .withUri("/v3/{project_id}/hostscan/groups/{group_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("group_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteGroupRequest::getGroupId, DeleteGroupRequest::setGroupId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listGroups = genForListGroups(); + + private static HttpRequestDef genForListGroups() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListGroupsRequest.class, ListGroupsResponse.class) + .withName("ListGroups") + .withUri("/v3/{project_id}/hostscan/groups") + .withContentType("application/json"); + + // requests + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListGroupsRequest::getOffset, ListGroupsRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListGroupsRequest::getLimit, ListGroupsRequest::setLimit)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listHostResults = + genForListHostResults(); + + private static HttpRequestDef genForListHostResults() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListHostResultsRequest.class, ListHostResultsResponse.class) + .withName("ListHostResults") + .withUri("/v3/{project_id}/hostscan/hosts/{host_id}/sys-vulns") + .withContentType("application/json"); + + // requests + builder.withRequestField("host_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListHostResultsRequest::getHostId, ListHostResultsRequest::setHostId)); + builder.withRequestField("scan_id", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListHostResultsRequest::getScanId, ListHostResultsRequest::setScanId)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListHostResultsRequest::getOffset, ListHostResultsRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListHostResultsRequest::getLimit, ListHostResultsRequest::setLimit)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef batchStartHostTasks = + genForBatchStartHostTasks(); + + private static HttpRequestDef genForBatchStartHostTasks() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, BatchStartHostTasksRequest.class, BatchStartHostTasksResponse.class) + .withName("BatchStartHostTasks") + .withUri("/v3/{project_id}/hostscan/hosts/scan") + .withContentType("application/json; charset=UTF-8"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(BatchStartHostTasksRequestBody.class), + f -> f.withMarshaller(BatchStartHostTasksRequest::getBody, BatchStartHostTasksRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef batchCreateHosts = + genForBatchCreateHosts(); + + private static HttpRequestDef genForBatchCreateHosts() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, BatchCreateHostsRequest.class, BatchCreateHostsResponse.class) + .withName("BatchCreateHosts") + .withUri("/v3/{project_id}/hostscan/hosts") + .withContentType("application/json; charset=UTF-8"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(BatchCreateHostsRequestBody.class), + f -> f.withMarshaller(BatchCreateHostsRequest::getBody, BatchCreateHostsRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef deleteHost = genForDeleteHost(); + + private static HttpRequestDef genForDeleteHost() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.DELETE, DeleteHostRequest.class, DeleteHostResponse.class) + .withName("DeleteHost") + .withUri("/v3/{project_id}/hostscan/hosts/delete/{host_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("host_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteHostRequest::getHostId, DeleteHostRequest::setHostId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listHosts = genForListHosts(); + + private static HttpRequestDef genForListHosts() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListHostsRequest.class, ListHostsResponse.class) + .withName("ListHosts") + .withUri("/v3/{project_id}/hostscan/hosts") + .withContentType("application/json"); + + // requests + builder.withRequestField("group_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListHostsRequest::getGroupId, ListHostsRequest::setGroupId)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListHostsRequest::getOffset, ListHostsRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListHostsRequest::getLimit, ListHostsRequest::setLimit)); + + // response + + return builder.build(); + } + public static final HttpRequestDef downloadTaskReport = genForDownloadTaskReport(); diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateAccountRequest.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/AddGroupRequest.java similarity index 71% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateAccountRequest.java rename to services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/AddGroupRequest.java index 72478069b4..d13d7dfe7e 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateAccountRequest.java +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/AddGroupRequest.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.rgc.v1.model; +package com.huaweicloud.sdk.codeartsinspector.v3.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -9,21 +9,21 @@ /** * Request Object */ -public class CreateAccountRequest { +public class AddGroupRequest { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "body") - private CreateManagedAccountRequest body; + private AddGroupRequestBody body; - public CreateAccountRequest withBody(CreateManagedAccountRequest body) { + public AddGroupRequest withBody(AddGroupRequestBody body) { this.body = body; return this; } - public CreateAccountRequest withBody(Consumer bodySetter) { + public AddGroupRequest withBody(Consumer bodySetter) { if (this.body == null) { - this.body = new CreateManagedAccountRequest(); + this.body = new AddGroupRequestBody(); bodySetter.accept(this.body); } @@ -34,11 +34,11 @@ public CreateAccountRequest withBody(Consumer bodyS * Get body * @return body */ - public CreateManagedAccountRequest getBody() { + public AddGroupRequestBody getBody() { return body; } - public void setBody(CreateManagedAccountRequest body) { + public void setBody(AddGroupRequestBody body) { this.body = body; } @@ -50,7 +50,7 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - CreateAccountRequest that = (CreateAccountRequest) obj; + AddGroupRequest that = (AddGroupRequest) obj; return Objects.equals(this.body, that.body); } @@ -62,7 +62,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateAccountRequest {\n"); + sb.append("class AddGroupRequest {\n"); sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/AddGroupRequestBody.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/AddGroupRequestBody.java new file mode 100644 index 0000000000..46e2f482de --- /dev/null +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/AddGroupRequestBody.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.codeartsinspector.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * AddGroupRequestBody + */ +public class AddGroupRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + public AddGroupRequestBody 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; + } + AddGroupRequestBody that = (AddGroupRequestBody) obj; + return Objects.equals(this.name, that.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddGroupRequestBody {\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/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/AddGroupResponse.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/AddGroupResponse.java new file mode 100644 index 0000000000..bfab306370 --- /dev/null +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/AddGroupResponse.java @@ -0,0 +1,96 @@ +package com.huaweicloud.sdk.codeartsinspector.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 AddGroupResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + public AddGroupResponse 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 AddGroupResponse 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; + } + AddGroupResponse that = (AddGroupResponse) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name); + } + + @Override + public int hashCode() { + return Objects.hash(id, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddGroupResponse {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchCreateHostsRequest.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchCreateHostsRequest.java new file mode 100644 index 0000000000..953be3d2f9 --- /dev/null +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchCreateHostsRequest.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.codeartsinspector.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 BatchCreateHostsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private BatchCreateHostsRequestBody body; + + public BatchCreateHostsRequest withBody(BatchCreateHostsRequestBody body) { + this.body = body; + return this; + } + + public BatchCreateHostsRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new BatchCreateHostsRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public BatchCreateHostsRequestBody getBody() { + return body; + } + + public void setBody(BatchCreateHostsRequestBody 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; + } + BatchCreateHostsRequest that = (BatchCreateHostsRequest) 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 BatchCreateHostsRequest {\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/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchCreateHostsRequestBody.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchCreateHostsRequestBody.java new file mode 100644 index 0000000000..fbfc78a0ab --- /dev/null +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchCreateHostsRequestBody.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.codeartsinspector.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; + +/** + * BatchCreateHostsRequestBody + */ +public class BatchCreateHostsRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hosts") + + private List hosts = null; + + public BatchCreateHostsRequestBody withHosts(List hosts) { + this.hosts = hosts; + return this; + } + + public BatchCreateHostsRequestBody addHostsItem(HostItem hostsItem) { + if (this.hosts == null) { + this.hosts = new ArrayList<>(); + } + this.hosts.add(hostsItem); + return this; + } + + public BatchCreateHostsRequestBody withHosts(Consumer> hostsSetter) { + if (this.hosts == null) { + this.hosts = new ArrayList<>(); + } + hostsSetter.accept(this.hosts); + return this; + } + + /** + * 主机资产列表 + * @return hosts + */ + public List getHosts() { + return hosts; + } + + public void setHosts(List hosts) { + this.hosts = hosts; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchCreateHostsRequestBody that = (BatchCreateHostsRequestBody) obj; + return Objects.equals(this.hosts, that.hosts); + } + + @Override + public int hashCode() { + return Objects.hash(hosts); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchCreateHostsRequestBody {\n"); + sb.append(" hosts: ").append(toIndentedString(hosts)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchCreateHostsResponse.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchCreateHostsResponse.java new file mode 100644 index 0000000000..fa00e24eda --- /dev/null +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchCreateHostsResponse.java @@ -0,0 +1,117 @@ +package com.huaweicloud.sdk.codeartsinspector.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 BatchCreateHostsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "items") + + private List items = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + public BatchCreateHostsResponse withItems(List items) { + this.items = items; + return this; + } + + public BatchCreateHostsResponse addItemsItem(HostItemWithId itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + public BatchCreateHostsResponse withItems(Consumer> itemsSetter) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + itemsSetter.accept(this.items); + return this; + } + + /** + * 创建的主机列表 + * @return items + */ + public List getItems() { + return items; + } + + public void setItems(List items) { + this.items = items; + } + + public BatchCreateHostsResponse withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 主机总数 + * minimum: 0 + * maximum: 100 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchCreateHostsResponse that = (BatchCreateHostsResponse) obj; + return Objects.equals(this.items, that.items) && Objects.equals(this.total, that.total); + } + + @Override + public int hashCode() { + return Objects.hash(items, total); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchCreateHostsResponse {\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchStartHostTasksRequest.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchStartHostTasksRequest.java new file mode 100644 index 0000000000..6f285d083e --- /dev/null +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchStartHostTasksRequest.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.codeartsinspector.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 BatchStartHostTasksRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private BatchStartHostTasksRequestBody body; + + public BatchStartHostTasksRequest withBody(BatchStartHostTasksRequestBody body) { + this.body = body; + return this; + } + + public BatchStartHostTasksRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new BatchStartHostTasksRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public BatchStartHostTasksRequestBody getBody() { + return body; + } + + public void setBody(BatchStartHostTasksRequestBody 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; + } + BatchStartHostTasksRequest that = (BatchStartHostTasksRequest) 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 BatchStartHostTasksRequest {\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/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchStartHostTasksRequestBody.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchStartHostTasksRequestBody.java new file mode 100644 index 0000000000..00d52c7ab2 --- /dev/null +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchStartHostTasksRequestBody.java @@ -0,0 +1,189 @@ +package com.huaweicloud.sdk.codeartsinspector.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; + +/** + * BatchStartHostTasksRequestBody + */ +public class BatchStartHostTasksRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hosts") + + private List hosts = null; + + /** + * 对扫描任务的操作: * start - 启动 * cancel - 取消 + */ + public static final class ActionEnum { + + /** + * Enum START for value: "start" + */ + public static final ActionEnum START = new ActionEnum("start"); + + /** + * Enum CANCEL for value: "cancel" + */ + public static final ActionEnum CANCEL = new ActionEnum("cancel"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("start", START); + map.put("cancel", CANCEL); + return Collections.unmodifiableMap(map); + } + + private String value; + + ActionEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ActionEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ActionEnum(value)); + } + + public static ActionEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof ActionEnum) { + return this.value.equals(((ActionEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "action") + + private ActionEnum action; + + public BatchStartHostTasksRequestBody withHosts(List hosts) { + this.hosts = hosts; + return this; + } + + public BatchStartHostTasksRequestBody addHostsItem(String hostsItem) { + if (this.hosts == null) { + this.hosts = new ArrayList<>(); + } + this.hosts.add(hostsItem); + return this; + } + + public BatchStartHostTasksRequestBody withHosts(Consumer> hostsSetter) { + if (this.hosts == null) { + this.hosts = new ArrayList<>(); + } + hostsSetter.accept(this.hosts); + return this; + } + + /** + * 主机ID列表 + * @return hosts + */ + public List getHosts() { + return hosts; + } + + public void setHosts(List hosts) { + this.hosts = hosts; + } + + public BatchStartHostTasksRequestBody withAction(ActionEnum action) { + this.action = action; + return this; + } + + /** + * 对扫描任务的操作: * start - 启动 * cancel - 取消 + * @return action + */ + public ActionEnum getAction() { + return action; + } + + public void setAction(ActionEnum action) { + this.action = action; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchStartHostTasksRequestBody that = (BatchStartHostTasksRequestBody) obj; + return Objects.equals(this.hosts, that.hosts) && Objects.equals(this.action, that.action); + } + + @Override + public int hashCode() { + return Objects.hash(hosts, action); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchStartHostTasksRequestBody {\n"); + sb.append(" hosts: ").append(toIndentedString(hosts)).append("\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchStartHostTasksResponse.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchStartHostTasksResponse.java new file mode 100644 index 0000000000..d9ba2ef86f --- /dev/null +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchStartHostTasksResponse.java @@ -0,0 +1,93 @@ +package com.huaweicloud.sdk.codeartsinspector.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 BatchStartHostTasksResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "results") + + private List results = null; + + public BatchStartHostTasksResponse withResults(List results) { + this.results = results; + return this; + } + + public BatchStartHostTasksResponse addResultsItem(BatchStartHostTasksResponseBodyResults resultsItem) { + if (this.results == null) { + this.results = new ArrayList<>(); + } + this.results.add(resultsItem); + return this; + } + + public BatchStartHostTasksResponse withResults( + Consumer> resultsSetter) { + if (this.results == null) { + this.results = new ArrayList<>(); + } + resultsSetter.accept(this.results); + return this; + } + + /** + * 扫描任务ID对应主机id列表 + * @return results + */ + public List getResults() { + return results; + } + + public void setResults(List results) { + this.results = results; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchStartHostTasksResponse that = (BatchStartHostTasksResponse) obj; + return Objects.equals(this.results, that.results); + } + + @Override + public int hashCode() { + return Objects.hash(results); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchStartHostTasksResponse {\n"); + sb.append(" results: ").append(toIndentedString(results)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchStartHostTasksResponseBodyResults.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchStartHostTasksResponseBodyResults.java new file mode 100644 index 0000000000..058c8f41c7 --- /dev/null +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/BatchStartHostTasksResponseBodyResults.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.codeartsinspector.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * BatchStartHostTasksResponseBodyResults + */ +public class BatchStartHostTasksResponseBodyResults { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "scan_id") + + private String scanId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "host_id") + + private String hostId; + + public BatchStartHostTasksResponseBodyResults withScanId(String scanId) { + this.scanId = scanId; + return this; + } + + /** + * 扫描ID + * @return scanId + */ + public String getScanId() { + return scanId; + } + + public void setScanId(String scanId) { + this.scanId = scanId; + } + + public BatchStartHostTasksResponseBodyResults withHostId(String hostId) { + this.hostId = hostId; + return this; + } + + /** + * 主机ID + * @return hostId + */ + public String getHostId() { + return hostId; + } + + public void setHostId(String hostId) { + this.hostId = hostId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchStartHostTasksResponseBodyResults that = (BatchStartHostTasksResponseBodyResults) obj; + return Objects.equals(this.scanId, that.scanId) && Objects.equals(this.hostId, that.hostId); + } + + @Override + public int hashCode() { + return Objects.hash(scanId, hostId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchStartHostTasksResponseBodyResults {\n"); + sb.append(" scanId: ").append(toIndentedString(scanId)).append("\n"); + sb.append(" hostId: ").append(toIndentedString(hostId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowControlRequest.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/DeleteGroupRequest.java similarity index 57% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowControlRequest.java rename to services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/DeleteGroupRequest.java index 2ef8d268bd..8dc96d0b5d 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowControlRequest.java +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/DeleteGroupRequest.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.rgc.v1.model; +package com.huaweicloud.sdk.codeartsinspector.v3.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -8,28 +8,28 @@ /** * Request Object */ -public class ShowControlRequest { +public class DeleteGroupRequest { @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "control_id") + @JsonProperty(value = "group_id") - private String controlId; + private String groupId; - public ShowControlRequest withControlId(String controlId) { - this.controlId = controlId; + public DeleteGroupRequest withGroupId(String groupId) { + this.groupId = groupId; return this; } /** - * 控制策略ID。 - * @return controlId + * group_id + * @return groupId */ - public String getControlId() { - return controlId; + public String getGroupId() { + return groupId; } - public void setControlId(String controlId) { - this.controlId = controlId; + public void setGroupId(String groupId) { + this.groupId = groupId; } @Override @@ -40,20 +40,20 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - ShowControlRequest that = (ShowControlRequest) obj; - return Objects.equals(this.controlId, that.controlId); + DeleteGroupRequest that = (DeleteGroupRequest) obj; + return Objects.equals(this.groupId, that.groupId); } @Override public int hashCode() { - return Objects.hash(controlId); + return Objects.hash(groupId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ShowControlRequest {\n"); - sb.append(" controlId: ").append(toIndentedString(controlId)).append("\n"); + sb.append("class DeleteGroupRequest {\n"); + sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CheckLaunchResponse.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/DeleteGroupResponse.java similarity index 78% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CheckLaunchResponse.java rename to services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/DeleteGroupResponse.java index e87390cdb5..aa29af25aa 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CheckLaunchResponse.java +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/DeleteGroupResponse.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.rgc.v1.model; +package com.huaweicloud.sdk.codeartsinspector.v3.model; import com.huaweicloud.sdk.core.SdkResponse; @@ -7,7 +7,7 @@ /** * Response Object */ -public class CheckLaunchResponse extends SdkResponse { +public class DeleteGroupResponse extends SdkResponse { @Override public boolean equals(java.lang.Object obj) { @@ -28,7 +28,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CheckLaunchResponse {\n"); + sb.append("class DeleteGroupResponse {\n"); sb.append("}"); return sb.toString(); } diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowOperationRequest.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/DeleteHostRequest.java similarity index 56% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowOperationRequest.java rename to services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/DeleteHostRequest.java index 8d1ca27947..c73112748a 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowOperationRequest.java +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/DeleteHostRequest.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.rgc.v1.model; +package com.huaweicloud.sdk.codeartsinspector.v3.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -8,28 +8,28 @@ /** * Request Object */ -public class ShowOperationRequest { +public class DeleteHostRequest { @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "operation_id") + @JsonProperty(value = "host_id") - private String operationId; + private String hostId; - public ShowOperationRequest withOperationId(String operationId) { - this.operationId = operationId; + public DeleteHostRequest withHostId(String hostId) { + this.hostId = hostId; return this; } /** - * 操作ID。 - * @return operationId + * 主机资产id + * @return hostId */ - public String getOperationId() { - return operationId; + public String getHostId() { + return hostId; } - public void setOperationId(String operationId) { - this.operationId = operationId; + public void setHostId(String hostId) { + this.hostId = hostId; } @Override @@ -40,20 +40,20 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - ShowOperationRequest that = (ShowOperationRequest) obj; - return Objects.equals(this.operationId, that.operationId); + DeleteHostRequest that = (DeleteHostRequest) obj; + return Objects.equals(this.hostId, that.hostId); } @Override public int hashCode() { - return Objects.hash(operationId); + return Objects.hash(hostId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ShowOperationRequest {\n"); - sb.append(" operationId: ").append(toIndentedString(operationId)).append("\n"); + sb.append("class DeleteHostRequest {\n"); + sb.append(" hostId: ").append(toIndentedString(hostId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/SetupLandingZoneResponse.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/DeleteHostResponse.java similarity index 78% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/SetupLandingZoneResponse.java rename to services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/DeleteHostResponse.java index e8df921648..2a8f90de21 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/SetupLandingZoneResponse.java +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/DeleteHostResponse.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.rgc.v1.model; +package com.huaweicloud.sdk.codeartsinspector.v3.model; import com.huaweicloud.sdk.core.SdkResponse; @@ -7,7 +7,7 @@ /** * Response Object */ -public class SetupLandingZoneResponse extends SdkResponse { +public class DeleteHostResponse extends SdkResponse { @Override public boolean equals(java.lang.Object obj) { @@ -28,7 +28,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class SetupLandingZoneResponse {\n"); + sb.append("class DeleteHostResponse {\n"); sb.append("}"); return sb.toString(); } diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/Content.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/Group.java similarity index 53% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/Content.java rename to services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/Group.java index beb7ec768d..010bfa3e9a 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/Content.java +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/Group.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.rgc.v1.model; +package com.huaweicloud.sdk.codeartsinspector.v3.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -6,52 +6,52 @@ import java.util.Objects; /** - * 控制策略内容。 + * 群组信息 */ -public class Content { +public class Group { @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "en") + @JsonProperty(value = "id") - private String en; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "ch") + @JsonProperty(value = "name") - private String ch; + private String name; - public Content withEn(String en) { - this.en = en; + public Group withId(String id) { + this.id = id; return this; } /** - * 英文策略内容。 - * @return en + * 群组ID + * @return id */ - public String getEn() { - return en; + public String getId() { + return id; } - public void setEn(String en) { - this.en = en; + public void setId(String id) { + this.id = id; } - public Content withCh(String ch) { - this.ch = ch; + public Group withName(String name) { + this.name = name; return this; } /** - * 中文策略内容。 - * @return ch + * 群组名称 + * @return name */ - public String getCh() { - return ch; + public String getName() { + return name; } - public void setCh(String ch) { - this.ch = ch; + public void setName(String name) { + this.name = name; } @Override @@ -62,21 +62,21 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - Content that = (Content) obj; - return Objects.equals(this.en, that.en) && Objects.equals(this.ch, that.ch); + Group that = (Group) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name); } @Override public int hashCode() { - return Objects.hash(en, ch); + return Objects.hash(id, name); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class Content {\n"); - sb.append(" en: ").append(toIndentedString(en)).append("\n"); - sb.append(" ch: ").append(toIndentedString(ch)).append("\n"); + sb.append("class Group {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/HGHost.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/HGHost.java new file mode 100644 index 0000000000..0d6a1b0b9b --- /dev/null +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/HGHost.java @@ -0,0 +1,415 @@ +package com.huaweicloud.sdk.codeartsinspector.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; + +/** + * HGHost + */ +public class HGHost { + + /** + * 主机授权状态: * -1 未知 * 0 连接成功 * 1 不可达 * 2 登录失败 + */ + public static final class AuthStatusEnum { + + /** + * Enum NUMBER_MINUS_1 for value: -1 + */ + public static final AuthStatusEnum NUMBER_MINUS_1 = new AuthStatusEnum(-1); + + /** + * Enum NUMBER_0 for value: 0 + */ + public static final AuthStatusEnum NUMBER_0 = new AuthStatusEnum(0); + + /** + * Enum NUMBER_1 for value: 1 + */ + public static final AuthStatusEnum NUMBER_1 = new AuthStatusEnum(1); + + /** + * Enum NUMBER_2 for value: 2 + */ + public static final AuthStatusEnum NUMBER_2 = new AuthStatusEnum(2); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put(-1, NUMBER_MINUS_1); + map.put(0, NUMBER_0); + map.put(1, NUMBER_1); + map.put(2, NUMBER_2); + return Collections.unmodifiableMap(map); + } + + private Integer value; + + AuthStatusEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AuthStatusEnum fromValue(Integer value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new AuthStatusEnum(value)); + } + + public static AuthStatusEnum valueOf(Integer 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 AuthStatusEnum) { + return this.value.equals(((AuthStatusEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "auth_status") + + private AuthStatusEnum authStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "group_id") + + private String groupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ip") + + private String ip; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "jumper_server_id") + + private String jumperServerId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_scan_id") + + private String lastScanId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_scan_info") + + private ScanInfoDetail lastScanInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "os_type") + + private String osType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "smb_credential_id") + + private String smbCredentialId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ssh_credential_id") + + private String sshCredentialId; + + public HGHost withAuthStatus(AuthStatusEnum authStatus) { + this.authStatus = authStatus; + return this; + } + + /** + * 主机授权状态: * -1 未知 * 0 连接成功 * 1 不可达 * 2 登录失败 + * @return authStatus + */ + public AuthStatusEnum getAuthStatus() { + return authStatus; + } + + public void setAuthStatus(AuthStatusEnum authStatus) { + this.authStatus = authStatus; + } + + public HGHost withGroupId(String groupId) { + this.groupId = groupId; + return this; + } + + /** + * 主机组id + * @return groupId + */ + public String getGroupId() { + return groupId; + } + + public void setGroupId(String groupId) { + this.groupId = groupId; + } + + public HGHost 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 HGHost withIp(String ip) { + this.ip = ip; + return this; + } + + /** + * 主机ip + * @return ip + */ + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public HGHost withJumperServerId(String jumperServerId) { + this.jumperServerId = jumperServerId; + return this; + } + + /** + * 跳板机id + * @return jumperServerId + */ + public String getJumperServerId() { + return jumperServerId; + } + + public void setJumperServerId(String jumperServerId) { + this.jumperServerId = jumperServerId; + } + + public HGHost withLastScanId(String lastScanId) { + this.lastScanId = lastScanId; + return this; + } + + /** + * 最后一次扫描的id + * @return lastScanId + */ + public String getLastScanId() { + return lastScanId; + } + + public void setLastScanId(String lastScanId) { + this.lastScanId = lastScanId; + } + + public HGHost withLastScanInfo(ScanInfoDetail lastScanInfo) { + this.lastScanInfo = lastScanInfo; + return this; + } + + public HGHost withLastScanInfo(Consumer lastScanInfoSetter) { + if (this.lastScanInfo == null) { + this.lastScanInfo = new ScanInfoDetail(); + lastScanInfoSetter.accept(this.lastScanInfo); + } + + return this; + } + + /** + * Get lastScanInfo + * @return lastScanInfo + */ + public ScanInfoDetail getLastScanInfo() { + return lastScanInfo; + } + + public void setLastScanInfo(ScanInfoDetail lastScanInfo) { + this.lastScanInfo = lastScanInfo; + } + + public HGHost withName(String name) { + this.name = name; + return this; + } + + /** + * 主机名 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public HGHost withOsType(String osType) { + this.osType = osType; + return this; + } + + /** + * 主机操作系统类型 + * @return osType + */ + public String getOsType() { + return osType; + } + + public void setOsType(String osType) { + this.osType = osType; + } + + public HGHost withSmbCredentialId(String smbCredentialId) { + this.smbCredentialId = smbCredentialId; + return this; + } + + /** + * smb_credential_id + * @return smbCredentialId + */ + public String getSmbCredentialId() { + return smbCredentialId; + } + + public void setSmbCredentialId(String smbCredentialId) { + this.smbCredentialId = smbCredentialId; + } + + public HGHost withSshCredentialId(String sshCredentialId) { + this.sshCredentialId = sshCredentialId; + return this; + } + + /** + * ssh授权id + * @return sshCredentialId + */ + public String getSshCredentialId() { + return sshCredentialId; + } + + public void setSshCredentialId(String sshCredentialId) { + this.sshCredentialId = sshCredentialId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + HGHost that = (HGHost) obj; + return Objects.equals(this.authStatus, that.authStatus) && Objects.equals(this.groupId, that.groupId) + && Objects.equals(this.id, that.id) && Objects.equals(this.ip, that.ip) + && Objects.equals(this.jumperServerId, that.jumperServerId) + && Objects.equals(this.lastScanId, that.lastScanId) && Objects.equals(this.lastScanInfo, that.lastScanInfo) + && Objects.equals(this.name, that.name) && Objects.equals(this.osType, that.osType) + && Objects.equals(this.smbCredentialId, that.smbCredentialId) + && Objects.equals(this.sshCredentialId, that.sshCredentialId); + } + + @Override + public int hashCode() { + return Objects.hash(authStatus, + groupId, + id, + ip, + jumperServerId, + lastScanId, + lastScanInfo, + name, + osType, + smbCredentialId, + sshCredentialId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HGHost {\n"); + sb.append(" authStatus: ").append(toIndentedString(authStatus)).append("\n"); + sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" jumperServerId: ").append(toIndentedString(jumperServerId)).append("\n"); + sb.append(" lastScanId: ").append(toIndentedString(lastScanId)).append("\n"); + sb.append(" lastScanInfo: ").append(toIndentedString(lastScanInfo)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" osType: ").append(toIndentedString(osType)).append("\n"); + sb.append(" smbCredentialId: ").append(toIndentedString(smbCredentialId)).append("\n"); + sb.append(" sshCredentialId: ").append(toIndentedString(sshCredentialId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/HostItem.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/HostItem.java new file mode 100644 index 0000000000..08f4d32376 --- /dev/null +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/HostItem.java @@ -0,0 +1,289 @@ +package com.huaweicloud.sdk.codeartsinspector.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; + +/** + * HostItem + */ +public class HostItem { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ip") + + private String ip; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + /** + * 操作系统类型: * linux * windows + */ + public static final class OsTypeEnum { + + /** + * Enum LINUX for value: "linux" + */ + public static final OsTypeEnum LINUX = new OsTypeEnum("linux"); + + /** + * Enum WINDOWS for value: "windows" + */ + public static final OsTypeEnum WINDOWS = new OsTypeEnum("windows"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("linux", LINUX); + map.put("windows", WINDOWS); + return Collections.unmodifiableMap(map); + } + + private String value; + + OsTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static OsTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new OsTypeEnum(value)); + } + + public static OsTypeEnum 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 OsTypeEnum) { + return this.value.equals(((OsTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "os_type") + + private OsTypeEnum osType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "group_id") + + private String groupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ssh_credential_id") + + private String sshCredentialId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "jumper_server_id") + + private String jumperServerId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "smb_credential_id") + + private String smbCredentialId; + + public HostItem withIp(String ip) { + this.ip = ip; + return this; + } + + /** + * 主机IP + * @return ip + */ + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public HostItem withName(String name) { + this.name = name; + return this; + } + + /** + * 主机名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public HostItem withOsType(OsTypeEnum osType) { + this.osType = osType; + return this; + } + + /** + * 操作系统类型: * linux * windows + * @return osType + */ + public OsTypeEnum getOsType() { + return osType; + } + + public void setOsType(OsTypeEnum osType) { + this.osType = osType; + } + + public HostItem withGroupId(String groupId) { + this.groupId = groupId; + return this; + } + + /** + * 主机组id + * @return groupId + */ + public String getGroupId() { + return groupId; + } + + public void setGroupId(String groupId) { + this.groupId = groupId; + } + + public HostItem withSshCredentialId(String sshCredentialId) { + this.sshCredentialId = sshCredentialId; + return this; + } + + /** + * linux主机ssh授权登录信息ID + * @return sshCredentialId + */ + public String getSshCredentialId() { + return sshCredentialId; + } + + public void setSshCredentialId(String sshCredentialId) { + this.sshCredentialId = sshCredentialId; + } + + public HostItem withJumperServerId(String jumperServerId) { + this.jumperServerId = jumperServerId; + return this; + } + + /** + * linux跳板机信息ID + * @return jumperServerId + */ + public String getJumperServerId() { + return jumperServerId; + } + + public void setJumperServerId(String jumperServerId) { + this.jumperServerId = jumperServerId; + } + + public HostItem withSmbCredentialId(String smbCredentialId) { + this.smbCredentialId = smbCredentialId; + return this; + } + + /** + * windows主机smb授权登录信息ID + * @return smbCredentialId + */ + public String getSmbCredentialId() { + return smbCredentialId; + } + + public void setSmbCredentialId(String smbCredentialId) { + this.smbCredentialId = smbCredentialId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + HostItem that = (HostItem) obj; + return Objects.equals(this.ip, that.ip) && Objects.equals(this.name, that.name) + && Objects.equals(this.osType, that.osType) && Objects.equals(this.groupId, that.groupId) + && Objects.equals(this.sshCredentialId, that.sshCredentialId) + && Objects.equals(this.jumperServerId, that.jumperServerId) + && Objects.equals(this.smbCredentialId, that.smbCredentialId); + } + + @Override + public int hashCode() { + return Objects.hash(ip, name, osType, groupId, sshCredentialId, jumperServerId, smbCredentialId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HostItem {\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" osType: ").append(toIndentedString(osType)).append("\n"); + sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n"); + sb.append(" sshCredentialId: ").append(toIndentedString(sshCredentialId)).append("\n"); + sb.append(" jumperServerId: ").append(toIndentedString(jumperServerId)).append("\n"); + sb.append(" smbCredentialId: ").append(toIndentedString(smbCredentialId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/HostItemWithId.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/HostItemWithId.java new file mode 100644 index 0000000000..c170f610b8 --- /dev/null +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/HostItemWithId.java @@ -0,0 +1,312 @@ +package com.huaweicloud.sdk.codeartsinspector.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; + +/** + * HostItemWithId + */ +public class HostItemWithId { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ip") + + private String ip; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + /** + * 操作系统类型: * linux * windows + */ + public static final class OsTypeEnum { + + /** + * Enum LINUX for value: "linux" + */ + public static final OsTypeEnum LINUX = new OsTypeEnum("linux"); + + /** + * Enum WINDOWS for value: "windows" + */ + public static final OsTypeEnum WINDOWS = new OsTypeEnum("windows"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("linux", LINUX); + map.put("windows", WINDOWS); + return Collections.unmodifiableMap(map); + } + + private String value; + + OsTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static OsTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new OsTypeEnum(value)); + } + + public static OsTypeEnum 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 OsTypeEnum) { + return this.value.equals(((OsTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "os_type") + + private OsTypeEnum osType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "group_id") + + private String groupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ssh_credential_id") + + private String sshCredentialId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "jumper_server_id") + + private String jumperServerId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "smb_credential_id") + + private String smbCredentialId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + public HostItemWithId withIp(String ip) { + this.ip = ip; + return this; + } + + /** + * 主机IP + * @return ip + */ + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public HostItemWithId withName(String name) { + this.name = name; + return this; + } + + /** + * 主机名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public HostItemWithId withOsType(OsTypeEnum osType) { + this.osType = osType; + return this; + } + + /** + * 操作系统类型: * linux * windows + * @return osType + */ + public OsTypeEnum getOsType() { + return osType; + } + + public void setOsType(OsTypeEnum osType) { + this.osType = osType; + } + + public HostItemWithId withGroupId(String groupId) { + this.groupId = groupId; + return this; + } + + /** + * 主机组id + * @return groupId + */ + public String getGroupId() { + return groupId; + } + + public void setGroupId(String groupId) { + this.groupId = groupId; + } + + public HostItemWithId withSshCredentialId(String sshCredentialId) { + this.sshCredentialId = sshCredentialId; + return this; + } + + /** + * linux主机ssh授权登录信息ID + * @return sshCredentialId + */ + public String getSshCredentialId() { + return sshCredentialId; + } + + public void setSshCredentialId(String sshCredentialId) { + this.sshCredentialId = sshCredentialId; + } + + public HostItemWithId withJumperServerId(String jumperServerId) { + this.jumperServerId = jumperServerId; + return this; + } + + /** + * linux跳板机信息ID + * @return jumperServerId + */ + public String getJumperServerId() { + return jumperServerId; + } + + public void setJumperServerId(String jumperServerId) { + this.jumperServerId = jumperServerId; + } + + public HostItemWithId withSmbCredentialId(String smbCredentialId) { + this.smbCredentialId = smbCredentialId; + return this; + } + + /** + * windows主机smb授权登录信息ID + * @return smbCredentialId + */ + public String getSmbCredentialId() { + return smbCredentialId; + } + + public void setSmbCredentialId(String smbCredentialId) { + this.smbCredentialId = smbCredentialId; + } + + public HostItemWithId 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; + } + HostItemWithId that = (HostItemWithId) obj; + return Objects.equals(this.ip, that.ip) && Objects.equals(this.name, that.name) + && Objects.equals(this.osType, that.osType) && Objects.equals(this.groupId, that.groupId) + && Objects.equals(this.sshCredentialId, that.sshCredentialId) + && Objects.equals(this.jumperServerId, that.jumperServerId) + && Objects.equals(this.smbCredentialId, that.smbCredentialId) && Objects.equals(this.id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(ip, name, osType, groupId, sshCredentialId, jumperServerId, smbCredentialId, id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HostItemWithId {\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" osType: ").append(toIndentedString(osType)).append("\n"); + sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n"); + sb.append(" sshCredentialId: ").append(toIndentedString(sshCredentialId)).append("\n"); + sb.append(" jumperServerId: ").append(toIndentedString(jumperServerId)).append("\n"); + sb.append(" smbCredentialId: ").append(toIndentedString(smbCredentialId)).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/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/HostVulnItem.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/HostVulnItem.java new file mode 100644 index 0000000000..db51c7e9b1 --- /dev/null +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/HostVulnItem.java @@ -0,0 +1,652 @@ +package com.huaweicloud.sdk.codeartsinspector.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; + +/** + * HostVulnItem + */ +public class HostVulnItem { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "port") + + private String port; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "title") + + private String title; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sa_id") + + private String saId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "vuln_id") + + private String vulnId; + + /** + * 漏洞风险等级: * high - 高风险 * medium - 中风险 * low - 低风险 * hint - 提示 + */ + public static final class SeverityEnum { + + /** + * Enum HIGH for value: "high" + */ + public static final SeverityEnum HIGH = new SeverityEnum("high"); + + /** + * Enum MEDIUM for value: "medium" + */ + public static final SeverityEnum MEDIUM = new SeverityEnum("medium"); + + /** + * Enum LOW for value: "low" + */ + public static final SeverityEnum LOW = new SeverityEnum("low"); + + /** + * Enum HINT for value: "hint" + */ + public static final SeverityEnum HINT = new SeverityEnum("hint"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("high", HIGH); + map.put("medium", MEDIUM); + map.put("low", LOW); + map.put("hint", HINT); + return Collections.unmodifiableMap(map); + } + + private String value; + + SeverityEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static SeverityEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new SeverityEnum(value)); + } + + public static SeverityEnum 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 SeverityEnum) { + return this.value.equals(((SeverityEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "severity") + + private SeverityEnum severity; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "topic") + + private String topic; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "solution") + + private String solution; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "fix_advisory") + + private String fixAdvisory; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "fix_cmd") + + private String fixCmd; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cve_list") + + private List cveList = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ref_link_list") + + private List refLinkList = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "component_list") + + private List componentList = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "vul_detect_result") + + private String vulDetectResult; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cvss_score") + + private String cvssScore; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cvss_version") + + private String cvssVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cvss_vector") + + private String cvssVector; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_ignore") + + private Boolean isIgnore; + + public HostVulnItem withType(String type) { + this.type = type; + return this; + } + + /** + * 漏洞类型 + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public HostVulnItem withPort(String port) { + this.port = port; + return this; + } + + /** + * 扫描端口号 + * @return port + */ + public String getPort() { + return port; + } + + public void setPort(String port) { + this.port = port; + } + + public HostVulnItem withTitle(String title) { + this.title = title; + return this; + } + + /** + * 漏洞标题 + * @return title + */ + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public HostVulnItem withSaId(String saId) { + this.saId = saId; + return this; + } + + /** + * 漏洞公告ID + * @return saId + */ + public String getSaId() { + return saId; + } + + public void setSaId(String saId) { + this.saId = saId; + } + + public HostVulnItem withVulnId(String vulnId) { + this.vulnId = vulnId; + return this; + } + + /** + * 漏洞ID + * @return vulnId + */ + public String getVulnId() { + return vulnId; + } + + public void setVulnId(String vulnId) { + this.vulnId = vulnId; + } + + public HostVulnItem withSeverity(SeverityEnum severity) { + this.severity = severity; + return this; + } + + /** + * 漏洞风险等级: * high - 高风险 * medium - 中风险 * low - 低风险 * hint - 提示 + * @return severity + */ + public SeverityEnum getSeverity() { + return severity; + } + + public void setSeverity(SeverityEnum severity) { + this.severity = severity; + } + + public HostVulnItem withTopic(String topic) { + this.topic = topic; + return this; + } + + /** + * 漏洞摘要 + * @return topic + */ + public String getTopic() { + return topic; + } + + public void setTopic(String topic) { + this.topic = topic; + } + + public HostVulnItem withDescription(String description) { + this.description = description; + return this; + } + + /** + * 漏洞描述 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public HostVulnItem withSolution(String solution) { + this.solution = solution; + return this; + } + + /** + * 漏洞提示建议 + * @return solution + */ + public String getSolution() { + return solution; + } + + public void setSolution(String solution) { + this.solution = solution; + } + + public HostVulnItem withFixAdvisory(String fixAdvisory) { + this.fixAdvisory = fixAdvisory; + return this; + } + + /** + * 漏洞修复建议 + * @return fixAdvisory + */ + public String getFixAdvisory() { + return fixAdvisory; + } + + public void setFixAdvisory(String fixAdvisory) { + this.fixAdvisory = fixAdvisory; + } + + public HostVulnItem withFixCmd(String fixCmd) { + this.fixCmd = fixCmd; + return this; + } + + /** + * 漏洞修复指令 + * @return fixCmd + */ + public String getFixCmd() { + return fixCmd; + } + + public void setFixCmd(String fixCmd) { + this.fixCmd = fixCmd; + } + + public HostVulnItem withCveList(List cveList) { + this.cveList = cveList; + return this; + } + + public HostVulnItem addCveListItem(HostVulnItemCveList cveListItem) { + if (this.cveList == null) { + this.cveList = new ArrayList<>(); + } + this.cveList.add(cveListItem); + return this; + } + + public HostVulnItem withCveList(Consumer> cveListSetter) { + if (this.cveList == null) { + this.cveList = new ArrayList<>(); + } + cveListSetter.accept(this.cveList); + return this; + } + + /** + * CVE漏洞列表 + * @return cveList + */ + public List getCveList() { + return cveList; + } + + public void setCveList(List cveList) { + this.cveList = cveList; + } + + public HostVulnItem withRefLinkList(List refLinkList) { + this.refLinkList = refLinkList; + return this; + } + + public HostVulnItem addRefLinkListItem(String refLinkListItem) { + if (this.refLinkList == null) { + this.refLinkList = new ArrayList<>(); + } + this.refLinkList.add(refLinkListItem); + return this; + } + + public HostVulnItem withRefLinkList(Consumer> refLinkListSetter) { + if (this.refLinkList == null) { + this.refLinkList = new ArrayList<>(); + } + refLinkListSetter.accept(this.refLinkList); + return this; + } + + /** + * 参考信息链接列表 + * @return refLinkList + */ + public List getRefLinkList() { + return refLinkList; + } + + public void setRefLinkList(List refLinkList) { + this.refLinkList = refLinkList; + } + + public HostVulnItem withComponentList(List componentList) { + this.componentList = componentList; + return this; + } + + public HostVulnItem addComponentListItem(HostVulnItemComponentList componentListItem) { + if (this.componentList == null) { + this.componentList = new ArrayList<>(); + } + this.componentList.add(componentListItem); + return this; + } + + public HostVulnItem withComponentList(Consumer> componentListSetter) { + if (this.componentList == null) { + this.componentList = new ArrayList<>(); + } + componentListSetter.accept(this.componentList); + return this; + } + + /** + * 内容列表 + * @return componentList + */ + public List getComponentList() { + return componentList; + } + + public void setComponentList(List componentList) { + this.componentList = componentList; + } + + public HostVulnItem withVulDetectResult(String vulDetectResult) { + this.vulDetectResult = vulDetectResult; + return this; + } + + /** + * 检查结果 + * @return vulDetectResult + */ + public String getVulDetectResult() { + return vulDetectResult; + } + + public void setVulDetectResult(String vulDetectResult) { + this.vulDetectResult = vulDetectResult; + } + + public HostVulnItem withCvssScore(String cvssScore) { + this.cvssScore = cvssScore; + return this; + } + + /** + * CVSS分数信息 + * @return cvssScore + */ + public String getCvssScore() { + return cvssScore; + } + + public void setCvssScore(String cvssScore) { + this.cvssScore = cvssScore; + } + + public HostVulnItem withCvssVersion(String cvssVersion) { + this.cvssVersion = cvssVersion; + return this; + } + + /** + * CVSS版本信息 + * @return cvssVersion + */ + public String getCvssVersion() { + return cvssVersion; + } + + public void setCvssVersion(String cvssVersion) { + this.cvssVersion = cvssVersion; + } + + public HostVulnItem withCvssVector(String cvssVector) { + this.cvssVector = cvssVector; + return this; + } + + /** + * CVSS向量信息 + * @return cvssVector + */ + public String getCvssVector() { + return cvssVector; + } + + public void setCvssVector(String cvssVector) { + this.cvssVector = cvssVector; + } + + public HostVulnItem withIsIgnore(Boolean isIgnore) { + this.isIgnore = isIgnore; + return this; + } + + /** + * 是否误报 + * @return isIgnore + */ + public Boolean getIsIgnore() { + return isIgnore; + } + + public void setIsIgnore(Boolean isIgnore) { + this.isIgnore = isIgnore; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + HostVulnItem that = (HostVulnItem) obj; + return Objects.equals(this.type, that.type) && Objects.equals(this.port, that.port) + && Objects.equals(this.title, that.title) && Objects.equals(this.saId, that.saId) + && Objects.equals(this.vulnId, that.vulnId) && Objects.equals(this.severity, that.severity) + && Objects.equals(this.topic, that.topic) && Objects.equals(this.description, that.description) + && Objects.equals(this.solution, that.solution) && Objects.equals(this.fixAdvisory, that.fixAdvisory) + && Objects.equals(this.fixCmd, that.fixCmd) && Objects.equals(this.cveList, that.cveList) + && Objects.equals(this.refLinkList, that.refLinkList) + && Objects.equals(this.componentList, that.componentList) + && Objects.equals(this.vulDetectResult, that.vulDetectResult) + && Objects.equals(this.cvssScore, that.cvssScore) && Objects.equals(this.cvssVersion, that.cvssVersion) + && Objects.equals(this.cvssVector, that.cvssVector) && Objects.equals(this.isIgnore, that.isIgnore); + } + + @Override + public int hashCode() { + return Objects.hash(type, + port, + title, + saId, + vulnId, + severity, + topic, + description, + solution, + fixAdvisory, + fixCmd, + cveList, + refLinkList, + componentList, + vulDetectResult, + cvssScore, + cvssVersion, + cvssVector, + isIgnore); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HostVulnItem {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" saId: ").append(toIndentedString(saId)).append("\n"); + sb.append(" vulnId: ").append(toIndentedString(vulnId)).append("\n"); + sb.append(" severity: ").append(toIndentedString(severity)).append("\n"); + sb.append(" topic: ").append(toIndentedString(topic)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" solution: ").append(toIndentedString(solution)).append("\n"); + sb.append(" fixAdvisory: ").append(toIndentedString(fixAdvisory)).append("\n"); + sb.append(" fixCmd: ").append(toIndentedString(fixCmd)).append("\n"); + sb.append(" cveList: ").append(toIndentedString(cveList)).append("\n"); + sb.append(" refLinkList: ").append(toIndentedString(refLinkList)).append("\n"); + sb.append(" componentList: ").append(toIndentedString(componentList)).append("\n"); + sb.append(" vulDetectResult: ").append(toIndentedString(vulDetectResult)).append("\n"); + sb.append(" cvssScore: ").append(toIndentedString(cvssScore)).append("\n"); + sb.append(" cvssVersion: ").append(toIndentedString(cvssVersion)).append("\n"); + sb.append(" cvssVector: ").append(toIndentedString(cvssVector)).append("\n"); + sb.append(" isIgnore: ").append(toIndentedString(isIgnore)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/HostVulnItemComponentList.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/HostVulnItemComponentList.java new file mode 100644 index 0000000000..ba1b7c0fbc --- /dev/null +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/HostVulnItemComponentList.java @@ -0,0 +1,120 @@ +package com.huaweicloud.sdk.codeartsinspector.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * HostVulnItemComponentList + */ +public class HostVulnItemComponentList { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "componentName") + + private String componentName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "componentInstallVersion") + + private String componentInstallVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "componentFixedVersion") + + private String componentFixedVersion; + + public HostVulnItemComponentList withComponentName(String componentName) { + this.componentName = componentName; + return this; + } + + /** + * 内容名称 + * @return componentName + */ + public String getComponentName() { + return componentName; + } + + public void setComponentName(String componentName) { + this.componentName = componentName; + } + + public HostVulnItemComponentList withComponentInstallVersion(String componentInstallVersion) { + this.componentInstallVersion = componentInstallVersion; + return this; + } + + /** + * 安装版本 + * @return componentInstallVersion + */ + public String getComponentInstallVersion() { + return componentInstallVersion; + } + + public void setComponentInstallVersion(String componentInstallVersion) { + this.componentInstallVersion = componentInstallVersion; + } + + public HostVulnItemComponentList withComponentFixedVersion(String componentFixedVersion) { + this.componentFixedVersion = componentFixedVersion; + return this; + } + + /** + * 已经修复版本 + * @return componentFixedVersion + */ + public String getComponentFixedVersion() { + return componentFixedVersion; + } + + public void setComponentFixedVersion(String componentFixedVersion) { + this.componentFixedVersion = componentFixedVersion; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + HostVulnItemComponentList that = (HostVulnItemComponentList) obj; + return Objects.equals(this.componentName, that.componentName) + && Objects.equals(this.componentInstallVersion, that.componentInstallVersion) + && Objects.equals(this.componentFixedVersion, that.componentFixedVersion); + } + + @Override + public int hashCode() { + return Objects.hash(componentName, componentInstallVersion, componentFixedVersion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HostVulnItemComponentList {\n"); + sb.append(" componentName: ").append(toIndentedString(componentName)).append("\n"); + sb.append(" componentInstallVersion: ").append(toIndentedString(componentInstallVersion)).append("\n"); + sb.append(" componentFixedVersion: ").append(toIndentedString(componentFixedVersion)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/HostVulnItemCveList.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/HostVulnItemCveList.java new file mode 100644 index 0000000000..2de5dd221e --- /dev/null +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/HostVulnItemCveList.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.codeartsinspector.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * HostVulnItemCveList + */ +public class HostVulnItemCveList { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "link") + + private String link; + + public HostVulnItemCveList withId(String id) { + this.id = id; + return this; + } + + /** + * CVE漏洞ID + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public HostVulnItemCveList withLink(String link) { + this.link = link; + return this; + } + + /** + * CVE漏洞链接 + * @return link + */ + public String getLink() { + return link; + } + + public void setLink(String link) { + this.link = link; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + HostVulnItemCveList that = (HostVulnItemCveList) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.link, that.link); + } + + @Override + public int hashCode() { + return Objects.hash(id, link); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HostVulnItemCveList {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" link: ").append(toIndentedString(link)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListEnabledControlsRequest.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ListGroupsRequest.java similarity index 60% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListEnabledControlsRequest.java rename to services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ListGroupsRequest.java index a3eb54a86f..f617805824 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListEnabledControlsRequest.java +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ListGroupsRequest.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.rgc.v1.model; +package com.huaweicloud.sdk.codeartsinspector.v3.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -8,52 +8,54 @@ /** * Request Object */ -public class ListEnabledControlsRequest { +public class ListGroupsRequest { @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "limit") + @JsonProperty(value = "offset") - private Integer limit; + private Integer offset; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "marker") + @JsonProperty(value = "limit") - private String marker; + private Integer limit; - public ListEnabledControlsRequest withLimit(Integer limit) { - this.limit = limit; + public ListGroupsRequest withOffset(Integer offset) { + this.offset = offset; return this; } /** - * 分页页面的最大值。 - * minimum: 1 - * maximum: 2000 - * @return limit + * 分页查询,偏移量,表示从此偏移量开始查询 + * minimum: 0 + * maximum: 200 + * @return offset */ - public Integer getLimit() { - return limit; + public Integer getOffset() { + return offset; } - public void setLimit(Integer limit) { - this.limit = limit; + public void setOffset(Integer offset) { + this.offset = offset; } - public ListEnabledControlsRequest withMarker(String marker) { - this.marker = marker; + public ListGroupsRequest withLimit(Integer limit) { + this.limit = limit; return this; } /** - * 页面标记。 - * @return marker + * 分页查询,每页显示的条目数量 + * minimum: 1 + * maximum: 100 + * @return limit */ - public String getMarker() { - return marker; + public Integer getLimit() { + return limit; } - public void setMarker(String marker) { - this.marker = marker; + public void setLimit(Integer limit) { + this.limit = limit; } @Override @@ -64,21 +66,21 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - ListEnabledControlsRequest that = (ListEnabledControlsRequest) obj; - return Objects.equals(this.limit, that.limit) && Objects.equals(this.marker, that.marker); + ListGroupsRequest that = (ListGroupsRequest) obj; + return Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit); } @Override public int hashCode() { - return Objects.hash(limit, marker); + return Objects.hash(offset, limit); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ListEnabledControlsRequest {\n"); + sb.append("class ListGroupsRequest {\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); - sb.append(" marker: ").append(toIndentedString(marker)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ListGroupsResponse.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ListGroupsResponse.java new file mode 100644 index 0000000000..ec847171b2 --- /dev/null +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ListGroupsResponse.java @@ -0,0 +1,117 @@ +package com.huaweicloud.sdk.codeartsinspector.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 ListGroupsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "items") + + private List items = null; + + public ListGroupsResponse withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 群组总数 + * minimum: 0 + * maximum: 1000 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ListGroupsResponse withItems(List items) { + this.items = items; + return this; + } + + public ListGroupsResponse addItemsItem(Group itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + public ListGroupsResponse withItems(Consumer> itemsSetter) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + itemsSetter.accept(this.items); + return this; + } + + /** + * 群组列表 + * @return items + */ + public List getItems() { + return items; + } + + public void setItems(List items) { + this.items = items; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListGroupsResponse that = (ListGroupsResponse) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.items, that.items); + } + + @Override + public int hashCode() { + return Objects.hash(total, items); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListGroupsResponse {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ListHostResultsRequest.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ListHostResultsRequest.java new file mode 100644 index 0000000000..fb9f59c580 --- /dev/null +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ListHostResultsRequest.java @@ -0,0 +1,146 @@ +package com.huaweicloud.sdk.codeartsinspector.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListHostResultsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "host_id") + + private String hostId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "scan_id") + + private String scanId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + public ListHostResultsRequest withHostId(String hostId) { + this.hostId = hostId; + return this; + } + + /** + * 主机ID + * @return hostId + */ + public String getHostId() { + return hostId; + } + + public void setHostId(String hostId) { + this.hostId = hostId; + } + + public ListHostResultsRequest withScanId(String scanId) { + this.scanId = scanId; + return this; + } + + /** + * 扫描ID + * @return scanId + */ + public String getScanId() { + return scanId; + } + + public void setScanId(String scanId) { + this.scanId = scanId; + } + + public ListHostResultsRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 分页查询,偏移量,表示从此偏移量开始查询 + * minimum: 0 + * maximum: 10000 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListHostResultsRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 分页查询,每页显示的条目数量 + * minimum: 1 + * maximum: 100 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListHostResultsRequest that = (ListHostResultsRequest) obj; + return Objects.equals(this.hostId, that.hostId) && Objects.equals(this.scanId, that.scanId) + && Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit); + } + + @Override + public int hashCode() { + return Objects.hash(hostId, scanId, offset, limit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListHostResultsRequest {\n"); + sb.append(" hostId: ").append(toIndentedString(hostId)).append("\n"); + sb.append(" scanId: ").append(toIndentedString(scanId)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ListHostResultsResponse.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ListHostResultsResponse.java new file mode 100644 index 0000000000..a4c395d1ec --- /dev/null +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ListHostResultsResponse.java @@ -0,0 +1,117 @@ +package com.huaweicloud.sdk.codeartsinspector.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 ListHostResultsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "items") + + private List items = null; + + public ListHostResultsResponse withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 主机漏洞总数 + * minimum: 0 + * maximum: 1000 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ListHostResultsResponse withItems(List items) { + this.items = items; + return this; + } + + public ListHostResultsResponse addItemsItem(HostVulnItem itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + public ListHostResultsResponse withItems(Consumer> itemsSetter) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + itemsSetter.accept(this.items); + return this; + } + + /** + * 主机漏洞信息列表 + * @return items + */ + public List getItems() { + return items; + } + + public void setItems(List items) { + this.items = items; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListHostResultsResponse that = (ListHostResultsResponse) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.items, that.items); + } + + @Override + public int hashCode() { + return Objects.hash(total, items); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListHostResultsResponse {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListManagedAccountsRequest.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ListHostsRequest.java similarity index 52% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListManagedAccountsRequest.java rename to services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ListHostsRequest.java index 927915425c..447b0a6a2e 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListManagedAccountsRequest.java +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ListHostsRequest.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.rgc.v1.model; +package com.huaweicloud.sdk.codeartsinspector.v3.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -8,74 +8,76 @@ /** * Request Object */ -public class ListManagedAccountsRequest { +public class ListHostsRequest { @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "control_id") + @JsonProperty(value = "group_id") - private String controlId; + private String groupId; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "limit") + @JsonProperty(value = "offset") - private Integer limit; + private Integer offset; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "marker") + @JsonProperty(value = "limit") - private String marker; + private Integer limit; - public ListManagedAccountsRequest withControlId(String controlId) { - this.controlId = controlId; + public ListHostsRequest withGroupId(String groupId) { + this.groupId = groupId; return this; } /** - * 启用的控制策略信息。 - * @return controlId + * 主机组id + * @return groupId */ - public String getControlId() { - return controlId; + public String getGroupId() { + return groupId; } - public void setControlId(String controlId) { - this.controlId = controlId; + public void setGroupId(String groupId) { + this.groupId = groupId; } - public ListManagedAccountsRequest withLimit(Integer limit) { - this.limit = limit; + public ListHostsRequest withOffset(Integer offset) { + this.offset = offset; return this; } /** - * 分页页面的最大值。 - * minimum: 1 - * maximum: 2000 - * @return limit + * 分页查询,偏移量,表示从此偏移量开始查询 + * minimum: 0 + * maximum: 10000 + * @return offset */ - public Integer getLimit() { - return limit; + public Integer getOffset() { + return offset; } - public void setLimit(Integer limit) { - this.limit = limit; + public void setOffset(Integer offset) { + this.offset = offset; } - public ListManagedAccountsRequest withMarker(String marker) { - this.marker = marker; + public ListHostsRequest withLimit(Integer limit) { + this.limit = limit; return this; } /** - * 页面标记。 - * @return marker + * 分页查询,每页显示的条目数量 + * minimum: 1 + * maximum: 100 + * @return limit */ - public String getMarker() { - return marker; + public Integer getLimit() { + return limit; } - public void setMarker(String marker) { - this.marker = marker; + public void setLimit(Integer limit) { + this.limit = limit; } @Override @@ -86,23 +88,23 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - ListManagedAccountsRequest that = (ListManagedAccountsRequest) obj; - return Objects.equals(this.controlId, that.controlId) && Objects.equals(this.limit, that.limit) - && Objects.equals(this.marker, that.marker); + ListHostsRequest that = (ListHostsRequest) obj; + return Objects.equals(this.groupId, that.groupId) && Objects.equals(this.offset, that.offset) + && Objects.equals(this.limit, that.limit); } @Override public int hashCode() { - return Objects.hash(controlId, limit, marker); + return Objects.hash(groupId, offset, limit); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ListManagedAccountsRequest {\n"); - sb.append(" controlId: ").append(toIndentedString(controlId)).append("\n"); + sb.append("class ListHostsRequest {\n"); + sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); - sb.append(" marker: ").append(toIndentedString(marker)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ListHostsResponse.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ListHostsResponse.java new file mode 100644 index 0000000000..4430b1f3dd --- /dev/null +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ListHostsResponse.java @@ -0,0 +1,117 @@ +package com.huaweicloud.sdk.codeartsinspector.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 ListHostsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "items") + + private List items = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + public ListHostsResponse withItems(List items) { + this.items = items; + return this; + } + + public ListHostsResponse addItemsItem(HGHost itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + public ListHostsResponse withItems(Consumer> itemsSetter) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + itemsSetter.accept(this.items); + return this; + } + + /** + * 主机列表 + * @return items + */ + public List getItems() { + return items; + } + + public void setItems(List items) { + this.items = items; + } + + public ListHostsResponse withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 主机总数 + * minimum: 0 + * maximum: 100 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListHostsResponse that = (ListHostsResponse) obj; + return Objects.equals(this.items, that.items) && Objects.equals(this.total, that.total); + } + + @Override + public int hashCode() { + return Objects.hash(items, total); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListHostsResponse {\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ScanInfoDetail.java b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ScanInfoDetail.java new file mode 100644 index 0000000000..98ba3ee8ed --- /dev/null +++ b/services/codeartsinspector/src/main/java/com/huaweicloud/sdk/codeartsinspector/v3/model/ScanInfoDetail.java @@ -0,0 +1,198 @@ +package com.huaweicloud.sdk.codeartsinspector.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * ScanInfoDetail + */ +public class ScanInfoDetail { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private Long createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enable_weak_passwd") + + private Boolean enableWeakPasswd; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "end_time") + + private Long endTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "progress") + + private Integer progress; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "reason") + + private String reason; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private Integer status; + + public ScanInfoDetail withCreateTime(Long createTime) { + this.createTime = createTime; + return this; + } + + /** + * 扫描任务创建时间 + * minimum: 0 + * maximum: 9223372036854775807 + * @return createTime + */ + public Long getCreateTime() { + return createTime; + } + + public void setCreateTime(Long createTime) { + this.createTime = createTime; + } + + public ScanInfoDetail withEnableWeakPasswd(Boolean enableWeakPasswd) { + this.enableWeakPasswd = enableWeakPasswd; + return this; + } + + /** + * 弱密码检查 + * @return enableWeakPasswd + */ + public Boolean getEnableWeakPasswd() { + return enableWeakPasswd; + } + + public void setEnableWeakPasswd(Boolean enableWeakPasswd) { + this.enableWeakPasswd = enableWeakPasswd; + } + + public ScanInfoDetail withEndTime(Long endTime) { + this.endTime = endTime; + return this; + } + + /** + * 扫描任务结束时间 + * minimum: 0 + * maximum: 9223372036854775807 + * @return endTime + */ + public Long getEndTime() { + return endTime; + } + + public void setEndTime(Long endTime) { + this.endTime = endTime; + } + + public ScanInfoDetail withProgress(Integer progress) { + this.progress = progress; + return this; + } + + /** + * 任务进度 + * minimum: 0 + * maximum: 100 + * @return progress + */ + public Integer getProgress() { + return progress; + } + + public void setProgress(Integer progress) { + this.progress = progress; + } + + public ScanInfoDetail withReason(String reason) { + this.reason = reason; + return this; + } + + /** + * 任务描述 + * @return reason + */ + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public ScanInfoDetail withStatus(Integer status) { + this.status = status; + return this; + } + + /** + * 扫描任务状态: * 0 运行中 * 1 已完成 * 2 手动取消 * 3 等待中 * 4 扫描失败 * 5 等待定时调度 + * minimum: 0 + * maximum: 5 + * @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; + } + ScanInfoDetail that = (ScanInfoDetail) obj; + return Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.enableWeakPasswd, that.enableWeakPasswd) + && Objects.equals(this.endTime, that.endTime) && Objects.equals(this.progress, that.progress) + && Objects.equals(this.reason, that.reason) && Objects.equals(this.status, that.status); + } + + @Override + public int hashCode() { + return Objects.hash(createTime, enableWeakPasswd, endTime, progress, reason, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ScanInfoDetail {\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" enableWeakPasswd: ").append(toIndentedString(enableWeakPasswd)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" progress: ").append(toIndentedString(progress)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).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/codeartspipeline/pom.xml b/services/codeartspipeline/pom.xml index 266fc58aa2..adf0b83080 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-codeartspipeline - 3.1.95 + 3.1.96 Huawei Cloud SDK for CODEARTSPIPELINE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/codecraft/pom.xml b/services/codecraft/pom.xml index 38ad141119..2f944c4a77 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-codecraft - 3.1.95 + 3.1.96 Huawei Cloud SDK for CODECRAFT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/codehub/pom.xml b/services/codehub/pom.xml index fab7c7bac1..cc7fd481e0 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-codehub - 3.1.95 + 3.1.96 Huawei Cloud SDK for CODEHUB 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/config/pom.xml b/services/config/pom.xml index 119b5519db..619ca64cf0 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-config - 3.1.95 + 3.1.96 Huawei Cloud SDK for CONFIG 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigAsyncClient.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigAsyncClient.java index e23638cc12..f02e5ea979 100644 --- a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigAsyncClient.java +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigAsyncClient.java @@ -2221,7 +2221,7 @@ public AsyncInvoker listRegionsAsyncInv /** * 列举资源关系 * - * 指定资源ID,查询该资源与其他资源的关联关系,可以指定关系方向为\"in\" 或者\"out\" + * 指定资源ID,查询该资源与其他资源的关联关系,可以指定关系方向为\"in\" 或者\"out\"。资源关系依赖开启资源记录器。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -2236,7 +2236,7 @@ public CompletableFuture showResourceRelationsAsy /** * 列举资源关系 * - * 指定资源ID,查询该资源与其他资源的关联关系,可以指定关系方向为\"in\" 或者\"out\" + * 指定资源ID,查询该资源与其他资源的关联关系,可以指定关系方向为\"in\" 或者\"out\"。资源关系依赖开启资源记录器。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -2251,7 +2251,7 @@ public AsyncInvoker /** * 列举资源关系详情 * - * 指定资源ID,查询该资源与其他资源的关联关系,可以指定关系方向为“in”或者“out”,需要当帐号有rms:resources:getRelation权限。 + * 指定资源ID,查询该资源与其他资源的关联关系,可以指定关系方向为“in”或者“out”,需要当帐号有rms:resources:getRelation权限。资源关系依赖开启资源记录器。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -2266,7 +2266,7 @@ public CompletableFuture showResourceRelati /** * 列举资源关系详情 * - * 指定资源ID,查询该资源与其他资源的关联关系,可以指定关系方向为“in”或者“out”,需要当帐号有rms:resources:getRelation权限。 + * 指定资源ID,查询该资源与其他资源的关联关系,可以指定关系方向为“in”或者“out”,需要当帐号有rms:resources:getRelation权限。资源关系依赖开启资源记录器。 * * Please refer to HUAWEI cloud API Explorer for details. * diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigClient.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigClient.java index a2fdb578d4..36d817bbc5 100644 --- a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigClient.java +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigClient.java @@ -2202,7 +2202,7 @@ public SyncInvoker listRegionsInvoker(L /** * 列举资源关系 * - * 指定资源ID,查询该资源与其他资源的关联关系,可以指定关系方向为\"in\" 或者\"out\" + * 指定资源ID,查询该资源与其他资源的关联关系,可以指定关系方向为\"in\" 或者\"out\"。资源关系依赖开启资源记录器。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -2216,7 +2216,7 @@ public ShowResourceRelationsResponse showResourceRelations(ShowResourceRelations /** * 列举资源关系 * - * 指定资源ID,查询该资源与其他资源的关联关系,可以指定关系方向为\"in\" 或者\"out\" + * 指定资源ID,查询该资源与其他资源的关联关系,可以指定关系方向为\"in\" 或者\"out\"。资源关系依赖开启资源记录器。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -2231,7 +2231,7 @@ public SyncInvoker /** * 列举资源关系详情 * - * 指定资源ID,查询该资源与其他资源的关联关系,可以指定关系方向为“in”或者“out”,需要当帐号有rms:resources:getRelation权限。 + * 指定资源ID,查询该资源与其他资源的关联关系,可以指定关系方向为“in”或者“out”,需要当帐号有rms:resources:getRelation权限。资源关系依赖开启资源记录器。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -2245,7 +2245,7 @@ public ShowResourceRelationsDetailResponse showResourceRelationsDetail(ShowResou /** * 列举资源关系详情 * - * 指定资源ID,查询该资源与其他资源的关联关系,可以指定关系方向为“in”或者“out”,需要当帐号有rms:resources:getRelation权限。 + * 指定资源ID,查询该资源与其他资源的关联关系,可以指定关系方向为“in”或者“out”,需要当帐号有rms:resources:getRelation权限。资源关系依赖开启资源记录器。 * * Please refer to HUAWEI cloud API Explorer for details. * diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigMeta.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigMeta.java index ee8b9ff6b1..49bfa8f8f1 100644 --- a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigMeta.java +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigMeta.java @@ -2736,6 +2736,12 @@ private static HttpRequestDef f.withMarshaller(CollectTrackedResourcesSummaryRequest::getTags, CollectTrackedResourcesSummaryRequest::setTags)); + builder.withRequestField("resource_deleted", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Boolean.class), + f -> f.withMarshaller(CollectTrackedResourcesSummaryRequest::getResourceDeleted, + CollectTrackedResourcesSummaryRequest::setResourceDeleted)); // response builder.>withResponseField("body", @@ -2852,6 +2858,12 @@ private static HttpRequestDef f.withMarshaller(CountTrackedResourcesRequest::getTags, CountTrackedResourcesRequest::setTags)); + builder.withRequestField("resource_deleted", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Boolean.class), + f -> f.withMarshaller(CountTrackedResourcesRequest::getResourceDeleted, + CountTrackedResourcesRequest::setResourceDeleted)); // response @@ -3067,6 +3079,12 @@ private static HttpRequestDef f.withMarshaller(ListTrackedResourceTagsRequest::getLimit, ListTrackedResourceTagsRequest::setLimit)); + builder.withRequestField("resource_deleted", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Boolean.class), + f -> f.withMarshaller(ListTrackedResourceTagsRequest::getResourceDeleted, + ListTrackedResourceTagsRequest::setResourceDeleted)); // response @@ -3125,6 +3143,12 @@ private static HttpRequestDef f.withMarshaller(ListTrackedResourcesRequest::getTags, ListTrackedResourcesRequest::setTags)); + builder.withRequestField("resource_deleted", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Boolean.class), + f -> f.withMarshaller(ListTrackedResourcesRequest::getResourceDeleted, + ListTrackedResourcesRequest::setResourceDeleted)); // response diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CollectTrackedResourcesSummaryRequest.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CollectTrackedResourcesSummaryRequest.java index 3afc4fa3b9..8f4efe5171 100644 --- a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CollectTrackedResourcesSummaryRequest.java +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CollectTrackedResourcesSummaryRequest.java @@ -43,6 +43,11 @@ public class CollectTrackedResourcesSummaryRequest { private List tags = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_deleted") + + private Boolean resourceDeleted; + public CollectTrackedResourcesSummaryRequest withName(String name) { this.name = name; return this; @@ -225,6 +230,23 @@ public void setTags(List tags) { this.tags = tags; } + public CollectTrackedResourcesSummaryRequest withResourceDeleted(Boolean resourceDeleted) { + this.resourceDeleted = resourceDeleted; + return this; + } + + /** + * 是否查询已删除的资源。默认为false,不查询已删除的资源 + * @return resourceDeleted + */ + public Boolean getResourceDeleted() { + return resourceDeleted; + } + + public void setResourceDeleted(Boolean resourceDeleted) { + this.resourceDeleted = resourceDeleted; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -236,12 +258,13 @@ public boolean equals(java.lang.Object obj) { CollectTrackedResourcesSummaryRequest that = (CollectTrackedResourcesSummaryRequest) obj; return Objects.equals(this.name, that.name) && Objects.equals(this.type, that.type) && Objects.equals(this.regionId, that.regionId) && Objects.equals(this.epId, that.epId) - && Objects.equals(this.projectId, that.projectId) && Objects.equals(this.tags, that.tags); + && Objects.equals(this.projectId, that.projectId) && Objects.equals(this.tags, that.tags) + && Objects.equals(this.resourceDeleted, that.resourceDeleted); } @Override public int hashCode() { - return Objects.hash(name, type, regionId, epId, projectId, tags); + return Objects.hash(name, type, regionId, epId, projectId, tags, resourceDeleted); } @Override @@ -254,6 +277,7 @@ public String toString() { sb.append(" epId: ").append(toIndentedString(epId)).append("\n"); sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" resourceDeleted: ").append(toIndentedString(resourceDeleted)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CountTrackedResourcesRequest.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CountTrackedResourcesRequest.java index 595182de84..33e4ed45be 100644 --- a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CountTrackedResourcesRequest.java +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CountTrackedResourcesRequest.java @@ -48,6 +48,11 @@ public class CountTrackedResourcesRequest { private List tags = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_deleted") + + private Boolean resourceDeleted; + public CountTrackedResourcesRequest withId(String id) { this.id = id; return this; @@ -247,6 +252,23 @@ public void setTags(List tags) { this.tags = tags; } + public CountTrackedResourcesRequest withResourceDeleted(Boolean resourceDeleted) { + this.resourceDeleted = resourceDeleted; + return this; + } + + /** + * 是否查询已删除的资源。默认为false,不查询已删除的资源 + * @return resourceDeleted + */ + public Boolean getResourceDeleted() { + return resourceDeleted; + } + + public void setResourceDeleted(Boolean resourceDeleted) { + this.resourceDeleted = resourceDeleted; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -259,12 +281,12 @@ public boolean equals(java.lang.Object obj) { return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) && Objects.equals(this.type, that.type) && Objects.equals(this.regionId, that.regionId) && Objects.equals(this.epId, that.epId) && Objects.equals(this.projectId, that.projectId) - && Objects.equals(this.tags, that.tags); + && Objects.equals(this.tags, that.tags) && Objects.equals(this.resourceDeleted, that.resourceDeleted); } @Override public int hashCode() { - return Objects.hash(id, name, type, regionId, epId, projectId, tags); + return Objects.hash(id, name, type, regionId, epId, projectId, tags, resourceDeleted); } @Override @@ -278,6 +300,7 @@ public String toString() { sb.append(" epId: ").append(toIndentedString(epId)).append("\n"); sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" resourceDeleted: ").append(toIndentedString(resourceDeleted)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListTrackedResourceTagsRequest.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListTrackedResourceTagsRequest.java index f89d3a49a3..6fc1e0b052 100644 --- a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListTrackedResourceTagsRequest.java +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListTrackedResourceTagsRequest.java @@ -25,6 +25,11 @@ public class ListTrackedResourceTagsRequest { private Integer limit; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_deleted") + + private Boolean resourceDeleted; + public ListTrackedResourceTagsRequest withKey(String key) { this.key = key; return this; @@ -78,6 +83,23 @@ public void setLimit(Integer limit) { this.limit = limit; } + public ListTrackedResourceTagsRequest withResourceDeleted(Boolean resourceDeleted) { + this.resourceDeleted = resourceDeleted; + return this; + } + + /** + * 是否查询已删除的资源。默认为false,不查询已删除的资源 + * @return resourceDeleted + */ + public Boolean getResourceDeleted() { + return resourceDeleted; + } + + public void setResourceDeleted(Boolean resourceDeleted) { + this.resourceDeleted = resourceDeleted; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -88,12 +110,12 @@ public boolean equals(java.lang.Object obj) { } ListTrackedResourceTagsRequest that = (ListTrackedResourceTagsRequest) obj; return Objects.equals(this.key, that.key) && Objects.equals(this.marker, that.marker) - && Objects.equals(this.limit, that.limit); + && Objects.equals(this.limit, that.limit) && Objects.equals(this.resourceDeleted, that.resourceDeleted); } @Override public int hashCode() { - return Objects.hash(key, marker, limit); + return Objects.hash(key, marker, limit, resourceDeleted); } @Override @@ -103,6 +125,7 @@ public String toString() { sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" marker: ").append(toIndentedString(marker)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" resourceDeleted: ").append(toIndentedString(resourceDeleted)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListTrackedResourcesRequest.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListTrackedResourcesRequest.java index 23c9da153b..84a39fd777 100644 --- a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListTrackedResourcesRequest.java +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListTrackedResourcesRequest.java @@ -53,6 +53,11 @@ public class ListTrackedResourcesRequest { private List tags = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_deleted") + + private Boolean resourceDeleted; + public ListTrackedResourcesRequest withRegionId(String regionId) { this.regionId = regionId; return this; @@ -207,6 +212,23 @@ public void setTags(List tags) { this.tags = tags; } + public ListTrackedResourcesRequest withResourceDeleted(Boolean resourceDeleted) { + this.resourceDeleted = resourceDeleted; + return this; + } + + /** + * 是否查询已删除的资源。默认为false,不查询已删除的资源 + * @return resourceDeleted + */ + public Boolean getResourceDeleted() { + return resourceDeleted; + } + + public void setResourceDeleted(Boolean resourceDeleted) { + this.resourceDeleted = resourceDeleted; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -219,12 +241,13 @@ public boolean equals(java.lang.Object obj) { return Objects.equals(this.regionId, that.regionId) && Objects.equals(this.epId, that.epId) && Objects.equals(this.type, that.type) && Objects.equals(this.limit, that.limit) && Objects.equals(this.marker, that.marker) && Objects.equals(this.id, that.id) - && Objects.equals(this.name, that.name) && Objects.equals(this.tags, that.tags); + && Objects.equals(this.name, that.name) && Objects.equals(this.tags, that.tags) + && Objects.equals(this.resourceDeleted, that.resourceDeleted); } @Override public int hashCode() { - return Objects.hash(regionId, epId, type, limit, marker, id, name, tags); + return Objects.hash(regionId, epId, type, limit, marker, id, name, tags, resourceDeleted); } @Override @@ -239,6 +262,7 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" resourceDeleted: ").append(toIndentedString(resourceDeleted)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ResourceEntity.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ResourceEntity.java index b221c010a3..c39a7a871e 100644 --- a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ResourceEntity.java +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ResourceEntity.java @@ -78,6 +78,11 @@ public class ResourceEntity { private String provisioningState; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "state") + + private String state; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "tags") @@ -309,6 +314,23 @@ public void setProvisioningState(String provisioningState) { this.provisioningState = provisioningState; } + public ResourceEntity withState(String state) { + this.state = state; + return this; + } + + /** + * 资源状态,保有中(Normal)/已删除(Deleted) + * @return state + */ + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + public ResourceEntity withTags(Map tags) { this.tags = tags; return this; @@ -390,8 +412,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.projectName, that.projectName) && Objects.equals(this.epId, that.epId) && Objects.equals(this.epName, that.epName) && Objects.equals(this.checksum, that.checksum) && Objects.equals(this.created, that.created) && Objects.equals(this.updated, that.updated) - && Objects.equals(this.provisioningState, that.provisioningState) && Objects.equals(this.tags, that.tags) - && Objects.equals(this.properties, that.properties); + && Objects.equals(this.provisioningState, that.provisioningState) && Objects.equals(this.state, that.state) + && Objects.equals(this.tags, that.tags) && Objects.equals(this.properties, that.properties); } @Override @@ -409,6 +431,7 @@ public int hashCode() { created, updated, provisioningState, + state, tags, properties); } @@ -430,6 +453,7 @@ public String toString() { sb.append(" created: ").append(toIndentedString(created)).append("\n"); sb.append(" updated: ").append(toIndentedString(updated)).append("\n"); sb.append(" provisioningState: ").append(toIndentedString(provisioningState)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" properties: ").append(toIndentedString(properties)).append("\n"); sb.append("}"); diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ShowResourceByIdResponse.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ShowResourceByIdResponse.java index ab5ab862ec..d22fa736fb 100644 --- a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ShowResourceByIdResponse.java +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ShowResourceByIdResponse.java @@ -79,6 +79,11 @@ public class ShowResourceByIdResponse extends SdkResponse { private String provisioningState; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "state") + + private String state; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "tags") @@ -310,6 +315,23 @@ public void setProvisioningState(String provisioningState) { this.provisioningState = provisioningState; } + public ShowResourceByIdResponse withState(String state) { + this.state = state; + return this; + } + + /** + * 资源状态,保有中(Normal)/已删除(Deleted) + * @return state + */ + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + public ShowResourceByIdResponse withTags(Map tags) { this.tags = tags; return this; @@ -391,8 +413,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.projectName, that.projectName) && Objects.equals(this.epId, that.epId) && Objects.equals(this.epName, that.epName) && Objects.equals(this.checksum, that.checksum) && Objects.equals(this.created, that.created) && Objects.equals(this.updated, that.updated) - && Objects.equals(this.provisioningState, that.provisioningState) && Objects.equals(this.tags, that.tags) - && Objects.equals(this.properties, that.properties); + && Objects.equals(this.provisioningState, that.provisioningState) && Objects.equals(this.state, that.state) + && Objects.equals(this.tags, that.tags) && Objects.equals(this.properties, that.properties); } @Override @@ -410,6 +432,7 @@ public int hashCode() { created, updated, provisioningState, + state, tags, properties); } @@ -431,6 +454,7 @@ public String toString() { sb.append(" created: ").append(toIndentedString(created)).append("\n"); sb.append(" updated: ").append(toIndentedString(updated)).append("\n"); sb.append(" provisioningState: ").append(toIndentedString(provisioningState)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" properties: ").append(toIndentedString(properties)).append("\n"); sb.append("}"); diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ShowResourceDetailResponse.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ShowResourceDetailResponse.java index 6545b5fc56..c1d8e7555c 100644 --- a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ShowResourceDetailResponse.java +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ShowResourceDetailResponse.java @@ -79,6 +79,11 @@ public class ShowResourceDetailResponse extends SdkResponse { private String provisioningState; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "state") + + private String state; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "tags") @@ -310,6 +315,23 @@ public void setProvisioningState(String provisioningState) { this.provisioningState = provisioningState; } + public ShowResourceDetailResponse withState(String state) { + this.state = state; + return this; + } + + /** + * 资源状态,保有中(Normal)/已删除(Deleted) + * @return state + */ + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + public ShowResourceDetailResponse withTags(Map tags) { this.tags = tags; return this; @@ -391,8 +413,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.projectName, that.projectName) && Objects.equals(this.epId, that.epId) && Objects.equals(this.epName, that.epName) && Objects.equals(this.checksum, that.checksum) && Objects.equals(this.created, that.created) && Objects.equals(this.updated, that.updated) - && Objects.equals(this.provisioningState, that.provisioningState) && Objects.equals(this.tags, that.tags) - && Objects.equals(this.properties, that.properties); + && Objects.equals(this.provisioningState, that.provisioningState) && Objects.equals(this.state, that.state) + && Objects.equals(this.tags, that.tags) && Objects.equals(this.properties, that.properties); } @Override @@ -410,6 +432,7 @@ public int hashCode() { created, updated, provisioningState, + state, tags, properties); } @@ -431,6 +454,7 @@ public String toString() { sb.append(" created: ").append(toIndentedString(created)).append("\n"); sb.append(" updated: ").append(toIndentedString(updated)).append("\n"); sb.append(" provisioningState: ").append(toIndentedString(provisioningState)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" properties: ").append(toIndentedString(properties)).append("\n"); sb.append("}"); diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ShowTrackedResourceDetailResponse.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ShowTrackedResourceDetailResponse.java index 71d6b272f2..f538ff3d99 100644 --- a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ShowTrackedResourceDetailResponse.java +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ShowTrackedResourceDetailResponse.java @@ -79,6 +79,11 @@ public class ShowTrackedResourceDetailResponse extends SdkResponse { private String provisioningState; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "state") + + private String state; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "tags") @@ -310,6 +315,23 @@ public void setProvisioningState(String provisioningState) { this.provisioningState = provisioningState; } + public ShowTrackedResourceDetailResponse withState(String state) { + this.state = state; + return this; + } + + /** + * 资源状态,保有中(Normal)/已删除(Deleted) + * @return state + */ + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + public ShowTrackedResourceDetailResponse withTags(Map tags) { this.tags = tags; return this; @@ -391,8 +413,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.projectName, that.projectName) && Objects.equals(this.epId, that.epId) && Objects.equals(this.epName, that.epName) && Objects.equals(this.checksum, that.checksum) && Objects.equals(this.created, that.created) && Objects.equals(this.updated, that.updated) - && Objects.equals(this.provisioningState, that.provisioningState) && Objects.equals(this.tags, that.tags) - && Objects.equals(this.properties, that.properties); + && Objects.equals(this.provisioningState, that.provisioningState) && Objects.equals(this.state, that.state) + && Objects.equals(this.tags, that.tags) && Objects.equals(this.properties, that.properties); } @Override @@ -410,6 +432,7 @@ public int hashCode() { created, updated, provisioningState, + state, tags, properties); } @@ -431,6 +454,7 @@ public String toString() { sb.append(" created: ").append(toIndentedString(created)).append("\n"); sb.append(" updated: ").append(toIndentedString(updated)).append("\n"); sb.append(" provisioningState: ").append(toIndentedString(provisioningState)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" properties: ").append(toIndentedString(properties)).append("\n"); sb.append("}"); diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/region/ConfigRegion.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/region/ConfigRegion.java index b774f428c6..63722ea0d8 100644 --- a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/region/ConfigRegion.java +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/region/ConfigRegion.java @@ -14,7 +14,8 @@ public class ConfigRegion { - public static final Region CN_NORTH_4 = new Region("cn-north-4", "https://rms.myhuaweicloud.com"); + public static final Region CN_NORTH_4 = + new Region("cn-north-4", "https://rms.myhuaweicloud.com", "https://rms.myhuaweicloud.cn"); private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("CONFIG"); diff --git a/services/cph/pom.xml b/services/cph/pom.xml index cb88398d92..b06c6fd9bf 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-cph - 3.1.95 + 3.1.96 Huawei Cloud SDK for CPH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/cpts/pom.xml b/services/cpts/pom.xml index 21defe946e..255182b63a 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-cpts - 3.1.95 + 3.1.96 Huawei Cloud SDK for CPTS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/cse/pom.xml b/services/cse/pom.xml index 0ac7e13f6f..3272dd7b8e 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-cse - 3.1.95 + 3.1.96 Huawei Cloud SDK for CSE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/csms/pom.xml b/services/csms/pom.xml index f48c2c6f7f..4ba3e94055 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-csms - 3.1.95 + 3.1.96 Huawei Cloud SDK for CSMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/css/pom.xml b/services/css/pom.xml index 417fbc3c27..d9136084b0 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-css - 3.1.95 + 3.1.96 Huawei Cloud SDK for CSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/cts/pom.xml b/services/cts/pom.xml index ffec80949d..7de2e91f77 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-cts - 3.1.95 + 3.1.96 Huawei Cloud SDK for CTS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/das/pom.xml b/services/das/pom.xml index 83fccc2842..ea1c8a6ec1 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-das - 3.1.95 + 3.1.96 Huawei Cloud SDK for DAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/DasAsyncClient.java b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/DasAsyncClient.java index c7f18a5d69..f7d239afc6 100644 --- a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/DasAsyncClient.java +++ b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/DasAsyncClient.java @@ -25,6 +25,8 @@ import com.huaweicloud.sdk.das.v3.model.DeleteSqlLimitRulesResponse; import com.huaweicloud.sdk.das.v3.model.ExportSlowQueryLogsRequest; import com.huaweicloud.sdk.das.v3.model.ExportSlowQueryLogsResponse; +import com.huaweicloud.sdk.das.v3.model.ExportSlowSqlStatisticsRequest; +import com.huaweicloud.sdk.das.v3.model.ExportSlowSqlStatisticsResponse; import com.huaweicloud.sdk.das.v3.model.ExportSlowSqlTemplatesDetailsRequest; import com.huaweicloud.sdk.das.v3.model.ExportSlowSqlTemplatesDetailsResponse; import com.huaweicloud.sdk.das.v3.model.ExportSqlStatementsRequest; @@ -69,6 +71,8 @@ import com.huaweicloud.sdk.das.v3.model.ShowTuningResponse; import com.huaweicloud.sdk.das.v3.model.UpdateDbUserRequest; import com.huaweicloud.sdk.das.v3.model.UpdateDbUserResponse; +import com.huaweicloud.sdk.das.v3.model.UpdateSqlLimitRulesRequest; +import com.huaweicloud.sdk.das.v3.model.UpdateSqlLimitRulesResponse; import java.util.concurrent.CompletableFuture; @@ -301,14 +305,17 @@ public AsyncInvoker createSqlLimitRulesAsync(C /** * 创建SQL限流规则 * - * 添加SQL限流规则。目前仅支持MySQL数据库。 - * 使用限制如下: + * 添加SQL限流规则。目前仅支持MySQL和PostgreSQL数据库。 + * MySQL使用限制如下: * 1.规则举例详细说明:例如关键字是\"select~a\", 含义为:select以及a为该并发控制所包含的两个关键字,~为关键字间隔符,即若执行SQL命令包含select与a两个关键字视为命中此条并发控制规则。 * 2.当SQL语句匹配多条限流规则时,优先生效最新添加的规则,之前的规则不再生效。 * 3.限流规则关键字有顺序要求,只会按顺序匹配。如:a~and~b 只会匹配 xxx a>1 and b>2,而不会匹配 xxx b>2 and a>1。 * 4.关键字可能大小写敏感,请执行 \"show variables like 'rds_sqlfilter_case_sensitive'或者到实例参数设置页面进行确认。 * 5.部分版本只读实例不允许设置限流规则,如果要设置限流规则,请到主实例上进行添加。 * 6.系统表不限制、不涉及数据查询的不限制、root账号在特定版本下不限制。 + * PostgreSQL使用限制如下: + * 1.无法添加相同QUERY_ID或SQL语句的规则。 + * 2.使用SQL语句添加规则时,需要确保存在数据库表,如:select * from test,需要确保数据库中有test表。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -437,7 +447,7 @@ public AsyncInvoker deleteProcessAs /** * 删除SQL限流规则 * - * 删除SQL限流规则。目前仅支持MySQL数据库 + * 删除SQL限流规则。目前仅支持MySQL和PostgreSQL数据库 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -451,7 +461,7 @@ public CompletableFuture deleteSqlLimitRulesAsync(D /** * 删除SQL限流规则 * - * 删除SQL限流规则。目前仅支持MySQL数据库 + * 删除SQL限流规则。目前仅支持MySQL和PostgreSQL数据库 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -466,7 +476,7 @@ public AsyncInvoker del /** * 导出慢SQL数据 * - * DAS收集慢SQL开关打开后,一次性导出指定时间范围内的慢SQL数据,支持分页滚动获取。该功能仅支持付费实例。 + * DAS收集慢SQL开关打开后,一次性导出指定时间范围内的慢SQL数据,支持分页滚动获取。免费实例仅支持查看最近一小时数据。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -480,7 +490,7 @@ public CompletableFuture exportSlowQueryLogsAsync(E /** * 导出慢SQL数据 * - * DAS收集慢SQL开关打开后,一次性导出指定时间范围内的慢SQL数据,支持分页滚动获取。该功能仅支持付费实例。 + * DAS收集慢SQL开关打开后,一次性导出指定时间范围内的慢SQL数据,支持分页滚动获取。免费实例仅支持查看最近一小时数据。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -492,10 +502,40 @@ public AsyncInvoker exp return new AsyncInvoker<>(request, DasMeta.exportSlowQueryLogs, hcClient); } + /** + * 导出慢SQL统计数据 + * + * 慢SQL开关打开后,导出慢SQL统计数据。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ExportSlowSqlStatisticsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture exportSlowSqlStatisticsAsync( + ExportSlowSqlStatisticsRequest request) { + return hcClient.asyncInvokeHttp(request, DasMeta.exportSlowSqlStatistics); + } + + /** + * 导出慢SQL统计数据 + * + * 慢SQL开关打开后,导出慢SQL统计数据。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ExportSlowSqlStatisticsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker exportSlowSqlStatisticsAsyncInvoker( + ExportSlowSqlStatisticsRequest request) { + return new AsyncInvoker<>(request, DasMeta.exportSlowSqlStatistics, hcClient); + } + /** * 导出慢SQL模板列表。 * - * 慢SQL开关打开后,导出慢SQL模板列表。该功能仅支持付费实例。查询时间间隔最长一天。 + * 慢SQL开关打开后,导出慢SQL模板列表。免费实例仅支持查看最近一小时数据。查询时间间隔最长一天。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -510,7 +550,7 @@ public CompletableFuture exportSlowSqlTem /** * 导出慢SQL模板列表。 * - * 慢SQL开关打开后,导出慢SQL模板列表。该功能仅支持付费实例。查询时间间隔最长一天。 + * 慢SQL开关打开后,导出慢SQL模板列表。免费实例仅支持查看最近一小时数据。查询时间间隔最长一天。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -766,7 +806,7 @@ public AsyncInvoker listSpa /** * 查询SQL限流规则列表 * - * 查询SQL限流规则。目前仅支持MySQL数据库。 + * 查询SQL限流规则。目前仅支持MySQL和PostgreSQL数据库。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -780,7 +820,7 @@ public CompletableFuture listSqlLimitRulesAsync(ListS /** * 查询SQL限流规则列表 * - * 查询SQL限流规则。目前仅支持MySQL数据库。 + * 查询SQL限流规则。目前仅支持MySQL和PostgreSQL数据库。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1093,4 +1133,33 @@ public AsyncInvoker updateDbUserAsync return new AsyncInvoker<>(request, DasMeta.updateDbUser, hcClient); } + /** + * 修改SQL限流规则 + * + * 修改SQL限流规则。目前仅支持PostgreSQL数据库 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateSqlLimitRulesRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateSqlLimitRulesAsync(UpdateSqlLimitRulesRequest request) { + return hcClient.asyncInvokeHttp(request, DasMeta.updateSqlLimitRules); + } + + /** + * 修改SQL限流规则 + * + * 修改SQL限流规则。目前仅支持PostgreSQL数据库 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateSqlLimitRulesRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateSqlLimitRulesAsyncInvoker( + UpdateSqlLimitRulesRequest request) { + return new AsyncInvoker<>(request, DasMeta.updateSqlLimitRules, hcClient); + } + } diff --git a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/DasClient.java b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/DasClient.java index aec7823443..83639a1c0f 100644 --- a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/DasClient.java +++ b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/DasClient.java @@ -25,6 +25,8 @@ import com.huaweicloud.sdk.das.v3.model.DeleteSqlLimitRulesResponse; import com.huaweicloud.sdk.das.v3.model.ExportSlowQueryLogsRequest; import com.huaweicloud.sdk.das.v3.model.ExportSlowQueryLogsResponse; +import com.huaweicloud.sdk.das.v3.model.ExportSlowSqlStatisticsRequest; +import com.huaweicloud.sdk.das.v3.model.ExportSlowSqlStatisticsResponse; import com.huaweicloud.sdk.das.v3.model.ExportSlowSqlTemplatesDetailsRequest; import com.huaweicloud.sdk.das.v3.model.ExportSlowSqlTemplatesDetailsResponse; import com.huaweicloud.sdk.das.v3.model.ExportSqlStatementsRequest; @@ -69,6 +71,8 @@ import com.huaweicloud.sdk.das.v3.model.ShowTuningResponse; import com.huaweicloud.sdk.das.v3.model.UpdateDbUserRequest; import com.huaweicloud.sdk.das.v3.model.UpdateDbUserResponse; +import com.huaweicloud.sdk.das.v3.model.UpdateSqlLimitRulesRequest; +import com.huaweicloud.sdk.das.v3.model.UpdateSqlLimitRulesResponse; public class DasClient { @@ -295,14 +299,17 @@ public SyncInvoker deleteProcessInv /** * 删除SQL限流规则 * - * 删除SQL限流规则。目前仅支持MySQL数据库 + * 删除SQL限流规则。目前仅支持MySQL和PostgreSQL数据库 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -442,7 +452,7 @@ public DeleteSqlLimitRulesResponse deleteSqlLimitRules(DeleteSqlLimitRulesReques /** * 删除SQL限流规则 * - * 删除SQL限流规则。目前仅支持MySQL数据库 + * 删除SQL限流规则。目前仅支持MySQL和PostgreSQL数据库 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -457,7 +467,7 @@ public SyncInvoker dele /** * 导出慢SQL数据 * - * DAS收集慢SQL开关打开后,一次性导出指定时间范围内的慢SQL数据,支持分页滚动获取。该功能仅支持付费实例。 + * DAS收集慢SQL开关打开后,一次性导出指定时间范围内的慢SQL数据,支持分页滚动获取。免费实例仅支持查看最近一小时数据。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -471,7 +481,7 @@ public ExportSlowQueryLogsResponse exportSlowQueryLogs(ExportSlowQueryLogsReques /** * 导出慢SQL数据 * - * DAS收集慢SQL开关打开后,一次性导出指定时间范围内的慢SQL数据,支持分页滚动获取。该功能仅支持付费实例。 + * DAS收集慢SQL开关打开后,一次性导出指定时间范围内的慢SQL数据,支持分页滚动获取。免费实例仅支持查看最近一小时数据。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -483,10 +493,39 @@ public SyncInvoker expo return new SyncInvoker<>(request, DasMeta.exportSlowQueryLogs, hcClient); } + /** + * 导出慢SQL统计数据 + * + * 慢SQL开关打开后,导出慢SQL统计数据。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ExportSlowSqlStatisticsRequest 请求对象 + * @return ExportSlowSqlStatisticsResponse + */ + public ExportSlowSqlStatisticsResponse exportSlowSqlStatistics(ExportSlowSqlStatisticsRequest request) { + return hcClient.syncInvokeHttp(request, DasMeta.exportSlowSqlStatistics); + } + + /** + * 导出慢SQL统计数据 + * + * 慢SQL开关打开后,导出慢SQL统计数据。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ExportSlowSqlStatisticsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker exportSlowSqlStatisticsInvoker( + ExportSlowSqlStatisticsRequest request) { + return new SyncInvoker<>(request, DasMeta.exportSlowSqlStatistics, hcClient); + } + /** * 导出慢SQL模板列表。 * - * 慢SQL开关打开后,导出慢SQL模板列表。该功能仅支持付费实例。查询时间间隔最长一天。 + * 慢SQL开关打开后,导出慢SQL模板列表。免费实例仅支持查看最近一小时数据。查询时间间隔最长一天。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -501,7 +540,7 @@ public ExportSlowSqlTemplatesDetailsResponse exportSlowSqlTemplatesDetails( /** * 导出慢SQL模板列表。 * - * 慢SQL开关打开后,导出慢SQL模板列表。该功能仅支持付费实例。查询时间间隔最长一天。 + * 慢SQL开关打开后,导出慢SQL模板列表。免费实例仅支持查看最近一小时数据。查询时间间隔最长一天。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -755,7 +794,7 @@ public SyncInvoker listSpac /** * 查询SQL限流规则列表 * - * 查询SQL限流规则。目前仅支持MySQL数据库。 + * 查询SQL限流规则。目前仅支持MySQL和PostgreSQL数据库。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -769,7 +808,7 @@ public ListSqlLimitRulesResponse listSqlLimitRules(ListSqlLimitRulesRequest requ /** * 查询SQL限流规则列表 * - * 查询SQL限流规则。目前仅支持MySQL数据库。 + * 查询SQL限流规则。目前仅支持MySQL和PostgreSQL数据库。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1079,4 +1118,33 @@ public SyncInvoker updateDbUserInvoke return new SyncInvoker<>(request, DasMeta.updateDbUser, hcClient); } + /** + * 修改SQL限流规则 + * + * 修改SQL限流规则。目前仅支持PostgreSQL数据库 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateSqlLimitRulesRequest 请求对象 + * @return UpdateSqlLimitRulesResponse + */ + public UpdateSqlLimitRulesResponse updateSqlLimitRules(UpdateSqlLimitRulesRequest request) { + return hcClient.syncInvokeHttp(request, DasMeta.updateSqlLimitRules); + } + + /** + * 修改SQL限流规则 + * + * 修改SQL限流规则。目前仅支持PostgreSQL数据库 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateSqlLimitRulesRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateSqlLimitRulesInvoker( + UpdateSqlLimitRulesRequest request) { + return new SyncInvoker<>(request, DasMeta.updateSqlLimitRules, hcClient); + } + } diff --git a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/DasMeta.java b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/DasMeta.java index 917f7a2008..6807eb0c9f 100644 --- a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/DasMeta.java +++ b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/DasMeta.java @@ -36,6 +36,9 @@ import com.huaweicloud.sdk.das.v3.model.DeleteSqlLimitRulesResponse; import com.huaweicloud.sdk.das.v3.model.ExportSlowQueryLogsRequest; import com.huaweicloud.sdk.das.v3.model.ExportSlowQueryLogsResponse; +import com.huaweicloud.sdk.das.v3.model.ExportSlowSqlStatisticsRequest; +import com.huaweicloud.sdk.das.v3.model.ExportSlowSqlStatisticsRequestBody; +import com.huaweicloud.sdk.das.v3.model.ExportSlowSqlStatisticsResponse; import com.huaweicloud.sdk.das.v3.model.ExportSlowSqlTemplatesDetailsRequest; import com.huaweicloud.sdk.das.v3.model.ExportSlowSqlTemplatesDetailsResponse; import com.huaweicloud.sdk.das.v3.model.ExportSqlStatementsRequest; @@ -83,6 +86,9 @@ import com.huaweicloud.sdk.das.v3.model.UpdateDbUserRequest; import com.huaweicloud.sdk.das.v3.model.UpdateDbUserRequestBody; import com.huaweicloud.sdk.das.v3.model.UpdateDbUserResponse; +import com.huaweicloud.sdk.das.v3.model.UpdateSqlLimitRulesBody; +import com.huaweicloud.sdk.das.v3.model.UpdateSqlLimitRulesRequest; +import com.huaweicloud.sdk.das.v3.model.UpdateSqlLimitRulesResponse; @SuppressWarnings("unchecked") public class DasMeta { @@ -513,6 +519,41 @@ private static HttpRequestDef exportSlowSqlStatistics = + genForExportSlowSqlStatistics(); + + private static HttpRequestDef genForExportSlowSqlStatistics() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, ExportSlowSqlStatisticsRequest.class, ExportSlowSqlStatisticsResponse.class) + .withName("ExportSlowSqlStatistics") + .withUri("/v3/{project_id}/instances/{instance_id}/slow-sql-statistics") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ExportSlowSqlStatisticsRequest::getInstanceId, + ExportSlowSqlStatisticsRequest::setInstanceId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ExportSlowSqlStatisticsRequest.XLanguageEnum.class), + f -> f.withMarshaller(ExportSlowSqlStatisticsRequest::getXLanguage, + ExportSlowSqlStatisticsRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ExportSlowSqlStatisticsRequestBody.class), + f -> f.withMarshaller(ExportSlowSqlStatisticsRequest::getBody, ExportSlowSqlStatisticsRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef exportSlowSqlTemplatesDetails = genForExportSlowSqlTemplatesDetails(); @@ -1052,6 +1093,12 @@ private static HttpRequestDef f.withMarshaller(ListSqlLimitRulesRequest::getDatastoreType, ListSqlLimitRulesRequest::setDatastoreType)); + builder.withRequestField("database_name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListSqlLimitRulesRequest::getDatabaseName, + ListSqlLimitRulesRequest::setDatabaseName)); builder.withRequestField("X-Language", LocationType.Header, FieldExistence.NULL_IGNORE, @@ -1408,4 +1455,38 @@ private static HttpRequestDef genForU return builder.build(); } + public static final HttpRequestDef updateSqlLimitRules = + genForUpdateSqlLimitRules(); + + private static HttpRequestDef genForUpdateSqlLimitRules() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.PUT, UpdateSqlLimitRulesRequest.class, UpdateSqlLimitRulesResponse.class) + .withName("UpdateSqlLimitRules") + .withUri("/v3/{project_id}/instances/{instance_id}/sql-limit/rules") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateSqlLimitRulesRequest::getInstanceId, + UpdateSqlLimitRulesRequest::setInstanceId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(UpdateSqlLimitRulesRequest.XLanguageEnum.class), + f -> f.withMarshaller(UpdateSqlLimitRulesRequest::getXLanguage, UpdateSqlLimitRulesRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateSqlLimitRulesBody.class), + f -> f.withMarshaller(UpdateSqlLimitRulesRequest::getBody, UpdateSqlLimitRulesRequest::setBody)); + + // response + + return builder.build(); + } + } diff --git a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ChangeSqlLimitSwitchStatusBody.java b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ChangeSqlLimitSwitchStatusBody.java index 5867be8727..1b66497733 100644 --- a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ChangeSqlLimitSwitchStatusBody.java +++ b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ChangeSqlLimitSwitchStatusBody.java @@ -100,11 +100,17 @@ public static final class DatastoreTypeEnum { */ public static final DatastoreTypeEnum MYSQL = new DatastoreTypeEnum("MySQL"); + /** + * Enum POSTGRESQL for value: "PostgreSQL" + */ + public static final DatastoreTypeEnum POSTGRESQL = new DatastoreTypeEnum("PostgreSQL"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { Map map = new HashMap<>(); map.put("MySQL", MYSQL); + map.put("PostgreSQL", POSTGRESQL); return Collections.unmodifiableMap(map); } diff --git a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/CreateSqlLimitRuleOption.java b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/CreateSqlLimitRuleOption.java index 7901264e3c..422dfd7d4d 100644 --- a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/CreateSqlLimitRuleOption.java +++ b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/CreateSqlLimitRuleOption.java @@ -35,6 +35,16 @@ public static final class SqlTypeEnum { */ public static final SqlTypeEnum DELETE = new SqlTypeEnum("DELETE"); + /** + * Enum QUERY_ID for value: "QUERY_ID" + */ + public static final SqlTypeEnum QUERY_ID = new SqlTypeEnum("QUERY_ID"); + + /** + * Enum QUERY_STR for value: "QUERY_STR" + */ + public static final SqlTypeEnum QUERY_STR = new SqlTypeEnum("QUERY_STR"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { @@ -42,6 +52,8 @@ private static Map createStaticFields() { map.put("SELECT", SELECT); map.put("UPDATE", UPDATE); map.put("DELETE", DELETE); + map.put("QUERY_ID", QUERY_ID); + map.put("QUERY_STR", QUERY_STR); return Collections.unmodifiableMap(map); } @@ -101,6 +113,11 @@ public int hashCode() { private Integer maxConcurrency; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "max_waiting") + + private Integer maxWaiting; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "pattern") @@ -140,6 +157,23 @@ public void setMaxConcurrency(Integer maxConcurrency) { this.maxConcurrency = maxConcurrency; } + public CreateSqlLimitRuleOption withMaxWaiting(Integer maxWaiting) { + this.maxWaiting = maxWaiting; + return this; + } + + /** + * 最大等待时间 + * @return maxWaiting + */ + public Integer getMaxWaiting() { + return maxWaiting; + } + + public void setMaxWaiting(Integer maxWaiting) { + this.maxWaiting = maxWaiting; + } + public CreateSqlLimitRuleOption withPattern(String pattern) { this.pattern = pattern; return this; @@ -167,12 +201,12 @@ public boolean equals(java.lang.Object obj) { } CreateSqlLimitRuleOption that = (CreateSqlLimitRuleOption) obj; return Objects.equals(this.sqlType, that.sqlType) && Objects.equals(this.maxConcurrency, that.maxConcurrency) - && Objects.equals(this.pattern, that.pattern); + && Objects.equals(this.maxWaiting, that.maxWaiting) && Objects.equals(this.pattern, that.pattern); } @Override public int hashCode() { - return Objects.hash(sqlType, maxConcurrency, pattern); + return Objects.hash(sqlType, maxConcurrency, maxWaiting, pattern); } @Override @@ -181,6 +215,7 @@ public String toString() { sb.append("class CreateSqlLimitRuleOption {\n"); sb.append(" sqlType: ").append(toIndentedString(sqlType)).append("\n"); sb.append(" maxConcurrency: ").append(toIndentedString(maxConcurrency)).append("\n"); + sb.append(" maxWaiting: ").append(toIndentedString(maxWaiting)).append("\n"); sb.append(" pattern: ").append(toIndentedString(pattern)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/CreateSqlLimitRulesBody.java b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/CreateSqlLimitRulesBody.java index fd5ef0fc04..6070c6909a 100644 --- a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/CreateSqlLimitRulesBody.java +++ b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/CreateSqlLimitRulesBody.java @@ -28,11 +28,17 @@ public static final class DatastoreTypeEnum { */ public static final DatastoreTypeEnum MYSQL = new DatastoreTypeEnum("MySQL"); + /** + * Enum POSTGRESQL for value: "PostgreSQL" + */ + public static final DatastoreTypeEnum POSTGRESQL = new DatastoreTypeEnum("PostgreSQL"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { Map map = new HashMap<>(); map.put("MySQL", MYSQL); + map.put("PostgreSQL", POSTGRESQL); return Collections.unmodifiableMap(map); } @@ -92,6 +98,11 @@ public int hashCode() { private List sqlLimitRules = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "database_name") + + private String databaseName; + public CreateSqlLimitRulesBody withDatastoreType(DatastoreTypeEnum datastoreType) { this.datastoreType = datastoreType; return this; @@ -142,6 +153,23 @@ public void setSqlLimitRules(List sqlLimitRules) { this.sqlLimitRules = sqlLimitRules; } + public CreateSqlLimitRulesBody withDatabaseName(String databaseName) { + this.databaseName = databaseName; + return this; + } + + /** + * 数据库名(PostgreSQL必填) + * @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) { @@ -152,12 +180,13 @@ public boolean equals(java.lang.Object obj) { } CreateSqlLimitRulesBody that = (CreateSqlLimitRulesBody) obj; return Objects.equals(this.datastoreType, that.datastoreType) - && Objects.equals(this.sqlLimitRules, that.sqlLimitRules); + && Objects.equals(this.sqlLimitRules, that.sqlLimitRules) + && Objects.equals(this.databaseName, that.databaseName); } @Override public int hashCode() { - return Objects.hash(datastoreType, sqlLimitRules); + return Objects.hash(datastoreType, sqlLimitRules, databaseName); } @Override @@ -166,6 +195,7 @@ public String toString() { sb.append("class CreateSqlLimitRulesBody {\n"); sb.append(" datastoreType: ").append(toIndentedString(datastoreType)).append("\n"); sb.append(" sqlLimitRules: ").append(toIndentedString(sqlLimitRules)).append("\n"); + sb.append(" databaseName: ").append(toIndentedString(databaseName)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/DeleteSqlLimitRulesBody.java b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/DeleteSqlLimitRulesBody.java index 6dde0dce77..5ce155de77 100644 --- a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/DeleteSqlLimitRulesBody.java +++ b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/DeleteSqlLimitRulesBody.java @@ -28,11 +28,17 @@ public static final class DatastoreTypeEnum { */ public static final DatastoreTypeEnum MYSQL = new DatastoreTypeEnum("MySQL"); + /** + * Enum POSTGRESQL for value: "PostgreSQL" + */ + public static final DatastoreTypeEnum POSTGRESQL = new DatastoreTypeEnum("PostgreSQL"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { Map map = new HashMap<>(); map.put("MySQL", MYSQL); + map.put("PostgreSQL", POSTGRESQL); return Collections.unmodifiableMap(map); } @@ -92,6 +98,11 @@ public int hashCode() { private List sqlLimitRuleIds = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "database_name") + + private String databaseName; + public DeleteSqlLimitRulesBody withDatastoreType(DatastoreTypeEnum datastoreType) { this.datastoreType = datastoreType; return this; @@ -142,6 +153,23 @@ public void setSqlLimitRuleIds(List sqlLimitRuleIds) { this.sqlLimitRuleIds = sqlLimitRuleIds; } + public DeleteSqlLimitRulesBody withDatabaseName(String databaseName) { + this.databaseName = databaseName; + return this; + } + + /** + * 数据库名(PostgreSQL必填) + * @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) { @@ -152,12 +180,13 @@ public boolean equals(java.lang.Object obj) { } DeleteSqlLimitRulesBody that = (DeleteSqlLimitRulesBody) obj; return Objects.equals(this.datastoreType, that.datastoreType) - && Objects.equals(this.sqlLimitRuleIds, that.sqlLimitRuleIds); + && Objects.equals(this.sqlLimitRuleIds, that.sqlLimitRuleIds) + && Objects.equals(this.databaseName, that.databaseName); } @Override public int hashCode() { - return Objects.hash(datastoreType, sqlLimitRuleIds); + return Objects.hash(datastoreType, sqlLimitRuleIds, databaseName); } @Override @@ -166,6 +195,7 @@ public String toString() { sb.append("class DeleteSqlLimitRulesBody {\n"); sb.append(" datastoreType: ").append(toIndentedString(datastoreType)).append("\n"); sb.append(" sqlLimitRuleIds: ").append(toIndentedString(sqlLimitRuleIds)).append("\n"); + sb.append(" databaseName: ").append(toIndentedString(databaseName)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ExportSlowSqlStatisticsRequest.java b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ExportSlowSqlStatisticsRequest.java new file mode 100644 index 0000000000..21937ec9e7 --- /dev/null +++ b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ExportSlowSqlStatisticsRequest.java @@ -0,0 +1,206 @@ +package com.huaweicloud.sdk.das.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 ExportSlowSqlStatisticsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + /** + * 请求语言类型。 + */ + 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 = "body") + + private ExportSlowSqlStatisticsRequestBody body; + + public ExportSlowSqlStatisticsRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ExportSlowSqlStatisticsRequest 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 ExportSlowSqlStatisticsRequest withBody(ExportSlowSqlStatisticsRequestBody body) { + this.body = body; + return this; + } + + public ExportSlowSqlStatisticsRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new ExportSlowSqlStatisticsRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ExportSlowSqlStatisticsRequestBody getBody() { + return body; + } + + public void setBody(ExportSlowSqlStatisticsRequestBody 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; + } + ExportSlowSqlStatisticsRequest that = (ExportSlowSqlStatisticsRequest) 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 ExportSlowSqlStatisticsRequest {\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/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ExportSlowSqlStatisticsRequestBody.java b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ExportSlowSqlStatisticsRequestBody.java new file mode 100644 index 0000000000..3aafedfcf7 --- /dev/null +++ b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ExportSlowSqlStatisticsRequestBody.java @@ -0,0 +1,399 @@ +package com.huaweicloud.sdk.das.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; + +/** + * ExportSlowSqlStatisticsRequestBody + */ +public class ExportSlowSqlStatisticsRequestBody { + + /** + * 数据库类型。慢SQL统计支持的类型:DDS-Community。 + */ + public static final class DatastoreTypeEnum { + + /** + * Enum DDS_COMMUNITY for value: "DDS-Community" + */ + public static final DatastoreTypeEnum DDS_COMMUNITY = new DatastoreTypeEnum("DDS-Community"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("DDS-Community", DDS_COMMUNITY); + return Collections.unmodifiableMap(map); + } + + private String value; + + DatastoreTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static DatastoreTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new DatastoreTypeEnum(value)); + } + + public static DatastoreTypeEnum 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 DatastoreTypeEnum) { + return this.value.equals(((DatastoreTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "datastore_type") + + private DatastoreTypeEnum datastoreType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "start_at") + + private Long startAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "end_at") + + private Long endAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "node_ids") + + private List nodeIds = null; + + /** + * 统计字段。支持统计的字段:node_id、sql_type、db_name、collection、user、client。默认使用node_id统计。 + */ + public static final class StatisticsFieldEnum { + + /** + * Enum NODE_ID for value: "node_id" + */ + public static final StatisticsFieldEnum NODE_ID = new StatisticsFieldEnum("node_id"); + + /** + * Enum SQL_TYPE for value: "sql_type" + */ + public static final StatisticsFieldEnum SQL_TYPE = new StatisticsFieldEnum("sql_type"); + + /** + * Enum DB_NAME for value: "db_name" + */ + public static final StatisticsFieldEnum DB_NAME = new StatisticsFieldEnum("db_name"); + + /** + * Enum COLLECTION for value: "collection" + */ + public static final StatisticsFieldEnum COLLECTION = new StatisticsFieldEnum("collection"); + + /** + * Enum USER for value: "user" + */ + public static final StatisticsFieldEnum USER = new StatisticsFieldEnum("user"); + + /** + * Enum CLIENT for value: "client" + */ + public static final StatisticsFieldEnum CLIENT = new StatisticsFieldEnum("client"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("node_id", NODE_ID); + map.put("sql_type", SQL_TYPE); + map.put("db_name", DB_NAME); + map.put("collection", COLLECTION); + map.put("user", USER); + map.put("client", CLIENT); + return Collections.unmodifiableMap(map); + } + + private String value; + + StatisticsFieldEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StatisticsFieldEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new StatisticsFieldEnum(value)); + } + + public static StatisticsFieldEnum 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 StatisticsFieldEnum) { + return this.value.equals(((StatisticsFieldEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "statistics_field") + + private StatisticsFieldEnum statisticsField; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + public ExportSlowSqlStatisticsRequestBody withDatastoreType(DatastoreTypeEnum datastoreType) { + this.datastoreType = datastoreType; + return this; + } + + /** + * 数据库类型。慢SQL统计支持的类型:DDS-Community。 + * @return datastoreType + */ + public DatastoreTypeEnum getDatastoreType() { + return datastoreType; + } + + public void setDatastoreType(DatastoreTypeEnum datastoreType) { + this.datastoreType = datastoreType; + } + + public ExportSlowSqlStatisticsRequestBody withStartAt(Long startAt) { + this.startAt = startAt; + return this; + } + + /** + * 开始时间(Unix timestamp),单位:毫秒。 + * @return startAt + */ + public Long getStartAt() { + return startAt; + } + + public void setStartAt(Long startAt) { + this.startAt = startAt; + } + + public ExportSlowSqlStatisticsRequestBody withEndAt(Long endAt) { + this.endAt = endAt; + return this; + } + + /** + * 结束时间(Unix timestamp),单位:毫秒。 + * @return endAt + */ + public Long getEndAt() { + return endAt; + } + + public void setEndAt(Long endAt) { + this.endAt = endAt; + } + + public ExportSlowSqlStatisticsRequestBody withNodeIds(List nodeIds) { + this.nodeIds = nodeIds; + return this; + } + + public ExportSlowSqlStatisticsRequestBody addNodeIdsItem(String nodeIdsItem) { + if (this.nodeIds == null) { + this.nodeIds = new ArrayList<>(); + } + this.nodeIds.add(nodeIdsItem); + return this; + } + + public ExportSlowSqlStatisticsRequestBody withNodeIds(Consumer> nodeIdsSetter) { + if (this.nodeIds == null) { + this.nodeIds = new ArrayList<>(); + } + nodeIdsSetter.accept(this.nodeIds); + return this; + } + + /** + * 节点ID列表。 + * @return nodeIds + */ + public List getNodeIds() { + return nodeIds; + } + + public void setNodeIds(List nodeIds) { + this.nodeIds = nodeIds; + } + + public ExportSlowSqlStatisticsRequestBody withStatisticsField(StatisticsFieldEnum statisticsField) { + this.statisticsField = statisticsField; + return this; + } + + /** + * 统计字段。支持统计的字段:node_id、sql_type、db_name、collection、user、client。默认使用node_id统计。 + * @return statisticsField + */ + public StatisticsFieldEnum getStatisticsField() { + return statisticsField; + } + + public void setStatisticsField(StatisticsFieldEnum statisticsField) { + this.statisticsField = statisticsField; + } + + public ExportSlowSqlStatisticsRequestBody withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + * minimum: 0 + * maximum: 200 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ExportSlowSqlStatisticsRequestBody withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 每页记录数,默认为20,最大取值100。 + * minimum: 1 + * maximum: 100 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ExportSlowSqlStatisticsRequestBody that = (ExportSlowSqlStatisticsRequestBody) obj; + return Objects.equals(this.datastoreType, that.datastoreType) && Objects.equals(this.startAt, that.startAt) + && Objects.equals(this.endAt, that.endAt) && Objects.equals(this.nodeIds, that.nodeIds) + && Objects.equals(this.statisticsField, that.statisticsField) && Objects.equals(this.offset, that.offset) + && Objects.equals(this.limit, that.limit); + } + + @Override + public int hashCode() { + return Objects.hash(datastoreType, startAt, endAt, nodeIds, statisticsField, offset, limit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExportSlowSqlStatisticsRequestBody {\n"); + sb.append(" datastoreType: ").append(toIndentedString(datastoreType)).append("\n"); + sb.append(" startAt: ").append(toIndentedString(startAt)).append("\n"); + sb.append(" endAt: ").append(toIndentedString(endAt)).append("\n"); + sb.append(" nodeIds: ").append(toIndentedString(nodeIds)).append("\n"); + sb.append(" statisticsField: ").append(toIndentedString(statisticsField)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ExportSlowSqlStatisticsResponse.java b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ExportSlowSqlStatisticsResponse.java new file mode 100644 index 0000000000..b18c3738e7 --- /dev/null +++ b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ExportSlowSqlStatisticsResponse.java @@ -0,0 +1,116 @@ +package com.huaweicloud.sdk.das.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 ExportSlowSqlStatisticsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "statistics_list") + + private List statisticsList = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_count") + + private Integer totalCount; + + public ExportSlowSqlStatisticsResponse withStatisticsList(List statisticsList) { + this.statisticsList = statisticsList; + return this; + } + + public ExportSlowSqlStatisticsResponse addStatisticsListItem(SlowSqlStatistics statisticsListItem) { + if (this.statisticsList == null) { + this.statisticsList = new ArrayList<>(); + } + this.statisticsList.add(statisticsListItem); + return this; + } + + public ExportSlowSqlStatisticsResponse withStatisticsList(Consumer> statisticsListSetter) { + if (this.statisticsList == null) { + this.statisticsList = new ArrayList<>(); + } + statisticsListSetter.accept(this.statisticsList); + return this; + } + + /** + * 慢SQL统计列表。 + * @return statisticsList + */ + public List getStatisticsList() { + return statisticsList; + } + + public void setStatisticsList(List statisticsList) { + this.statisticsList = statisticsList; + } + + public ExportSlowSqlStatisticsResponse withTotalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * 总数。 + * @return totalCount + */ + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ExportSlowSqlStatisticsResponse that = (ExportSlowSqlStatisticsResponse) obj; + return Objects.equals(this.statisticsList, that.statisticsList) + && Objects.equals(this.totalCount, that.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(statisticsList, totalCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExportSlowSqlStatisticsResponse {\n"); + sb.append(" statisticsList: ").append(toIndentedString(statisticsList)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ListSqlLimitRulesRequest.java b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ListSqlLimitRulesRequest.java index 2893654f27..ae959ec9a7 100644 --- a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ListSqlLimitRulesRequest.java +++ b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ListSqlLimitRulesRequest.java @@ -40,11 +40,17 @@ public static final class DatastoreTypeEnum { */ public static final DatastoreTypeEnum MYSQL = new DatastoreTypeEnum("MySQL"); + /** + * Enum POSTGRESQL for value: "PostgreSQL" + */ + public static final DatastoreTypeEnum POSTGRESQL = new DatastoreTypeEnum("PostgreSQL"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { Map map = new HashMap<>(); map.put("MySQL", MYSQL); + map.put("PostgreSQL", POSTGRESQL); return Collections.unmodifiableMap(map); } @@ -99,6 +105,11 @@ public int hashCode() { private DatastoreTypeEnum datastoreType; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "database_name") + + private String databaseName; + /** * 语言 */ @@ -242,6 +253,23 @@ public void setDatastoreType(DatastoreTypeEnum datastoreType) { this.datastoreType = datastoreType; } + public ListSqlLimitRulesRequest withDatabaseName(String databaseName) { + this.databaseName = databaseName; + return this; + } + + /** + * 数据库名(PostgreSQL必填) + * @return databaseName + */ + public String getDatabaseName() { + return databaseName; + } + + public void setDatabaseName(String databaseName) { + this.databaseName = databaseName; + } + public ListSqlLimitRulesRequest withXLanguage(XLanguageEnum xLanguage) { this.xLanguage = xLanguage; return this; @@ -272,12 +300,12 @@ public boolean equals(java.lang.Object obj) { ListSqlLimitRulesRequest that = (ListSqlLimitRulesRequest) obj; return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit) && Objects.equals(this.datastoreType, that.datastoreType) - && Objects.equals(this.xLanguage, that.xLanguage); + && Objects.equals(this.databaseName, that.databaseName) && Objects.equals(this.xLanguage, that.xLanguage); } @Override public int hashCode() { - return Objects.hash(instanceId, offset, limit, datastoreType, xLanguage); + return Objects.hash(instanceId, offset, limit, datastoreType, databaseName, xLanguage); } @Override @@ -288,6 +316,7 @@ public String toString() { sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); sb.append(" datastoreType: ").append(toIndentedString(datastoreType)).append("\n"); + sb.append(" databaseName: ").append(toIndentedString(databaseName)).append("\n"); sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/Quotas.java b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/Quotas.java deleted file mode 100644 index 1938dcef38..0000000000 --- a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/Quotas.java +++ /dev/null @@ -1,91 +0,0 @@ -package com.huaweicloud.sdk.das.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; - -/** - * Quotas - */ -public class Quotas { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "resources") - - private List resources = null; - - public Quotas withResources(List resources) { - this.resources = resources; - return this; - } - - public Quotas addResourcesItem(Resource resourcesItem) { - if (this.resources == null) { - this.resources = new ArrayList<>(); - } - this.resources.add(resourcesItem); - return this; - } - - public Quotas withResources(Consumer> resourcesSetter) { - if (this.resources == null) { - this.resources = new ArrayList<>(); - } - resourcesSetter.accept(this.resources); - return this; - } - - /** - * 资源列表对。 - * @return resources - */ - public List getResources() { - return resources; - } - - public void setResources(List resources) { - this.resources = resources; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - Quotas that = (Quotas) obj; - return Objects.equals(this.resources, that.resources); - } - - @Override - public int hashCode() { - return Objects.hash(resources); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Quotas {\n"); - sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/Resource.java b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/Resource.java deleted file mode 100644 index cae0fece3e..0000000000 --- a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/Resource.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.huaweicloud.sdk.das.v3.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * Resource - */ -public class Resource { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "type") - - private String type; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "used") - - private Long used; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "quota") - - private Long quota; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "min") - - private Long min; - - public Resource withType(String type) { - this.type = type; - return this; - } - - /** - * 根据type过滤查询指定类型的配额。 - * @return type - */ - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public Resource withUsed(Long used) { - this.used = used; - return this; - } - - /** - * 已创建的资源个数。 - * @return used - */ - public Long getUsed() { - return used; - } - - public void setUsed(Long used) { - this.used = used; - } - - public Resource withQuota(Long quota) { - this.quota = quota; - return this; - } - - /** - * 资源的最大配额数。 - * @return quota - */ - public Long getQuota() { - return quota; - } - - public void setQuota(Long quota) { - this.quota = quota; - } - - public Resource withMin(Long min) { - this.min = min; - return this; - } - - /** - * 允许修改的配额最小值。 - * @return min - */ - public Long getMin() { - return min; - } - - public void setMin(Long min) { - this.min = min; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - Resource that = (Resource) obj; - return Objects.equals(this.type, that.type) && Objects.equals(this.used, that.used) - && Objects.equals(this.quota, that.quota) && Objects.equals(this.min, that.min); - } - - @Override - public int hashCode() { - return Objects.hash(type, used, quota, min); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Resource {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" used: ").append(toIndentedString(used)).append("\n"); - sb.append(" quota: ").append(toIndentedString(quota)).append("\n"); - sb.append(" min: ").append(toIndentedString(min)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ShowQuotasResponse.java b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ShowQuotasResponse.java index 1fc2f2bccf..e3e9299203 100644 --- a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ShowQuotasResponse.java +++ b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ShowQuotasResponse.java @@ -4,10 +4,7 @@ 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 @@ -17,38 +14,22 @@ public class ShowQuotasResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "quotas") - private List quotas = null; + private Object quotas; - public ShowQuotasResponse withQuotas(List quotas) { + public ShowQuotasResponse withQuotas(Object quotas) { this.quotas = quotas; return this; } - public ShowQuotasResponse addQuotasItem(Quotas quotasItem) { - if (this.quotas == null) { - this.quotas = new ArrayList<>(); - } - this.quotas.add(quotasItem); - return this; - } - - public ShowQuotasResponse withQuotas(Consumer> quotasSetter) { - if (this.quotas == null) { - this.quotas = new ArrayList<>(); - } - quotasSetter.accept(this.quotas); - return this; - } - /** * 配额列表对象。 * @return quotas */ - public List getQuotas() { + public Object getQuotas() { return quotas; } - public void setQuotas(List quotas) { + public void setQuotas(Object quotas) { this.quotas = quotas; } diff --git a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ShowSqlLimitSwitchStatusRequest.java b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ShowSqlLimitSwitchStatusRequest.java index f078ca36ae..8cb08b920a 100644 --- a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ShowSqlLimitSwitchStatusRequest.java +++ b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ShowSqlLimitSwitchStatusRequest.java @@ -105,11 +105,17 @@ public static final class DatastoreTypeEnum { */ public static final DatastoreTypeEnum MYSQL = new DatastoreTypeEnum("MySQL"); + /** + * Enum POSTGRESQL for value: "PostgreSQL" + */ + public static final DatastoreTypeEnum POSTGRESQL = new DatastoreTypeEnum("PostgreSQL"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { Map map = new HashMap<>(); map.put("MySQL", MYSQL); + map.put("PostgreSQL", POSTGRESQL); return Collections.unmodifiableMap(map); } diff --git a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/SlowSqlStatistics.java b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/SlowSqlStatistics.java new file mode 100644 index 0000000000..74cb9b012c --- /dev/null +++ b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/SlowSqlStatistics.java @@ -0,0 +1,492 @@ +package com.huaweicloud.sdk.das.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * SlowSqlStatistics + */ +public class SlowSqlStatistics { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "execute_count") + + private Long executeCount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "avg_execute_time") + + private Double avgExecuteTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "max_execute_time") + + private Double maxExecuteTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "avg_lock_wait_time") + + private Double avgLockWaitTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "max_lock_wait_time") + + private Double maxLockWaitTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "avg_rows_sent") + + private Double avgRowsSent; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "max_rows_sent") + + private Double maxRowsSent; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "avg_rows_examined") + + private Double avgRowsExamined; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "max_rows_examined") + + private Double maxRowsExamined; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "avg_key_examined") + + private Double avgKeyExamined; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "max_key_examined") + + private Double maxKeyExamined; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "node_id") + + private String nodeId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "node_name") + + private String nodeName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sql_type") + + private String sqlType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "db_name") + + private String dbName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "collection") + + private String collection; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "user") + + private String user; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "client") + + private String client; + + public SlowSqlStatistics withExecuteCount(Long executeCount) { + this.executeCount = executeCount; + return this; + } + + /** + * 执行次数。 + * @return executeCount + */ + public Long getExecuteCount() { + return executeCount; + } + + public void setExecuteCount(Long executeCount) { + this.executeCount = executeCount; + } + + public SlowSqlStatistics withAvgExecuteTime(Double avgExecuteTime) { + this.avgExecuteTime = avgExecuteTime; + return this; + } + + /** + * 平均执行耗时(s)。 + * @return avgExecuteTime + */ + public Double getAvgExecuteTime() { + return avgExecuteTime; + } + + public void setAvgExecuteTime(Double avgExecuteTime) { + this.avgExecuteTime = avgExecuteTime; + } + + public SlowSqlStatistics withMaxExecuteTime(Double maxExecuteTime) { + this.maxExecuteTime = maxExecuteTime; + return this; + } + + /** + * 最大执行耗时(s)。 + * @return maxExecuteTime + */ + public Double getMaxExecuteTime() { + return maxExecuteTime; + } + + public void setMaxExecuteTime(Double maxExecuteTime) { + this.maxExecuteTime = maxExecuteTime; + } + + public SlowSqlStatistics withAvgLockWaitTime(Double avgLockWaitTime) { + this.avgLockWaitTime = avgLockWaitTime; + return this; + } + + /** + * 平均锁等待时间(s)。 + * @return avgLockWaitTime + */ + public Double getAvgLockWaitTime() { + return avgLockWaitTime; + } + + public void setAvgLockWaitTime(Double avgLockWaitTime) { + this.avgLockWaitTime = avgLockWaitTime; + } + + public SlowSqlStatistics withMaxLockWaitTime(Double maxLockWaitTime) { + this.maxLockWaitTime = maxLockWaitTime; + return this; + } + + /** + * 最大锁等待时间(s)。 + * @return maxLockWaitTime + */ + public Double getMaxLockWaitTime() { + return maxLockWaitTime; + } + + public void setMaxLockWaitTime(Double maxLockWaitTime) { + this.maxLockWaitTime = maxLockWaitTime; + } + + public SlowSqlStatistics withAvgRowsSent(Double avgRowsSent) { + this.avgRowsSent = avgRowsSent; + return this; + } + + /** + * 平均返回文档数。 + * @return avgRowsSent + */ + public Double getAvgRowsSent() { + return avgRowsSent; + } + + public void setAvgRowsSent(Double avgRowsSent) { + this.avgRowsSent = avgRowsSent; + } + + public SlowSqlStatistics withMaxRowsSent(Double maxRowsSent) { + this.maxRowsSent = maxRowsSent; + return this; + } + + /** + * 最大返回文档数。 + * @return maxRowsSent + */ + public Double getMaxRowsSent() { + return maxRowsSent; + } + + public void setMaxRowsSent(Double maxRowsSent) { + this.maxRowsSent = maxRowsSent; + } + + public SlowSqlStatistics withAvgRowsExamined(Double avgRowsExamined) { + this.avgRowsExamined = avgRowsExamined; + return this; + } + + /** + * 平均扫描文档数。 + * @return avgRowsExamined + */ + public Double getAvgRowsExamined() { + return avgRowsExamined; + } + + public void setAvgRowsExamined(Double avgRowsExamined) { + this.avgRowsExamined = avgRowsExamined; + } + + public SlowSqlStatistics withMaxRowsExamined(Double maxRowsExamined) { + this.maxRowsExamined = maxRowsExamined; + return this; + } + + /** + * 最大扫描文档数。 + * @return maxRowsExamined + */ + public Double getMaxRowsExamined() { + return maxRowsExamined; + } + + public void setMaxRowsExamined(Double maxRowsExamined) { + this.maxRowsExamined = maxRowsExamined; + } + + public SlowSqlStatistics withAvgKeyExamined(Double avgKeyExamined) { + this.avgKeyExamined = avgKeyExamined; + return this; + } + + /** + * 平均扫描索引数。 + * @return avgKeyExamined + */ + public Double getAvgKeyExamined() { + return avgKeyExamined; + } + + public void setAvgKeyExamined(Double avgKeyExamined) { + this.avgKeyExamined = avgKeyExamined; + } + + public SlowSqlStatistics withMaxKeyExamined(Double maxKeyExamined) { + this.maxKeyExamined = maxKeyExamined; + return this; + } + + /** + * 最大扫描索引数。 + * @return maxKeyExamined + */ + public Double getMaxKeyExamined() { + return maxKeyExamined; + } + + public void setMaxKeyExamined(Double maxKeyExamined) { + this.maxKeyExamined = maxKeyExamined; + } + + public SlowSqlStatistics withNodeId(String nodeId) { + this.nodeId = nodeId; + return this; + } + + /** + * 节点ID,按node_id统计时赋值。 + * @return nodeId + */ + public String getNodeId() { + return nodeId; + } + + public void setNodeId(String nodeId) { + this.nodeId = nodeId; + } + + public SlowSqlStatistics withNodeName(String nodeName) { + this.nodeName = nodeName; + return this; + } + + /** + * 节点名称,按node_id统计时赋值。 + * @return nodeName + */ + public String getNodeName() { + return nodeName; + } + + public void setNodeName(String nodeName) { + this.nodeName = nodeName; + } + + public SlowSqlStatistics withSqlType(String sqlType) { + this.sqlType = sqlType; + return this; + } + + /** + * 语句类型,按sql_type统计时赋值。 + * @return sqlType + */ + public String getSqlType() { + return sqlType; + } + + public void setSqlType(String sqlType) { + this.sqlType = sqlType; + } + + public SlowSqlStatistics withDbName(String dbName) { + this.dbName = dbName; + return this; + } + + /** + * 库名,按db_name、collection统计时赋值。 + * @return dbName + */ + public String getDbName() { + return dbName; + } + + public void setDbName(String dbName) { + this.dbName = dbName; + } + + public SlowSqlStatistics withCollection(String collection) { + this.collection = collection; + return this; + } + + /** + * 数据库表,按collection统计时赋值。 + * @return collection + */ + public String getCollection() { + return collection; + } + + public void setCollection(String collection) { + this.collection = collection; + } + + public SlowSqlStatistics withUser(String user) { + this.user = user; + return this; + } + + /** + * 用户名,按user统计时赋值。 + * @return user + */ + public String getUser() { + return user; + } + + public void setUser(String user) { + this.user = user; + } + + public SlowSqlStatistics withClient(String client) { + this.client = client; + return this; + } + + /** + * 客户端,按client统计时赋值。 + * @return client + */ + public String getClient() { + return client; + } + + public void setClient(String client) { + this.client = client; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SlowSqlStatistics that = (SlowSqlStatistics) obj; + return Objects.equals(this.executeCount, that.executeCount) + && Objects.equals(this.avgExecuteTime, that.avgExecuteTime) + && Objects.equals(this.maxExecuteTime, that.maxExecuteTime) + && Objects.equals(this.avgLockWaitTime, that.avgLockWaitTime) + && Objects.equals(this.maxLockWaitTime, that.maxLockWaitTime) + && Objects.equals(this.avgRowsSent, that.avgRowsSent) && Objects.equals(this.maxRowsSent, that.maxRowsSent) + && Objects.equals(this.avgRowsExamined, that.avgRowsExamined) + && Objects.equals(this.maxRowsExamined, that.maxRowsExamined) + && Objects.equals(this.avgKeyExamined, that.avgKeyExamined) + && Objects.equals(this.maxKeyExamined, that.maxKeyExamined) && Objects.equals(this.nodeId, that.nodeId) + && Objects.equals(this.nodeName, that.nodeName) && Objects.equals(this.sqlType, that.sqlType) + && Objects.equals(this.dbName, that.dbName) && Objects.equals(this.collection, that.collection) + && Objects.equals(this.user, that.user) && Objects.equals(this.client, that.client); + } + + @Override + public int hashCode() { + return Objects.hash(executeCount, + avgExecuteTime, + maxExecuteTime, + avgLockWaitTime, + maxLockWaitTime, + avgRowsSent, + maxRowsSent, + avgRowsExamined, + maxRowsExamined, + avgKeyExamined, + maxKeyExamined, + nodeId, + nodeName, + sqlType, + dbName, + collection, + user, + client); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SlowSqlStatistics {\n"); + sb.append(" executeCount: ").append(toIndentedString(executeCount)).append("\n"); + sb.append(" avgExecuteTime: ").append(toIndentedString(avgExecuteTime)).append("\n"); + sb.append(" maxExecuteTime: ").append(toIndentedString(maxExecuteTime)).append("\n"); + sb.append(" avgLockWaitTime: ").append(toIndentedString(avgLockWaitTime)).append("\n"); + sb.append(" maxLockWaitTime: ").append(toIndentedString(maxLockWaitTime)).append("\n"); + sb.append(" avgRowsSent: ").append(toIndentedString(avgRowsSent)).append("\n"); + sb.append(" maxRowsSent: ").append(toIndentedString(maxRowsSent)).append("\n"); + sb.append(" avgRowsExamined: ").append(toIndentedString(avgRowsExamined)).append("\n"); + sb.append(" maxRowsExamined: ").append(toIndentedString(maxRowsExamined)).append("\n"); + sb.append(" avgKeyExamined: ").append(toIndentedString(avgKeyExamined)).append("\n"); + sb.append(" maxKeyExamined: ").append(toIndentedString(maxKeyExamined)).append("\n"); + sb.append(" nodeId: ").append(toIndentedString(nodeId)).append("\n"); + sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); + sb.append(" sqlType: ").append(toIndentedString(sqlType)).append("\n"); + sb.append(" dbName: ").append(toIndentedString(dbName)).append("\n"); + sb.append(" collection: ").append(toIndentedString(collection)).append("\n"); + sb.append(" user: ").append(toIndentedString(user)).append("\n"); + sb.append(" client: ").append(toIndentedString(client)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/SqlLimitRule.java b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/SqlLimitRule.java index 62d44a3744..a37b099d93 100644 --- a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/SqlLimitRule.java +++ b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/SqlLimitRule.java @@ -30,6 +30,11 @@ public class SqlLimitRule { private Integer maxConcurrency; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "max_waiting") + + private Integer maxWaiting; + public SqlLimitRule withId(String id) { this.id = id; return this; @@ -98,6 +103,23 @@ public void setMaxConcurrency(Integer maxConcurrency) { this.maxConcurrency = maxConcurrency; } + public SqlLimitRule withMaxWaiting(Integer maxWaiting) { + this.maxWaiting = maxWaiting; + return this; + } + + /** + * 最大等待时间 + * @return maxWaiting + */ + public Integer getMaxWaiting() { + return maxWaiting; + } + + public void setMaxWaiting(Integer maxWaiting) { + this.maxWaiting = maxWaiting; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -108,12 +130,13 @@ public boolean equals(java.lang.Object obj) { } SqlLimitRule that = (SqlLimitRule) obj; return Objects.equals(this.id, that.id) && Objects.equals(this.sqlType, that.sqlType) - && Objects.equals(this.pattern, that.pattern) && Objects.equals(this.maxConcurrency, that.maxConcurrency); + && Objects.equals(this.pattern, that.pattern) && Objects.equals(this.maxConcurrency, that.maxConcurrency) + && Objects.equals(this.maxWaiting, that.maxWaiting); } @Override public int hashCode() { - return Objects.hash(id, sqlType, pattern, maxConcurrency); + return Objects.hash(id, sqlType, pattern, maxConcurrency, maxWaiting); } @Override @@ -124,6 +147,7 @@ public String toString() { sb.append(" sqlType: ").append(toIndentedString(sqlType)).append("\n"); sb.append(" pattern: ").append(toIndentedString(pattern)).append("\n"); sb.append(" maxConcurrency: ").append(toIndentedString(maxConcurrency)).append("\n"); + sb.append(" maxWaiting: ").append(toIndentedString(maxWaiting)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/UpdateSqlLimitRuleOption.java b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/UpdateSqlLimitRuleOption.java new file mode 100644 index 0000000000..583bbb810d --- /dev/null +++ b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/UpdateSqlLimitRuleOption.java @@ -0,0 +1,96 @@ +package com.huaweicloud.sdk.das.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * UpdateSqlLimitRuleOption + */ +public class UpdateSqlLimitRuleOption { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "max_concurrency") + + private Integer maxConcurrency; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "max_waiting") + + private Integer maxWaiting; + + public UpdateSqlLimitRuleOption withMaxConcurrency(Integer maxConcurrency) { + this.maxConcurrency = maxConcurrency; + return this; + } + + /** + * 最大并发数 + * @return maxConcurrency + */ + public Integer getMaxConcurrency() { + return maxConcurrency; + } + + public void setMaxConcurrency(Integer maxConcurrency) { + this.maxConcurrency = maxConcurrency; + } + + public UpdateSqlLimitRuleOption withMaxWaiting(Integer maxWaiting) { + this.maxWaiting = maxWaiting; + return this; + } + + /** + * 最大等待时间 + * @return maxWaiting + */ + public Integer getMaxWaiting() { + return maxWaiting; + } + + public void setMaxWaiting(Integer maxWaiting) { + this.maxWaiting = maxWaiting; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateSqlLimitRuleOption that = (UpdateSqlLimitRuleOption) obj; + return Objects.equals(this.maxConcurrency, that.maxConcurrency) + && Objects.equals(this.maxWaiting, that.maxWaiting); + } + + @Override + public int hashCode() { + return Objects.hash(maxConcurrency, maxWaiting); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateSqlLimitRuleOption {\n"); + sb.append(" maxConcurrency: ").append(toIndentedString(maxConcurrency)).append("\n"); + sb.append(" maxWaiting: ").append(toIndentedString(maxWaiting)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/UpdateSqlLimitRulesBody.java b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/UpdateSqlLimitRulesBody.java new file mode 100644 index 0000000000..54d040671b --- /dev/null +++ b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/UpdateSqlLimitRulesBody.java @@ -0,0 +1,241 @@ +package com.huaweicloud.sdk.das.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; + +/** + * 修改SQL限流规则请求体 + */ +public class UpdateSqlLimitRulesBody { + + /** + * 数据库类型 + */ + public static final class DatastoreTypeEnum { + + /** + * Enum POSTGRESQL for value: "PostgreSQL" + */ + public static final DatastoreTypeEnum POSTGRESQL = new DatastoreTypeEnum("PostgreSQL"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("PostgreSQL", POSTGRESQL); + return Collections.unmodifiableMap(map); + } + + private String value; + + DatastoreTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static DatastoreTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new DatastoreTypeEnum(value)); + } + + public static DatastoreTypeEnum 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 DatastoreTypeEnum) { + return this.value.equals(((DatastoreTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "datastore_type") + + private DatastoreTypeEnum datastoreType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sql_limit_rule_ids") + + private List sqlLimitRuleIds = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "database_name") + + private String databaseName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sql_limit_rule") + + private UpdateSqlLimitRuleOption sqlLimitRule; + + public UpdateSqlLimitRulesBody withDatastoreType(DatastoreTypeEnum datastoreType) { + this.datastoreType = datastoreType; + return this; + } + + /** + * 数据库类型 + * @return datastoreType + */ + public DatastoreTypeEnum getDatastoreType() { + return datastoreType; + } + + public void setDatastoreType(DatastoreTypeEnum datastoreType) { + this.datastoreType = datastoreType; + } + + public UpdateSqlLimitRulesBody withSqlLimitRuleIds(List sqlLimitRuleIds) { + this.sqlLimitRuleIds = sqlLimitRuleIds; + return this; + } + + public UpdateSqlLimitRulesBody addSqlLimitRuleIdsItem(String sqlLimitRuleIdsItem) { + if (this.sqlLimitRuleIds == null) { + this.sqlLimitRuleIds = new ArrayList<>(); + } + this.sqlLimitRuleIds.add(sqlLimitRuleIdsItem); + return this; + } + + public UpdateSqlLimitRulesBody withSqlLimitRuleIds(Consumer> sqlLimitRuleIdsSetter) { + if (this.sqlLimitRuleIds == null) { + this.sqlLimitRuleIds = new ArrayList<>(); + } + sqlLimitRuleIdsSetter.accept(this.sqlLimitRuleIds); + return this; + } + + /** + * SQL限流规则ID + * @return sqlLimitRuleIds + */ + public List getSqlLimitRuleIds() { + return sqlLimitRuleIds; + } + + public void setSqlLimitRuleIds(List sqlLimitRuleIds) { + this.sqlLimitRuleIds = sqlLimitRuleIds; + } + + public UpdateSqlLimitRulesBody withDatabaseName(String databaseName) { + this.databaseName = databaseName; + return this; + } + + /** + * 数据库名(PostgreSQL必填) + * @return databaseName + */ + public String getDatabaseName() { + return databaseName; + } + + public void setDatabaseName(String databaseName) { + this.databaseName = databaseName; + } + + public UpdateSqlLimitRulesBody withSqlLimitRule(UpdateSqlLimitRuleOption sqlLimitRule) { + this.sqlLimitRule = sqlLimitRule; + return this; + } + + public UpdateSqlLimitRulesBody withSqlLimitRule(Consumer sqlLimitRuleSetter) { + if (this.sqlLimitRule == null) { + this.sqlLimitRule = new UpdateSqlLimitRuleOption(); + sqlLimitRuleSetter.accept(this.sqlLimitRule); + } + + return this; + } + + /** + * Get sqlLimitRule + * @return sqlLimitRule + */ + public UpdateSqlLimitRuleOption getSqlLimitRule() { + return sqlLimitRule; + } + + public void setSqlLimitRule(UpdateSqlLimitRuleOption sqlLimitRule) { + this.sqlLimitRule = sqlLimitRule; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateSqlLimitRulesBody that = (UpdateSqlLimitRulesBody) obj; + return Objects.equals(this.datastoreType, that.datastoreType) + && Objects.equals(this.sqlLimitRuleIds, that.sqlLimitRuleIds) + && Objects.equals(this.databaseName, that.databaseName) + && Objects.equals(this.sqlLimitRule, that.sqlLimitRule); + } + + @Override + public int hashCode() { + return Objects.hash(datastoreType, sqlLimitRuleIds, databaseName, sqlLimitRule); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateSqlLimitRulesBody {\n"); + sb.append(" datastoreType: ").append(toIndentedString(datastoreType)).append("\n"); + sb.append(" sqlLimitRuleIds: ").append(toIndentedString(sqlLimitRuleIds)).append("\n"); + sb.append(" databaseName: ").append(toIndentedString(databaseName)).append("\n"); + sb.append(" sqlLimitRule: ").append(toIndentedString(sqlLimitRule)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/UpdateSqlLimitRulesRequest.java b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/UpdateSqlLimitRulesRequest.java new file mode 100644 index 0000000000..3f29f27f36 --- /dev/null +++ b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/UpdateSqlLimitRulesRequest.java @@ -0,0 +1,206 @@ +package com.huaweicloud.sdk.das.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 UpdateSqlLimitRulesRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + /** + * 语言 + */ + public static final class XLanguageEnum { + + /** + * Enum ZH_CN for value: "zh-cn" + */ + public static final XLanguageEnum ZH_CN = new XLanguageEnum("zh-cn"); + + /** + * Enum EN_US for value: "en-us" + */ + public static final XLanguageEnum EN_US = new XLanguageEnum("en-us"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("zh-cn", ZH_CN); + map.put("en-us", EN_US); + return Collections.unmodifiableMap(map); + } + + private String value; + + XLanguageEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static XLanguageEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new XLanguageEnum(value)); + } + + public static XLanguageEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof XLanguageEnum) { + return this.value.equals(((XLanguageEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private XLanguageEnum xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdateSqlLimitRulesBody body; + + public UpdateSqlLimitRulesRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public UpdateSqlLimitRulesRequest 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 UpdateSqlLimitRulesRequest withBody(UpdateSqlLimitRulesBody body) { + this.body = body; + return this; + } + + public UpdateSqlLimitRulesRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdateSqlLimitRulesBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdateSqlLimitRulesBody getBody() { + return body; + } + + public void setBody(UpdateSqlLimitRulesBody 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; + } + UpdateSqlLimitRulesRequest that = (UpdateSqlLimitRulesRequest) 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 UpdateSqlLimitRulesRequest {\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/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DeleteTemplateResponse.java b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/UpdateSqlLimitRulesResponse.java similarity index 78% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DeleteTemplateResponse.java rename to services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/UpdateSqlLimitRulesResponse.java index 579cdaf9da..452fbd44e7 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DeleteTemplateResponse.java +++ b/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/UpdateSqlLimitRulesResponse.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.rgc.v1.model; +package com.huaweicloud.sdk.das.v3.model; import com.huaweicloud.sdk.core.SdkResponse; @@ -7,7 +7,7 @@ /** * Response Object */ -public class DeleteTemplateResponse extends SdkResponse { +public class UpdateSqlLimitRulesResponse extends SdkResponse { @Override public boolean equals(java.lang.Object obj) { @@ -28,7 +28,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class DeleteTemplateResponse {\n"); + sb.append("class UpdateSqlLimitRulesResponse {\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dataartsinsight/pom.xml b/services/dataartsinsight/pom.xml index 84be0f6ec3..878786aad4 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-dataartsinsight - 3.1.95 + 3.1.96 Huawei Cloud SDK for DATAARTSINSIGHT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/dataartsstudio/pom.xml b/services/dataartsstudio/pom.xml index 1f2382f41a..0f80445696 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-dataartsstudio - 3.1.95 + 3.1.96 Huawei Cloud SDK for DATAARTSSTUDIO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioAsyncClient.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioAsyncClient.java index ddc205e4b7..4e1c545b5c 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioAsyncClient.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioAsyncClient.java @@ -97,6 +97,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.CreateOrUpdateAssetResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.CreateOrUpdateEntitiesRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.CreateOrUpdateEntitiesResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.CreateSecurityAssignedQueueRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.CreateSecurityAssignedQueueResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.CreateSecurityDataClassificationRuleRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.CreateSecurityDataClassificationRuleResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.CreateSecurityPermissionSetMemberRequest; @@ -157,6 +159,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.DeleteDesignLatestApprovalResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.DeleteDirectoryRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.DeleteDirectoryResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.DeleteSecurityAssignedQueueRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.DeleteSecurityAssignedQueueResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.DeleteSecurityDataClassificationRuleRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.DeleteSecurityDataClassificationRuleResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.DeleteSecurityLevelFromEntityRequest; @@ -315,6 +319,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.ListRelationsResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSchemasRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSchemasResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityAssignedQueuesRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityAssignedQueuesResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityDataClassificationRuleGroupsRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityDataClassificationRuleGroupsResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityDataClassificationRulesRequest; @@ -327,6 +333,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityDatasourceUrlsResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityDlfDataWareHousesRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityDlfDataWareHousesResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityMemberSyncTasksRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityMemberSyncTasksResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityPermissionSetMembersRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityPermissionSetMembersResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityPermissionSetPermissionsRequest; @@ -513,6 +521,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowSecurityDataClassificationRuleGroupResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowSecurityDataClassificationRuleRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowSecurityDataClassificationRuleResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowSecurityMemberSyncTaskRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowSecurityMemberSyncTaskResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowSecurityPermissionSetRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowSecurityPermissionSetResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowSecuritySecrecyLevelRequest; @@ -565,6 +575,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.UpdateDirectoryResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.UpdateFactoryJobNameRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.UpdateFactoryJobNameResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.UpdateSecurityAssignedQueueRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.UpdateSecurityAssignedQueueResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.UpdateSecurityDataClassificationRuleRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.UpdateSecurityDataClassificationRuleResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.UpdateSecurityPermissionSetPermissionRequest; @@ -1904,6 +1916,36 @@ public AsyncInvoker(request, DataArtsStudioMeta.createOrUpdateEntities, hcClient); } + /** + * 分配队列资源给指定空间 + * + * 分配队列资源给指定空间。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateSecurityAssignedQueueRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createSecurityAssignedQueueAsync( + CreateSecurityAssignedQueueRequest request) { + return hcClient.asyncInvokeHttp(request, DataArtsStudioMeta.createSecurityAssignedQueue); + } + + /** + * 分配队列资源给指定空间 + * + * 分配队列资源给指定空间。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateSecurityAssignedQueueRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createSecurityAssignedQueueAsyncInvoker( + CreateSecurityAssignedQueueRequest request) { + return new AsyncInvoker<>(request, DataArtsStudioMeta.createSecurityAssignedQueue, hcClient); + } + /** * 创建识别规则 * @@ -2726,6 +2768,36 @@ public AsyncInvoker deleteDirec return new AsyncInvoker<>(request, DataArtsStudioMeta.deleteDirectory, hcClient); } + /** + * 删除当前空间下分配的队列资源 + * + * 删除当前空间下分配的队列资源。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteSecurityAssignedQueueRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteSecurityAssignedQueueAsync( + DeleteSecurityAssignedQueueRequest request) { + return hcClient.asyncInvokeHttp(request, DataArtsStudioMeta.deleteSecurityAssignedQueue); + } + + /** + * 删除当前空间下分配的队列资源 + * + * 删除当前空间下分配的队列资源。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteSecurityAssignedQueueRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteSecurityAssignedQueueAsyncInvoker( + DeleteSecurityAssignedQueueRequest request) { + return new AsyncInvoker<>(request, DataArtsStudioMeta.deleteSecurityAssignedQueue, hcClient); + } + /** * 删除识别规则 * @@ -4829,6 +4901,36 @@ public AsyncInvoker listSchemasAsyncInv return new AsyncInvoker<>(request, DataArtsStudioMeta.listSchemas, hcClient); } + /** + * 查询当前空间下分配的队列资源 + * + * 查询当前空间下分配的队列资源。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSecurityAssignedQueuesRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listSecurityAssignedQueuesAsync( + ListSecurityAssignedQueuesRequest request) { + return hcClient.asyncInvokeHttp(request, DataArtsStudioMeta.listSecurityAssignedQueues); + } + + /** + * 查询当前空间下分配的队列资源 + * + * 查询当前空间下分配的队列资源。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSecurityAssignedQueuesRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listSecurityAssignedQueuesAsyncInvoker( + ListSecurityAssignedQueuesRequest request) { + return new AsyncInvoker<>(request, DataArtsStudioMeta.listSecurityAssignedQueues, hcClient); + } + /** * 查询规则组列表 * @@ -5009,6 +5111,36 @@ public AsyncInvoker(request, DataArtsStudioMeta.listSecurityDlfDataWareHouses, hcClient); } + /** + * 查询用户同步列表 + * + * 查询用户同步列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSecurityMemberSyncTasksRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listSecurityMemberSyncTasksAsync( + ListSecurityMemberSyncTasksRequest request) { + return hcClient.asyncInvokeHttp(request, DataArtsStudioMeta.listSecurityMemberSyncTasks); + } + + /** + * 查询用户同步列表 + * + * 查询用户同步列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSecurityMemberSyncTasksRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listSecurityMemberSyncTasksAsyncInvoker( + ListSecurityMemberSyncTasksRequest request) { + return new AsyncInvoker<>(request, DataArtsStudioMeta.listSecurityMemberSyncTasks, hcClient); + } + /** * 查询权限集成员列表 * @@ -7620,6 +7752,36 @@ public AsyncInvoker(request, DataArtsStudioMeta.showSecurityDataClassificationRuleGroup, hcClient); } + /** + * 查询单个用户同步任务 + * + * 查询单个用户同步任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowSecurityMemberSyncTaskRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showSecurityMemberSyncTaskAsync( + ShowSecurityMemberSyncTaskRequest request) { + return hcClient.asyncInvokeHttp(request, DataArtsStudioMeta.showSecurityMemberSyncTask); + } + + /** + * 查询单个用户同步任务 + * + * 查询单个用户同步任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowSecurityMemberSyncTaskRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showSecurityMemberSyncTaskAsyncInvoker( + ShowSecurityMemberSyncTaskRequest request) { + return new AsyncInvoker<>(request, DataArtsStudioMeta.showSecurityMemberSyncTask, hcClient); + } + /** * 查询权限集 * @@ -8355,6 +8517,36 @@ public AsyncInvoker u return new AsyncInvoker<>(request, DataArtsStudioMeta.updateFactoryJobName, hcClient); } + /** + * 修改当前空间下分配的队列资源 + * + * 修改当前空间下分配的队列资源。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateSecurityAssignedQueueRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateSecurityAssignedQueueAsync( + UpdateSecurityAssignedQueueRequest request) { + return hcClient.asyncInvokeHttp(request, DataArtsStudioMeta.updateSecurityAssignedQueue); + } + + /** + * 修改当前空间下分配的队列资源 + * + * 修改当前空间下分配的队列资源。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateSecurityAssignedQueueRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateSecurityAssignedQueueAsyncInvoker( + UpdateSecurityAssignedQueueRequest request) { + return new AsyncInvoker<>(request, DataArtsStudioMeta.updateSecurityAssignedQueue, hcClient); + } + /** * 修改识别规则接口 * diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioClient.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioClient.java index 35817490f6..0c5e3dcc5e 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioClient.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioClient.java @@ -97,6 +97,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.CreateOrUpdateAssetResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.CreateOrUpdateEntitiesRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.CreateOrUpdateEntitiesResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.CreateSecurityAssignedQueueRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.CreateSecurityAssignedQueueResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.CreateSecurityDataClassificationRuleRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.CreateSecurityDataClassificationRuleResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.CreateSecurityPermissionSetMemberRequest; @@ -157,6 +159,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.DeleteDesignLatestApprovalResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.DeleteDirectoryRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.DeleteDirectoryResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.DeleteSecurityAssignedQueueRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.DeleteSecurityAssignedQueueResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.DeleteSecurityDataClassificationRuleRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.DeleteSecurityDataClassificationRuleResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.DeleteSecurityLevelFromEntityRequest; @@ -315,6 +319,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.ListRelationsResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSchemasRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSchemasResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityAssignedQueuesRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityAssignedQueuesResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityDataClassificationRuleGroupsRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityDataClassificationRuleGroupsResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityDataClassificationRulesRequest; @@ -327,6 +333,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityDatasourceUrlsResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityDlfDataWareHousesRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityDlfDataWareHousesResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityMemberSyncTasksRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityMemberSyncTasksResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityPermissionSetMembersRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityPermissionSetMembersResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityPermissionSetPermissionsRequest; @@ -513,6 +521,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowSecurityDataClassificationRuleGroupResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowSecurityDataClassificationRuleRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowSecurityDataClassificationRuleResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowSecurityMemberSyncTaskRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowSecurityMemberSyncTaskResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowSecurityPermissionSetRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowSecurityPermissionSetResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowSecuritySecrecyLevelRequest; @@ -565,6 +575,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.UpdateDirectoryResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.UpdateFactoryJobNameRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.UpdateFactoryJobNameResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.UpdateSecurityAssignedQueueRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.UpdateSecurityAssignedQueueResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.UpdateSecurityDataClassificationRuleRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.UpdateSecurityDataClassificationRuleResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.UpdateSecurityPermissionSetPermissionRequest; @@ -1890,6 +1902,35 @@ public SyncInvoker(request, DataArtsStudioMeta.createOrUpdateEntities, hcClient); } + /** + * 分配队列资源给指定空间 + * + * 分配队列资源给指定空间。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateSecurityAssignedQueueRequest 请求对象 + * @return CreateSecurityAssignedQueueResponse + */ + public CreateSecurityAssignedQueueResponse createSecurityAssignedQueue(CreateSecurityAssignedQueueRequest request) { + return hcClient.syncInvokeHttp(request, DataArtsStudioMeta.createSecurityAssignedQueue); + } + + /** + * 分配队列资源给指定空间 + * + * 分配队列资源给指定空间。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateSecurityAssignedQueueRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createSecurityAssignedQueueInvoker( + CreateSecurityAssignedQueueRequest request) { + return new SyncInvoker<>(request, DataArtsStudioMeta.createSecurityAssignedQueue, hcClient); + } + /** * 创建识别规则 * @@ -2703,6 +2744,35 @@ public SyncInvoker deleteDirect return new SyncInvoker<>(request, DataArtsStudioMeta.deleteDirectory, hcClient); } + /** + * 删除当前空间下分配的队列资源 + * + * 删除当前空间下分配的队列资源。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteSecurityAssignedQueueRequest 请求对象 + * @return DeleteSecurityAssignedQueueResponse + */ + public DeleteSecurityAssignedQueueResponse deleteSecurityAssignedQueue(DeleteSecurityAssignedQueueRequest request) { + return hcClient.syncInvokeHttp(request, DataArtsStudioMeta.deleteSecurityAssignedQueue); + } + + /** + * 删除当前空间下分配的队列资源 + * + * 删除当前空间下分配的队列资源。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteSecurityAssignedQueueRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteSecurityAssignedQueueInvoker( + DeleteSecurityAssignedQueueRequest request) { + return new SyncInvoker<>(request, DataArtsStudioMeta.deleteSecurityAssignedQueue, hcClient); + } + /** * 删除识别规则 * @@ -4774,6 +4844,35 @@ public SyncInvoker listSchemasInvoker(L return new SyncInvoker<>(request, DataArtsStudioMeta.listSchemas, hcClient); } + /** + * 查询当前空间下分配的队列资源 + * + * 查询当前空间下分配的队列资源。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSecurityAssignedQueuesRequest 请求对象 + * @return ListSecurityAssignedQueuesResponse + */ + public ListSecurityAssignedQueuesResponse listSecurityAssignedQueues(ListSecurityAssignedQueuesRequest request) { + return hcClient.syncInvokeHttp(request, DataArtsStudioMeta.listSecurityAssignedQueues); + } + + /** + * 查询当前空间下分配的队列资源 + * + * 查询当前空间下分配的队列资源。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSecurityAssignedQueuesRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listSecurityAssignedQueuesInvoker( + ListSecurityAssignedQueuesRequest request) { + return new SyncInvoker<>(request, DataArtsStudioMeta.listSecurityAssignedQueues, hcClient); + } + /** * 查询规则组列表 * @@ -4953,6 +5052,35 @@ public SyncInvoker(request, DataArtsStudioMeta.listSecurityDlfDataWareHouses, hcClient); } + /** + * 查询用户同步列表 + * + * 查询用户同步列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSecurityMemberSyncTasksRequest 请求对象 + * @return ListSecurityMemberSyncTasksResponse + */ + public ListSecurityMemberSyncTasksResponse listSecurityMemberSyncTasks(ListSecurityMemberSyncTasksRequest request) { + return hcClient.syncInvokeHttp(request, DataArtsStudioMeta.listSecurityMemberSyncTasks); + } + + /** + * 查询用户同步列表 + * + * 查询用户同步列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSecurityMemberSyncTasksRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listSecurityMemberSyncTasksInvoker( + ListSecurityMemberSyncTasksRequest request) { + return new SyncInvoker<>(request, DataArtsStudioMeta.listSecurityMemberSyncTasks, hcClient); + } + /** * 查询权限集成员列表 * @@ -7537,6 +7665,35 @@ public SyncInvoker(request, DataArtsStudioMeta.showSecurityDataClassificationRuleGroup, hcClient); } + /** + * 查询单个用户同步任务 + * + * 查询单个用户同步任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowSecurityMemberSyncTaskRequest 请求对象 + * @return ShowSecurityMemberSyncTaskResponse + */ + public ShowSecurityMemberSyncTaskResponse showSecurityMemberSyncTask(ShowSecurityMemberSyncTaskRequest request) { + return hcClient.syncInvokeHttp(request, DataArtsStudioMeta.showSecurityMemberSyncTask); + } + + /** + * 查询单个用户同步任务 + * + * 查询单个用户同步任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowSecurityMemberSyncTaskRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showSecurityMemberSyncTaskInvoker( + ShowSecurityMemberSyncTaskRequest request) { + return new SyncInvoker<>(request, DataArtsStudioMeta.showSecurityMemberSyncTask, hcClient); + } + /** * 查询权限集 * @@ -8259,6 +8416,35 @@ public SyncInvoker up return new SyncInvoker<>(request, DataArtsStudioMeta.updateFactoryJobName, hcClient); } + /** + * 修改当前空间下分配的队列资源 + * + * 修改当前空间下分配的队列资源。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateSecurityAssignedQueueRequest 请求对象 + * @return UpdateSecurityAssignedQueueResponse + */ + public UpdateSecurityAssignedQueueResponse updateSecurityAssignedQueue(UpdateSecurityAssignedQueueRequest request) { + return hcClient.syncInvokeHttp(request, DataArtsStudioMeta.updateSecurityAssignedQueue); + } + + /** + * 修改当前空间下分配的队列资源 + * + * 修改当前空间下分配的队列资源。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateSecurityAssignedQueueRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateSecurityAssignedQueueInvoker( + UpdateSecurityAssignedQueueRequest request) { + return new SyncInvoker<>(request, DataArtsStudioMeta.updateSecurityAssignedQueue, hcClient); + } + /** * 修改识别规则接口 * diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioMeta.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioMeta.java index 6e021271d1..260d9add5f 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioMeta.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioMeta.java @@ -141,6 +141,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.CreateOrUpdateEntitiesRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.CreateOrUpdateEntitiesResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.CreateSecrecyLevelDTO; +import com.huaweicloud.sdk.dataartsstudio.v1.model.CreateSecurityAssignedQueueRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.CreateSecurityAssignedQueueResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.CreateSecurityDataClassificationRuleRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.CreateSecurityDataClassificationRuleResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.CreateSecurityPermissionSetMemberRequest; @@ -207,6 +209,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.DeleteDesignLatestApprovalResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.DeleteDirectoryRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.DeleteDirectoryResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.DeleteSecurityAssignedQueueRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.DeleteSecurityAssignedQueueResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.DeleteSecurityDataClassificationRuleRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.DeleteSecurityDataClassificationRuleResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.DeleteSecurityLevelFromEntityRequest; @@ -381,6 +385,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.ListReleasePackagesRequestBody; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSchemasRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSchemasResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityAssignedQueuesRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityAssignedQueuesResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityDataClassificationRuleGroupsRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityDataClassificationRuleGroupsResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityDataClassificationRulesRequest; @@ -393,6 +399,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityDatasourceUrlsResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityDlfDataWareHousesRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityDlfDataWareHousesResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityMemberSyncTasksRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityMemberSyncTasksResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityPermissionSetMembersRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityPermissionSetMembersResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListSecurityPermissionSetPermissionsRequest; @@ -443,6 +451,9 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.PublishApiToInstanceRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.PublishApiToInstanceResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.QueryTaskRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.QueueSrcAssignCreateDTO; +import com.huaweicloud.sdk.dataartsstudio.v1.model.QueueSrcAssignEntity; +import com.huaweicloud.sdk.dataartsstudio.v1.model.QueueSrcAssignUpdateDTO; import com.huaweicloud.sdk.dataartsstudio.v1.model.RemoveDesignEntityTagsRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.RemoveDesignEntityTagsResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.RemoveDesignQualityInfosRequest; @@ -597,6 +608,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowSecurityDataClassificationRuleGroupResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowSecurityDataClassificationRuleRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowSecurityDataClassificationRuleResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowSecurityMemberSyncTaskRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowSecurityMemberSyncTaskResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowSecurityPermissionSetRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowSecurityPermissionSetResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowSecuritySecrecyLevelRequest; @@ -662,6 +675,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.UpdateFactoryJobNameRequestBody; import com.huaweicloud.sdk.dataartsstudio.v1.model.UpdateFactoryJobNameResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.UpdateSecrecyLevelDTO; +import com.huaweicloud.sdk.dataartsstudio.v1.model.UpdateSecurityAssignedQueueRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.UpdateSecurityAssignedQueueResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.UpdateSecurityDataClassificationRuleRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.UpdateSecurityDataClassificationRuleResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.UpdateSecurityPermissionSetPermissionRequest; @@ -2142,6 +2157,47 @@ private static HttpRequestDef createSecurityAssignedQueue = + genForCreateSecurityAssignedQueue(); + + private static HttpRequestDef genForCreateSecurityAssignedQueue() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + CreateSecurityAssignedQueueRequest.class, + CreateSecurityAssignedQueueResponse.class) + .withName("CreateSecurityAssignedQueue") + .withUri("/v1/{project_id}/security/permission/queue/assigned-source") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("workspace", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateSecurityAssignedQueueRequest::getWorkspace, + CreateSecurityAssignedQueueRequest::setWorkspace)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(QueueSrcAssignCreateDTO.class), + f -> f.withMarshaller(CreateSecurityAssignedQueueRequest::getBody, + CreateSecurityAssignedQueueRequest::setBody)); + + // response + builder.>withResponseField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(List.class), + f -> f + .withMarshaller(CreateSecurityAssignedQueueResponse::getBody, + CreateSecurityAssignedQueueResponse::setBody) + .withInnerContainerType(QueueSrcAssignEntity.class)); + + return builder.build(); + } + public static final HttpRequestDef createSecurityDataClassificationRule = genForCreateSecurityDataClassificationRule(); @@ -3081,6 +3137,39 @@ private static HttpRequestDef g return builder.build(); } + public static final HttpRequestDef deleteSecurityAssignedQueue = + genForDeleteSecurityAssignedQueue(); + + private static HttpRequestDef genForDeleteSecurityAssignedQueue() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.DELETE, + DeleteSecurityAssignedQueueRequest.class, + DeleteSecurityAssignedQueueResponse.class) + .withName("DeleteSecurityAssignedQueue") + .withUri("/v1/{project_id}/security/permission/queue/assigned-source/{id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteSecurityAssignedQueueRequest::getId, + DeleteSecurityAssignedQueueRequest::setId)); + builder.withRequestField("workspace", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteSecurityAssignedQueueRequest::getWorkspace, + DeleteSecurityAssignedQueueRequest::setWorkspace)); + + // response + + return builder.build(); + } + public static final HttpRequestDef deleteSecurityDataClassificationRule = genForDeleteSecurityDataClassificationRule(); @@ -6644,6 +6733,57 @@ private static HttpRequestDef genForLis return builder.build(); } + public static final HttpRequestDef listSecurityAssignedQueues = + genForListSecurityAssignedQueues(); + + private static HttpRequestDef genForListSecurityAssignedQueues() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ListSecurityAssignedQueuesRequest.class, + ListSecurityAssignedQueuesResponse.class) + .withName("ListSecurityAssignedQueues") + .withUri("/v1/{project_id}/security/permission/queue/assigned-source") + .withContentType("application/json"); + + // requests + builder.withRequestField("type", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListSecurityAssignedQueuesRequest::getType, + ListSecurityAssignedQueuesRequest::setType)); + builder.withRequestField("cluster_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListSecurityAssignedQueuesRequest::getClusterId, + ListSecurityAssignedQueuesRequest::setClusterId)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListSecurityAssignedQueuesRequest::getLimit, + ListSecurityAssignedQueuesRequest::setLimit)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListSecurityAssignedQueuesRequest::getOffset, + ListSecurityAssignedQueuesRequest::setOffset)); + builder.withRequestField("workspace", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListSecurityAssignedQueuesRequest::getWorkspace, + ListSecurityAssignedQueuesRequest::setWorkspace)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listSecurityDataClassificationRuleGroups = genForListSecurityDataClassificationRuleGroups(); @@ -6968,6 +7108,81 @@ private static HttpRequestDef listSecurityMemberSyncTasks = + genForListSecurityMemberSyncTasks(); + + private static HttpRequestDef genForListSecurityMemberSyncTasks() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ListSecurityMemberSyncTasksRequest.class, + ListSecurityMemberSyncTasksResponse.class) + .withName("ListSecurityMemberSyncTasks") + .withUri("/v1/{project_id}/security/member-sync-tasks") + .withContentType("application/json"); + + // requests + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListSecurityMemberSyncTasksRequest::getLimit, + ListSecurityMemberSyncTasksRequest::setLimit)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListSecurityMemberSyncTasksRequest::getOffset, + ListSecurityMemberSyncTasksRequest::setOffset)); + builder.withRequestField("cluster_type", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ListSecurityMemberSyncTasksRequest.ClusterTypeEnum.class), + f -> f.withMarshaller(ListSecurityMemberSyncTasksRequest::getClusterType, + ListSecurityMemberSyncTasksRequest::setClusterType)); + builder.withRequestField("cluster_name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListSecurityMemberSyncTasksRequest::getClusterName, + ListSecurityMemberSyncTasksRequest::setClusterName)); + builder.withRequestField("sync_status", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ListSecurityMemberSyncTasksRequest.SyncStatusEnum.class), + f -> f.withMarshaller(ListSecurityMemberSyncTasksRequest::getSyncStatus, + ListSecurityMemberSyncTasksRequest::setSyncStatus)); + builder.withRequestField("schedule_status", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ListSecurityMemberSyncTasksRequest.ScheduleStatusEnum.class), + f -> f.withMarshaller(ListSecurityMemberSyncTasksRequest::getScheduleStatus, + ListSecurityMemberSyncTasksRequest::setScheduleStatus)); + builder.withRequestField("order_by", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ListSecurityMemberSyncTasksRequest.OrderByEnum.class), + f -> f.withMarshaller(ListSecurityMemberSyncTasksRequest::getOrderBy, + ListSecurityMemberSyncTasksRequest::setOrderBy)); + builder.withRequestField("order_by_asc", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Boolean.class), + f -> f.withMarshaller(ListSecurityMemberSyncTasksRequest::getOrderByAsc, + ListSecurityMemberSyncTasksRequest::setOrderByAsc)); + builder.withRequestField("workspace", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListSecurityMemberSyncTasksRequest::getWorkspace, + ListSecurityMemberSyncTasksRequest::setWorkspace)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listSecurityPermissionSetMembers = genForListSecurityPermissionSetMembers(); @@ -10948,6 +11163,39 @@ private static HttpRequestDef showSecurityMemberSyncTask = + genForShowSecurityMemberSyncTask(); + + private static HttpRequestDef genForShowSecurityMemberSyncTask() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ShowSecurityMemberSyncTaskRequest.class, + ShowSecurityMemberSyncTaskResponse.class) + .withName("ShowSecurityMemberSyncTask") + .withUri("/v1/{project_id}/security/member-sync-tasks/{task_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("task_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowSecurityMemberSyncTaskRequest::getTaskId, + ShowSecurityMemberSyncTaskRequest::setTaskId)); + builder.withRequestField("workspace", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowSecurityMemberSyncTaskRequest::getWorkspace, + ShowSecurityMemberSyncTaskRequest::setWorkspace)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showSecurityPermissionSet = genForShowSecurityPermissionSet(); @@ -11822,6 +12070,45 @@ private static HttpRequestDef updateSecurityAssignedQueue = + genForUpdateSecurityAssignedQueue(); + + private static HttpRequestDef genForUpdateSecurityAssignedQueue() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.PUT, + UpdateSecurityAssignedQueueRequest.class, + UpdateSecurityAssignedQueueResponse.class) + .withName("UpdateSecurityAssignedQueue") + .withUri("/v1/{project_id}/security/permission/queue/assigned-source/{id}") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateSecurityAssignedQueueRequest::getId, + UpdateSecurityAssignedQueueRequest::setId)); + builder.withRequestField("workspace", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateSecurityAssignedQueueRequest::getWorkspace, + UpdateSecurityAssignedQueueRequest::setWorkspace)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(QueueSrcAssignUpdateDTO.class), + f -> f.withMarshaller(UpdateSecurityAssignedQueueRequest::getBody, + UpdateSecurityAssignedQueueRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef updateSecurityDataClassificationRule = genForUpdateSecurityDataClassificationRule(); diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/EnrollAccountRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateSecurityAssignedQueueRequest.java similarity index 53% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/EnrollAccountRequest.java rename to services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateSecurityAssignedQueueRequest.java index eaf43eabef..1e3a1d9c06 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/EnrollAccountRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateSecurityAssignedQueueRequest.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.rgc.v1.model; +package com.huaweicloud.sdk.dataartsstudio.v1.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -9,43 +9,43 @@ /** * Request Object */ -public class EnrollAccountRequest { +public class CreateSecurityAssignedQueueRequest { @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "managed_account_id") + @JsonProperty(value = "workspace") - private String managedAccountId; + private String workspace; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "body") - private EnrollAccountRequestBody body; + private QueueSrcAssignCreateDTO body; - public EnrollAccountRequest withManagedAccountId(String managedAccountId) { - this.managedAccountId = managedAccountId; + public CreateSecurityAssignedQueueRequest withWorkspace(String workspace) { + this.workspace = workspace; return this; } /** - * 纳管账号ID。 - * @return managedAccountId + * DataArts Studio工作空间ID + * @return workspace */ - public String getManagedAccountId() { - return managedAccountId; + public String getWorkspace() { + return workspace; } - public void setManagedAccountId(String managedAccountId) { - this.managedAccountId = managedAccountId; + public void setWorkspace(String workspace) { + this.workspace = workspace; } - public EnrollAccountRequest withBody(EnrollAccountRequestBody body) { + public CreateSecurityAssignedQueueRequest withBody(QueueSrcAssignCreateDTO body) { this.body = body; return this; } - public EnrollAccountRequest withBody(Consumer bodySetter) { + public CreateSecurityAssignedQueueRequest withBody(Consumer bodySetter) { if (this.body == null) { - this.body = new EnrollAccountRequestBody(); + this.body = new QueueSrcAssignCreateDTO(); bodySetter.accept(this.body); } @@ -56,11 +56,11 @@ public EnrollAccountRequest withBody(Consumer bodySett * Get body * @return body */ - public EnrollAccountRequestBody getBody() { + public QueueSrcAssignCreateDTO getBody() { return body; } - public void setBody(EnrollAccountRequestBody body) { + public void setBody(QueueSrcAssignCreateDTO body) { this.body = body; } @@ -72,20 +72,20 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - EnrollAccountRequest that = (EnrollAccountRequest) obj; - return Objects.equals(this.managedAccountId, that.managedAccountId) && Objects.equals(this.body, that.body); + CreateSecurityAssignedQueueRequest that = (CreateSecurityAssignedQueueRequest) obj; + return Objects.equals(this.workspace, that.workspace) && Objects.equals(this.body, that.body); } @Override public int hashCode() { - return Objects.hash(managedAccountId, body); + return Objects.hash(workspace, body); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class EnrollAccountRequest {\n"); - sb.append(" managedAccountId: ").append(toIndentedString(managedAccountId)).append("\n"); + sb.append("class CreateSecurityAssignedQueueRequest {\n"); + sb.append(" workspace: ").append(toIndentedString(workspace)).append("\n"); sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateSecurityAssignedQueueResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateSecurityAssignedQueueResponse.java new file mode 100644 index 0000000000..5c6d594a9a --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateSecurityAssignedQueueResponse.java @@ -0,0 +1,92 @@ +package com.huaweicloud.sdk.dataartsstudio.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 CreateSecurityAssignedQueueResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private List body = null; + + public CreateSecurityAssignedQueueResponse withBody(List body) { + this.body = body; + return this; + } + + public CreateSecurityAssignedQueueResponse addBodyItem(QueueSrcAssignEntity bodyItem) { + if (this.body == null) { + this.body = new ArrayList<>(); + } + this.body.add(bodyItem); + return this; + } + + public CreateSecurityAssignedQueueResponse withBody(Consumer> bodySetter) { + if (this.body == null) { + this.body = new ArrayList<>(); + } + bodySetter.accept(this.body); + return this; + } + + /** + * Get body + * @return body + */ + public List getBody() { + return body; + } + + public void setBody(List body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateSecurityAssignedQueueResponse that = (CreateSecurityAssignedQueueResponse) 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 CreateSecurityAssignedQueueResponse {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteSecurityAssignedQueueRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteSecurityAssignedQueueRequest.java new file mode 100644 index 0000000000..3e5a54a859 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteSecurityAssignedQueueRequest.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class DeleteSecurityAssignedQueueRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "workspace") + + private String workspace; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + public DeleteSecurityAssignedQueueRequest withWorkspace(String workspace) { + this.workspace = workspace; + return this; + } + + /** + * DataArts Studio工作空间ID + * @return workspace + */ + public String getWorkspace() { + return workspace; + } + + public void setWorkspace(String workspace) { + this.workspace = workspace; + } + + public DeleteSecurityAssignedQueueRequest 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; + } + DeleteSecurityAssignedQueueRequest that = (DeleteSecurityAssignedQueueRequest) obj; + return Objects.equals(this.workspace, that.workspace) && Objects.equals(this.id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(workspace, id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteSecurityAssignedQueueRequest {\n"); + sb.append(" workspace: ").append(toIndentedString(workspace)).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/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DeleteManagedOrganizationalUnitsResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteSecurityAssignedQueueResponse.java similarity index 75% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DeleteManagedOrganizationalUnitsResponse.java rename to services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteSecurityAssignedQueueResponse.java index 6de02fedb4..7d818d8319 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DeleteManagedOrganizationalUnitsResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteSecurityAssignedQueueResponse.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.rgc.v1.model; +package com.huaweicloud.sdk.dataartsstudio.v1.model; import com.huaweicloud.sdk.core.SdkResponse; @@ -7,7 +7,7 @@ /** * Response Object */ -public class DeleteManagedOrganizationalUnitsResponse extends SdkResponse { +public class DeleteSecurityAssignedQueueResponse extends SdkResponse { @Override public boolean equals(java.lang.Object obj) { @@ -28,7 +28,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class DeleteManagedOrganizationalUnitsResponse {\n"); + sb.append("class DeleteSecurityAssignedQueueResponse {\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSecurityAssignedQueuesRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSecurityAssignedQueuesRequest.java new file mode 100644 index 0000000000..82785de847 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSecurityAssignedQueuesRequest.java @@ -0,0 +1,170 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListSecurityAssignedQueuesRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "workspace") + + private String workspace; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cluster_id") + + private String clusterId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + public ListSecurityAssignedQueuesRequest withWorkspace(String workspace) { + this.workspace = workspace; + return this; + } + + /** + * DataArts Studio工作空间ID + * @return workspace + */ + public String getWorkspace() { + return workspace; + } + + public void setWorkspace(String workspace) { + this.workspace = workspace; + } + + public ListSecurityAssignedQueuesRequest withType(String type) { + this.type = type; + return this; + } + + /** + * 队列类型,MRS、DLI。 + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public ListSecurityAssignedQueuesRequest withClusterId(String clusterId) { + this.clusterId = clusterId; + return this; + } + + /** + * 集群id + * @return clusterId + */ + public String getClusterId() { + return clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + public ListSecurityAssignedQueuesRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * limit + * minimum: 0 + * maximum: 100 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListSecurityAssignedQueuesRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * offset + * minimum: 0 + * maximum: 99999 + * @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; + } + ListSecurityAssignedQueuesRequest that = (ListSecurityAssignedQueuesRequest) obj; + return Objects.equals(this.workspace, that.workspace) && Objects.equals(this.type, that.type) + && Objects.equals(this.clusterId, that.clusterId) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.offset, that.offset); + } + + @Override + public int hashCode() { + return Objects.hash(workspace, type, clusterId, limit, offset); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListSecurityAssignedQueuesRequest {\n"); + sb.append(" workspace: ").append(toIndentedString(workspace)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" clusterId: ").append(toIndentedString(clusterId)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSecurityAssignedQueuesResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSecurityAssignedQueuesResponse.java new file mode 100644 index 0000000000..57dd2f31b5 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSecurityAssignedQueuesResponse.java @@ -0,0 +1,116 @@ +package com.huaweicloud.sdk.dataartsstudio.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 ListSecurityAssignedQueuesResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "queue_sources") + + private List queueSources = null; + + public ListSecurityAssignedQueuesResponse withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目id。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public ListSecurityAssignedQueuesResponse withQueueSources(List queueSources) { + this.queueSources = queueSources; + return this; + } + + public ListSecurityAssignedQueuesResponse addQueueSourcesItem(QueueSrcAssignEntity queueSourcesItem) { + if (this.queueSources == null) { + this.queueSources = new ArrayList<>(); + } + this.queueSources.add(queueSourcesItem); + return this; + } + + public ListSecurityAssignedQueuesResponse withQueueSources( + Consumer> queueSourcesSetter) { + if (this.queueSources == null) { + this.queueSources = new ArrayList<>(); + } + queueSourcesSetter.accept(this.queueSources); + return this; + } + + /** + * 队列资源信息。 + * @return queueSources + */ + public List getQueueSources() { + return queueSources; + } + + public void setQueueSources(List queueSources) { + this.queueSources = queueSources; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListSecurityAssignedQueuesResponse that = (ListSecurityAssignedQueuesResponse) obj; + return Objects.equals(this.projectId, that.projectId) && Objects.equals(this.queueSources, that.queueSources); + } + + @Override + public int hashCode() { + return Objects.hash(projectId, queueSources); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListSecurityAssignedQueuesResponse {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" queueSources: ").append(toIndentedString(queueSources)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSecurityMemberSyncTasksRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSecurityMemberSyncTasksRequest.java new file mode 100644 index 0000000000..bfb875bc64 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSecurityMemberSyncTasksRequest.java @@ -0,0 +1,580 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * Request Object + */ +public class ListSecurityMemberSyncTasksRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "workspace") + + private String workspace; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + /** + * 集群类型 * MRS数据源 * DWS数据源 + */ + public static final class ClusterTypeEnum { + + /** + * Enum MRS for value: "MRS" + */ + public static final ClusterTypeEnum MRS = new ClusterTypeEnum("MRS"); + + /** + * Enum DWS for value: "DWS" + */ + public static final ClusterTypeEnum DWS = new ClusterTypeEnum("DWS"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("MRS", MRS); + map.put("DWS", DWS); + return Collections.unmodifiableMap(map); + } + + private String value; + + ClusterTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ClusterTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ClusterTypeEnum(value)); + } + + public static ClusterTypeEnum 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 ClusterTypeEnum) { + return this.value.equals(((ClusterTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cluster_type") + + private ClusterTypeEnum clusterType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cluster_name") + + private String clusterName; + + /** + * 同步状态 * UNKNOWN 未知 * NOT_SYNC 未同步 * SYNCING 同步中 * SYNC_SUCCESS 同步成功 * SYNC_FAIL 同步失败 + */ + public static final class SyncStatusEnum { + + /** + * Enum UNKNOWN for value: "UNKNOWN" + */ + public static final SyncStatusEnum UNKNOWN = new SyncStatusEnum("UNKNOWN"); + + /** + * Enum NOT_SYNC for value: "NOT_SYNC" + */ + public static final SyncStatusEnum NOT_SYNC = new SyncStatusEnum("NOT_SYNC"); + + /** + * Enum SYNCING for value: "SYNCING" + */ + public static final SyncStatusEnum SYNCING = new SyncStatusEnum("SYNCING"); + + /** + * Enum SYNC_SUCCESS for value: "SYNC_SUCCESS" + */ + public static final SyncStatusEnum SYNC_SUCCESS = new SyncStatusEnum("SYNC_SUCCESS"); + + /** + * Enum SYNC_FAIL for value: "SYNC_FAIL" + */ + public static final SyncStatusEnum SYNC_FAIL = new SyncStatusEnum("SYNC_FAIL"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("UNKNOWN", UNKNOWN); + map.put("NOT_SYNC", NOT_SYNC); + map.put("SYNCING", SYNCING); + map.put("SYNC_SUCCESS", SYNC_SUCCESS); + map.put("SYNC_FAIL", SYNC_FAIL); + return Collections.unmodifiableMap(map); + } + + private String value; + + SyncStatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static SyncStatusEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new SyncStatusEnum(value)); + } + + public static SyncStatusEnum 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 SyncStatusEnum) { + return this.value.equals(((SyncStatusEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sync_status") + + private SyncStatusEnum syncStatus; + + /** + * 用户同步任务调度状态 * NOT_SCHEDULE 未启用调度 * SCHEDULING 调度中 + */ + public static final class ScheduleStatusEnum { + + /** + * Enum NOT_SCHEDULE for value: "NOT_SCHEDULE" + */ + public static final ScheduleStatusEnum NOT_SCHEDULE = new ScheduleStatusEnum("NOT_SCHEDULE"); + + /** + * Enum SCHEDULING for value: "SCHEDULING" + */ + public static final ScheduleStatusEnum SCHEDULING = new ScheduleStatusEnum("SCHEDULING"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("NOT_SCHEDULE", NOT_SCHEDULE); + map.put("SCHEDULING", SCHEDULING); + return Collections.unmodifiableMap(map); + } + + private String value; + + ScheduleStatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ScheduleStatusEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ScheduleStatusEnum(value)); + } + + public static ScheduleStatusEnum 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 ScheduleStatusEnum) { + return this.value.equals(((ScheduleStatusEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schedule_status") + + private ScheduleStatusEnum scheduleStatus; + + /** + * 排序字段 * CLUSTER_NAME 按照集群名称排序 * CREATE_TIME 按照创建时间排序 * UPDATE_TIME 按照更新时间排序 * SYNC_TIME 按照同步时间排序 + */ + public static final class OrderByEnum { + + /** + * Enum CLUSTER_NAME for value: "CLUSTER_NAME" + */ + public static final OrderByEnum CLUSTER_NAME = new OrderByEnum("CLUSTER_NAME"); + + /** + * Enum CREATE_TIME for value: "CREATE_TIME" + */ + public static final OrderByEnum CREATE_TIME = new OrderByEnum("CREATE_TIME"); + + /** + * Enum UPDATE_TIME for value: "UPDATE_TIME" + */ + public static final OrderByEnum UPDATE_TIME = new OrderByEnum("UPDATE_TIME"); + + /** + * Enum SYNC_TIME for value: "SYNC_TIME" + */ + public static final OrderByEnum SYNC_TIME = new OrderByEnum("SYNC_TIME"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("CLUSTER_NAME", CLUSTER_NAME); + map.put("CREATE_TIME", CREATE_TIME); + map.put("UPDATE_TIME", UPDATE_TIME); + map.put("SYNC_TIME", SYNC_TIME); + return Collections.unmodifiableMap(map); + } + + private String value; + + OrderByEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static OrderByEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new OrderByEnum(value)); + } + + public static OrderByEnum 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 OrderByEnum) { + return this.value.equals(((OrderByEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "order_by") + + private OrderByEnum orderBy; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "order_by_asc") + + private Boolean orderByAsc; + + public ListSecurityMemberSyncTasksRequest withWorkspace(String workspace) { + this.workspace = workspace; + return this; + } + + /** + * DataArts Studio工作空间ID + * @return workspace + */ + public String getWorkspace() { + return workspace; + } + + public void setWorkspace(String workspace) { + this.workspace = workspace; + } + + public ListSecurityMemberSyncTasksRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * limit + * minimum: 0 + * maximum: 100 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListSecurityMemberSyncTasksRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * offset + * minimum: 0 + * maximum: 99999 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListSecurityMemberSyncTasksRequest withClusterType(ClusterTypeEnum clusterType) { + this.clusterType = clusterType; + return this; + } + + /** + * 集群类型 * MRS数据源 * DWS数据源 + * @return clusterType + */ + public ClusterTypeEnum getClusterType() { + return clusterType; + } + + public void setClusterType(ClusterTypeEnum clusterType) { + this.clusterType = clusterType; + } + + public ListSecurityMemberSyncTasksRequest withClusterName(String clusterName) { + this.clusterName = clusterName; + return this; + } + + /** + * 集群名称 + * @return clusterName + */ + public String getClusterName() { + return clusterName; + } + + public void setClusterName(String clusterName) { + this.clusterName = clusterName; + } + + public ListSecurityMemberSyncTasksRequest withSyncStatus(SyncStatusEnum syncStatus) { + this.syncStatus = syncStatus; + return this; + } + + /** + * 同步状态 * UNKNOWN 未知 * NOT_SYNC 未同步 * SYNCING 同步中 * SYNC_SUCCESS 同步成功 * SYNC_FAIL 同步失败 + * @return syncStatus + */ + public SyncStatusEnum getSyncStatus() { + return syncStatus; + } + + public void setSyncStatus(SyncStatusEnum syncStatus) { + this.syncStatus = syncStatus; + } + + public ListSecurityMemberSyncTasksRequest withScheduleStatus(ScheduleStatusEnum scheduleStatus) { + this.scheduleStatus = scheduleStatus; + return this; + } + + /** + * 用户同步任务调度状态 * NOT_SCHEDULE 未启用调度 * SCHEDULING 调度中 + * @return scheduleStatus + */ + public ScheduleStatusEnum getScheduleStatus() { + return scheduleStatus; + } + + public void setScheduleStatus(ScheduleStatusEnum scheduleStatus) { + this.scheduleStatus = scheduleStatus; + } + + public ListSecurityMemberSyncTasksRequest withOrderBy(OrderByEnum orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * 排序字段 * CLUSTER_NAME 按照集群名称排序 * CREATE_TIME 按照创建时间排序 * UPDATE_TIME 按照更新时间排序 * SYNC_TIME 按照同步时间排序 + * @return orderBy + */ + public OrderByEnum getOrderBy() { + return orderBy; + } + + public void setOrderBy(OrderByEnum orderBy) { + this.orderBy = orderBy; + } + + public ListSecurityMemberSyncTasksRequest withOrderByAsc(Boolean orderByAsc) { + this.orderByAsc = orderByAsc; + return this; + } + + /** + * 是否升序(仅指定排序参数时有效)。 + * @return orderByAsc + */ + public Boolean getOrderByAsc() { + return orderByAsc; + } + + public void setOrderByAsc(Boolean orderByAsc) { + this.orderByAsc = orderByAsc; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListSecurityMemberSyncTasksRequest that = (ListSecurityMemberSyncTasksRequest) obj; + return Objects.equals(this.workspace, that.workspace) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.offset, that.offset) && Objects.equals(this.clusterType, that.clusterType) + && Objects.equals(this.clusterName, that.clusterName) && Objects.equals(this.syncStatus, that.syncStatus) + && Objects.equals(this.scheduleStatus, that.scheduleStatus) && Objects.equals(this.orderBy, that.orderBy) + && Objects.equals(this.orderByAsc, that.orderByAsc); + } + + @Override + public int hashCode() { + return Objects + .hash(workspace, limit, offset, clusterType, clusterName, syncStatus, scheduleStatus, orderBy, orderByAsc); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListSecurityMemberSyncTasksRequest {\n"); + sb.append(" workspace: ").append(toIndentedString(workspace)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" clusterType: ").append(toIndentedString(clusterType)).append("\n"); + sb.append(" clusterName: ").append(toIndentedString(clusterName)).append("\n"); + sb.append(" syncStatus: ").append(toIndentedString(syncStatus)).append("\n"); + sb.append(" scheduleStatus: ").append(toIndentedString(scheduleStatus)).append("\n"); + sb.append(" orderBy: ").append(toIndentedString(orderBy)).append("\n"); + sb.append(" orderByAsc: ").append(toIndentedString(orderByAsc)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSecurityMemberSyncTasksResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSecurityMemberSyncTasksResponse.java new file mode 100644 index 0000000000..0ded067f8f --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSecurityMemberSyncTasksResponse.java @@ -0,0 +1,117 @@ +package com.huaweicloud.sdk.dataartsstudio.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 ListSecurityMemberSyncTasksResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Long total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tasks") + + private List tasks = null; + + public ListSecurityMemberSyncTasksResponse withTotal(Long total) { + this.total = total; + return this; + } + + /** + * 用户同步任务总条数。 + * minimum: 0 + * maximum: 10000 + * @return total + */ + public Long getTotal() { + return total; + } + + public void setTotal(Long total) { + this.total = total; + } + + public ListSecurityMemberSyncTasksResponse withTasks(List tasks) { + this.tasks = tasks; + return this; + } + + public ListSecurityMemberSyncTasksResponse addTasksItem(MemberSyncTask tasksItem) { + if (this.tasks == null) { + this.tasks = new ArrayList<>(); + } + this.tasks.add(tasksItem); + return this; + } + + public ListSecurityMemberSyncTasksResponse withTasks(Consumer> tasksSetter) { + if (this.tasks == null) { + this.tasks = new ArrayList<>(); + } + tasksSetter.accept(this.tasks); + return this; + } + + /** + * 用户同步任务列表。 + * @return tasks + */ + public List getTasks() { + return tasks; + } + + public void setTasks(List tasks) { + this.tasks = tasks; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListSecurityMemberSyncTasksResponse that = (ListSecurityMemberSyncTasksResponse) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.tasks, that.tasks); + } + + @Override + public int hashCode() { + return Objects.hash(total, tasks); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListSecurityMemberSyncTasksResponse {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" tasks: ").append(toIndentedString(tasks)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/MemberSyncTask.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/MemberSyncTask.java new file mode 100644 index 0000000000..cf22714044 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/MemberSyncTask.java @@ -0,0 +1,906 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * MemberSyncTask + */ +public class MemberSyncTask { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "domain_id") + + private String domainId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_connection_workspace") + + private String dataConnectionWorkspace; + + /** + * 集群类型 * MRS集群 * DWS集群 + */ + public static final class ClusterTypeEnum { + + /** + * Enum MRS for value: "MRS" + */ + public static final ClusterTypeEnum MRS = new ClusterTypeEnum("MRS"); + + /** + * Enum DWS for value: "DWS" + */ + public static final ClusterTypeEnum DWS = new ClusterTypeEnum("DWS"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("MRS", MRS); + map.put("DWS", DWS); + return Collections.unmodifiableMap(map); + } + + private String value; + + ClusterTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ClusterTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ClusterTypeEnum(value)); + } + + public static ClusterTypeEnum 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 ClusterTypeEnum) { + return this.value.equals(((ClusterTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cluster_type") + + private ClusterTypeEnum clusterType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_connection_id") + + private String dataConnectionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_connection_name") + + private String dataConnectionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cluster_id") + + private String clusterId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cluster_name") + + private String clusterName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schedule_start_hour") + + private Integer scheduleStartHour; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schedule_end_hour") + + private Integer scheduleEndHour; + + /** + * 调度周期 * MINUTE 分钟为单位调度 * HOUR 小时为单位调度 + */ + public static final class SchedulePeriodEnum { + + /** + * Enum MINUTE for value: "MINUTE" + */ + public static final SchedulePeriodEnum MINUTE = new SchedulePeriodEnum("MINUTE"); + + /** + * Enum HOUR for value: "HOUR" + */ + public static final SchedulePeriodEnum HOUR = new SchedulePeriodEnum("HOUR"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("MINUTE", MINUTE); + map.put("HOUR", HOUR); + return Collections.unmodifiableMap(map); + } + + private String value; + + SchedulePeriodEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static SchedulePeriodEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new SchedulePeriodEnum(value)); + } + + public static SchedulePeriodEnum 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 SchedulePeriodEnum) { + return this.value.equals(((SchedulePeriodEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schedule_period") + + private SchedulePeriodEnum schedulePeriod; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schedule_interval") + + private Integer scheduleInterval; + + /** + * 调度状态 * NOT_SCHEDULE 未启用任务调度 * SCHEDULING 任务调度中 + */ + public static final class ScheduleStatusEnum { + + /** + * Enum NOT_SCHEDULE for value: "NOT_SCHEDULE" + */ + public static final ScheduleStatusEnum NOT_SCHEDULE = new ScheduleStatusEnum("NOT_SCHEDULE"); + + /** + * Enum SCHEDULING for value: "SCHEDULING" + */ + public static final ScheduleStatusEnum SCHEDULING = new ScheduleStatusEnum("SCHEDULING"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("NOT_SCHEDULE", NOT_SCHEDULE); + map.put("SCHEDULING", SCHEDULING); + return Collections.unmodifiableMap(map); + } + + private String value; + + ScheduleStatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ScheduleStatusEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ScheduleStatusEnum(value)); + } + + public static ScheduleStatusEnum 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 ScheduleStatusEnum) { + return this.value.equals(((ScheduleStatusEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schedule_status") + + private ScheduleStatusEnum scheduleStatus; + + /** + * 同步状态 * UNKNOWN 未知 * NOT_SYNC 未同步 * SYNCING 同步中 * SYNC_SUCCESS 同步成功 * SYNC_FAIL 同步失败 + */ + public static final class SyncStatusEnum { + + /** + * Enum UNKNOWN for value: "UNKNOWN" + */ + public static final SyncStatusEnum UNKNOWN = new SyncStatusEnum("UNKNOWN"); + + /** + * Enum NOT_SYNC for value: "NOT_SYNC" + */ + public static final SyncStatusEnum NOT_SYNC = new SyncStatusEnum("NOT_SYNC"); + + /** + * Enum SYNCING for value: "SYNCING" + */ + public static final SyncStatusEnum SYNCING = new SyncStatusEnum("SYNCING"); + + /** + * Enum SYNC_SUCCESS for value: "SYNC_SUCCESS" + */ + public static final SyncStatusEnum SYNC_SUCCESS = new SyncStatusEnum("SYNC_SUCCESS"); + + /** + * Enum SYNC_FAIL for value: "SYNC_FAIL" + */ + public static final SyncStatusEnum SYNC_FAIL = new SyncStatusEnum("SYNC_FAIL"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("UNKNOWN", UNKNOWN); + map.put("NOT_SYNC", NOT_SYNC); + map.put("SYNCING", SYNCING); + map.put("SYNC_SUCCESS", SYNC_SUCCESS); + map.put("SYNC_FAIL", SYNC_FAIL); + return Collections.unmodifiableMap(map); + } + + private String value; + + SyncStatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static SyncStatusEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new SyncStatusEnum(value)); + } + + public static SyncStatusEnum 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 SyncStatusEnum) { + return this.value.equals(((SyncStatusEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sync_status") + + private SyncStatusEnum syncStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sync_msg") + + private String syncMsg; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sync_time") + + private Long syncTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private Long createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_user") + + private String createUser; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private Long updateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_user") + + private String updateUser; + + public MemberSyncTask 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 MemberSyncTask withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public MemberSyncTask withDomainId(String domainId) { + this.domainId = domainId; + return this; + } + + /** + * 租户ID。 + * @return domainId + */ + public String getDomainId() { + return domainId; + } + + public void setDomainId(String domainId) { + this.domainId = domainId; + } + + public MemberSyncTask withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public MemberSyncTask withDataConnectionWorkspace(String dataConnectionWorkspace) { + this.dataConnectionWorkspace = dataConnectionWorkspace; + return this; + } + + /** + * 数据连接工作空间ID。 + * @return dataConnectionWorkspace + */ + public String getDataConnectionWorkspace() { + return dataConnectionWorkspace; + } + + public void setDataConnectionWorkspace(String dataConnectionWorkspace) { + this.dataConnectionWorkspace = dataConnectionWorkspace; + } + + public MemberSyncTask withClusterType(ClusterTypeEnum clusterType) { + this.clusterType = clusterType; + return this; + } + + /** + * 集群类型 * MRS集群 * DWS集群 + * @return clusterType + */ + public ClusterTypeEnum getClusterType() { + return clusterType; + } + + public void setClusterType(ClusterTypeEnum clusterType) { + this.clusterType = clusterType; + } + + public MemberSyncTask withDataConnectionId(String dataConnectionId) { + this.dataConnectionId = dataConnectionId; + return this; + } + + /** + * 数据连接id。 + * @return dataConnectionId + */ + public String getDataConnectionId() { + return dataConnectionId; + } + + public void setDataConnectionId(String dataConnectionId) { + this.dataConnectionId = dataConnectionId; + } + + public MemberSyncTask withDataConnectionName(String dataConnectionName) { + this.dataConnectionName = dataConnectionName; + return this; + } + + /** + * 数据连接名称。 + * @return dataConnectionName + */ + public String getDataConnectionName() { + return dataConnectionName; + } + + public void setDataConnectionName(String dataConnectionName) { + this.dataConnectionName = dataConnectionName; + } + + public MemberSyncTask withClusterId(String clusterId) { + this.clusterId = clusterId; + return this; + } + + /** + * 集群id。 + * @return clusterId + */ + public String getClusterId() { + return clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + public MemberSyncTask withClusterName(String clusterName) { + this.clusterName = clusterName; + return this; + } + + /** + * 集群名称。 + * @return clusterName + */ + public String getClusterName() { + return clusterName; + } + + public void setClusterName(String clusterName) { + this.clusterName = clusterName; + } + + public MemberSyncTask withScheduleStartHour(Integer scheduleStartHour) { + this.scheduleStartHour = scheduleStartHour; + return this; + } + + /** + * 调度开始时间, 单位为小时, 0~23。 + * minimum: 0 + * maximum: 23 + * @return scheduleStartHour + */ + public Integer getScheduleStartHour() { + return scheduleStartHour; + } + + public void setScheduleStartHour(Integer scheduleStartHour) { + this.scheduleStartHour = scheduleStartHour; + } + + public MemberSyncTask withScheduleEndHour(Integer scheduleEndHour) { + this.scheduleEndHour = scheduleEndHour; + return this; + } + + /** + * 调度结束时间, 单位为小时, 0~23。 + * minimum: 0 + * maximum: 23 + * @return scheduleEndHour + */ + public Integer getScheduleEndHour() { + return scheduleEndHour; + } + + public void setScheduleEndHour(Integer scheduleEndHour) { + this.scheduleEndHour = scheduleEndHour; + } + + public MemberSyncTask withSchedulePeriod(SchedulePeriodEnum schedulePeriod) { + this.schedulePeriod = schedulePeriod; + return this; + } + + /** + * 调度周期 * MINUTE 分钟为单位调度 * HOUR 小时为单位调度 + * @return schedulePeriod + */ + public SchedulePeriodEnum getSchedulePeriod() { + return schedulePeriod; + } + + public void setSchedulePeriod(SchedulePeriodEnum schedulePeriod) { + this.schedulePeriod = schedulePeriod; + } + + public MemberSyncTask withScheduleInterval(Integer scheduleInterval) { + this.scheduleInterval = scheduleInterval; + return this; + } + + /** + * 调度间隔。 + * minimum: 0 + * maximum: 2147483647 + * @return scheduleInterval + */ + public Integer getScheduleInterval() { + return scheduleInterval; + } + + public void setScheduleInterval(Integer scheduleInterval) { + this.scheduleInterval = scheduleInterval; + } + + public MemberSyncTask withScheduleStatus(ScheduleStatusEnum scheduleStatus) { + this.scheduleStatus = scheduleStatus; + return this; + } + + /** + * 调度状态 * NOT_SCHEDULE 未启用任务调度 * SCHEDULING 任务调度中 + * @return scheduleStatus + */ + public ScheduleStatusEnum getScheduleStatus() { + return scheduleStatus; + } + + public void setScheduleStatus(ScheduleStatusEnum scheduleStatus) { + this.scheduleStatus = scheduleStatus; + } + + public MemberSyncTask withSyncStatus(SyncStatusEnum syncStatus) { + this.syncStatus = syncStatus; + return this; + } + + /** + * 同步状态 * UNKNOWN 未知 * NOT_SYNC 未同步 * SYNCING 同步中 * SYNC_SUCCESS 同步成功 * SYNC_FAIL 同步失败 + * @return syncStatus + */ + public SyncStatusEnum getSyncStatus() { + return syncStatus; + } + + public void setSyncStatus(SyncStatusEnum syncStatus) { + this.syncStatus = syncStatus; + } + + public MemberSyncTask withSyncMsg(String syncMsg) { + this.syncMsg = syncMsg; + return this; + } + + /** + * 同步日志。 + * @return syncMsg + */ + public String getSyncMsg() { + return syncMsg; + } + + public void setSyncMsg(String syncMsg) { + this.syncMsg = syncMsg; + } + + public MemberSyncTask withSyncTime(Long syncTime) { + this.syncTime = syncTime; + return this; + } + + /** + * 同步时间。 + * minimum: 0 + * maximum: 4070880010000 + * @return syncTime + */ + public Long getSyncTime() { + return syncTime; + } + + public void setSyncTime(Long syncTime) { + this.syncTime = syncTime; + } + + public MemberSyncTask withCreateTime(Long createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间。 + * minimum: 0 + * maximum: 4070880010000 + * @return createTime + */ + public Long getCreateTime() { + return createTime; + } + + public void setCreateTime(Long createTime) { + this.createTime = createTime; + } + + public MemberSyncTask withCreateUser(String createUser) { + this.createUser = createUser; + return this; + } + + /** + * 创建者。 + * @return createUser + */ + public String getCreateUser() { + return createUser; + } + + public void setCreateUser(String createUser) { + this.createUser = createUser; + } + + public MemberSyncTask withUpdateTime(Long updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间。 + * minimum: 0 + * maximum: 4070880010000 + * @return updateTime + */ + public Long getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Long updateTime) { + this.updateTime = updateTime; + } + + public MemberSyncTask withUpdateUser(String updateUser) { + this.updateUser = updateUser; + return this; + } + + /** + * 更新者。 + * @return updateUser + */ + public String getUpdateUser() { + return updateUser; + } + + public void setUpdateUser(String updateUser) { + this.updateUser = updateUser; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + MemberSyncTask that = (MemberSyncTask) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.projectId, that.projectId) + && Objects.equals(this.domainId, that.domainId) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.dataConnectionWorkspace, that.dataConnectionWorkspace) + && Objects.equals(this.clusterType, that.clusterType) + && Objects.equals(this.dataConnectionId, that.dataConnectionId) + && Objects.equals(this.dataConnectionName, that.dataConnectionName) + && Objects.equals(this.clusterId, that.clusterId) && Objects.equals(this.clusterName, that.clusterName) + && Objects.equals(this.scheduleStartHour, that.scheduleStartHour) + && Objects.equals(this.scheduleEndHour, that.scheduleEndHour) + && Objects.equals(this.schedulePeriod, that.schedulePeriod) + && Objects.equals(this.scheduleInterval, that.scheduleInterval) + && Objects.equals(this.scheduleStatus, that.scheduleStatus) + && Objects.equals(this.syncStatus, that.syncStatus) && Objects.equals(this.syncMsg, that.syncMsg) + && Objects.equals(this.syncTime, that.syncTime) && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.createUser, that.createUser) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.updateUser, that.updateUser); + } + + @Override + public int hashCode() { + return Objects.hash(id, + projectId, + domainId, + instanceId, + dataConnectionWorkspace, + clusterType, + dataConnectionId, + dataConnectionName, + clusterId, + clusterName, + scheduleStartHour, + scheduleEndHour, + schedulePeriod, + scheduleInterval, + scheduleStatus, + syncStatus, + syncMsg, + syncTime, + createTime, + createUser, + updateTime, + updateUser); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MemberSyncTask {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" domainId: ").append(toIndentedString(domainId)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" dataConnectionWorkspace: ").append(toIndentedString(dataConnectionWorkspace)).append("\n"); + sb.append(" clusterType: ").append(toIndentedString(clusterType)).append("\n"); + sb.append(" dataConnectionId: ").append(toIndentedString(dataConnectionId)).append("\n"); + sb.append(" dataConnectionName: ").append(toIndentedString(dataConnectionName)).append("\n"); + sb.append(" clusterId: ").append(toIndentedString(clusterId)).append("\n"); + sb.append(" clusterName: ").append(toIndentedString(clusterName)).append("\n"); + sb.append(" scheduleStartHour: ").append(toIndentedString(scheduleStartHour)).append("\n"); + sb.append(" scheduleEndHour: ").append(toIndentedString(scheduleEndHour)).append("\n"); + sb.append(" schedulePeriod: ").append(toIndentedString(schedulePeriod)).append("\n"); + sb.append(" scheduleInterval: ").append(toIndentedString(scheduleInterval)).append("\n"); + sb.append(" scheduleStatus: ").append(toIndentedString(scheduleStatus)).append("\n"); + sb.append(" syncStatus: ").append(toIndentedString(syncStatus)).append("\n"); + sb.append(" syncMsg: ").append(toIndentedString(syncMsg)).append("\n"); + sb.append(" syncTime: ").append(toIndentedString(syncTime)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" createUser: ").append(toIndentedString(createUser)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" updateUser: ").append(toIndentedString(updateUser)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/QueueSrcAssignCreateDTO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/QueueSrcAssignCreateDTO.java new file mode 100644 index 0000000000..18ae0afb92 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/QueueSrcAssignCreateDTO.java @@ -0,0 +1,185 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * QueueSrcAssignCreateDTO + */ +public class QueueSrcAssignCreateDTO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_type") + + private String sourceType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "queue_name") + + private List queueName = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "conn_id") + + private String connId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cluster_id") + + private String clusterId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + public QueueSrcAssignCreateDTO withSourceType(String sourceType) { + this.sourceType = sourceType; + return this; + } + + /** + * 队列资源服务(当前只支持mrs、dli)。 + * @return sourceType + */ + public String getSourceType() { + return sourceType; + } + + public void setSourceType(String sourceType) { + this.sourceType = sourceType; + } + + public QueueSrcAssignCreateDTO withQueueName(List queueName) { + this.queueName = queueName; + return this; + } + + public QueueSrcAssignCreateDTO addQueueNameItem(String queueNameItem) { + if (this.queueName == null) { + this.queueName = new ArrayList<>(); + } + this.queueName.add(queueNameItem); + return this; + } + + public QueueSrcAssignCreateDTO withQueueName(Consumer> queueNameSetter) { + if (this.queueName == null) { + this.queueName = new ArrayList<>(); + } + queueNameSetter.accept(this.queueName); + return this; + } + + /** + * 队列名称。 + * @return queueName + */ + public List getQueueName() { + return queueName; + } + + public void setQueueName(List queueName) { + this.queueName = queueName; + } + + public QueueSrcAssignCreateDTO withConnId(String connId) { + this.connId = connId; + return this; + } + + /** + * 数据连接id。 + * @return connId + */ + public String getConnId() { + return connId; + } + + public void setConnId(String connId) { + this.connId = connId; + } + + public QueueSrcAssignCreateDTO withClusterId(String clusterId) { + this.clusterId = clusterId; + return this; + } + + /** + * 集群id。 + * @return clusterId + */ + public String getClusterId() { + return clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + public QueueSrcAssignCreateDTO 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; + } + QueueSrcAssignCreateDTO that = (QueueSrcAssignCreateDTO) obj; + return Objects.equals(this.sourceType, that.sourceType) && Objects.equals(this.queueName, that.queueName) + && Objects.equals(this.connId, that.connId) && Objects.equals(this.clusterId, that.clusterId) + && Objects.equals(this.description, that.description); + } + + @Override + public int hashCode() { + return Objects.hash(sourceType, queueName, connId, clusterId, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QueueSrcAssignCreateDTO {\n"); + sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n"); + sb.append(" queueName: ").append(toIndentedString(queueName)).append("\n"); + sb.append(" connId: ").append(toIndentedString(connId)).append("\n"); + sb.append(" clusterId: ").append(toIndentedString(clusterId)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/QueueSrcAssignEntity.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/QueueSrcAssignEntity.java new file mode 100644 index 0000000000..65b8b4d58a --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/QueueSrcAssignEntity.java @@ -0,0 +1,421 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 创建的队列资源。 + */ +public class QueueSrcAssignEntity { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_type") + + private String sourceType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "queue_name") + + private String queueName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "queue_type") + + private String queueType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "queue_attr") + + private Integer queueAttr; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "conn_id") + + private String connId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "conn_name") + + private String connName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cluster_id") + + private String clusterId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cluster_name") + + private String clusterName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private Long createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_user") + + private String createUser; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private Long updateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_user") + + private String updateUser; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + public QueueSrcAssignEntity 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 QueueSrcAssignEntity withSourceType(String sourceType) { + this.sourceType = sourceType; + return this; + } + + /** + * 队列资源服务名称。 + * @return sourceType + */ + public String getSourceType() { + return sourceType; + } + + public void setSourceType(String sourceType) { + this.sourceType = sourceType; + } + + public QueueSrcAssignEntity withQueueName(String queueName) { + this.queueName = queueName; + return this; + } + + /** + * 队列名称。 + * @return queueName + */ + public String getQueueName() { + return queueName; + } + + public void setQueueName(String queueName) { + this.queueName = queueName; + } + + public QueueSrcAssignEntity withQueueType(String queueType) { + this.queueType = queueType; + return this; + } + + /** + * 队列类型。 + * @return queueType + */ + public String getQueueType() { + return queueType; + } + + public void setQueueType(String queueType) { + this.queueType = queueType; + } + + public QueueSrcAssignEntity withQueueAttr(Integer queueAttr) { + this.queueAttr = queueAttr; + return this; + } + + /** + * 队列属性(0:默认,1:实时队列,2:离线队列), 当前只有yarn队列涉及。 + * minimum: 0 + * maximum: 127 + * @return queueAttr + */ + public Integer getQueueAttr() { + return queueAttr; + } + + public void setQueueAttr(Integer queueAttr) { + this.queueAttr = queueAttr; + } + + public QueueSrcAssignEntity withConnId(String connId) { + this.connId = connId; + return this; + } + + /** + * 数据连接id。 + * @return connId + */ + public String getConnId() { + return connId; + } + + public void setConnId(String connId) { + this.connId = connId; + } + + public QueueSrcAssignEntity withConnName(String connName) { + this.connName = connName; + return this; + } + + /** + * 数据连接名称。 + * @return connName + */ + public String getConnName() { + return connName; + } + + public void setConnName(String connName) { + this.connName = connName; + } + + public QueueSrcAssignEntity withClusterId(String clusterId) { + this.clusterId = clusterId; + return this; + } + + /** + * 集群id。 + * @return clusterId + */ + public String getClusterId() { + return clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + public QueueSrcAssignEntity withClusterName(String clusterName) { + this.clusterName = clusterName; + return this; + } + + /** + * 集群名称。 + * @return clusterName + */ + public String getClusterName() { + return clusterName; + } + + public void setClusterName(String clusterName) { + this.clusterName = clusterName; + } + + public QueueSrcAssignEntity withCreateTime(Long createTime) { + this.createTime = createTime; + return this; + } + + /** + * 队列加入此空间的时间。 + * minimum: 0 + * maximum: 4070880010000 + * @return createTime + */ + public Long getCreateTime() { + return createTime; + } + + public void setCreateTime(Long createTime) { + this.createTime = createTime; + } + + public QueueSrcAssignEntity withCreateUser(String createUser) { + this.createUser = createUser; + return this; + } + + /** + * 队列加入此的操作人。 + * @return createUser + */ + public String getCreateUser() { + return createUser; + } + + public void setCreateUser(String createUser) { + this.createUser = createUser; + } + + public QueueSrcAssignEntity withUpdateTime(Long updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 当前空间下管理的队列更新时间。 + * minimum: 0 + * maximum: 4070880010000 + * @return updateTime + */ + public Long getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Long updateTime) { + this.updateTime = updateTime; + } + + public QueueSrcAssignEntity withUpdateUser(String updateUser) { + this.updateUser = updateUser; + return this; + } + + /** + * 当前空间下管理的队列更新人。 + * @return updateUser + */ + public String getUpdateUser() { + return updateUser; + } + + public void setUpdateUser(String updateUser) { + this.updateUser = updateUser; + } + + public QueueSrcAssignEntity withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目id。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public QueueSrcAssignEntity 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; + } + QueueSrcAssignEntity that = (QueueSrcAssignEntity) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.sourceType, that.sourceType) + && Objects.equals(this.queueName, that.queueName) && Objects.equals(this.queueType, that.queueType) + && Objects.equals(this.queueAttr, that.queueAttr) && Objects.equals(this.connId, that.connId) + && Objects.equals(this.connName, that.connName) && Objects.equals(this.clusterId, that.clusterId) + && Objects.equals(this.clusterName, that.clusterName) && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.createUser, that.createUser) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.updateUser, that.updateUser) && Objects.equals(this.projectId, that.projectId) + && Objects.equals(this.description, that.description); + } + + @Override + public int hashCode() { + return Objects.hash(id, + sourceType, + queueName, + queueType, + queueAttr, + connId, + connName, + clusterId, + clusterName, + createTime, + createUser, + updateTime, + updateUser, + projectId, + description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QueueSrcAssignEntity {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n"); + sb.append(" queueName: ").append(toIndentedString(queueName)).append("\n"); + sb.append(" queueType: ").append(toIndentedString(queueType)).append("\n"); + sb.append(" queueAttr: ").append(toIndentedString(queueAttr)).append("\n"); + sb.append(" connId: ").append(toIndentedString(connId)).append("\n"); + sb.append(" connName: ").append(toIndentedString(connName)).append("\n"); + sb.append(" clusterId: ").append(toIndentedString(clusterId)).append("\n"); + sb.append(" clusterName: ").append(toIndentedString(clusterName)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" createUser: ").append(toIndentedString(createUser)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" updateUser: ").append(toIndentedString(updateUser)).append("\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/QueueSrcAssignUpdateDTO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/QueueSrcAssignUpdateDTO.java new file mode 100644 index 0000000000..206bbf5369 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/QueueSrcAssignUpdateDTO.java @@ -0,0 +1,97 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * QueueSrcAssignUpdateDTO + */ +public class QueueSrcAssignUpdateDTO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "queue_attr") + + private Integer queueAttr; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + public QueueSrcAssignUpdateDTO withQueueAttr(Integer queueAttr) { + this.queueAttr = queueAttr; + return this; + } + + /** + * 队列属性(0:默认,1:实时队列,2:离线队列), 当前只有yarn队列涉及。 + * minimum: 0 + * maximum: 127 + * @return queueAttr + */ + public Integer getQueueAttr() { + return queueAttr; + } + + public void setQueueAttr(Integer queueAttr) { + this.queueAttr = queueAttr; + } + + public QueueSrcAssignUpdateDTO 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; + } + QueueSrcAssignUpdateDTO that = (QueueSrcAssignUpdateDTO) obj; + return Objects.equals(this.queueAttr, that.queueAttr) && Objects.equals(this.description, that.description); + } + + @Override + public int hashCode() { + return Objects.hash(queueAttr, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QueueSrcAssignUpdateDTO {\n"); + sb.append(" queueAttr: ").append(toIndentedString(queueAttr)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowSecurityMemberSyncTaskRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowSecurityMemberSyncTaskRequest.java new file mode 100644 index 0000000000..fb2b8d9ce2 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowSecurityMemberSyncTaskRequest.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowSecurityMemberSyncTaskRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "workspace") + + private String workspace; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_id") + + private String taskId; + + public ShowSecurityMemberSyncTaskRequest withWorkspace(String workspace) { + this.workspace = workspace; + return this; + } + + /** + * DataArts Studio工作空间ID + * @return workspace + */ + public String getWorkspace() { + return workspace; + } + + public void setWorkspace(String workspace) { + this.workspace = workspace; + } + + public ShowSecurityMemberSyncTaskRequest 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; + } + ShowSecurityMemberSyncTaskRequest that = (ShowSecurityMemberSyncTaskRequest) obj; + return Objects.equals(this.workspace, that.workspace) && Objects.equals(this.taskId, that.taskId); + } + + @Override + public int hashCode() { + return Objects.hash(workspace, taskId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowSecurityMemberSyncTaskRequest {\n"); + sb.append(" workspace: ").append(toIndentedString(workspace)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowSecurityMemberSyncTaskResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowSecurityMemberSyncTaskResponse.java new file mode 100644 index 0000000000..752cfac8cc --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowSecurityMemberSyncTaskResponse.java @@ -0,0 +1,907 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * Response Object + */ +public class ShowSecurityMemberSyncTaskResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "domain_id") + + private String domainId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_connection_workspace") + + private String dataConnectionWorkspace; + + /** + * 集群类型 * MRS集群 * DWS集群 + */ + public static final class ClusterTypeEnum { + + /** + * Enum MRS for value: "MRS" + */ + public static final ClusterTypeEnum MRS = new ClusterTypeEnum("MRS"); + + /** + * Enum DWS for value: "DWS" + */ + public static final ClusterTypeEnum DWS = new ClusterTypeEnum("DWS"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("MRS", MRS); + map.put("DWS", DWS); + return Collections.unmodifiableMap(map); + } + + private String value; + + ClusterTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ClusterTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ClusterTypeEnum(value)); + } + + public static ClusterTypeEnum 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 ClusterTypeEnum) { + return this.value.equals(((ClusterTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cluster_type") + + private ClusterTypeEnum clusterType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_connection_id") + + private String dataConnectionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_connection_name") + + private String dataConnectionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cluster_id") + + private String clusterId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cluster_name") + + private String clusterName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schedule_start_hour") + + private Integer scheduleStartHour; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schedule_end_hour") + + private Integer scheduleEndHour; + + /** + * 调度周期 * MINUTE 分钟为单位调度 * HOUR 小时为单位调度 + */ + public static final class SchedulePeriodEnum { + + /** + * Enum MINUTE for value: "MINUTE" + */ + public static final SchedulePeriodEnum MINUTE = new SchedulePeriodEnum("MINUTE"); + + /** + * Enum HOUR for value: "HOUR" + */ + public static final SchedulePeriodEnum HOUR = new SchedulePeriodEnum("HOUR"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("MINUTE", MINUTE); + map.put("HOUR", HOUR); + return Collections.unmodifiableMap(map); + } + + private String value; + + SchedulePeriodEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static SchedulePeriodEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new SchedulePeriodEnum(value)); + } + + public static SchedulePeriodEnum 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 SchedulePeriodEnum) { + return this.value.equals(((SchedulePeriodEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schedule_period") + + private SchedulePeriodEnum schedulePeriod; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schedule_interval") + + private Integer scheduleInterval; + + /** + * 调度状态 * NOT_SCHEDULE 未启用任务调度 * SCHEDULING 任务调度中 + */ + public static final class ScheduleStatusEnum { + + /** + * Enum NOT_SCHEDULE for value: "NOT_SCHEDULE" + */ + public static final ScheduleStatusEnum NOT_SCHEDULE = new ScheduleStatusEnum("NOT_SCHEDULE"); + + /** + * Enum SCHEDULING for value: "SCHEDULING" + */ + public static final ScheduleStatusEnum SCHEDULING = new ScheduleStatusEnum("SCHEDULING"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("NOT_SCHEDULE", NOT_SCHEDULE); + map.put("SCHEDULING", SCHEDULING); + return Collections.unmodifiableMap(map); + } + + private String value; + + ScheduleStatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ScheduleStatusEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ScheduleStatusEnum(value)); + } + + public static ScheduleStatusEnum 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 ScheduleStatusEnum) { + return this.value.equals(((ScheduleStatusEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schedule_status") + + private ScheduleStatusEnum scheduleStatus; + + /** + * 同步状态 * UNKNOWN 未知 * NOT_SYNC 未同步 * SYNCING 同步中 * SYNC_SUCCESS 同步成功 * SYNC_FAIL 同步失败 + */ + public static final class SyncStatusEnum { + + /** + * Enum UNKNOWN for value: "UNKNOWN" + */ + public static final SyncStatusEnum UNKNOWN = new SyncStatusEnum("UNKNOWN"); + + /** + * Enum NOT_SYNC for value: "NOT_SYNC" + */ + public static final SyncStatusEnum NOT_SYNC = new SyncStatusEnum("NOT_SYNC"); + + /** + * Enum SYNCING for value: "SYNCING" + */ + public static final SyncStatusEnum SYNCING = new SyncStatusEnum("SYNCING"); + + /** + * Enum SYNC_SUCCESS for value: "SYNC_SUCCESS" + */ + public static final SyncStatusEnum SYNC_SUCCESS = new SyncStatusEnum("SYNC_SUCCESS"); + + /** + * Enum SYNC_FAIL for value: "SYNC_FAIL" + */ + public static final SyncStatusEnum SYNC_FAIL = new SyncStatusEnum("SYNC_FAIL"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("UNKNOWN", UNKNOWN); + map.put("NOT_SYNC", NOT_SYNC); + map.put("SYNCING", SYNCING); + map.put("SYNC_SUCCESS", SYNC_SUCCESS); + map.put("SYNC_FAIL", SYNC_FAIL); + return Collections.unmodifiableMap(map); + } + + private String value; + + SyncStatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static SyncStatusEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new SyncStatusEnum(value)); + } + + public static SyncStatusEnum 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 SyncStatusEnum) { + return this.value.equals(((SyncStatusEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sync_status") + + private SyncStatusEnum syncStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sync_msg") + + private String syncMsg; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sync_time") + + private Long syncTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private Long createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_user") + + private String createUser; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private Long updateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_user") + + private String updateUser; + + public ShowSecurityMemberSyncTaskResponse 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 ShowSecurityMemberSyncTaskResponse withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public ShowSecurityMemberSyncTaskResponse withDomainId(String domainId) { + this.domainId = domainId; + return this; + } + + /** + * 租户ID。 + * @return domainId + */ + public String getDomainId() { + return domainId; + } + + public void setDomainId(String domainId) { + this.domainId = domainId; + } + + public ShowSecurityMemberSyncTaskResponse withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ShowSecurityMemberSyncTaskResponse withDataConnectionWorkspace(String dataConnectionWorkspace) { + this.dataConnectionWorkspace = dataConnectionWorkspace; + return this; + } + + /** + * 数据连接工作空间ID。 + * @return dataConnectionWorkspace + */ + public String getDataConnectionWorkspace() { + return dataConnectionWorkspace; + } + + public void setDataConnectionWorkspace(String dataConnectionWorkspace) { + this.dataConnectionWorkspace = dataConnectionWorkspace; + } + + public ShowSecurityMemberSyncTaskResponse withClusterType(ClusterTypeEnum clusterType) { + this.clusterType = clusterType; + return this; + } + + /** + * 集群类型 * MRS集群 * DWS集群 + * @return clusterType + */ + public ClusterTypeEnum getClusterType() { + return clusterType; + } + + public void setClusterType(ClusterTypeEnum clusterType) { + this.clusterType = clusterType; + } + + public ShowSecurityMemberSyncTaskResponse withDataConnectionId(String dataConnectionId) { + this.dataConnectionId = dataConnectionId; + return this; + } + + /** + * 数据连接id。 + * @return dataConnectionId + */ + public String getDataConnectionId() { + return dataConnectionId; + } + + public void setDataConnectionId(String dataConnectionId) { + this.dataConnectionId = dataConnectionId; + } + + public ShowSecurityMemberSyncTaskResponse withDataConnectionName(String dataConnectionName) { + this.dataConnectionName = dataConnectionName; + return this; + } + + /** + * 数据连接名称。 + * @return dataConnectionName + */ + public String getDataConnectionName() { + return dataConnectionName; + } + + public void setDataConnectionName(String dataConnectionName) { + this.dataConnectionName = dataConnectionName; + } + + public ShowSecurityMemberSyncTaskResponse withClusterId(String clusterId) { + this.clusterId = clusterId; + return this; + } + + /** + * 集群id。 + * @return clusterId + */ + public String getClusterId() { + return clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + public ShowSecurityMemberSyncTaskResponse withClusterName(String clusterName) { + this.clusterName = clusterName; + return this; + } + + /** + * 集群名称。 + * @return clusterName + */ + public String getClusterName() { + return clusterName; + } + + public void setClusterName(String clusterName) { + this.clusterName = clusterName; + } + + public ShowSecurityMemberSyncTaskResponse withScheduleStartHour(Integer scheduleStartHour) { + this.scheduleStartHour = scheduleStartHour; + return this; + } + + /** + * 调度开始时间, 单位为小时, 0~23。 + * minimum: 0 + * maximum: 23 + * @return scheduleStartHour + */ + public Integer getScheduleStartHour() { + return scheduleStartHour; + } + + public void setScheduleStartHour(Integer scheduleStartHour) { + this.scheduleStartHour = scheduleStartHour; + } + + public ShowSecurityMemberSyncTaskResponse withScheduleEndHour(Integer scheduleEndHour) { + this.scheduleEndHour = scheduleEndHour; + return this; + } + + /** + * 调度结束时间, 单位为小时, 0~23。 + * minimum: 0 + * maximum: 23 + * @return scheduleEndHour + */ + public Integer getScheduleEndHour() { + return scheduleEndHour; + } + + public void setScheduleEndHour(Integer scheduleEndHour) { + this.scheduleEndHour = scheduleEndHour; + } + + public ShowSecurityMemberSyncTaskResponse withSchedulePeriod(SchedulePeriodEnum schedulePeriod) { + this.schedulePeriod = schedulePeriod; + return this; + } + + /** + * 调度周期 * MINUTE 分钟为单位调度 * HOUR 小时为单位调度 + * @return schedulePeriod + */ + public SchedulePeriodEnum getSchedulePeriod() { + return schedulePeriod; + } + + public void setSchedulePeriod(SchedulePeriodEnum schedulePeriod) { + this.schedulePeriod = schedulePeriod; + } + + public ShowSecurityMemberSyncTaskResponse withScheduleInterval(Integer scheduleInterval) { + this.scheduleInterval = scheduleInterval; + return this; + } + + /** + * 调度间隔。 + * minimum: 0 + * maximum: 2147483647 + * @return scheduleInterval + */ + public Integer getScheduleInterval() { + return scheduleInterval; + } + + public void setScheduleInterval(Integer scheduleInterval) { + this.scheduleInterval = scheduleInterval; + } + + public ShowSecurityMemberSyncTaskResponse withScheduleStatus(ScheduleStatusEnum scheduleStatus) { + this.scheduleStatus = scheduleStatus; + return this; + } + + /** + * 调度状态 * NOT_SCHEDULE 未启用任务调度 * SCHEDULING 任务调度中 + * @return scheduleStatus + */ + public ScheduleStatusEnum getScheduleStatus() { + return scheduleStatus; + } + + public void setScheduleStatus(ScheduleStatusEnum scheduleStatus) { + this.scheduleStatus = scheduleStatus; + } + + public ShowSecurityMemberSyncTaskResponse withSyncStatus(SyncStatusEnum syncStatus) { + this.syncStatus = syncStatus; + return this; + } + + /** + * 同步状态 * UNKNOWN 未知 * NOT_SYNC 未同步 * SYNCING 同步中 * SYNC_SUCCESS 同步成功 * SYNC_FAIL 同步失败 + * @return syncStatus + */ + public SyncStatusEnum getSyncStatus() { + return syncStatus; + } + + public void setSyncStatus(SyncStatusEnum syncStatus) { + this.syncStatus = syncStatus; + } + + public ShowSecurityMemberSyncTaskResponse withSyncMsg(String syncMsg) { + this.syncMsg = syncMsg; + return this; + } + + /** + * 同步日志。 + * @return syncMsg + */ + public String getSyncMsg() { + return syncMsg; + } + + public void setSyncMsg(String syncMsg) { + this.syncMsg = syncMsg; + } + + public ShowSecurityMemberSyncTaskResponse withSyncTime(Long syncTime) { + this.syncTime = syncTime; + return this; + } + + /** + * 同步时间。 + * minimum: 0 + * maximum: 4070880010000 + * @return syncTime + */ + public Long getSyncTime() { + return syncTime; + } + + public void setSyncTime(Long syncTime) { + this.syncTime = syncTime; + } + + public ShowSecurityMemberSyncTaskResponse withCreateTime(Long createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间。 + * minimum: 0 + * maximum: 4070880010000 + * @return createTime + */ + public Long getCreateTime() { + return createTime; + } + + public void setCreateTime(Long createTime) { + this.createTime = createTime; + } + + public ShowSecurityMemberSyncTaskResponse withCreateUser(String createUser) { + this.createUser = createUser; + return this; + } + + /** + * 创建者。 + * @return createUser + */ + public String getCreateUser() { + return createUser; + } + + public void setCreateUser(String createUser) { + this.createUser = createUser; + } + + public ShowSecurityMemberSyncTaskResponse withUpdateTime(Long updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间。 + * minimum: 0 + * maximum: 4070880010000 + * @return updateTime + */ + public Long getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Long updateTime) { + this.updateTime = updateTime; + } + + public ShowSecurityMemberSyncTaskResponse withUpdateUser(String updateUser) { + this.updateUser = updateUser; + return this; + } + + /** + * 更新者。 + * @return updateUser + */ + public String getUpdateUser() { + return updateUser; + } + + public void setUpdateUser(String updateUser) { + this.updateUser = updateUser; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowSecurityMemberSyncTaskResponse that = (ShowSecurityMemberSyncTaskResponse) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.projectId, that.projectId) + && Objects.equals(this.domainId, that.domainId) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.dataConnectionWorkspace, that.dataConnectionWorkspace) + && Objects.equals(this.clusterType, that.clusterType) + && Objects.equals(this.dataConnectionId, that.dataConnectionId) + && Objects.equals(this.dataConnectionName, that.dataConnectionName) + && Objects.equals(this.clusterId, that.clusterId) && Objects.equals(this.clusterName, that.clusterName) + && Objects.equals(this.scheduleStartHour, that.scheduleStartHour) + && Objects.equals(this.scheduleEndHour, that.scheduleEndHour) + && Objects.equals(this.schedulePeriod, that.schedulePeriod) + && Objects.equals(this.scheduleInterval, that.scheduleInterval) + && Objects.equals(this.scheduleStatus, that.scheduleStatus) + && Objects.equals(this.syncStatus, that.syncStatus) && Objects.equals(this.syncMsg, that.syncMsg) + && Objects.equals(this.syncTime, that.syncTime) && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.createUser, that.createUser) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.updateUser, that.updateUser); + } + + @Override + public int hashCode() { + return Objects.hash(id, + projectId, + domainId, + instanceId, + dataConnectionWorkspace, + clusterType, + dataConnectionId, + dataConnectionName, + clusterId, + clusterName, + scheduleStartHour, + scheduleEndHour, + schedulePeriod, + scheduleInterval, + scheduleStatus, + syncStatus, + syncMsg, + syncTime, + createTime, + createUser, + updateTime, + updateUser); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowSecurityMemberSyncTaskResponse {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" domainId: ").append(toIndentedString(domainId)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" dataConnectionWorkspace: ").append(toIndentedString(dataConnectionWorkspace)).append("\n"); + sb.append(" clusterType: ").append(toIndentedString(clusterType)).append("\n"); + sb.append(" dataConnectionId: ").append(toIndentedString(dataConnectionId)).append("\n"); + sb.append(" dataConnectionName: ").append(toIndentedString(dataConnectionName)).append("\n"); + sb.append(" clusterId: ").append(toIndentedString(clusterId)).append("\n"); + sb.append(" clusterName: ").append(toIndentedString(clusterName)).append("\n"); + sb.append(" scheduleStartHour: ").append(toIndentedString(scheduleStartHour)).append("\n"); + sb.append(" scheduleEndHour: ").append(toIndentedString(scheduleEndHour)).append("\n"); + sb.append(" schedulePeriod: ").append(toIndentedString(schedulePeriod)).append("\n"); + sb.append(" scheduleInterval: ").append(toIndentedString(scheduleInterval)).append("\n"); + sb.append(" scheduleStatus: ").append(toIndentedString(scheduleStatus)).append("\n"); + sb.append(" syncStatus: ").append(toIndentedString(syncStatus)).append("\n"); + sb.append(" syncMsg: ").append(toIndentedString(syncMsg)).append("\n"); + sb.append(" syncTime: ").append(toIndentedString(syncTime)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" createUser: ").append(toIndentedString(createUser)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" updateUser: ").append(toIndentedString(updateUser)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateSecurityAssignedQueueRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateSecurityAssignedQueueRequest.java new file mode 100644 index 0000000000..45e83c5afd --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateSecurityAssignedQueueRequest.java @@ -0,0 +1,129 @@ +package com.huaweicloud.sdk.dataartsstudio.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 UpdateSecurityAssignedQueueRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "workspace") + + private String workspace; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private QueueSrcAssignUpdateDTO body; + + public UpdateSecurityAssignedQueueRequest withWorkspace(String workspace) { + this.workspace = workspace; + return this; + } + + /** + * DataArts Studio工作空间ID + * @return workspace + */ + public String getWorkspace() { + return workspace; + } + + public void setWorkspace(String workspace) { + this.workspace = workspace; + } + + public UpdateSecurityAssignedQueueRequest 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 UpdateSecurityAssignedQueueRequest withBody(QueueSrcAssignUpdateDTO body) { + this.body = body; + return this; + } + + public UpdateSecurityAssignedQueueRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new QueueSrcAssignUpdateDTO(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public QueueSrcAssignUpdateDTO getBody() { + return body; + } + + public void setBody(QueueSrcAssignUpdateDTO 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; + } + UpdateSecurityAssignedQueueRequest that = (UpdateSecurityAssignedQueueRequest) obj; + return Objects.equals(this.workspace, that.workspace) && Objects.equals(this.id, that.id) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(workspace, id, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateSecurityAssignedQueueRequest {\n"); + sb.append(" workspace: ").append(toIndentedString(workspace)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateSecurityAssignedQueueResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateSecurityAssignedQueueResponse.java new file mode 100644 index 0000000000..cff8881e4d --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateSecurityAssignedQueueResponse.java @@ -0,0 +1,422 @@ +package com.huaweicloud.sdk.dataartsstudio.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 UpdateSecurityAssignedQueueResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_type") + + private String sourceType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "queue_name") + + private String queueName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "queue_type") + + private String queueType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "queue_attr") + + private Integer queueAttr; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "conn_id") + + private String connId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "conn_name") + + private String connName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cluster_id") + + private String clusterId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cluster_name") + + private String clusterName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private Long createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_user") + + private String createUser; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private Long updateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_user") + + private String updateUser; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + public UpdateSecurityAssignedQueueResponse 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 UpdateSecurityAssignedQueueResponse withSourceType(String sourceType) { + this.sourceType = sourceType; + return this; + } + + /** + * 队列资源服务名称。 + * @return sourceType + */ + public String getSourceType() { + return sourceType; + } + + public void setSourceType(String sourceType) { + this.sourceType = sourceType; + } + + public UpdateSecurityAssignedQueueResponse withQueueName(String queueName) { + this.queueName = queueName; + return this; + } + + /** + * 队列名称。 + * @return queueName + */ + public String getQueueName() { + return queueName; + } + + public void setQueueName(String queueName) { + this.queueName = queueName; + } + + public UpdateSecurityAssignedQueueResponse withQueueType(String queueType) { + this.queueType = queueType; + return this; + } + + /** + * 队列类型。 + * @return queueType + */ + public String getQueueType() { + return queueType; + } + + public void setQueueType(String queueType) { + this.queueType = queueType; + } + + public UpdateSecurityAssignedQueueResponse withQueueAttr(Integer queueAttr) { + this.queueAttr = queueAttr; + return this; + } + + /** + * 队列属性(0:默认,1:实时队列,2:离线队列), 当前只有yarn队列涉及。 + * minimum: 0 + * maximum: 127 + * @return queueAttr + */ + public Integer getQueueAttr() { + return queueAttr; + } + + public void setQueueAttr(Integer queueAttr) { + this.queueAttr = queueAttr; + } + + public UpdateSecurityAssignedQueueResponse withConnId(String connId) { + this.connId = connId; + return this; + } + + /** + * 数据连接id。 + * @return connId + */ + public String getConnId() { + return connId; + } + + public void setConnId(String connId) { + this.connId = connId; + } + + public UpdateSecurityAssignedQueueResponse withConnName(String connName) { + this.connName = connName; + return this; + } + + /** + * 数据连接名称。 + * @return connName + */ + public String getConnName() { + return connName; + } + + public void setConnName(String connName) { + this.connName = connName; + } + + public UpdateSecurityAssignedQueueResponse withClusterId(String clusterId) { + this.clusterId = clusterId; + return this; + } + + /** + * 集群id。 + * @return clusterId + */ + public String getClusterId() { + return clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + public UpdateSecurityAssignedQueueResponse withClusterName(String clusterName) { + this.clusterName = clusterName; + return this; + } + + /** + * 集群名称。 + * @return clusterName + */ + public String getClusterName() { + return clusterName; + } + + public void setClusterName(String clusterName) { + this.clusterName = clusterName; + } + + public UpdateSecurityAssignedQueueResponse withCreateTime(Long createTime) { + this.createTime = createTime; + return this; + } + + /** + * 队列加入此空间的时间。 + * minimum: 0 + * maximum: 4070880010000 + * @return createTime + */ + public Long getCreateTime() { + return createTime; + } + + public void setCreateTime(Long createTime) { + this.createTime = createTime; + } + + public UpdateSecurityAssignedQueueResponse withCreateUser(String createUser) { + this.createUser = createUser; + return this; + } + + /** + * 队列加入此的操作人。 + * @return createUser + */ + public String getCreateUser() { + return createUser; + } + + public void setCreateUser(String createUser) { + this.createUser = createUser; + } + + public UpdateSecurityAssignedQueueResponse withUpdateTime(Long updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 当前空间下管理的队列更新时间。 + * minimum: 0 + * maximum: 4070880010000 + * @return updateTime + */ + public Long getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Long updateTime) { + this.updateTime = updateTime; + } + + public UpdateSecurityAssignedQueueResponse withUpdateUser(String updateUser) { + this.updateUser = updateUser; + return this; + } + + /** + * 当前空间下管理的队列更新人。 + * @return updateUser + */ + public String getUpdateUser() { + return updateUser; + } + + public void setUpdateUser(String updateUser) { + this.updateUser = updateUser; + } + + public UpdateSecurityAssignedQueueResponse withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目id。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public UpdateSecurityAssignedQueueResponse 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; + } + UpdateSecurityAssignedQueueResponse that = (UpdateSecurityAssignedQueueResponse) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.sourceType, that.sourceType) + && Objects.equals(this.queueName, that.queueName) && Objects.equals(this.queueType, that.queueType) + && Objects.equals(this.queueAttr, that.queueAttr) && Objects.equals(this.connId, that.connId) + && Objects.equals(this.connName, that.connName) && Objects.equals(this.clusterId, that.clusterId) + && Objects.equals(this.clusterName, that.clusterName) && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.createUser, that.createUser) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.updateUser, that.updateUser) && Objects.equals(this.projectId, that.projectId) + && Objects.equals(this.description, that.description); + } + + @Override + public int hashCode() { + return Objects.hash(id, + sourceType, + queueName, + queueType, + queueAttr, + connId, + connName, + clusterId, + clusterName, + createTime, + createUser, + updateTime, + updateUser, + projectId, + description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateSecurityAssignedQueueResponse {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n"); + sb.append(" queueName: ").append(toIndentedString(queueName)).append("\n"); + sb.append(" queueType: ").append(toIndentedString(queueType)).append("\n"); + sb.append(" queueAttr: ").append(toIndentedString(queueAttr)).append("\n"); + sb.append(" connId: ").append(toIndentedString(connId)).append("\n"); + sb.append(" connName: ").append(toIndentedString(connName)).append("\n"); + sb.append(" clusterId: ").append(toIndentedString(clusterId)).append("\n"); + sb.append(" clusterName: ").append(toIndentedString(clusterName)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" createUser: ").append(toIndentedString(createUser)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" updateUser: ").append(toIndentedString(updateUser)).append("\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).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/dbss/pom.xml b/services/dbss/pom.xml index 7a5b2a76c9..6853370205 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-dbss - 3.1.95 + 3.1.96 Huawei Cloud SDK for DBSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/dc/pom.xml b/services/dc/pom.xml index 0eb823d97f..cdde587cf8 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-dc - 3.1.95 + 3.1.96 Huawei Cloud SDK for DC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/dcs/pom.xml b/services/dcs/pom.xml index e6879be616..0cf1ea931e 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-dcs - 3.1.95 + 3.1.96 Huawei Cloud SDK for DCS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ClientInfo.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ClientInfo.java index e73a274c7f..465d29ec5d 100644 --- a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ClientInfo.java +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ClientInfo.java @@ -48,7 +48,7 @@ public class ClientInfo { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "idle") - private String idle; + private Integer idle; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "db") @@ -292,7 +292,7 @@ public void setAge(Integer age) { this.age = age; } - public ClientInfo withIdle(String idle) { + public ClientInfo withIdle(Integer idle) { this.idle = idle; return this; } @@ -301,11 +301,11 @@ public ClientInfo withIdle(String idle) { * 空闲时长(单位:秒) * @return idle */ - public String getIdle() { + public Integer getIdle() { return idle; } - public void setIdle(String idle) { + public void setIdle(Integer idle) { this.idle = idle; } diff --git a/services/ddm/pom.xml b/services/ddm/pom.xml index c142cceb33..8e562dcf84 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-ddm - 3.1.95 + 3.1.96 Huawei Cloud SDK for DDM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/dds/pom.xml b/services/dds/pom.xml index ca34321feb..bf9cc615b4 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-dds - 3.1.95 + 3.1.96 Huawei Cloud SDK for DDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/deh/pom.xml b/services/deh/pom.xml index 3baf5aa6f9..ca160d64d1 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-deh - 3.1.95 + 3.1.96 Huawei Cloud SDK for DEH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/devsecurity/pom.xml b/services/devsecurity/pom.xml index 169090bd68..e92148e1d4 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-devsecurity - 3.1.95 + 3.1.96 Huawei Cloud SDK for DEVSECURITY 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/devstar/pom.xml b/services/devstar/pom.xml index 4499b863fe..26cc9097f7 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-devstar - 3.1.95 + 3.1.96 Huawei Cloud SDK for DEVSTAR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/dgc/pom.xml b/services/dgc/pom.xml index 2844910de4..bc4af074bb 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-dgc - 3.1.95 + 3.1.96 Huawei Cloud SDK for DGC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/dis/pom.xml b/services/dis/pom.xml index f8052b24e8..3d24ff83c7 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-dis - 3.1.95 + 3.1.96 Huawei Cloud SDK for DIS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/dlf/pom.xml b/services/dlf/pom.xml index e1d4aac113..ed3bacfbe6 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-dlf - 3.1.95 + 3.1.96 Huawei Cloud SDK for DLF 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/dli/pom.xml b/services/dli/pom.xml index 5fa40b3be5..69a9f3b20f 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-dli - 3.1.95 + 3.1.96 Huawei Cloud SDK for DLI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/CreateSqlJobRequestBody.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/CreateSqlJobRequestBody.java index 56eed7e8d9..0e00e58e23 100644 --- a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/CreateSqlJobRequestBody.java +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/CreateSqlJobRequestBody.java @@ -98,6 +98,11 @@ public int hashCode() { private EngineTypeEnum engineType; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "current_catalog") + + private String currentCatalog; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "currentdb") @@ -152,6 +157,23 @@ public void setEngineType(EngineTypeEnum engineType) { this.engineType = engineType; } + public CreateSqlJobRequestBody withCurrentCatalog(String currentCatalog) { + this.currentCatalog = currentCatalog; + return this; + } + + /** + * 待提交作业的表默认catalog。 + * @return currentCatalog + */ + public String getCurrentCatalog() { + return currentCatalog; + } + + public void setCurrentCatalog(String currentCatalog) { + this.currentCatalog = currentCatalog; + } + public CreateSqlJobRequestBody withCurrentdb(String currentdb) { this.currentdb = currentdb; return this; @@ -262,13 +284,14 @@ public boolean equals(java.lang.Object obj) { } CreateSqlJobRequestBody that = (CreateSqlJobRequestBody) obj; return Objects.equals(this.sql, that.sql) && Objects.equals(this.engineType, that.engineType) + && Objects.equals(this.currentCatalog, that.currentCatalog) && Objects.equals(this.currentdb, that.currentdb) && Objects.equals(this.queueName, that.queueName) && Objects.equals(this.conf, that.conf) && Objects.equals(this.tags, that.tags); } @Override public int hashCode() { - return Objects.hash(sql, engineType, currentdb, queueName, conf, tags); + return Objects.hash(sql, engineType, currentCatalog, currentdb, queueName, conf, tags); } @Override @@ -277,6 +300,7 @@ public String toString() { sb.append("class CreateSqlJobRequestBody {\n"); sb.append(" sql: ").append(toIndentedString(sql)).append("\n"); sb.append(" engineType: ").append(toIndentedString(engineType)).append("\n"); + sb.append(" currentCatalog: ").append(toIndentedString(currentCatalog)).append("\n"); sb.append(" currentdb: ").append(toIndentedString(currentdb)).append("\n"); sb.append(" queueName: ").append(toIndentedString(queueName)).append("\n"); sb.append(" conf: ").append(toIndentedString(conf)).append("\n"); diff --git a/services/dns/pom.xml b/services/dns/pom.xml index 55999b5f80..9b15464766 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-dns - 3.1.95 + 3.1.96 Huawei Cloud SDK for DNS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/dris/pom.xml b/services/dris/pom.xml index 640a6c8f4d..bbd2b1e57f 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-dris - 3.1.95 + 3.1.96 Huawei Cloud SDK for DRIS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/drs/pom.xml b/services/drs/pom.xml index d287b11420..87be5c51cd 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-drs - 3.1.95 + 3.1.96 Huawei Cloud SDK for DRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/dsc/pom.xml b/services/dsc/pom.xml index 3c4b2103dc..49c7daefaa 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-dsc - 3.1.95 + 3.1.96 Huawei Cloud SDK for DSC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/dss/pom.xml b/services/dss/pom.xml index c0d3433f7c..c8b1ad818c 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-dss - 3.1.95 + 3.1.96 Huawei Cloud SDK for DSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/dwr/pom.xml b/services/dwr/pom.xml index 772ba5f7bb..437ebe0e40 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-dwr - 3.1.95 + 3.1.96 Huawei Cloud SDK for DWR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/dws/pom.xml b/services/dws/pom.xml index fa64404ba1..3a5304ca46 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-dws - 3.1.95 + 3.1.96 Huawei Cloud SDK for DWS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/DwsMeta.java b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/DwsMeta.java index 1d156f4805..73a61ea12b 100644 --- a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/DwsMeta.java +++ b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/DwsMeta.java @@ -3652,6 +3652,11 @@ private static HttpRequestDef f.withMarshaller(ListUpdatableVersionRequest::getLimit, ListUpdatableVersionRequest::setLimit)); + builder.withRequestField("type", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ListUpdatableVersionRequest.TypeEnum.class), + f -> f.withMarshaller(ListUpdatableVersionRequest::getType, ListUpdatableVersionRequest::setType)); // response diff --git a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/ListUpdatableVersionRequest.java b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/ListUpdatableVersionRequest.java index 52025f88bc..a647544b48 100644 --- a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/ListUpdatableVersionRequest.java +++ b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/ListUpdatableVersionRequest.java @@ -1,8 +1,13 @@ package com.huaweicloud.sdk.dws.v2.model; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -25,6 +30,81 @@ public class ListUpdatableVersionRequest { private Integer limit; + /** + * 升级类型 cluster:集群升级 hotpatch:热补丁升级 + */ + public static final class TypeEnum { + + /** + * Enum CLUSTER for value: "cluster" + */ + public static final TypeEnum CLUSTER = new TypeEnum("cluster"); + + /** + * Enum HOTPATCH for value: "hotpatch" + */ + public static final TypeEnum HOTPATCH = new TypeEnum("hotpatch"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("cluster", CLUSTER); + map.put("hotpatch", HOTPATCH); + return Collections.unmodifiableMap(map); + } + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new TypeEnum(value)); + } + + public static TypeEnum 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 TypeEnum) { + return this.value.equals(((TypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private TypeEnum type; + public ListUpdatableVersionRequest withClusterId(String clusterId) { this.clusterId = clusterId; return this; @@ -76,6 +156,23 @@ public void setLimit(Integer limit) { this.limit = limit; } + public ListUpdatableVersionRequest withType(TypeEnum type) { + this.type = type; + return this; + } + + /** + * 升级类型 cluster:集群升级 hotpatch:热补丁升级 + * @return type + */ + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -86,12 +183,12 @@ public boolean equals(java.lang.Object obj) { } ListUpdatableVersionRequest that = (ListUpdatableVersionRequest) obj; return Objects.equals(this.clusterId, that.clusterId) && Objects.equals(this.offset, that.offset) - && Objects.equals(this.limit, that.limit); + && Objects.equals(this.limit, that.limit) && Objects.equals(this.type, that.type); } @Override public int hashCode() { - return Objects.hash(clusterId, offset, limit); + return Objects.hash(clusterId, offset, limit, type); } @Override @@ -101,6 +198,7 @@ public String toString() { sb.append(" clusterId: ").append(toIndentedString(clusterId)).append("\n"); sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ec/pom.xml b/services/ec/pom.xml index bbbd6f772c..a9b6730da4 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-ec - 3.1.95 + 3.1.96 Huawei Cloud SDK for EC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/ecs/pom.xml b/services/ecs/pom.xml index 4f39c7816e..45e03976d1 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-ecs - 3.1.95 + 3.1.96 Huawei Cloud SDK for ECS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 ch.qos.logback diff --git a/services/edgesec/pom.xml b/services/edgesec/pom.xml index 9cba80dcbf..7eb8b6fa56 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-edgesec - 3.1.95 + 3.1.96 Huawei Cloud SDK for EDGESEC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/eds/pom.xml b/services/eds/pom.xml index 88838e20b6..b04163607d 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-eds - 3.1.95 + 3.1.96 Huawei Cloud SDK for EDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/eg/pom.xml b/services/eg/pom.xml index ae2c274644..f1a7a5c423 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-eg - 3.1.95 + 3.1.96 Huawei Cloud SDK for EG 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/eihealth/pom.xml b/services/eihealth/pom.xml index 98c2229c37..02b4988ebe 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-eihealth - 3.1.95 + 3.1.96 Huawei Cloud SDK for EIHEALTH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 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 index 24168230f1..7d2a56c88c 100644 --- 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 @@ -24,6 +24,11 @@ public class ListDrugDatabaseResponse extends SdkResponse { private Integer count; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cur_user_count") + + private Integer curUserCount; + public ListDrugDatabaseResponse withDatabases(List databases) { this.databases = databases; return this; @@ -74,6 +79,23 @@ public void setCount(Integer count) { this.count = count; } + public ListDrugDatabaseResponse withCurUserCount(Integer curUserCount) { + this.curUserCount = curUserCount; + return this; + } + + /** + * 当前用户数据库总数 + * @return curUserCount + */ + public Integer getCurUserCount() { + return curUserCount; + } + + public void setCurUserCount(Integer curUserCount) { + this.curUserCount = curUserCount; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -83,12 +105,13 @@ public boolean equals(java.lang.Object obj) { return false; } ListDrugDatabaseResponse that = (ListDrugDatabaseResponse) obj; - return Objects.equals(this.databases, that.databases) && Objects.equals(this.count, that.count); + return Objects.equals(this.databases, that.databases) && Objects.equals(this.count, that.count) + && Objects.equals(this.curUserCount, that.curUserCount); } @Override public int hashCode() { - return Objects.hash(databases, count); + return Objects.hash(databases, count, curUserCount); } @Override @@ -97,6 +120,7 @@ public String toString() { sb.append("class ListDrugDatabaseResponse {\n"); sb.append(" databases: ").append(toIndentedString(databases)).append("\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" curUserCount: ").append(toIndentedString(curUserCount)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/eip/pom.xml b/services/eip/pom.xml index 2a9c5054e9..6b62e8b4a9 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-eip - 3.1.95 + 3.1.96 Huawei Cloud SDK for EIP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/elb/pom.xml b/services/elb/pom.xml index d9820619b0..b7cf46490d 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-elb - 3.1.95 + 3.1.96 Huawei Cloud SDK for ELB 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/eps/pom.xml b/services/eps/pom.xml index 31ee715f35..ea9da66c8a 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-eps - 3.1.95 + 3.1.96 Huawei Cloud SDK for EPS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/er/pom.xml b/services/er/pom.xml index 2872311157..6230a608b0 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-er - 3.1.95 + 3.1.96 Huawei Cloud SDK for ER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/evs/pom.xml b/services/evs/pom.xml index 8196075412..c55cba8d8e 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-evs - 3.1.95 + 3.1.96 Huawei Cloud SDK for EVS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/expert/pom.xml b/services/expert/pom.xml index d619fba5d7..b72e4a3d05 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-expert - 3.1.95 + 3.1.96 Huawei Cloud SDK for EXPERT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/frs/pom.xml b/services/frs/pom.xml index 8f4274005e..a835c54d4c 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-frs - 3.1.95 + 3.1.96 Huawei Cloud SDK for FRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/functiongraph/pom.xml b/services/functiongraph/pom.xml index a5bd8e6198..cf0575ef6f 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-functiongraph - 3.1.95 + 3.1.96 Huawei Cloud SDK for FUNCTIONGRAPH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/ga/pom.xml b/services/ga/pom.xml index a1dbaa8136..261bd6bf80 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-ga - 3.1.95 + 3.1.96 Huawei Cloud SDK for GA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/gaussdb/pom.xml b/services/gaussdb/pom.xml index 80bd41c980..6a56e3da93 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-gaussdb - 3.1.95 + 3.1.96 Huawei Cloud SDK for GAUSSDB 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 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 a3fb29616b..48a9b11564 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 @@ -19,6 +19,8 @@ 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.CheckStarRocksResourceRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.CheckStarRocksResourceResponse; import com.huaweicloud.sdk.gaussdb.v3.model.CheckTableConfigRequest; import com.huaweicloud.sdk.gaussdb.v3.model.CheckTableConfigResponse; import com.huaweicloud.sdk.gaussdb.v3.model.CopyConfigurationsRequest; @@ -47,6 +49,10 @@ 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.CreateStarRocksDatabaseUserRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.CreateStarRocksDatabaseUserResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.CreateStarrocksInstanceRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.CreateStarrocksInstanceResponse; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteDatabasePermissionRequest; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteDatabasePermissionResponse; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteGaussMySqlBackupRequest; @@ -69,6 +75,10 @@ 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.DeleteStarRocksDatabaseUserRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.DeleteStarRocksDatabaseUserResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.DeleteStarrocksInstanceRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.DeleteStarrocksInstanceResponse; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteTaskRecordRequest; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteTaskRecordResponse; import com.huaweicloud.sdk.gaussdb.v3.model.DescribeBackupEncryptStatusRequest; @@ -105,6 +115,14 @@ import com.huaweicloud.sdk.gaussdb.v3.model.ListGaussMySqlInstancesResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ListGaussMySqlInstancesUnifyStatusRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ListGaussMySqlInstancesUnifyStatusResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ListHtapDataStoreRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListHtapDataStoreResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ListHtapFlavorRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListHtapFlavorResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ListHtapInstanceInfoRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListHtapInstanceInfoResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ListHtapStorageTypeRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListHtapStorageTypeResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ListImmediateJobsRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ListImmediateJobsResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ListInstanceConfigurationsRequest; @@ -129,6 +147,8 @@ 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.ListStarrocksInstanceInfoRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarrocksInstanceInfoResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ModifyBackupEncryptStatusRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ModifyBackupEncryptStatusResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ModifyGaussMySqlProxyRouteModeRequest; @@ -143,6 +163,10 @@ import com.huaweicloud.sdk.gaussdb.v3.model.RestartGaussMySqlInstanceResponse; import com.huaweicloud.sdk.gaussdb.v3.model.RestartGaussMySqlNodeRequest; import com.huaweicloud.sdk.gaussdb.v3.model.RestartGaussMySqlNodeResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.RestartStarrocksInstanceRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.RestartStarrocksInstanceResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.RestartStarrocksNodeRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.RestartStarrocksNodeResponse; import com.huaweicloud.sdk.gaussdb.v3.model.RestoreOldInstanceRequest; import com.huaweicloud.sdk.gaussdb.v3.model.RestoreOldInstanceResponse; import com.huaweicloud.sdk.gaussdb.v3.model.SetGaussMySqlProxyWeightRequest; @@ -199,6 +223,8 @@ import com.huaweicloud.sdk.gaussdb.v3.model.ShowSqlFilterControlResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ShowSqlFilterRuleRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ShowSqlFilterRuleResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ShowStarRocksDatabaseUserRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ShowStarRocksDatabaseUserResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ShrinkGaussMySqlProxyRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ShrinkGaussMySqlProxyResponse; import com.huaweicloud.sdk.gaussdb.v3.model.SwitchAccessControlRequest; @@ -255,6 +281,10 @@ import com.huaweicloud.sdk.gaussdb.v3.model.UpdateProxySessionConsistenceResponse; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateSqlFilterControlRequest; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateSqlFilterControlResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.UpdateStarRocksDatabaseUserPasswordRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.UpdateStarRocksDatabaseUserPasswordResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.UpdateStarRocksDatabaseUserPermissionRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.UpdateStarRocksDatabaseUserPermissionResponse; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateTransactionSplitStatusRequest; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateTransactionSplitStatusResponse; import com.huaweicloud.sdk.gaussdb.v3.model.UpgradeGaussMySqlInstanceDatabaseRequest; @@ -3736,6 +3766,36 @@ public AsyncInvoker che return new AsyncInvoker<>(request, GaussDBMeta.checkDataBaseConfig, hcClient); } + /** + * StarRocks资源检查 + * + * StarRocks资源检查。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CheckStarRocksResourceRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture checkStarRocksResourceAsync( + CheckStarRocksResourceRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.checkStarRocksResource); + } + + /** + * StarRocks资源检查 + * + * StarRocks资源检查。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CheckStarRocksResourceRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker checkStarRocksResourceAsyncInvoker( + CheckStarRocksResourceRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.checkStarRocksResource, hcClient); + } + /** * HTAP数据同步表配置校验 * @@ -3795,6 +3855,66 @@ public AsyncInvoker(request, GaussDBMeta.createStarRocksDataReplication, hcClient); } + /** + * 创建数据库账号 + * + * 创建StarRocks数据库账号。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateStarRocksDatabaseUserRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createStarRocksDatabaseUserAsync( + CreateStarRocksDatabaseUserRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.createStarRocksDatabaseUser); + } + + /** + * 创建数据库账号 + * + * 创建StarRocks数据库账号。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateStarRocksDatabaseUserRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createStarRocksDatabaseUserAsyncInvoker( + CreateStarRocksDatabaseUserRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.createStarRocksDatabaseUser, hcClient); + } + + /** + * 创建StarRocks实例 + * + * 创建StarRocks实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateStarrocksInstanceRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createStarrocksInstanceAsync( + CreateStarrocksInstanceRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.createStarrocksInstance); + } + + /** + * 创建StarRocks实例 + * + * 创建StarRocks实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateStarrocksInstanceRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createStarrocksInstanceAsyncInvoker( + CreateStarrocksInstanceRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.createStarrocksInstance, hcClient); + } + /** * 删除StarRocks数据同步 * @@ -3825,6 +3945,183 @@ public AsyncInvoker(request, GaussDBMeta.deleteStarRocksDataReplication, hcClient); } + /** + * 删除数据库账户 + * + * 删除StarRocks数据库账户。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteStarRocksDatabaseUserRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteStarRocksDatabaseUserAsync( + DeleteStarRocksDatabaseUserRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.deleteStarRocksDatabaseUser); + } + + /** + * 删除数据库账户 + * + * 删除StarRocks数据库账户。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteStarRocksDatabaseUserRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteStarRocksDatabaseUserAsyncInvoker( + DeleteStarRocksDatabaseUserRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.deleteStarRocksDatabaseUser, hcClient); + } + + /** + * 删除StarRocks实例 + * + * 删除StarRocks实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteStarrocksInstanceRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteStarrocksInstanceAsync( + DeleteStarrocksInstanceRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.deleteStarrocksInstance); + } + + /** + * 删除StarRocks实例 + * + * 删除StarRocks实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteStarrocksInstanceRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteStarrocksInstanceAsyncInvoker( + DeleteStarrocksInstanceRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.deleteStarrocksInstance, hcClient); + } + + /** + * HTAP引擎资源查询 + * + * HTAP引擎资源查询。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHtapDataStoreRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listHtapDataStoreAsync(ListHtapDataStoreRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.listHtapDataStore); + } + + /** + * HTAP引擎资源查询 + * + * HTAP引擎资源查询。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHtapDataStoreRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listHtapDataStoreAsyncInvoker( + ListHtapDataStoreRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.listHtapDataStore, hcClient); + } + + /** + * HTAP查询规格信息 + * + * HTAP查询规格信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHtapFlavorRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listHtapFlavorAsync(ListHtapFlavorRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.listHtapFlavor); + } + + /** + * HTAP查询规格信息 + * + * HTAP查询规格信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHtapFlavorRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listHtapFlavorAsyncInvoker( + ListHtapFlavorRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.listHtapFlavor, hcClient); + } + + /** + * 查询HTAP实例列表 + * + * 查询HTAP实例列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHtapInstanceInfoRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listHtapInstanceInfoAsync( + ListHtapInstanceInfoRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.listHtapInstanceInfo); + } + + /** + * 查询HTAP实例列表 + * + * 查询HTAP实例列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHtapInstanceInfoRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listHtapInstanceInfoAsyncInvoker( + ListHtapInstanceInfoRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.listHtapInstanceInfo, hcClient); + } + + /** + * 获取HTAP实例存储类型 + * + * 获取HTAP实例存储类型。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHtapStorageTypeRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listHtapStorageTypeAsync(ListHtapStorageTypeRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.listHtapStorageType); + } + + /** + * 获取HTAP实例存储类型 + * + * 获取HTAP实例存储类型。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHtapStorageTypeRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listHtapStorageTypeAsyncInvoker( + ListHtapStorageTypeRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.listHtapStorageType, hcClient); + } + /** * 查询StarRocks数据库 * @@ -3945,6 +4242,186 @@ public AsyncInvoker(request, GaussDBMeta.listStarRocksDbParameters, hcClient); } + /** + * 查询StarRocks实例 + * + * 查询StarRocks实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListStarrocksInstanceInfoRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listStarrocksInstanceInfoAsync( + ListStarrocksInstanceInfoRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.listStarrocksInstanceInfo); + } + + /** + * 查询StarRocks实例 + * + * 查询StarRocks实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListStarrocksInstanceInfoRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listStarrocksInstanceInfoAsyncInvoker( + ListStarrocksInstanceInfoRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.listStarrocksInstanceInfo, hcClient); + } + + /** + * 重启StarRocks实例 + * + * 重启StarRocks实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RestartStarrocksInstanceRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture restartStarrocksInstanceAsync( + RestartStarrocksInstanceRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.restartStarrocksInstance); + } + + /** + * 重启StarRocks实例 + * + * 重启StarRocks实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RestartStarrocksInstanceRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker restartStarrocksInstanceAsyncInvoker( + RestartStarrocksInstanceRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.restartStarrocksInstance, hcClient); + } + + /** + * 重启StarRocks节点 + * + * 重启StarRocks节点。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RestartStarrocksNodeRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture restartStarrocksNodeAsync( + RestartStarrocksNodeRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.restartStarrocksNode); + } + + /** + * 重启StarRocks节点 + * + * 重启StarRocks节点。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RestartStarrocksNodeRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker restartStarrocksNodeAsyncInvoker( + RestartStarrocksNodeRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.restartStarrocksNode, hcClient); + } + + /** + * 查询数据库账户 + * + * 查询StarRocks数据库账户。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowStarRocksDatabaseUserRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showStarRocksDatabaseUserAsync( + ShowStarRocksDatabaseUserRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.showStarRocksDatabaseUser); + } + + /** + * 查询数据库账户 + * + * 查询StarRocks数据库账户。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowStarRocksDatabaseUserRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showStarRocksDatabaseUserAsyncInvoker( + ShowStarRocksDatabaseUserRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.showStarRocksDatabaseUser, hcClient); + } + + /** + * 修改数据库账号密码 + * + * 修改StarRocks数据库账号密码。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateStarRocksDatabaseUserPasswordRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateStarRocksDatabaseUserPasswordAsync( + UpdateStarRocksDatabaseUserPasswordRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.updateStarRocksDatabaseUserPassword); + } + + /** + * 修改数据库账号密码 + * + * 修改StarRocks数据库账号密码。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateStarRocksDatabaseUserPasswordRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateStarRocksDatabaseUserPasswordAsyncInvoker( + UpdateStarRocksDatabaseUserPasswordRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.updateStarRocksDatabaseUserPassword, hcClient); + } + + /** + * 修改数据库账号权限 + * + * 修改StarRocks数据库账号权限。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateStarRocksDatabaseUserPermissionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateStarRocksDatabaseUserPermissionAsync( + UpdateStarRocksDatabaseUserPermissionRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.updateStarRocksDatabaseUserPermission); + } + + /** + * 修改数据库账号权限 + * + * 修改StarRocks数据库账号权限。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateStarRocksDatabaseUserPermissionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateStarRocksDatabaseUserPermissionAsyncInvoker( + UpdateStarRocksDatabaseUserPermissionRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.updateStarRocksDatabaseUserPermission, 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 2614ad1bb3..01437db919 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 @@ -19,6 +19,8 @@ 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.CheckStarRocksResourceRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.CheckStarRocksResourceResponse; import com.huaweicloud.sdk.gaussdb.v3.model.CheckTableConfigRequest; import com.huaweicloud.sdk.gaussdb.v3.model.CheckTableConfigResponse; import com.huaweicloud.sdk.gaussdb.v3.model.CopyConfigurationsRequest; @@ -47,6 +49,10 @@ 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.CreateStarRocksDatabaseUserRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.CreateStarRocksDatabaseUserResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.CreateStarrocksInstanceRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.CreateStarrocksInstanceResponse; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteDatabasePermissionRequest; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteDatabasePermissionResponse; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteGaussMySqlBackupRequest; @@ -69,6 +75,10 @@ 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.DeleteStarRocksDatabaseUserRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.DeleteStarRocksDatabaseUserResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.DeleteStarrocksInstanceRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.DeleteStarrocksInstanceResponse; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteTaskRecordRequest; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteTaskRecordResponse; import com.huaweicloud.sdk.gaussdb.v3.model.DescribeBackupEncryptStatusRequest; @@ -105,6 +115,14 @@ import com.huaweicloud.sdk.gaussdb.v3.model.ListGaussMySqlInstancesResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ListGaussMySqlInstancesUnifyStatusRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ListGaussMySqlInstancesUnifyStatusResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ListHtapDataStoreRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListHtapDataStoreResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ListHtapFlavorRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListHtapFlavorResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ListHtapInstanceInfoRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListHtapInstanceInfoResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ListHtapStorageTypeRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListHtapStorageTypeResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ListImmediateJobsRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ListImmediateJobsResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ListInstanceConfigurationsRequest; @@ -129,6 +147,8 @@ 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.ListStarrocksInstanceInfoRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarrocksInstanceInfoResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ModifyBackupEncryptStatusRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ModifyBackupEncryptStatusResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ModifyGaussMySqlProxyRouteModeRequest; @@ -143,6 +163,10 @@ import com.huaweicloud.sdk.gaussdb.v3.model.RestartGaussMySqlInstanceResponse; import com.huaweicloud.sdk.gaussdb.v3.model.RestartGaussMySqlNodeRequest; import com.huaweicloud.sdk.gaussdb.v3.model.RestartGaussMySqlNodeResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.RestartStarrocksInstanceRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.RestartStarrocksInstanceResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.RestartStarrocksNodeRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.RestartStarrocksNodeResponse; import com.huaweicloud.sdk.gaussdb.v3.model.RestoreOldInstanceRequest; import com.huaweicloud.sdk.gaussdb.v3.model.RestoreOldInstanceResponse; import com.huaweicloud.sdk.gaussdb.v3.model.SetGaussMySqlProxyWeightRequest; @@ -199,6 +223,8 @@ import com.huaweicloud.sdk.gaussdb.v3.model.ShowSqlFilterControlResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ShowSqlFilterRuleRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ShowSqlFilterRuleResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ShowStarRocksDatabaseUserRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ShowStarRocksDatabaseUserResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ShrinkGaussMySqlProxyRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ShrinkGaussMySqlProxyResponse; import com.huaweicloud.sdk.gaussdb.v3.model.SwitchAccessControlRequest; @@ -255,6 +281,10 @@ import com.huaweicloud.sdk.gaussdb.v3.model.UpdateProxySessionConsistenceResponse; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateSqlFilterControlRequest; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateSqlFilterControlResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.UpdateStarRocksDatabaseUserPasswordRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.UpdateStarRocksDatabaseUserPasswordResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.UpdateStarRocksDatabaseUserPermissionRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.UpdateStarRocksDatabaseUserPermissionResponse; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateTransactionSplitStatusRequest; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateTransactionSplitStatusResponse; import com.huaweicloud.sdk.gaussdb.v3.model.UpgradeGaussMySqlInstanceDatabaseRequest; @@ -3679,6 +3709,35 @@ public SyncInvoker chec return new SyncInvoker<>(request, GaussDBMeta.checkDataBaseConfig, hcClient); } + /** + * StarRocks资源检查 + * + * StarRocks资源检查。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CheckStarRocksResourceRequest 请求对象 + * @return CheckStarRocksResourceResponse + */ + public CheckStarRocksResourceResponse checkStarRocksResource(CheckStarRocksResourceRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.checkStarRocksResource); + } + + /** + * StarRocks资源检查 + * + * StarRocks资源检查。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CheckStarRocksResourceRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker checkStarRocksResourceInvoker( + CheckStarRocksResourceRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.checkStarRocksResource, hcClient); + } + /** * HTAP数据同步表配置校验 * @@ -3738,6 +3797,64 @@ public SyncInvoker(request, GaussDBMeta.createStarRocksDataReplication, hcClient); } + /** + * 创建数据库账号 + * + * 创建StarRocks数据库账号。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateStarRocksDatabaseUserRequest 请求对象 + * @return CreateStarRocksDatabaseUserResponse + */ + public CreateStarRocksDatabaseUserResponse createStarRocksDatabaseUser(CreateStarRocksDatabaseUserRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.createStarRocksDatabaseUser); + } + + /** + * 创建数据库账号 + * + * 创建StarRocks数据库账号。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateStarRocksDatabaseUserRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createStarRocksDatabaseUserInvoker( + CreateStarRocksDatabaseUserRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.createStarRocksDatabaseUser, hcClient); + } + + /** + * 创建StarRocks实例 + * + * 创建StarRocks实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateStarrocksInstanceRequest 请求对象 + * @return CreateStarrocksInstanceResponse + */ + public CreateStarrocksInstanceResponse createStarrocksInstance(CreateStarrocksInstanceRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.createStarrocksInstance); + } + + /** + * 创建StarRocks实例 + * + * 创建StarRocks实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateStarrocksInstanceRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createStarrocksInstanceInvoker( + CreateStarrocksInstanceRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.createStarrocksInstance, hcClient); + } + /** * 删除StarRocks数据同步 * @@ -3768,6 +3885,180 @@ public SyncInvoker(request, GaussDBMeta.deleteStarRocksDataReplication, hcClient); } + /** + * 删除数据库账户 + * + * 删除StarRocks数据库账户。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteStarRocksDatabaseUserRequest 请求对象 + * @return DeleteStarRocksDatabaseUserResponse + */ + public DeleteStarRocksDatabaseUserResponse deleteStarRocksDatabaseUser(DeleteStarRocksDatabaseUserRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.deleteStarRocksDatabaseUser); + } + + /** + * 删除数据库账户 + * + * 删除StarRocks数据库账户。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteStarRocksDatabaseUserRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteStarRocksDatabaseUserInvoker( + DeleteStarRocksDatabaseUserRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.deleteStarRocksDatabaseUser, hcClient); + } + + /** + * 删除StarRocks实例 + * + * 删除StarRocks实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteStarrocksInstanceRequest 请求对象 + * @return DeleteStarrocksInstanceResponse + */ + public DeleteStarrocksInstanceResponse deleteStarrocksInstance(DeleteStarrocksInstanceRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.deleteStarrocksInstance); + } + + /** + * 删除StarRocks实例 + * + * 删除StarRocks实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteStarrocksInstanceRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteStarrocksInstanceInvoker( + DeleteStarrocksInstanceRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.deleteStarrocksInstance, hcClient); + } + + /** + * HTAP引擎资源查询 + * + * HTAP引擎资源查询。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHtapDataStoreRequest 请求对象 + * @return ListHtapDataStoreResponse + */ + public ListHtapDataStoreResponse listHtapDataStore(ListHtapDataStoreRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.listHtapDataStore); + } + + /** + * HTAP引擎资源查询 + * + * HTAP引擎资源查询。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHtapDataStoreRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listHtapDataStoreInvoker( + ListHtapDataStoreRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.listHtapDataStore, hcClient); + } + + /** + * HTAP查询规格信息 + * + * HTAP查询规格信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHtapFlavorRequest 请求对象 + * @return ListHtapFlavorResponse + */ + public ListHtapFlavorResponse listHtapFlavor(ListHtapFlavorRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.listHtapFlavor); + } + + /** + * HTAP查询规格信息 + * + * HTAP查询规格信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHtapFlavorRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listHtapFlavorInvoker( + ListHtapFlavorRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.listHtapFlavor, hcClient); + } + + /** + * 查询HTAP实例列表 + * + * 查询HTAP实例列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHtapInstanceInfoRequest 请求对象 + * @return ListHtapInstanceInfoResponse + */ + public ListHtapInstanceInfoResponse listHtapInstanceInfo(ListHtapInstanceInfoRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.listHtapInstanceInfo); + } + + /** + * 查询HTAP实例列表 + * + * 查询HTAP实例列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHtapInstanceInfoRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listHtapInstanceInfoInvoker( + ListHtapInstanceInfoRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.listHtapInstanceInfo, hcClient); + } + + /** + * 获取HTAP实例存储类型 + * + * 获取HTAP实例存储类型。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHtapStorageTypeRequest 请求对象 + * @return ListHtapStorageTypeResponse + */ + public ListHtapStorageTypeResponse listHtapStorageType(ListHtapStorageTypeRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.listHtapStorageType); + } + + /** + * 获取HTAP实例存储类型 + * + * 获取HTAP实例存储类型。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHtapStorageTypeRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listHtapStorageTypeInvoker( + ListHtapStorageTypeRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.listHtapStorageType, hcClient); + } + /** * 查询StarRocks数据库 * @@ -3886,6 +4177,182 @@ public SyncInvoker(request, GaussDBMeta.listStarRocksDbParameters, hcClient); } + /** + * 查询StarRocks实例 + * + * 查询StarRocks实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListStarrocksInstanceInfoRequest 请求对象 + * @return ListStarrocksInstanceInfoResponse + */ + public ListStarrocksInstanceInfoResponse listStarrocksInstanceInfo(ListStarrocksInstanceInfoRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.listStarrocksInstanceInfo); + } + + /** + * 查询StarRocks实例 + * + * 查询StarRocks实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListStarrocksInstanceInfoRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listStarrocksInstanceInfoInvoker( + ListStarrocksInstanceInfoRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.listStarrocksInstanceInfo, hcClient); + } + + /** + * 重启StarRocks实例 + * + * 重启StarRocks实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RestartStarrocksInstanceRequest 请求对象 + * @return RestartStarrocksInstanceResponse + */ + public RestartStarrocksInstanceResponse restartStarrocksInstance(RestartStarrocksInstanceRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.restartStarrocksInstance); + } + + /** + * 重启StarRocks实例 + * + * 重启StarRocks实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RestartStarrocksInstanceRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker restartStarrocksInstanceInvoker( + RestartStarrocksInstanceRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.restartStarrocksInstance, hcClient); + } + + /** + * 重启StarRocks节点 + * + * 重启StarRocks节点。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RestartStarrocksNodeRequest 请求对象 + * @return RestartStarrocksNodeResponse + */ + public RestartStarrocksNodeResponse restartStarrocksNode(RestartStarrocksNodeRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.restartStarrocksNode); + } + + /** + * 重启StarRocks节点 + * + * 重启StarRocks节点。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RestartStarrocksNodeRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker restartStarrocksNodeInvoker( + RestartStarrocksNodeRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.restartStarrocksNode, hcClient); + } + + /** + * 查询数据库账户 + * + * 查询StarRocks数据库账户。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowStarRocksDatabaseUserRequest 请求对象 + * @return ShowStarRocksDatabaseUserResponse + */ + public ShowStarRocksDatabaseUserResponse showStarRocksDatabaseUser(ShowStarRocksDatabaseUserRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.showStarRocksDatabaseUser); + } + + /** + * 查询数据库账户 + * + * 查询StarRocks数据库账户。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowStarRocksDatabaseUserRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showStarRocksDatabaseUserInvoker( + ShowStarRocksDatabaseUserRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.showStarRocksDatabaseUser, hcClient); + } + + /** + * 修改数据库账号密码 + * + * 修改StarRocks数据库账号密码。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateStarRocksDatabaseUserPasswordRequest 请求对象 + * @return UpdateStarRocksDatabaseUserPasswordResponse + */ + public UpdateStarRocksDatabaseUserPasswordResponse updateStarRocksDatabaseUserPassword( + UpdateStarRocksDatabaseUserPasswordRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.updateStarRocksDatabaseUserPassword); + } + + /** + * 修改数据库账号密码 + * + * 修改StarRocks数据库账号密码。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateStarRocksDatabaseUserPasswordRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateStarRocksDatabaseUserPasswordInvoker( + UpdateStarRocksDatabaseUserPasswordRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.updateStarRocksDatabaseUserPassword, hcClient); + } + + /** + * 修改数据库账号权限 + * + * 修改StarRocks数据库账号权限。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateStarRocksDatabaseUserPermissionRequest 请求对象 + * @return UpdateStarRocksDatabaseUserPermissionResponse + */ + public UpdateStarRocksDatabaseUserPermissionResponse updateStarRocksDatabaseUserPermission( + UpdateStarRocksDatabaseUserPermissionRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.updateStarRocksDatabaseUserPermission); + } + + /** + * 修改数据库账号权限 + * + * 修改StarRocks数据库账号权限。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateStarRocksDatabaseUserPermissionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateStarRocksDatabaseUserPermissionInvoker( + UpdateStarRocksDatabaseUserPermissionRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.updateStarRocksDatabaseUserPermission, 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 bf8716543c..c2b930a740 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 @@ -26,6 +26,8 @@ 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.CheckStarRocksResourceRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.CheckStarRocksResourceResponse; import com.huaweicloud.sdk.gaussdb.v3.model.CheckTableConfigRequest; import com.huaweicloud.sdk.gaussdb.v3.model.CheckTableConfigResponse; import com.huaweicloud.sdk.gaussdb.v3.model.CloseMysqlProxyRequestBody; @@ -64,6 +66,10 @@ 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.CreateStarRocksDatabaseUserRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.CreateStarRocksDatabaseUserResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.CreateStarrocksInstanceRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.CreateStarrocksInstanceResponse; import com.huaweicloud.sdk.gaussdb.v3.model.DbConfigCheckRequestV3; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteDatabasePermissionRequest; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteDatabasePermissionRequestBody; @@ -93,6 +99,10 @@ 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.DeleteStarRocksDatabaseUserRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.DeleteStarRocksDatabaseUserResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.DeleteStarrocksInstanceRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.DeleteStarrocksInstanceResponse; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteTaskRecordRequest; import com.huaweicloud.sdk.gaussdb.v3.model.DeleteTaskRecordResponse; import com.huaweicloud.sdk.gaussdb.v3.model.DescribeBackupEncryptStatusRequest; @@ -132,6 +142,14 @@ import com.huaweicloud.sdk.gaussdb.v3.model.ListGaussMySqlInstancesResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ListGaussMySqlInstancesUnifyStatusRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ListGaussMySqlInstancesUnifyStatusResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ListHtapDataStoreRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListHtapDataStoreResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ListHtapFlavorRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListHtapFlavorResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ListHtapInstanceInfoRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListHtapInstanceInfoResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ListHtapStorageTypeRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListHtapStorageTypeResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ListImmediateJobsRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ListImmediateJobsResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ListInstanceConfigurationsRequest; @@ -156,6 +174,8 @@ 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.ListStarrocksInstanceInfoRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ListStarrocksInstanceInfoResponse; import com.huaweicloud.sdk.gaussdb.v3.model.LtsLogErrorQueryRequest; import com.huaweicloud.sdk.gaussdb.v3.model.LtsLogSlowQueryRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ModifyAliasRequest; @@ -192,11 +212,16 @@ import com.huaweicloud.sdk.gaussdb.v3.model.ResetGaussMySqlDatabasePasswordResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ResetGaussMySqlPasswordRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ResetGaussMySqlPasswordResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ResourceCheck; import com.huaweicloud.sdk.gaussdb.v3.model.RestartGaussMySqlInstanceRequest; import com.huaweicloud.sdk.gaussdb.v3.model.RestartGaussMySqlInstanceResponse; import com.huaweicloud.sdk.gaussdb.v3.model.RestartGaussMySqlNodeRequest; import com.huaweicloud.sdk.gaussdb.v3.model.RestartGaussMySqlNodeResponse; import com.huaweicloud.sdk.gaussdb.v3.model.RestartNodeRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.RestartStarrocksInstanceRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.RestartStarrocksInstanceResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.RestartStarrocksNodeRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.RestartStarrocksNodeResponse; import com.huaweicloud.sdk.gaussdb.v3.model.RestoreOldInstanceRequest; import com.huaweicloud.sdk.gaussdb.v3.model.RestoreOldInstanceResponse; import com.huaweicloud.sdk.gaussdb.v3.model.RestoreRequest; @@ -255,9 +280,15 @@ import com.huaweicloud.sdk.gaussdb.v3.model.ShowSqlFilterControlResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ShowSqlFilterRuleRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ShowSqlFilterRuleResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ShowStarRocksDatabaseUserRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ShowStarRocksDatabaseUserResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ShrinkGaussMySqlProxyRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ShrinkGaussMySqlProxyRequestBody; import com.huaweicloud.sdk.gaussdb.v3.model.ShrinkGaussMySqlProxyResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.StarRocksCreateRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.StarRocksDatabaseUserInfo; +import com.huaweicloud.sdk.gaussdb.v3.model.StarRocksDatabaseUserPSinfo; +import com.huaweicloud.sdk.gaussdb.v3.model.StarRocksDatabaseUserPWinfo; import com.huaweicloud.sdk.gaussdb.v3.model.SwitchAccessControlRequest; import com.huaweicloud.sdk.gaussdb.v3.model.SwitchAccessControlRequestBody; import com.huaweicloud.sdk.gaussdb.v3.model.SwitchAccessControlResponse; @@ -330,6 +361,10 @@ import com.huaweicloud.sdk.gaussdb.v3.model.UpdateProxySessionConsistenceResponse; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateSqlFilterControlRequest; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateSqlFilterControlResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.UpdateStarRocksDatabaseUserPasswordRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.UpdateStarRocksDatabaseUserPasswordResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.UpdateStarRocksDatabaseUserPermissionRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.UpdateStarRocksDatabaseUserPermissionResponse; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateTransactionSplitStatusRequest; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateTransactionSplitStatusResponse; import com.huaweicloud.sdk.gaussdb.v3.model.UpgradeDatabaseRequest; @@ -4867,6 +4902,35 @@ private static HttpRequestDef checkStarRocksResource = + genForCheckStarRocksResource(); + + private static HttpRequestDef genForCheckStarRocksResource() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, CheckStarRocksResourceRequest.class, CheckStarRocksResourceResponse.class) + .withName("CheckStarRocksResource") + .withUri("/v3/{project_id}/starrocks/resource-check") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CheckStarRocksResourceRequest::getXLanguage, + CheckStarRocksResourceRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ResourceCheck.class), + f -> f.withMarshaller(CheckStarRocksResourceRequest::getBody, CheckStarRocksResourceRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef checkTableConfig = genForCheckTableConfig(); @@ -4939,6 +5003,80 @@ private static HttpRequestDef createStarRocksDatabaseUser = + genForCreateStarRocksDatabaseUser(); + + private static HttpRequestDef genForCreateStarRocksDatabaseUser() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + CreateStarRocksDatabaseUserRequest.class, + CreateStarRocksDatabaseUserResponse.class) + .withName("CreateStarRocksDatabaseUser") + .withUri("/v3/{project_id}/instances/{instance_id}/starrocks/users") + .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(CreateStarRocksDatabaseUserRequest::getInstanceId, + CreateStarRocksDatabaseUserRequest::setInstanceId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateStarRocksDatabaseUserRequest::getXLanguage, + CreateStarRocksDatabaseUserRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(StarRocksDatabaseUserInfo.class), + f -> f.withMarshaller(CreateStarRocksDatabaseUserRequest::getBody, + CreateStarRocksDatabaseUserRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef createStarrocksInstance = + genForCreateStarrocksInstance(); + + private static HttpRequestDef genForCreateStarrocksInstance() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, CreateStarrocksInstanceRequest.class, CreateStarrocksInstanceResponse.class) + .withName("CreateStarrocksInstance") + .withUri("/v3/{project_id}/instances/{instance_id}/starrocks") + .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(CreateStarrocksInstanceRequest::getInstanceId, + CreateStarrocksInstanceRequest::setInstanceId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateStarrocksInstanceRequest::getXLanguage, + CreateStarrocksInstanceRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(StarRocksCreateRequest.class), + f -> f.withMarshaller(CreateStarrocksInstanceRequest::getBody, CreateStarrocksInstanceRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef deleteStarRocksDataReplication = genForDeleteStarRocksDataReplication(); @@ -4978,6 +5116,217 @@ private static HttpRequestDef deleteStarRocksDatabaseUser = + genForDeleteStarRocksDatabaseUser(); + + private static HttpRequestDef genForDeleteStarRocksDatabaseUser() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.DELETE, + DeleteStarRocksDatabaseUserRequest.class, + DeleteStarRocksDatabaseUserResponse.class) + .withName("DeleteStarRocksDatabaseUser") + .withUri("/v3/{project_id}/instances/{instance_id}/starrocks/users") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteStarRocksDatabaseUserRequest::getInstanceId, + DeleteStarRocksDatabaseUserRequest::setInstanceId)); + builder.withRequestField("user_name", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteStarRocksDatabaseUserRequest::getUserName, + DeleteStarRocksDatabaseUserRequest::setUserName)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteStarRocksDatabaseUserRequest::getXLanguage, + DeleteStarRocksDatabaseUserRequest::setXLanguage)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef deleteStarrocksInstance = + genForDeleteStarrocksInstance(); + + private static HttpRequestDef genForDeleteStarrocksInstance() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.DELETE, DeleteStarrocksInstanceRequest.class, DeleteStarrocksInstanceResponse.class) + .withName("DeleteStarrocksInstance") + .withUri("/v3/{project_id}/instances/{instance_id}/starrocks/{starrocks_instance_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteStarrocksInstanceRequest::getInstanceId, + DeleteStarrocksInstanceRequest::setInstanceId)); + builder.withRequestField("starrocks_instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteStarrocksInstanceRequest::getStarrocksInstanceId, + DeleteStarrocksInstanceRequest::setStarrocksInstanceId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteStarrocksInstanceRequest::getXLanguage, + DeleteStarrocksInstanceRequest::setXLanguage)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listHtapDataStore = + genForListHtapDataStore(); + + private static HttpRequestDef genForListHtapDataStore() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListHtapDataStoreRequest.class, ListHtapDataStoreResponse.class) + .withName("ListHtapDataStore") + .withUri("/v3/{project_id}/htap/datastores/{engine_name}") + .withContentType("application/json"); + + // requests + builder.withRequestField("engine_name", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListHtapDataStoreRequest::getEngineName, ListHtapDataStoreRequest::setEngineName)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListHtapDataStoreRequest::getXLanguage, ListHtapDataStoreRequest::setXLanguage)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listHtapFlavor = + genForListHtapFlavor(); + + private static HttpRequestDef genForListHtapFlavor() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListHtapFlavorRequest.class, ListHtapFlavorResponse.class) + .withName("ListHtapFlavor") + .withUri("/v3/{project_id}/htap/flavors/{engine_name}") + .withContentType("application/json"); + + // requests + builder.withRequestField("engine_name", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListHtapFlavorRequest::getEngineName, ListHtapFlavorRequest::setEngineName)); + builder.withRequestField("availability_zone_mode", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListHtapFlavorRequest::getAvailabilityZoneMode, + ListHtapFlavorRequest::setAvailabilityZoneMode)); + builder.withRequestField("spec_code", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListHtapFlavorRequest::getSpecCode, ListHtapFlavorRequest::setSpecCode)); + builder.withRequestField("version_name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListHtapFlavorRequest::getVersionName, ListHtapFlavorRequest::setVersionName)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListHtapFlavorRequest::getXLanguage, ListHtapFlavorRequest::setXLanguage)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listHtapInstanceInfo = + genForListHtapInstanceInfo(); + + private static HttpRequestDef genForListHtapInstanceInfo() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ListHtapInstanceInfoRequest.class, ListHtapInstanceInfoResponse.class) + .withName("ListHtapInstanceInfo") + .withUri("/v3/{project_id}/instances/{instance_id}/htap") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListHtapInstanceInfoRequest::getInstanceId, + ListHtapInstanceInfoRequest::setInstanceId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListHtapInstanceInfoRequest::getXLanguage, + ListHtapInstanceInfoRequest::setXLanguage)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listHtapStorageType = + genForListHtapStorageType(); + + private static HttpRequestDef genForListHtapStorageType() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListHtapStorageTypeRequest.class, ListHtapStorageTypeResponse.class) + .withName("ListHtapStorageType") + .withUri("/v3/{project_id}/htap/storage-type/{database}") + .withContentType("application/json"); + + // requests + builder.withRequestField("database", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListHtapStorageTypeRequest::getDatabase, ListHtapStorageTypeRequest::setDatabase)); + builder.withRequestField("version_name", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListHtapStorageTypeRequest::getVersionName, + ListHtapStorageTypeRequest::setVersionName)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListHtapStorageTypeRequest::getXLanguage, ListHtapStorageTypeRequest::setXLanguage)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listStarRocksDataBases = genForListStarRocksDataBases(); @@ -5141,6 +5490,241 @@ private static HttpRequestDef listStarrocksInstanceInfo = + genForListStarrocksInstanceInfo(); + + private static HttpRequestDef genForListStarrocksInstanceInfo() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ListStarrocksInstanceInfoRequest.class, + ListStarrocksInstanceInfoResponse.class) + .withName("ListStarrocksInstanceInfo") + .withUri("/v3/{project_id}/instances/{instance_id}/starrocks/{starrocks_instance_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListStarrocksInstanceInfoRequest::getInstanceId, + ListStarrocksInstanceInfoRequest::setInstanceId)); + builder.withRequestField("starrocks_instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListStarrocksInstanceInfoRequest::getStarrocksInstanceId, + ListStarrocksInstanceInfoRequest::setStarrocksInstanceId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListStarrocksInstanceInfoRequest::getXLanguage, + ListStarrocksInstanceInfoRequest::setXLanguage)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef restartStarrocksInstance = + genForRestartStarrocksInstance(); + + private static HttpRequestDef genForRestartStarrocksInstance() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.PUT, RestartStarrocksInstanceRequest.class, RestartStarrocksInstanceResponse.class) + .withName("RestartStarrocksInstance") + .withUri("/v3/{project_id}/instances/{starrocks_instance_id}/starrocks/restart") + .withContentType("application/json"); + + // requests + builder.withRequestField("starrocks_instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(RestartStarrocksInstanceRequest::getStarrocksInstanceId, + RestartStarrocksInstanceRequest::setStarrocksInstanceId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(RestartStarrocksInstanceRequest::getXLanguage, + RestartStarrocksInstanceRequest::setXLanguage)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef restartStarrocksNode = + genForRestartStarrocksNode(); + + private static HttpRequestDef genForRestartStarrocksNode() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.PUT, RestartStarrocksNodeRequest.class, RestartStarrocksNodeResponse.class) + .withName("RestartStarrocksNode") + .withUri("/v3/{project_id}/instances/{starrocks_instance_id}/starrocks/{starrocks_node_id}/restart") + .withContentType("application/json"); + + // requests + builder.withRequestField("starrocks_node_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(RestartStarrocksNodeRequest::getStarrocksNodeId, + RestartStarrocksNodeRequest::setStarrocksNodeId)); + builder.withRequestField("starrocks_instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(RestartStarrocksNodeRequest::getStarrocksInstanceId, + RestartStarrocksNodeRequest::setStarrocksInstanceId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(RestartStarrocksNodeRequest::getXLanguage, + RestartStarrocksNodeRequest::setXLanguage)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef showStarRocksDatabaseUser = + genForShowStarRocksDatabaseUser(); + + private static HttpRequestDef genForShowStarRocksDatabaseUser() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ShowStarRocksDatabaseUserRequest.class, + ShowStarRocksDatabaseUserResponse.class) + .withName("ShowStarRocksDatabaseUser") + .withUri("/v3/{project_id}/instances/{instance_id}/starrocks/users") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowStarRocksDatabaseUserRequest::getInstanceId, + ShowStarRocksDatabaseUserRequest::setInstanceId)); + builder.withRequestField("user_name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowStarRocksDatabaseUserRequest::getUserName, + ShowStarRocksDatabaseUserRequest::setUserName)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ShowStarRocksDatabaseUserRequest::getLimit, + ShowStarRocksDatabaseUserRequest::setLimit)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ShowStarRocksDatabaseUserRequest::getOffset, + ShowStarRocksDatabaseUserRequest::setOffset)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowStarRocksDatabaseUserRequest::getXLanguage, + ShowStarRocksDatabaseUserRequest::setXLanguage)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef updateStarRocksDatabaseUserPassword = + genForUpdateStarRocksDatabaseUserPassword(); + + private static HttpRequestDef genForUpdateStarRocksDatabaseUserPassword() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.PUT, + UpdateStarRocksDatabaseUserPasswordRequest.class, + UpdateStarRocksDatabaseUserPasswordResponse.class) + .withName("UpdateStarRocksDatabaseUserPassword") + .withUri("/v3/{project_id}/instances/{instance_id}/starrocks/users/password") + .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(UpdateStarRocksDatabaseUserPasswordRequest::getInstanceId, + UpdateStarRocksDatabaseUserPasswordRequest::setInstanceId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateStarRocksDatabaseUserPasswordRequest::getXLanguage, + UpdateStarRocksDatabaseUserPasswordRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(StarRocksDatabaseUserPWinfo.class), + f -> f.withMarshaller(UpdateStarRocksDatabaseUserPasswordRequest::getBody, + UpdateStarRocksDatabaseUserPasswordRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef updateStarRocksDatabaseUserPermission = + genForUpdateStarRocksDatabaseUserPermission(); + + private static HttpRequestDef genForUpdateStarRocksDatabaseUserPermission() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.PUT, + UpdateStarRocksDatabaseUserPermissionRequest.class, + UpdateStarRocksDatabaseUserPermissionResponse.class) + .withName("UpdateStarRocksDatabaseUserPermission") + .withUri("/v3/{project_id}/instances/{instance_id}/starrocks/users/permission") + .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(UpdateStarRocksDatabaseUserPermissionRequest::getInstanceId, + UpdateStarRocksDatabaseUserPermissionRequest::setInstanceId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateStarRocksDatabaseUserPermissionRequest::getXLanguage, + UpdateStarRocksDatabaseUserPermissionRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(StarRocksDatabaseUserPSinfo.class), + f -> f.withMarshaller(UpdateStarRocksDatabaseUserPermissionRequest::getBody, + UpdateStarRocksDatabaseUserPermissionRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef deleteSqlFilterRule = genForDeleteSqlFilterRule(); diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/UpdateManagedAccountRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CheckStarRocksResourceRequest.java similarity index 51% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/UpdateManagedAccountRequest.java rename to services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CheckStarRocksResourceRequest.java index 90e44f3720..d835452e89 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/UpdateManagedAccountRequest.java +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CheckStarRocksResourceRequest.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.rgc.v1.model; +package com.huaweicloud.sdk.gaussdb.v3.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -9,43 +9,45 @@ /** * Request Object */ -public class UpdateManagedAccountRequest { +public class CheckStarRocksResourceRequest { @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "managed_account_id") + @JsonProperty(value = "X-Language") - private String managedAccountId; + private String xLanguage; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "body") - private UpdateManagedAccountRequestBody body; + private ResourceCheck body; - public UpdateManagedAccountRequest withManagedAccountId(String managedAccountId) { - this.managedAccountId = managedAccountId; + public CheckStarRocksResourceRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; return this; } /** - * 纳管账号ID。 - * @return managedAccountId + * 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + * @return xLanguage */ - public String getManagedAccountId() { - return managedAccountId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; } - public void setManagedAccountId(String managedAccountId) { - this.managedAccountId = managedAccountId; + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; } - public UpdateManagedAccountRequest withBody(UpdateManagedAccountRequestBody body) { + public CheckStarRocksResourceRequest withBody(ResourceCheck body) { this.body = body; return this; } - public UpdateManagedAccountRequest withBody(Consumer bodySetter) { + public CheckStarRocksResourceRequest withBody(Consumer bodySetter) { if (this.body == null) { - this.body = new UpdateManagedAccountRequestBody(); + this.body = new ResourceCheck(); bodySetter.accept(this.body); } @@ -56,11 +58,11 @@ public UpdateManagedAccountRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new StarRocksDatabaseUserInfo(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public StarRocksDatabaseUserInfo getBody() { + return body; + } + + public void setBody(StarRocksDatabaseUserInfo 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; + } + CreateStarRocksDatabaseUserRequest that = (CreateStarRocksDatabaseUserRequest) 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 CreateStarRocksDatabaseUserRequest {\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/CreateStarRocksDatabaseUserResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CreateStarRocksDatabaseUserResponse.java new file mode 100644 index 0000000000..0fcbb4a8c9 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CreateStarRocksDatabaseUserResponse.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 CreateStarRocksDatabaseUserResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private String result; + + public CreateStarRocksDatabaseUserResponse withResult(String result) { + this.result = result; + return this; + } + + /** + * 请求结果。 + * @return result + */ + public String getResult() { + return result; + } + + public void setResult(String result) { + this.result = result; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateStarRocksDatabaseUserResponse that = (CreateStarRocksDatabaseUserResponse) obj; + return Objects.equals(this.result, that.result); + } + + @Override + public int hashCode() { + return Objects.hash(result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateStarRocksDatabaseUserResponse {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CreateStarrocksInstanceRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CreateStarrocksInstanceRequest.java new file mode 100644 index 0000000000..59b9bda58a --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CreateStarrocksInstanceRequest.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 CreateStarrocksInstanceRequest { + + @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 StarRocksCreateRequest body; + + public CreateStarrocksInstanceRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * GaussDBForMySQL数据库实例ID,严格匹配UUID规则。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public CreateStarrocksInstanceRequest 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 CreateStarrocksInstanceRequest withBody(StarRocksCreateRequest body) { + this.body = body; + return this; + } + + public CreateStarrocksInstanceRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new StarRocksCreateRequest(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public StarRocksCreateRequest getBody() { + return body; + } + + public void setBody(StarRocksCreateRequest 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; + } + CreateStarrocksInstanceRequest that = (CreateStarrocksInstanceRequest) 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 CreateStarrocksInstanceRequest {\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/CreateStarrocksInstanceResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CreateStarrocksInstanceResponse.java new file mode 100644 index 0000000000..b149d94234 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/CreateStarrocksInstanceResponse.java @@ -0,0 +1,106 @@ +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; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class CreateStarrocksInstanceResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance") + + private SrCreateInstanceRspInstance instance; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + public CreateStarrocksInstanceResponse withInstance(SrCreateInstanceRspInstance instance) { + this.instance = instance; + return this; + } + + public CreateStarrocksInstanceResponse withInstance(Consumer instanceSetter) { + if (this.instance == null) { + this.instance = new SrCreateInstanceRspInstance(); + instanceSetter.accept(this.instance); + } + + return this; + } + + /** + * Get instance + * @return instance + */ + public SrCreateInstanceRspInstance getInstance() { + return instance; + } + + public void setInstance(SrCreateInstanceRspInstance instance) { + this.instance = instance; + } + + public CreateStarrocksInstanceResponse 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; + } + CreateStarrocksInstanceResponse that = (CreateStarrocksInstanceResponse) obj; + return Objects.equals(this.instance, that.instance) && Objects.equals(this.jobId, that.jobId); + } + + @Override + public int hashCode() { + return Objects.hash(instance, jobId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateStarrocksInstanceResponse {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarRocksDatabaseUserRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarRocksDatabaseUserRequest.java new file mode 100644 index 0000000000..402e6aa091 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarRocksDatabaseUserRequest.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 DeleteStarRocksDatabaseUserRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "user_name") + + private String userName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + public DeleteStarRocksDatabaseUserRequest 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 DeleteStarRocksDatabaseUserRequest withUserName(String userName) { + this.userName = userName; + return this; + } + + /** + * 数据库账户名。 + * @return userName + */ + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public DeleteStarRocksDatabaseUserRequest 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; + } + DeleteStarRocksDatabaseUserRequest that = (DeleteStarRocksDatabaseUserRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.userName, that.userName) + && Objects.equals(this.xLanguage, that.xLanguage); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, userName, xLanguage); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteStarRocksDatabaseUserRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).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/DeleteStarRocksDatabaseUserResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarRocksDatabaseUserResponse.java new file mode 100644 index 0000000000..e832bd9a28 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarRocksDatabaseUserResponse.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 DeleteStarRocksDatabaseUserResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private String result; + + public DeleteStarRocksDatabaseUserResponse withResult(String result) { + this.result = result; + return this; + } + + /** + * 请求结果。 + * @return result + */ + public String getResult() { + return result; + } + + public void setResult(String result) { + this.result = result; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteStarRocksDatabaseUserResponse that = (DeleteStarRocksDatabaseUserResponse) obj; + return Objects.equals(this.result, that.result); + } + + @Override + public int hashCode() { + return Objects.hash(result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteStarRocksDatabaseUserResponse {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarrocksInstanceRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarrocksInstanceRequest.java new file mode 100644 index 0000000000..e0227e4925 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarrocksInstanceRequest.java @@ -0,0 +1,122 @@ +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 DeleteStarrocksInstanceRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "starrocks_instance_id") + + private String starrocksInstanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + public DeleteStarrocksInstanceRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * GaussDBForMySQL实例ID,严格匹配UUID规则。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public DeleteStarrocksInstanceRequest withStarrocksInstanceId(String starrocksInstanceId) { + this.starrocksInstanceId = starrocksInstanceId; + return this; + } + + /** + * StarRocks实例ID,严格匹配UUID规则。 + * @return starrocksInstanceId + */ + public String getStarrocksInstanceId() { + return starrocksInstanceId; + } + + public void setStarrocksInstanceId(String starrocksInstanceId) { + this.starrocksInstanceId = starrocksInstanceId; + } + + public DeleteStarrocksInstanceRequest 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; + } + DeleteStarrocksInstanceRequest that = (DeleteStarrocksInstanceRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.starrocksInstanceId, that.starrocksInstanceId) + && Objects.equals(this.xLanguage, that.xLanguage); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, starrocksInstanceId, xLanguage); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteStarrocksInstanceRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" starrocksInstanceId: ").append(toIndentedString(starrocksInstanceId)).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/DeleteStarrocksInstanceResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarrocksInstanceResponse.java new file mode 100644 index 0000000000..cd454b4b4e --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/DeleteStarrocksInstanceResponse.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 DeleteStarrocksInstanceResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "workflow_id") + + private String workflowId; + + public DeleteStarrocksInstanceResponse withWorkflowId(String workflowId) { + this.workflowId = workflowId; + return this; + } + + /** + * 工作流ID。 + * @return workflowId + */ + public String getWorkflowId() { + return workflowId; + } + + public void setWorkflowId(String workflowId) { + this.workflowId = workflowId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteStarrocksInstanceResponse that = (DeleteStarrocksInstanceResponse) obj; + return Objects.equals(this.workflowId, that.workflowId); + } + + @Override + public int hashCode() { + return Objects.hash(workflowId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteStarrocksInstanceResponse {\n"); + sb.append(" workflowId: ").append(toIndentedString(workflowId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/HtapFlavorInfoFlavors.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/HtapFlavorInfoFlavors.java new file mode 100644 index 0000000000..85dd0a6a7d --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/HtapFlavorInfoFlavors.java @@ -0,0 +1,255 @@ +package com.huaweicloud.sdk.gaussdb.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * HtapFlavorInfoFlavors + */ +public class HtapFlavorInfoFlavors { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "vcpus") + + private String vcpus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ram") + + private String ram; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "spec_code") + + private String specCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_name") + + private String versionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_mode") + + private String instanceMode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "az_status") + + private Map azStatus = null; + + public HtapFlavorInfoFlavors withType(String type) { + this.type = type; + return this; + } + + /** + * 规格类型,取值为arm、x86和generalX86。 arm:独享型arm规格。 x86:独享型x86规格。 generalX86:通用型X86规格。 + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public HtapFlavorInfoFlavors withVcpus(String vcpus) { + this.vcpus = vcpus; + return this; + } + + /** + * CPU大小。例如:1表示1U。 + * @return vcpus + */ + public String getVcpus() { + return vcpus; + } + + public void setVcpus(String vcpus) { + this.vcpus = vcpus; + } + + public HtapFlavorInfoFlavors withRam(String ram) { + this.ram = ram; + return this; + } + + /** + * 内存大小,单位为GB。 + * @return ram + */ + public String getRam() { + return ram; + } + + public void setRam(String ram) { + this.ram = ram; + } + + public HtapFlavorInfoFlavors 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 HtapFlavorInfoFlavors withSpecCode(String specCode) { + this.specCode = specCode; + return this; + } + + /** + * 资源规格编码,.同创建指定的flavor_ref。例如:gaussdb.sr-be.xlarge.x86.4。 “gaussdb.sr”代表产品。 “xlarge” 代表计算规格为4U。 “x86” 代表CPU架构为x86。 “4” 表示vCPU和内存为1:4。 + * @return specCode + */ + public String getSpecCode() { + return specCode; + } + + public void setSpecCode(String specCode) { + this.specCode = specCode; + } + + public HtapFlavorInfoFlavors withVersionName(String versionName) { + this.versionName = versionName; + return this; + } + + /** + * 数据库版本号。 + * @return versionName + */ + public String getVersionName() { + return versionName; + } + + public void setVersionName(String versionName) { + this.versionName = versionName; + } + + public HtapFlavorInfoFlavors withInstanceMode(String instanceMode) { + this.instanceMode = instanceMode; + return this; + } + + /** + * 实例类型。目前仅支持Cluster、Single。 + * @return instanceMode + */ + public String getInstanceMode() { + return instanceMode; + } + + public void setInstanceMode(String instanceMode) { + this.instanceMode = instanceMode; + } + + public HtapFlavorInfoFlavors withAzStatus(Map azStatus) { + this.azStatus = azStatus; + return this; + } + + public HtapFlavorInfoFlavors putAzStatusItem(String key, String azStatusItem) { + if (this.azStatus == null) { + this.azStatus = new HashMap<>(); + } + this.azStatus.put(key, azStatusItem); + return this; + } + + public HtapFlavorInfoFlavors withAzStatus(Consumer> azStatusSetter) { + if (this.azStatus == null) { + this.azStatus = new HashMap<>(); + } + azStatusSetter.accept(this.azStatus); + return this; + } + + /** + * 规格所在AZ的状态,包含以下状态: normal:在售。 unsupported:暂不支持该规格。 sellout:售罄。 + * @return azStatus + */ + public Map getAzStatus() { + return azStatus; + } + + public void setAzStatus(Map azStatus) { + this.azStatus = azStatus; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + HtapFlavorInfoFlavors that = (HtapFlavorInfoFlavors) obj; + return Objects.equals(this.type, that.type) && Objects.equals(this.vcpus, that.vcpus) + && Objects.equals(this.ram, that.ram) && Objects.equals(this.id, that.id) + && Objects.equals(this.specCode, that.specCode) && Objects.equals(this.versionName, that.versionName) + && Objects.equals(this.instanceMode, that.instanceMode) && Objects.equals(this.azStatus, that.azStatus); + } + + @Override + public int hashCode() { + return Objects.hash(type, vcpus, ram, id, specCode, versionName, instanceMode, azStatus); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HtapFlavorInfoFlavors {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" vcpus: ").append(toIndentedString(vcpus)).append("\n"); + sb.append(" ram: ").append(toIndentedString(ram)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" specCode: ").append(toIndentedString(specCode)).append("\n"); + sb.append(" versionName: ").append(toIndentedString(versionName)).append("\n"); + sb.append(" instanceMode: ").append(toIndentedString(instanceMode)).append("\n"); + sb.append(" azStatus: ").append(toIndentedString(azStatus)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/IdentityCenterGroup.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/HtapInstanceListAvailableZones.java similarity index 51% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/IdentityCenterGroup.java rename to services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/HtapInstanceListAvailableZones.java index 2fc45dc2d5..8e270d10dd 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/IdentityCenterGroup.java +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/HtapInstanceListAvailableZones.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.rgc.v1.model; +package com.huaweicloud.sdk.gaussdb.v3.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -6,74 +6,74 @@ import java.util.Objects; /** - * Identity Center的用户组信息。 + * HtapInstanceListAvailableZones */ -public class IdentityCenterGroup { +public class HtapInstanceListAvailableZones { @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "group_id") + @JsonProperty(value = "code") - private String groupId; + private String code; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "group_name") + @JsonProperty(value = "description") - private String groupName; + private String description; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "description") + @JsonProperty(value = "az_type") - private String description; + private String azType; - public IdentityCenterGroup withGroupId(String groupId) { - this.groupId = groupId; + public HtapInstanceListAvailableZones withCode(String code) { + this.code = code; return this; } /** - * Identity Center的用户组ID。 - * @return groupId + * 可用区码。 + * @return code */ - public String getGroupId() { - return groupId; + public String getCode() { + return code; } - public void setGroupId(String groupId) { - this.groupId = groupId; + public void setCode(String code) { + this.code = code; } - public IdentityCenterGroup withGroupName(String groupName) { - this.groupName = groupName; + public HtapInstanceListAvailableZones withDescription(String description) { + this.description = description; return this; } /** - * 用户组名称。 - * @return groupName + * 可用区描述。 + * @return description */ - public String getGroupName() { - return groupName; + public String getDescription() { + return description; } - public void setGroupName(String groupName) { - this.groupName = groupName; + public void setDescription(String description) { + this.description = description; } - public IdentityCenterGroup withDescription(String description) { - this.description = description; + public HtapInstanceListAvailableZones withAzType(String azType) { + this.azType = azType; return this; } /** - * Identity Center的用户组描述信息。 - * @return description + * 可用区类型。 + * @return azType */ - public String getDescription() { - return description; + public String getAzType() { + return azType; } - public void setDescription(String description) { - this.description = description; + public void setAzType(String azType) { + this.azType = azType; } @Override @@ -84,23 +84,23 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - IdentityCenterGroup that = (IdentityCenterGroup) obj; - return Objects.equals(this.groupId, that.groupId) && Objects.equals(this.groupName, that.groupName) - && Objects.equals(this.description, that.description); + HtapInstanceListAvailableZones that = (HtapInstanceListAvailableZones) obj; + return Objects.equals(this.code, that.code) && Objects.equals(this.description, that.description) + && Objects.equals(this.azType, that.azType); } @Override public int hashCode() { - return Objects.hash(groupId, groupName, description); + return Objects.hash(code, description, azType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class IdentityCenterGroup {\n"); - sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n"); - sb.append(" groupName: ").append(toIndentedString(groupName)).append("\n"); + sb.append("class HtapInstanceListAvailableZones {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" azType: ").append(toIndentedString(azType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/HtapInstanceListInstanceState.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/HtapInstanceListInstanceState.java new file mode 100644 index 0000000000..44e952b7be --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/HtapInstanceListInstanceState.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; + +/** + * HTAP实例状态信息。 + */ +public class HtapInstanceListInstanceState { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_status") + + private String instanceStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_fail_error_code") + + private String createFailErrorCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "fail_message") + + private String failMessage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "wait_restart_for_params") + + private Boolean waitRestartForParams; + + public HtapInstanceListInstanceState withInstanceStatus(String instanceStatus) { + this.instanceStatus = instanceStatus; + return this; + } + + /** + * HTAP实例状态。 + * @return instanceStatus + */ + public String getInstanceStatus() { + return instanceStatus; + } + + public void setInstanceStatus(String instanceStatus) { + this.instanceStatus = instanceStatus; + } + + public HtapInstanceListInstanceState withCreateFailErrorCode(String createFailErrorCode) { + this.createFailErrorCode = createFailErrorCode; + return this; + } + + /** + * HTAP实例创建失败错误码。 + * @return createFailErrorCode + */ + public String getCreateFailErrorCode() { + return createFailErrorCode; + } + + public void setCreateFailErrorCode(String createFailErrorCode) { + this.createFailErrorCode = createFailErrorCode; + } + + public HtapInstanceListInstanceState withFailMessage(String failMessage) { + this.failMessage = failMessage; + return this; + } + + /** + * HTAP实例创建失败错误信息。 + * @return failMessage + */ + public String getFailMessage() { + return failMessage; + } + + public void setFailMessage(String failMessage) { + this.failMessage = failMessage; + } + + public HtapInstanceListInstanceState withWaitRestartForParams(Boolean waitRestartForParams) { + this.waitRestartForParams = waitRestartForParams; + return this; + } + + /** + * 是否需要重启更新参数。 + * @return waitRestartForParams + */ + public Boolean getWaitRestartForParams() { + return waitRestartForParams; + } + + public void setWaitRestartForParams(Boolean waitRestartForParams) { + this.waitRestartForParams = waitRestartForParams; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + HtapInstanceListInstanceState that = (HtapInstanceListInstanceState) obj; + return Objects.equals(this.instanceStatus, that.instanceStatus) + && Objects.equals(this.createFailErrorCode, that.createFailErrorCode) + && Objects.equals(this.failMessage, that.failMessage) + && Objects.equals(this.waitRestartForParams, that.waitRestartForParams); + } + + @Override + public int hashCode() { + return Objects.hash(instanceStatus, createFailErrorCode, failMessage, waitRestartForParams); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HtapInstanceListInstanceState {\n"); + sb.append(" instanceStatus: ").append(toIndentedString(instanceStatus)).append("\n"); + sb.append(" createFailErrorCode: ").append(toIndentedString(createFailErrorCode)).append("\n"); + sb.append(" failMessage: ").append(toIndentedString(failMessage)).append("\n"); + sb.append(" waitRestartForParams: ").append(toIndentedString(waitRestartForParams)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/HtapInstanceListInstances.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/HtapInstanceListInstances.java new file mode 100644 index 0000000000..110ed0511f --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/HtapInstanceListInstances.java @@ -0,0 +1,773 @@ +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; + +/** + * HtapInstanceListInstances + */ +public class HtapInstanceListInstances { + + @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 = "engine_name") + + private String engineName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "engine_version") + + private String engineVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_state") + + private HtapInstanceListInstanceState instanceState; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_at") + + private Long createAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_frozen") + + private Boolean isFrozen; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ha_mode") + + private String haMode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pay_model") + + private String payModel; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "order_id") + + private String orderId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "alter_order_id") + + private String alterOrderId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_vip") + + private String dataVip; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "readable_node_infos") + + private List readableNodeInfos = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "proxy_ips") + + private List proxyIps = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_vip_v6") + + private String dataVipV6; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "port") + + private Integer port; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "available_zones") + + private List availableZones = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "current_actions") + + private List currentActions = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "volume_type") + + private String volumeType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server_type") + + private String serverType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private String enterpriseProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dedicated_resource_id") + + private String dedicatedResourceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "network") + + private HtapInstanceListNetwork network; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ch_master_node_id") + + private String chMasterNodeId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "node_num") + + private Integer nodeNum; + + public HtapInstanceListInstances withId(String id) { + this.id = id; + return this; + } + + /** + * HTAP实例ID,严格匹配UUID规则。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public HtapInstanceListInstances withName(String name) { + this.name = name; + return this; + } + + /** + * HTAP实例名。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public HtapInstanceListInstances withEngineName(String engineName) { + this.engineName = engineName; + return this; + } + + /** + * HTAP数据库引擎名。 + * @return engineName + */ + public String getEngineName() { + return engineName; + } + + public void setEngineName(String engineName) { + this.engineName = engineName; + } + + public HtapInstanceListInstances withEngineVersion(String engineVersion) { + this.engineVersion = engineVersion; + return this; + } + + /** + * HTAP数据库引擎版本。 + * @return engineVersion + */ + public String getEngineVersion() { + return engineVersion; + } + + public void setEngineVersion(String engineVersion) { + this.engineVersion = engineVersion; + } + + public HtapInstanceListInstances withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 租户在某一region下的project ID + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public HtapInstanceListInstances withInstanceState(HtapInstanceListInstanceState instanceState) { + this.instanceState = instanceState; + return this; + } + + public HtapInstanceListInstances withInstanceState(Consumer instanceStateSetter) { + if (this.instanceState == null) { + this.instanceState = new HtapInstanceListInstanceState(); + instanceStateSetter.accept(this.instanceState); + } + + return this; + } + + /** + * Get instanceState + * @return instanceState + */ + public HtapInstanceListInstanceState getInstanceState() { + return instanceState; + } + + public void setInstanceState(HtapInstanceListInstanceState instanceState) { + this.instanceState = instanceState; + } + + public HtapInstanceListInstances withCreateAt(Long createAt) { + this.createAt = createAt; + return this; + } + + /** + * HTAP实例创建时间。 + * @return createAt + */ + public Long getCreateAt() { + return createAt; + } + + public void setCreateAt(Long createAt) { + this.createAt = createAt; + } + + public HtapInstanceListInstances withIsFrozen(Boolean isFrozen) { + this.isFrozen = isFrozen; + return this; + } + + /** + * HTAP实例是否冻结。 + * @return isFrozen + */ + public Boolean getIsFrozen() { + return isFrozen; + } + + public void setIsFrozen(Boolean isFrozen) { + this.isFrozen = isFrozen; + } + + public HtapInstanceListInstances withHaMode(String haMode) { + this.haMode = haMode; + return this; + } + + /** + * HTAP实例部署模式。 + * @return haMode + */ + public String getHaMode() { + return haMode; + } + + public void setHaMode(String haMode) { + this.haMode = haMode; + } + + public HtapInstanceListInstances withPayModel(String payModel) { + this.payModel = payModel; + return this; + } + + /** + * 计费模式。当前仅支持按需计费。 0:按需计费 1:包周期 + * @return payModel + */ + public String getPayModel() { + return payModel; + } + + public void setPayModel(String payModel) { + this.payModel = payModel; + } + + public HtapInstanceListInstances withOrderId(String orderId) { + this.orderId = orderId; + return this; + } + + /** + * 包周期计费订单ID。 + * @return orderId + */ + public String getOrderId() { + return orderId; + } + + public void setOrderId(String orderId) { + this.orderId = orderId; + } + + public HtapInstanceListInstances withAlterOrderId(String alterOrderId) { + this.alterOrderId = alterOrderId; + return this; + } + + /** + * 包周期计费备用订单ID。 + * @return alterOrderId + */ + public String getAlterOrderId() { + return alterOrderId; + } + + public void setAlterOrderId(String alterOrderId) { + this.alterOrderId = alterOrderId; + } + + public HtapInstanceListInstances withDataVip(String dataVip) { + this.dataVip = dataVip; + return this; + } + + /** + * 读写内网地址。 + * @return dataVip + */ + public String getDataVip() { + return dataVip; + } + + public void setDataVip(String dataVip) { + this.dataVip = dataVip; + } + + public HtapInstanceListInstances withReadableNodeInfos(List readableNodeInfos) { + this.readableNodeInfos = readableNodeInfos; + return this; + } + + public HtapInstanceListInstances addReadableNodeInfosItem(ReadableNodeInfos readableNodeInfosItem) { + if (this.readableNodeInfos == null) { + this.readableNodeInfos = new ArrayList<>(); + } + this.readableNodeInfos.add(readableNodeInfosItem); + return this; + } + + public HtapInstanceListInstances withReadableNodeInfos(Consumer> readableNodeInfosSetter) { + if (this.readableNodeInfos == null) { + this.readableNodeInfos = new ArrayList<>(); + } + readableNodeInfosSetter.accept(this.readableNodeInfos); + return this; + } + + /** + * 可读节点信息 + * @return readableNodeInfos + */ + public List getReadableNodeInfos() { + return readableNodeInfos; + } + + public void setReadableNodeInfos(List readableNodeInfos) { + this.readableNodeInfos = readableNodeInfos; + } + + public HtapInstanceListInstances withProxyIps(List proxyIps) { + this.proxyIps = proxyIps; + return this; + } + + public HtapInstanceListInstances addProxyIpsItem(String proxyIpsItem) { + if (this.proxyIps == null) { + this.proxyIps = new ArrayList<>(); + } + this.proxyIps.add(proxyIpsItem); + return this; + } + + public HtapInstanceListInstances withProxyIps(Consumer> proxyIpsSetter) { + if (this.proxyIps == null) { + this.proxyIps = new ArrayList<>(); + } + proxyIpsSetter.accept(this.proxyIps); + return this; + } + + /** + * 代理IP。 + * @return proxyIps + */ + public List getProxyIps() { + return proxyIps; + } + + public void setProxyIps(List proxyIps) { + this.proxyIps = proxyIps; + } + + public HtapInstanceListInstances withDataVipV6(String dataVipV6) { + this.dataVipV6 = dataVipV6; + return this; + } + + /** + * 读写内网地址IPV6。 + * @return dataVipV6 + */ + public String getDataVipV6() { + return dataVipV6; + } + + public void setDataVipV6(String dataVipV6) { + this.dataVipV6 = dataVipV6; + } + + public HtapInstanceListInstances withPort(Integer port) { + this.port = port; + return this; + } + + /** + * 数据库访问端口。 + * @return port + */ + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public HtapInstanceListInstances withAvailableZones(List availableZones) { + this.availableZones = availableZones; + return this; + } + + public HtapInstanceListInstances addAvailableZonesItem(HtapInstanceListAvailableZones availableZonesItem) { + if (this.availableZones == null) { + this.availableZones = new ArrayList<>(); + } + this.availableZones.add(availableZonesItem); + return this; + } + + public HtapInstanceListInstances withAvailableZones( + Consumer> availableZonesSetter) { + if (this.availableZones == null) { + this.availableZones = new ArrayList<>(); + } + availableZonesSetter.accept(this.availableZones); + return this; + } + + /** + * 可用区信息。 + * @return availableZones + */ + public List getAvailableZones() { + return availableZones; + } + + public void setAvailableZones(List availableZones) { + this.availableZones = availableZones; + } + + public HtapInstanceListInstances withCurrentActions(List currentActions) { + this.currentActions = currentActions; + return this; + } + + public HtapInstanceListInstances addCurrentActionsItem(QueryAction currentActionsItem) { + if (this.currentActions == null) { + this.currentActions = new ArrayList<>(); + } + this.currentActions.add(currentActionsItem); + return this; + } + + public HtapInstanceListInstances withCurrentActions(Consumer> currentActionsSetter) { + if (this.currentActions == null) { + this.currentActions = new ArrayList<>(); + } + currentActionsSetter.accept(this.currentActions); + return this; + } + + /** + * 实例动作。 + * @return currentActions + */ + public List getCurrentActions() { + return currentActions; + } + + public void setCurrentActions(List currentActions) { + this.currentActions = currentActions; + } + + public HtapInstanceListInstances withVolumeType(String volumeType) { + this.volumeType = volumeType; + return this; + } + + /** + * 存储类型。 + * @return volumeType + */ + public String getVolumeType() { + return volumeType; + } + + public void setVolumeType(String volumeType) { + this.volumeType = volumeType; + } + + public HtapInstanceListInstances withServerType(String serverType) { + this.serverType = serverType; + return this; + } + + /** + * 服务器类型。 + * @return serverType + */ + public String getServerType() { + return serverType; + } + + public void setServerType(String serverType) { + this.serverType = serverType; + } + + public HtapInstanceListInstances withEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + return this; + } + + /** + * 企业项目ID。如果帐户开通企业项目服务则该参数必选,未开启该参数不可选。 + * @return enterpriseProjectId + */ + public String getEnterpriseProjectId() { + return enterpriseProjectId; + } + + public void setEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + } + + public HtapInstanceListInstances withDedicatedResourceId(String dedicatedResourceId) { + this.dedicatedResourceId = dedicatedResourceId; + return this; + } + + /** + * 专属资源池ID,只有开通专属资源池后才支持此参数。 + * @return dedicatedResourceId + */ + public String getDedicatedResourceId() { + return dedicatedResourceId; + } + + public void setDedicatedResourceId(String dedicatedResourceId) { + this.dedicatedResourceId = dedicatedResourceId; + } + + public HtapInstanceListInstances withNetwork(HtapInstanceListNetwork network) { + this.network = network; + return this; + } + + public HtapInstanceListInstances withNetwork(Consumer networkSetter) { + if (this.network == null) { + this.network = new HtapInstanceListNetwork(); + networkSetter.accept(this.network); + } + + return this; + } + + /** + * Get network + * @return network + */ + public HtapInstanceListNetwork getNetwork() { + return network; + } + + public void setNetwork(HtapInstanceListNetwork network) { + this.network = network; + } + + public HtapInstanceListInstances withChMasterNodeId(String chMasterNodeId) { + this.chMasterNodeId = chMasterNodeId; + return this; + } + + /** + * ClickHouse主节点ID。 + * @return chMasterNodeId + */ + public String getChMasterNodeId() { + return chMasterNodeId; + } + + public void setChMasterNodeId(String chMasterNodeId) { + this.chMasterNodeId = chMasterNodeId; + } + + public HtapInstanceListInstances withNodeNum(Integer nodeNum) { + this.nodeNum = nodeNum; + return this; + } + + /** + * 节点个数。 + * @return nodeNum + */ + public Integer getNodeNum() { + return nodeNum; + } + + public void setNodeNum(Integer nodeNum) { + this.nodeNum = nodeNum; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + HtapInstanceListInstances that = (HtapInstanceListInstances) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.engineName, that.engineName) + && Objects.equals(this.engineVersion, that.engineVersion) && Objects.equals(this.projectId, that.projectId) + && Objects.equals(this.instanceState, that.instanceState) && Objects.equals(this.createAt, that.createAt) + && Objects.equals(this.isFrozen, that.isFrozen) && Objects.equals(this.haMode, that.haMode) + && Objects.equals(this.payModel, that.payModel) && Objects.equals(this.orderId, that.orderId) + && Objects.equals(this.alterOrderId, that.alterOrderId) && Objects.equals(this.dataVip, that.dataVip) + && Objects.equals(this.readableNodeInfos, that.readableNodeInfos) + && Objects.equals(this.proxyIps, that.proxyIps) && Objects.equals(this.dataVipV6, that.dataVipV6) + && Objects.equals(this.port, that.port) && Objects.equals(this.availableZones, that.availableZones) + && Objects.equals(this.currentActions, that.currentActions) + && Objects.equals(this.volumeType, that.volumeType) && Objects.equals(this.serverType, that.serverType) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) + && Objects.equals(this.dedicatedResourceId, that.dedicatedResourceId) + && Objects.equals(this.network, that.network) && Objects.equals(this.chMasterNodeId, that.chMasterNodeId) + && Objects.equals(this.nodeNum, that.nodeNum); + } + + @Override + public int hashCode() { + return Objects.hash(id, + name, + engineName, + engineVersion, + projectId, + instanceState, + createAt, + isFrozen, + haMode, + payModel, + orderId, + alterOrderId, + dataVip, + readableNodeInfos, + proxyIps, + dataVipV6, + port, + availableZones, + currentActions, + volumeType, + serverType, + enterpriseProjectId, + dedicatedResourceId, + network, + chMasterNodeId, + nodeNum); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HtapInstanceListInstances {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" engineName: ").append(toIndentedString(engineName)).append("\n"); + sb.append(" engineVersion: ").append(toIndentedString(engineVersion)).append("\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" instanceState: ").append(toIndentedString(instanceState)).append("\n"); + sb.append(" createAt: ").append(toIndentedString(createAt)).append("\n"); + sb.append(" isFrozen: ").append(toIndentedString(isFrozen)).append("\n"); + sb.append(" haMode: ").append(toIndentedString(haMode)).append("\n"); + sb.append(" payModel: ").append(toIndentedString(payModel)).append("\n"); + sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n"); + sb.append(" alterOrderId: ").append(toIndentedString(alterOrderId)).append("\n"); + sb.append(" dataVip: ").append(toIndentedString(dataVip)).append("\n"); + sb.append(" readableNodeInfos: ").append(toIndentedString(readableNodeInfos)).append("\n"); + sb.append(" proxyIps: ").append(toIndentedString(proxyIps)).append("\n"); + sb.append(" dataVipV6: ").append(toIndentedString(dataVipV6)).append("\n"); + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" availableZones: ").append(toIndentedString(availableZones)).append("\n"); + sb.append(" currentActions: ").append(toIndentedString(currentActions)).append("\n"); + sb.append(" volumeType: ").append(toIndentedString(volumeType)).append("\n"); + sb.append(" serverType: ").append(toIndentedString(serverType)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append(" dedicatedResourceId: ").append(toIndentedString(dedicatedResourceId)).append("\n"); + sb.append(" network: ").append(toIndentedString(network)).append("\n"); + sb.append(" chMasterNodeId: ").append(toIndentedString(chMasterNodeId)).append("\n"); + sb.append(" nodeNum: ").append(toIndentedString(nodeNum)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/HtapInstanceListNetwork.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/HtapInstanceListNetwork.java new file mode 100644 index 0000000000..0accfd93d2 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/HtapInstanceListNetwork.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 HtapInstanceListNetwork { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "vpc_id") + + private String vpcId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sub_net_id") + + private String subNetId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "security_group_id") + + private String securityGroupId; + + public HtapInstanceListNetwork 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 HtapInstanceListNetwork withSubNetId(String subNetId) { + this.subNetId = subNetId; + return this; + } + + /** + * 子网ID。 + * @return subNetId + */ + public String getSubNetId() { + return subNetId; + } + + public void setSubNetId(String subNetId) { + this.subNetId = subNetId; + } + + public HtapInstanceListNetwork withSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + return this; + } + + /** + * 安全组ID。 + * @return securityGroupId + */ + public String getSecurityGroupId() { + return securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + HtapInstanceListNetwork that = (HtapInstanceListNetwork) obj; + return Objects.equals(this.vpcId, that.vpcId) && Objects.equals(this.subNetId, that.subNetId) + && Objects.equals(this.securityGroupId, that.securityGroupId); + } + + @Override + public int hashCode() { + return Objects.hash(vpcId, subNetId, securityGroupId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HtapInstanceListNetwork {\n"); + sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n"); + sb.append(" subNetId: ").append(toIndentedString(subNetId)).append("\n"); + sb.append(" securityGroupId: ").append(toIndentedString(securityGroupId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/HtapStorageTypeStorageType.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/HtapStorageTypeStorageType.java new file mode 100644 index 0000000000..86483f6a36 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/HtapStorageTypeStorageType.java @@ -0,0 +1,138 @@ +package com.huaweicloud.sdk.gaussdb.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * HtapStorageTypeStorageType + */ +public class HtapStorageTypeStorageType { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "az_status") + + private Map azStatus = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "min_volume_size") + + private Integer minVolumeSize; + + public HtapStorageTypeStorageType withName(String name) { + this.name = name; + return this; + } + + /** + * 存储介质名。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public HtapStorageTypeStorageType withAzStatus(Map azStatus) { + this.azStatus = azStatus; + return this; + } + + public HtapStorageTypeStorageType putAzStatusItem(String key, String azStatusItem) { + if (this.azStatus == null) { + this.azStatus = new HashMap<>(); + } + this.azStatus.put(key, azStatusItem); + return this; + } + + public HtapStorageTypeStorageType withAzStatus(Consumer> azStatusSetter) { + if (this.azStatus == null) { + this.azStatus = new HashMap<>(); + } + azStatusSetter.accept(this.azStatus); + return this; + } + + /** + * 可支持可用区信息。 + * @return azStatus + */ + public Map getAzStatus() { + return azStatus; + } + + public void setAzStatus(Map azStatus) { + this.azStatus = azStatus; + } + + public HtapStorageTypeStorageType withMinVolumeSize(Integer minVolumeSize) { + this.minVolumeSize = minVolumeSize; + return this; + } + + /** + * 最小可提供磁盘大小。 + * @return minVolumeSize + */ + public Integer getMinVolumeSize() { + return minVolumeSize; + } + + public void setMinVolumeSize(Integer minVolumeSize) { + this.minVolumeSize = minVolumeSize; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + HtapStorageTypeStorageType that = (HtapStorageTypeStorageType) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.azStatus, that.azStatus) + && Objects.equals(this.minVolumeSize, that.minVolumeSize); + } + + @Override + public int hashCode() { + return Objects.hash(name, azStatus, minVolumeSize); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HtapStorageTypeStorageType {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" azStatus: ").append(toIndentedString(azStatus)).append("\n"); + sb.append(" minVolumeSize: ").append(toIndentedString(minVolumeSize)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/ListHtapDataStoreRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListHtapDataStoreRequest.java new file mode 100644 index 0000000000..a2a5af5b73 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListHtapDataStoreRequest.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 ListHtapDataStoreRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "engine_name") + + private String engineName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + public ListHtapDataStoreRequest withEngineName(String engineName) { + this.engineName = engineName; + return this; + } + + /** + * HTAP引擎名。 取值范围: - star-rocks - click-house + * @return engineName + */ + public String getEngineName() { + return engineName; + } + + public void setEngineName(String engineName) { + this.engineName = engineName; + } + + public ListHtapDataStoreRequest 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; + } + ListHtapDataStoreRequest that = (ListHtapDataStoreRequest) obj; + return Objects.equals(this.engineName, that.engineName) && Objects.equals(this.xLanguage, that.xLanguage); + } + + @Override + public int hashCode() { + return Objects.hash(engineName, xLanguage); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListHtapDataStoreRequest {\n"); + sb.append(" engineName: ").append(toIndentedString(engineName)).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/ListHtapDataStoreResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListHtapDataStoreResponse.java new file mode 100644 index 0000000000..bc45015b85 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListHtapDataStoreResponse.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 ListHtapDataStoreResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "datastores") + + private List datastores = null; + + public ListHtapDataStoreResponse withDatastores(List datastores) { + this.datastores = datastores; + return this; + } + + public ListHtapDataStoreResponse addDatastoresItem(SrDataStoresDatastores datastoresItem) { + if (this.datastores == null) { + this.datastores = new ArrayList<>(); + } + this.datastores.add(datastoresItem); + return this; + } + + public ListHtapDataStoreResponse withDatastores(Consumer> datastoresSetter) { + if (this.datastores == null) { + this.datastores = new ArrayList<>(); + } + datastoresSetter.accept(this.datastores); + return this; + } + + /** + * 数据库信息列表。 + * @return datastores + */ + public List getDatastores() { + return datastores; + } + + public void setDatastores(List datastores) { + this.datastores = datastores; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListHtapDataStoreResponse that = (ListHtapDataStoreResponse) obj; + return Objects.equals(this.datastores, that.datastores); + } + + @Override + public int hashCode() { + return Objects.hash(datastores); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListHtapDataStoreResponse {\n"); + sb.append(" datastores: ").append(toIndentedString(datastores)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/ListHtapFlavorRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListHtapFlavorRequest.java new file mode 100644 index 0000000000..e1f2dfe5ea --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListHtapFlavorRequest.java @@ -0,0 +1,169 @@ +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 ListHtapFlavorRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "engine_name") + + private String engineName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "availability_zone_mode") + + private String availabilityZoneMode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "spec_code") + + private String specCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_name") + + private String versionName; + + public ListHtapFlavorRequest withEngineName(String engineName) { + this.engineName = engineName; + return this; + } + + /** + * HTAP引擎名。 取值范围: - star-rocks - click-house + * @return engineName + */ + public String getEngineName() { + return engineName; + } + + public void setEngineName(String engineName) { + this.engineName = engineName; + } + + public ListHtapFlavorRequest withAvailabilityZoneMode(String availabilityZoneMode) { + this.availabilityZoneMode = availabilityZoneMode; + return this; + } + + /** + * 可用区模式,当前仅支持single。 + * @return availabilityZoneMode + */ + public String getAvailabilityZoneMode() { + return availabilityZoneMode; + } + + public void setAvailabilityZoneMode(String availabilityZoneMode) { + this.availabilityZoneMode = availabilityZoneMode; + } + + public ListHtapFlavorRequest withSpecCode(String specCode) { + this.specCode = specCode; + return this; + } + + /** + * 规格码,提供后仅查询指定规格码规格信息。 + * @return specCode + */ + public String getSpecCode() { + return specCode; + } + + public void setSpecCode(String specCode) { + this.specCode = specCode; + } + + public ListHtapFlavorRequest 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 ListHtapFlavorRequest withVersionName(String versionName) { + this.versionName = versionName; + return this; + } + + /** + * 数据库版本号,不填默认3.1.6.0。 + * @return versionName + */ + public String getVersionName() { + return versionName; + } + + public void setVersionName(String versionName) { + this.versionName = versionName; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListHtapFlavorRequest that = (ListHtapFlavorRequest) obj; + return Objects.equals(this.engineName, that.engineName) + && Objects.equals(this.availabilityZoneMode, that.availabilityZoneMode) + && Objects.equals(this.specCode, that.specCode) && Objects.equals(this.xLanguage, that.xLanguage) + && Objects.equals(this.versionName, that.versionName); + } + + @Override + public int hashCode() { + return Objects.hash(engineName, availabilityZoneMode, specCode, xLanguage, versionName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListHtapFlavorRequest {\n"); + sb.append(" engineName: ").append(toIndentedString(engineName)).append("\n"); + sb.append(" availabilityZoneMode: ").append(toIndentedString(availabilityZoneMode)).append("\n"); + sb.append(" specCode: ").append(toIndentedString(specCode)).append("\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" versionName: ").append(toIndentedString(versionName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/ListHtapFlavorResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListHtapFlavorResponse.java new file mode 100644 index 0000000000..8817cdc06b --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListHtapFlavorResponse.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 ListHtapFlavorResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flavors") + + private List flavors = null; + + public ListHtapFlavorResponse withFlavors(List flavors) { + this.flavors = flavors; + return this; + } + + public ListHtapFlavorResponse addFlavorsItem(HtapFlavorInfoFlavors flavorsItem) { + if (this.flavors == null) { + this.flavors = new ArrayList<>(); + } + this.flavors.add(flavorsItem); + return this; + } + + public ListHtapFlavorResponse withFlavors(Consumer> flavorsSetter) { + if (this.flavors == null) { + this.flavors = new ArrayList<>(); + } + flavorsSetter.accept(this.flavors); + return this; + } + + /** + * 规格信息。 + * @return flavors + */ + public List getFlavors() { + return flavors; + } + + public void setFlavors(List flavors) { + this.flavors = flavors; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListHtapFlavorResponse that = (ListHtapFlavorResponse) obj; + return Objects.equals(this.flavors, that.flavors); + } + + @Override + public int hashCode() { + return Objects.hash(flavors); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListHtapFlavorResponse {\n"); + sb.append(" flavors: ").append(toIndentedString(flavors)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/ListHtapInstanceInfoRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListHtapInstanceInfoRequest.java new file mode 100644 index 0000000000..954f1017c4 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListHtapInstanceInfoRequest.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 ListHtapInstanceInfoRequest { + + @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 ListHtapInstanceInfoRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * GaussDBForMySQL实例ID,严格匹配UUID规则。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ListHtapInstanceInfoRequest 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; + } + ListHtapInstanceInfoRequest that = (ListHtapInstanceInfoRequest) 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 ListHtapInstanceInfoRequest {\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/ListHtapInstanceInfoResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListHtapInstanceInfoResponse.java new file mode 100644 index 0000000000..4e469bc671 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListHtapInstanceInfoResponse.java @@ -0,0 +1,139 @@ +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 ListHtapInstanceInfoResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instances") + + private List instances = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "max_htap_instance_num_of_taurus") + + private Integer maxHtapInstanceNumOfTaurus; + + public ListHtapInstanceInfoResponse withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * HTAP实例个数。 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ListHtapInstanceInfoResponse withInstances(List instances) { + this.instances = instances; + return this; + } + + public ListHtapInstanceInfoResponse addInstancesItem(HtapInstanceListInstances instancesItem) { + if (this.instances == null) { + this.instances = new ArrayList<>(); + } + this.instances.add(instancesItem); + return this; + } + + public ListHtapInstanceInfoResponse withInstances(Consumer> instancesSetter) { + if (this.instances == null) { + this.instances = new ArrayList<>(); + } + instancesSetter.accept(this.instances); + return this; + } + + /** + * HTAP实例信息。 + * @return instances + */ + public List getInstances() { + return instances; + } + + public void setInstances(List instances) { + this.instances = instances; + } + + public ListHtapInstanceInfoResponse withMaxHtapInstanceNumOfTaurus(Integer maxHtapInstanceNumOfTaurus) { + this.maxHtapInstanceNumOfTaurus = maxHtapInstanceNumOfTaurus; + return this; + } + + /** + * 最大HTAP实例个数。 + * @return maxHtapInstanceNumOfTaurus + */ + public Integer getMaxHtapInstanceNumOfTaurus() { + return maxHtapInstanceNumOfTaurus; + } + + public void setMaxHtapInstanceNumOfTaurus(Integer maxHtapInstanceNumOfTaurus) { + this.maxHtapInstanceNumOfTaurus = maxHtapInstanceNumOfTaurus; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListHtapInstanceInfoResponse that = (ListHtapInstanceInfoResponse) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.instances, that.instances) + && Objects.equals(this.maxHtapInstanceNumOfTaurus, that.maxHtapInstanceNumOfTaurus); + } + + @Override + public int hashCode() { + return Objects.hash(total, instances, maxHtapInstanceNumOfTaurus); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListHtapInstanceInfoResponse {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" instances: ").append(toIndentedString(instances)).append("\n"); + sb.append(" maxHtapInstanceNumOfTaurus: ").append(toIndentedString(maxHtapInstanceNumOfTaurus)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/ListHtapStorageTypeRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListHtapStorageTypeRequest.java new file mode 100644 index 0000000000..54b1b014e4 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListHtapStorageTypeRequest.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 ListHtapStorageTypeRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "database") + + private String database; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_name") + + private String versionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + public ListHtapStorageTypeRequest withDatabase(String database) { + this.database = database; + return this; + } + + /** + * HTAP数据库名。 取值范围: - star-rocks - click-house + * @return database + */ + public String getDatabase() { + return database; + } + + public void setDatabase(String database) { + this.database = database; + } + + public ListHtapStorageTypeRequest withVersionName(String versionName) { + this.versionName = versionName; + return this; + } + + /** + * 数据库大版本号 + * @return versionName + */ + public String getVersionName() { + return versionName; + } + + public void setVersionName(String versionName) { + this.versionName = versionName; + } + + public ListHtapStorageTypeRequest 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; + } + ListHtapStorageTypeRequest that = (ListHtapStorageTypeRequest) obj; + return Objects.equals(this.database, that.database) && Objects.equals(this.versionName, that.versionName) + && Objects.equals(this.xLanguage, that.xLanguage); + } + + @Override + public int hashCode() { + return Objects.hash(database, versionName, xLanguage); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListHtapStorageTypeRequest {\n"); + sb.append(" database: ").append(toIndentedString(database)).append("\n"); + sb.append(" versionName: ").append(toIndentedString(versionName)).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/ListHtapStorageTypeResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListHtapStorageTypeResponse.java new file mode 100644 index 0000000000..19a59f6fcf --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListHtapStorageTypeResponse.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 ListHtapStorageTypeResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "storage_type") + + private List storageType = null; + + public ListHtapStorageTypeResponse withStorageType(List storageType) { + this.storageType = storageType; + return this; + } + + public ListHtapStorageTypeResponse addStorageTypeItem(HtapStorageTypeStorageType storageTypeItem) { + if (this.storageType == null) { + this.storageType = new ArrayList<>(); + } + this.storageType.add(storageTypeItem); + return this; + } + + public ListHtapStorageTypeResponse withStorageType(Consumer> storageTypeSetter) { + if (this.storageType == null) { + this.storageType = new ArrayList<>(); + } + storageTypeSetter.accept(this.storageType); + return this; + } + + /** + * 存储类型。 + * @return storageType + */ + public List getStorageType() { + return storageType; + } + + public void setStorageType(List storageType) { + this.storageType = storageType; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListHtapStorageTypeResponse that = (ListHtapStorageTypeResponse) obj; + return Objects.equals(this.storageType, that.storageType); + } + + @Override + public int hashCode() { + return Objects.hash(storageType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListHtapStorageTypeResponse {\n"); + sb.append(" storageType: ").append(toIndentedString(storageType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/ListStarrocksInstanceInfoRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarrocksInstanceInfoRequest.java new file mode 100644 index 0000000000..5174cdcc33 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarrocksInstanceInfoRequest.java @@ -0,0 +1,122 @@ +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 ListStarrocksInstanceInfoRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "starrocks_instance_id") + + private String starrocksInstanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + public ListStarrocksInstanceInfoRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * GaussDBforMySQL实例ID,严格匹配UUID规则。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ListStarrocksInstanceInfoRequest withStarrocksInstanceId(String starrocksInstanceId) { + this.starrocksInstanceId = starrocksInstanceId; + return this; + } + + /** + * StarRocks实例ID,严格匹配UUID规则。 + * @return starrocksInstanceId + */ + public String getStarrocksInstanceId() { + return starrocksInstanceId; + } + + public void setStarrocksInstanceId(String starrocksInstanceId) { + this.starrocksInstanceId = starrocksInstanceId; + } + + public ListStarrocksInstanceInfoRequest 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; + } + ListStarrocksInstanceInfoRequest that = (ListStarrocksInstanceInfoRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.starrocksInstanceId, that.starrocksInstanceId) + && Objects.equals(this.xLanguage, that.xLanguage); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, starrocksInstanceId, xLanguage); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListStarrocksInstanceInfoRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" starrocksInstanceId: ").append(toIndentedString(starrocksInstanceId)).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/ListStarrocksInstanceInfoResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarrocksInstanceInfoResponse.java new file mode 100644 index 0000000000..104e3f2b20 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ListStarrocksInstanceInfoResponse.java @@ -0,0 +1,93 @@ +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 ListStarrocksInstanceInfoResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instances") + + private List instances = null; + + public ListStarrocksInstanceInfoResponse withInstances(List instances) { + this.instances = instances; + return this; + } + + public ListStarrocksInstanceInfoResponse addInstancesItem(StarRocksInstanceInfoInstances instancesItem) { + if (this.instances == null) { + this.instances = new ArrayList<>(); + } + this.instances.add(instancesItem); + return this; + } + + public ListStarrocksInstanceInfoResponse withInstances( + Consumer> instancesSetter) { + if (this.instances == null) { + this.instances = new ArrayList<>(); + } + instancesSetter.accept(this.instances); + return this; + } + + /** + * 实例信息。 + * @return instances + */ + public List getInstances() { + return instances; + } + + public void setInstances(List instances) { + this.instances = instances; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListStarrocksInstanceInfoResponse that = (ListStarrocksInstanceInfoResponse) obj; + return Objects.equals(this.instances, that.instances); + } + + @Override + public int hashCode() { + return Objects.hash(instances); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListStarrocksInstanceInfoResponse {\n"); + sb.append(" instances: ").append(toIndentedString(instances)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/ParamGroup.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ParamGroup.java new file mode 100644 index 0000000000..8c10b43680 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ParamGroup.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; + +/** + * ParamGroup + */ +public class ParamGroup { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + public ParamGroup 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 ParamGroup 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; + } + ParamGroup that = (ParamGroup) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name); + } + + @Override + public int hashCode() { + return Objects.hash(id, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ParamGroup {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/QueryAction.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/QueryAction.java new file mode 100644 index 0000000000..fd9570871b --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/QueryAction.java @@ -0,0 +1,311 @@ +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; + +/** + * QueryAction + */ +public class QueryAction { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "action") + + private String action; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "object_id") + + private String objectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + /** + * 实例或节点动作状态。 + */ + public static final class StatusEnum { + + /** + * Enum OK_TO_RUN for value: "OK_TO_RUN" + */ + public static final StatusEnum OK_TO_RUN = new StatusEnum("OK_TO_RUN"); + + /** + * Enum DELETED for value: "DELETED" + */ + public static final StatusEnum DELETED = new StatusEnum("DELETED"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("OK_TO_RUN", OK_TO_RUN); + map.put("DELETED", DELETED); + 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; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "created_at") + + private Long createdAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "updated_at") + + private Long updatedAt; + + public QueryAction 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 QueryAction withAction(String action) { + this.action = action; + return this; + } + + /** + * 实例或节点动作名称。 + * @return action + */ + public String getAction() { + return action; + } + + public void setAction(String action) { + this.action = action; + } + + public QueryAction withObjectId(String objectId) { + this.objectId = objectId; + return this; + } + + /** + * 实例或节点动作对象ID。 + * @return objectId + */ + public String getObjectId() { + return objectId; + } + + public void setObjectId(String objectId) { + this.objectId = objectId; + } + + public QueryAction withType(String type) { + this.type = type; + return this; + } + + /** + * 实例或节点动作类型。 + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public QueryAction 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 QueryAction withStatus(StatusEnum status) { + this.status = status; + return this; + } + + /** + * 实例或节点动作状态。 + * @return status + */ + public StatusEnum getStatus() { + return status; + } + + public void setStatus(StatusEnum status) { + this.status = status; + } + + public QueryAction withCreatedAt(Long createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * 实例或节点动作创建时间。 + * @return createdAt + */ + public Long getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Long createdAt) { + this.createdAt = createdAt; + } + + public QueryAction withUpdatedAt(Long updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + /** + * 实例或节点动作更新时间。 + * @return updatedAt + */ + public Long getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Long updatedAt) { + this.updatedAt = updatedAt; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + QueryAction that = (QueryAction) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.action, that.action) + && Objects.equals(this.objectId, that.objectId) && Objects.equals(this.type, that.type) + && Objects.equals(this.jobId, that.jobId) && Objects.equals(this.status, that.status) + && Objects.equals(this.createdAt, that.createdAt) && Objects.equals(this.updatedAt, that.updatedAt); + } + + @Override + public int hashCode() { + return Objects.hash(id, action, objectId, type, jobId, status, createdAt, updatedAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QueryAction {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append(" objectId: ").append(toIndentedString(objectId)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/ReadableNodeInfos.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ReadableNodeInfos.java new file mode 100644 index 0000000000..15721ed3da --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ReadableNodeInfos.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 ReadableNodeInfos { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_ip") + + private String dataIp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "node_id") + + private String nodeId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "node_name") + + private String nodeName; + + public ReadableNodeInfos withDataIp(String dataIp) { + this.dataIp = dataIp; + return this; + } + + /** + * 可读节点IP。 + * @return dataIp + */ + public String getDataIp() { + return dataIp; + } + + public void setDataIp(String dataIp) { + this.dataIp = dataIp; + } + + public ReadableNodeInfos withNodeId(String nodeId) { + this.nodeId = nodeId; + return this; + } + + /** + * 可读节点ID。 + * @return nodeId + */ + public String getNodeId() { + return nodeId; + } + + public void setNodeId(String nodeId) { + this.nodeId = nodeId; + } + + public ReadableNodeInfos withNodeName(String nodeName) { + this.nodeName = nodeName; + return this; + } + + /** + * 可读节点名称。 + * @return nodeName + */ + public String getNodeName() { + return nodeName; + } + + public void setNodeName(String nodeName) { + this.nodeName = nodeName; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ReadableNodeInfos that = (ReadableNodeInfos) obj; + return Objects.equals(this.dataIp, that.dataIp) && Objects.equals(this.nodeId, that.nodeId) + && Objects.equals(this.nodeName, that.nodeName); + } + + @Override + public int hashCode() { + return Objects.hash(dataIp, nodeId, nodeName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReadableNodeInfos {\n"); + sb.append(" dataIp: ").append(toIndentedString(dataIp)).append("\n"); + sb.append(" nodeId: ").append(toIndentedString(nodeId)).append("\n"); + sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/ResourceCheck.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ResourceCheck.java new file mode 100644 index 0000000000..3e1aed43d5 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ResourceCheck.java @@ -0,0 +1,174 @@ +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; +import java.util.function.Consumer; + +/** + * ResourceCheck + */ +public class ResourceCheck { + + /** + * 校验类型,仅支持校验创建实例。 + */ + public static final class ActionEnum { + + /** + * Enum CREATEINSTANCE for value: "createInstance" + */ + public static final ActionEnum CREATEINSTANCE = new ActionEnum("createInstance"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("createInstance", CREATEINSTANCE); + 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 = "resource") + + private ResourceCheckResource resource; + + public ResourceCheck withAction(ActionEnum action) { + this.action = action; + return this; + } + + /** + * 校验类型,仅支持校验创建实例。 + * @return action + */ + public ActionEnum getAction() { + return action; + } + + public void setAction(ActionEnum action) { + this.action = action; + } + + public ResourceCheck withResource(ResourceCheckResource resource) { + this.resource = resource; + return this; + } + + public ResourceCheck withResource(Consumer resourceSetter) { + if (this.resource == null) { + this.resource = new ResourceCheckResource(); + resourceSetter.accept(this.resource); + } + + return this; + } + + /** + * Get resource + * @return resource + */ + public ResourceCheckResource getResource() { + return resource; + } + + public void setResource(ResourceCheckResource resource) { + this.resource = resource; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ResourceCheck that = (ResourceCheck) obj; + return Objects.equals(this.action, that.action) && Objects.equals(this.resource, that.resource); + } + + @Override + public int hashCode() { + return Objects.hash(action, resource); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResourceCheck {\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/ResourceCheckResource.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ResourceCheckResource.java new file mode 100644 index 0000000000..a42075e59d --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ResourceCheckResource.java @@ -0,0 +1,369 @@ +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 ResourceCheckResource { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private String enterpriseProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_num") + + private Integer instanceNum; + + /** + * 实例部署模式。 + */ + public static final class ModeEnum { + + /** + * Enum CLUSTER for value: "Cluster" + */ + public static final ModeEnum CLUSTER = new ModeEnum("Cluster"); + + /** + * Enum SINGLE for value: "Single" + */ + public static final ModeEnum SINGLE = new ModeEnum("Single"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("Cluster", CLUSTER); + map.put("Single", SINGLE); + return Collections.unmodifiableMap(map); + } + + private String value; + + ModeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ModeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ModeEnum(value)); + } + + public static ModeEnum 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 ModeEnum) { + return this.value.equals(((ModeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "mode") + + private ModeEnum mode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "availability_zone_mode") + + private String availabilityZoneMode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "fe_node_num") + + private Integer feNodeNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "be_node_num") + + private Integer beNodeNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "fe_flavor_ref") + + private String feFlavorRef; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "be_flavor_ref") + + private String beFlavorRef; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "availability_zone") + + private String availabilityZone; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "subnet_id") + + private String subnetId; + + public ResourceCheckResource withEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + return this; + } + + /** + * 企业项目ID。 + * @return enterpriseProjectId + */ + public String getEnterpriseProjectId() { + return enterpriseProjectId; + } + + public void setEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + } + + public ResourceCheckResource withInstanceNum(Integer instanceNum) { + this.instanceNum = instanceNum; + return this; + } + + /** + * 实例数量。 + * @return instanceNum + */ + public Integer getInstanceNum() { + return instanceNum; + } + + public void setInstanceNum(Integer instanceNum) { + this.instanceNum = instanceNum; + } + + public ResourceCheckResource withMode(ModeEnum mode) { + this.mode = mode; + return this; + } + + /** + * 实例部署模式。 + * @return mode + */ + public ModeEnum getMode() { + return mode; + } + + public void setMode(ModeEnum mode) { + this.mode = mode; + } + + public ResourceCheckResource withAvailabilityZoneMode(String availabilityZoneMode) { + this.availabilityZoneMode = availabilityZoneMode; + return this; + } + + /** + * 可用区类型,目前仅支持single。 + * @return availabilityZoneMode + */ + public String getAvailabilityZoneMode() { + return availabilityZoneMode; + } + + public void setAvailabilityZoneMode(String availabilityZoneMode) { + this.availabilityZoneMode = availabilityZoneMode; + } + + public ResourceCheckResource withFeNodeNum(Integer feNodeNum) { + this.feNodeNum = feNodeNum; + return this; + } + + /** + * FE节点数量。 + * @return feNodeNum + */ + public Integer getFeNodeNum() { + return feNodeNum; + } + + public void setFeNodeNum(Integer feNodeNum) { + this.feNodeNum = feNodeNum; + } + + public ResourceCheckResource withBeNodeNum(Integer beNodeNum) { + this.beNodeNum = beNodeNum; + return this; + } + + /** + * BE节点数量。 + * @return beNodeNum + */ + public Integer getBeNodeNum() { + return beNodeNum; + } + + public void setBeNodeNum(Integer beNodeNum) { + this.beNodeNum = beNodeNum; + } + + public ResourceCheckResource withFeFlavorRef(String feFlavorRef) { + this.feFlavorRef = feFlavorRef; + return this; + } + + /** + * FE规格码。 + * @return feFlavorRef + */ + public String getFeFlavorRef() { + return feFlavorRef; + } + + public void setFeFlavorRef(String feFlavorRef) { + this.feFlavorRef = feFlavorRef; + } + + public ResourceCheckResource withBeFlavorRef(String beFlavorRef) { + this.beFlavorRef = beFlavorRef; + return this; + } + + /** + * BE规格码。 + * @return beFlavorRef + */ + public String getBeFlavorRef() { + return beFlavorRef; + } + + public void setBeFlavorRef(String beFlavorRef) { + this.beFlavorRef = beFlavorRef; + } + + public ResourceCheckResource withAvailabilityZone(String availabilityZone) { + this.availabilityZone = availabilityZone; + return this; + } + + /** + * 可用区码。选填,校验可用区码是否正确。 + * @return availabilityZone + */ + public String getAvailabilityZone() { + return availabilityZone; + } + + public void setAvailabilityZone(String availabilityZone) { + this.availabilityZone = availabilityZone; + } + + public ResourceCheckResource withSubnetId(String subnetId) { + this.subnetId = subnetId; + return this; + } + + /** + * HTAP实例子网即GaussDBForMySQL实例子网。 获取方法请参见[获取子网ID](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。 + * @return subnetId + */ + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ResourceCheckResource that = (ResourceCheckResource) obj; + return Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) + && Objects.equals(this.instanceNum, that.instanceNum) && Objects.equals(this.mode, that.mode) + && Objects.equals(this.availabilityZoneMode, that.availabilityZoneMode) + && Objects.equals(this.feNodeNum, that.feNodeNum) && Objects.equals(this.beNodeNum, that.beNodeNum) + && Objects.equals(this.feFlavorRef, that.feFlavorRef) && Objects.equals(this.beFlavorRef, that.beFlavorRef) + && Objects.equals(this.availabilityZone, that.availabilityZone) + && Objects.equals(this.subnetId, that.subnetId); + } + + @Override + public int hashCode() { + return Objects.hash(enterpriseProjectId, + instanceNum, + mode, + availabilityZoneMode, + feNodeNum, + beNodeNum, + feFlavorRef, + beFlavorRef, + availabilityZone, + subnetId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResourceCheckResource {\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append(" instanceNum: ").append(toIndentedString(instanceNum)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append(" availabilityZoneMode: ").append(toIndentedString(availabilityZoneMode)).append("\n"); + sb.append(" feNodeNum: ").append(toIndentedString(feNodeNum)).append("\n"); + sb.append(" beNodeNum: ").append(toIndentedString(beNodeNum)).append("\n"); + sb.append(" feFlavorRef: ").append(toIndentedString(feFlavorRef)).append("\n"); + sb.append(" beFlavorRef: ").append(toIndentedString(beFlavorRef)).append("\n"); + sb.append(" availabilityZone: ").append(toIndentedString(availabilityZone)).append("\n"); + sb.append(" subnetId: ").append(toIndentedString(subnetId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/RestartStarrocksInstanceRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/RestartStarrocksInstanceRequest.java new file mode 100644 index 0000000000..e1b8a0a875 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/RestartStarrocksInstanceRequest.java @@ -0,0 +1,98 @@ +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 RestartStarrocksInstanceRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "starrocks_instance_id") + + private String starrocksInstanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + public RestartStarrocksInstanceRequest withStarrocksInstanceId(String starrocksInstanceId) { + this.starrocksInstanceId = starrocksInstanceId; + return this; + } + + /** + * StarRocks实例ID,严格匹配UUID规则。 + * @return starrocksInstanceId + */ + public String getStarrocksInstanceId() { + return starrocksInstanceId; + } + + public void setStarrocksInstanceId(String starrocksInstanceId) { + this.starrocksInstanceId = starrocksInstanceId; + } + + public RestartStarrocksInstanceRequest 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; + } + RestartStarrocksInstanceRequest that = (RestartStarrocksInstanceRequest) obj; + return Objects.equals(this.starrocksInstanceId, that.starrocksInstanceId) + && Objects.equals(this.xLanguage, that.xLanguage); + } + + @Override + public int hashCode() { + return Objects.hash(starrocksInstanceId, xLanguage); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RestartStarrocksInstanceRequest {\n"); + sb.append(" starrocksInstanceId: ").append(toIndentedString(starrocksInstanceId)).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/RestartStarrocksInstanceResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/RestartStarrocksInstanceResponse.java new file mode 100644 index 0000000000..5770e370a6 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/RestartStarrocksInstanceResponse.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 RestartStarrocksInstanceResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "workflow_id") + + private String workflowId; + + public RestartStarrocksInstanceResponse withWorkflowId(String workflowId) { + this.workflowId = workflowId; + return this; + } + + /** + * 工作流ID。 + * @return workflowId + */ + public String getWorkflowId() { + return workflowId; + } + + public void setWorkflowId(String workflowId) { + this.workflowId = workflowId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RestartStarrocksInstanceResponse that = (RestartStarrocksInstanceResponse) obj; + return Objects.equals(this.workflowId, that.workflowId); + } + + @Override + public int hashCode() { + return Objects.hash(workflowId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RestartStarrocksInstanceResponse {\n"); + sb.append(" workflowId: ").append(toIndentedString(workflowId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/RestartStarrocksNodeRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/RestartStarrocksNodeRequest.java new file mode 100644 index 0000000000..79a4aa5e9f --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/RestartStarrocksNodeRequest.java @@ -0,0 +1,122 @@ +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 RestartStarrocksNodeRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "starrocks_node_id") + + private String starrocksNodeId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "starrocks_instance_id") + + private String starrocksInstanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + public RestartStarrocksNodeRequest withStarrocksNodeId(String starrocksNodeId) { + this.starrocksNodeId = starrocksNodeId; + return this; + } + + /** + * StarRocks节点ID + * @return starrocksNodeId + */ + public String getStarrocksNodeId() { + return starrocksNodeId; + } + + public void setStarrocksNodeId(String starrocksNodeId) { + this.starrocksNodeId = starrocksNodeId; + } + + public RestartStarrocksNodeRequest withStarrocksInstanceId(String starrocksInstanceId) { + this.starrocksInstanceId = starrocksInstanceId; + return this; + } + + /** + * StarRocks实例ID,严格匹配UUID规则。 + * @return starrocksInstanceId + */ + public String getStarrocksInstanceId() { + return starrocksInstanceId; + } + + public void setStarrocksInstanceId(String starrocksInstanceId) { + this.starrocksInstanceId = starrocksInstanceId; + } + + public RestartStarrocksNodeRequest 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; + } + RestartStarrocksNodeRequest that = (RestartStarrocksNodeRequest) obj; + return Objects.equals(this.starrocksNodeId, that.starrocksNodeId) + && Objects.equals(this.starrocksInstanceId, that.starrocksInstanceId) + && Objects.equals(this.xLanguage, that.xLanguage); + } + + @Override + public int hashCode() { + return Objects.hash(starrocksNodeId, starrocksInstanceId, xLanguage); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RestartStarrocksNodeRequest {\n"); + sb.append(" starrocksNodeId: ").append(toIndentedString(starrocksNodeId)).append("\n"); + sb.append(" starrocksInstanceId: ").append(toIndentedString(starrocksInstanceId)).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/RestartStarrocksNodeResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/RestartStarrocksNodeResponse.java new file mode 100644 index 0000000000..5f0abdec63 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/RestartStarrocksNodeResponse.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 RestartStarrocksNodeResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "workflow_id") + + private String workflowId; + + public RestartStarrocksNodeResponse withWorkflowId(String workflowId) { + this.workflowId = workflowId; + return this; + } + + /** + * 工作流ID。 + * @return workflowId + */ + public String getWorkflowId() { + return workflowId; + } + + public void setWorkflowId(String workflowId) { + this.workflowId = workflowId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RestartStarrocksNodeResponse that = (RestartStarrocksNodeResponse) obj; + return Objects.equals(this.workflowId, that.workflowId); + } + + @Override + public int hashCode() { + return Objects.hash(workflowId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RestartStarrocksNodeResponse {\n"); + sb.append(" workflowId: ").append(toIndentedString(workflowId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/ShowStarRocksDatabaseUserRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowStarRocksDatabaseUserRequest.java new file mode 100644 index 0000000000..756d798e4d --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowStarRocksDatabaseUserRequest.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 ShowStarRocksDatabaseUserRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "user_name") + + private String userName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + public ShowStarRocksDatabaseUserRequest 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 ShowStarRocksDatabaseUserRequest withUserName(String userName) { + this.userName = userName; + return this; + } + + /** + * 数据库账户。 + * @return userName + */ + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public ShowStarRocksDatabaseUserRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 查询记录数,不能为负数,最小值为1,最大值为100。 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ShowStarRocksDatabaseUserRequest 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 ShowStarRocksDatabaseUserRequest 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; + } + ShowStarRocksDatabaseUserRequest that = (ShowStarRocksDatabaseUserRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.userName, that.userName) + && Objects.equals(this.limit, that.limit) && Objects.equals(this.xLanguage, that.xLanguage) + && Objects.equals(this.offset, that.offset); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, userName, limit, xLanguage, offset); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowStarRocksDatabaseUserRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).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/ShowStarRocksDatabaseUserResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowStarRocksDatabaseUserResponse.java new file mode 100644 index 0000000000..30ee0bd666 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowStarRocksDatabaseUserResponse.java @@ -0,0 +1,116 @@ +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 ShowStarRocksDatabaseUserResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "user_details") + + private List userDetails = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_count") + + private Integer totalCount; + + public ShowStarRocksDatabaseUserResponse withUserDetails(List userDetails) { + this.userDetails = userDetails; + return this; + } + + public ShowStarRocksDatabaseUserResponse addUserDetailsItem(ShowStarRocksDatabaseUsersUserDetails userDetailsItem) { + if (this.userDetails == null) { + this.userDetails = new ArrayList<>(); + } + this.userDetails.add(userDetailsItem); + return this; + } + + public ShowStarRocksDatabaseUserResponse withUserDetails( + Consumer> userDetailsSetter) { + if (this.userDetails == null) { + this.userDetails = new ArrayList<>(); + } + userDetailsSetter.accept(this.userDetails); + return this; + } + + /** + * 数据库账户信息。 + * @return userDetails + */ + public List getUserDetails() { + return userDetails; + } + + public void setUserDetails(List userDetails) { + this.userDetails = userDetails; + } + + public ShowStarRocksDatabaseUserResponse withTotalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * 数据库账户数量。 + * @return totalCount + */ + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowStarRocksDatabaseUserResponse that = (ShowStarRocksDatabaseUserResponse) obj; + return Objects.equals(this.userDetails, that.userDetails) && Objects.equals(this.totalCount, that.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(userDetails, totalCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowStarRocksDatabaseUserResponse {\n"); + sb.append(" userDetails: ").append(toIndentedString(userDetails)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowStarRocksDatabaseUsersUserDetails.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowStarRocksDatabaseUsersUserDetails.java new file mode 100644 index 0000000000..ede9c624e7 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowStarRocksDatabaseUsersUserDetails.java @@ -0,0 +1,161 @@ +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; + +/** + * ShowStarRocksDatabaseUsersUserDetails + */ +public class ShowStarRocksDatabaseUsersUserDetails { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "user_name") + + private String userName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_bases") + + private List dataBases = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dml") + + private Integer dml; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ddl") + + private Integer ddl; + + public ShowStarRocksDatabaseUsersUserDetails withUserName(String userName) { + this.userName = userName; + return this; + } + + /** + * 数据库账户名。 + * @return userName + */ + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public ShowStarRocksDatabaseUsersUserDetails withDataBases(List dataBases) { + this.dataBases = dataBases; + return this; + } + + public ShowStarRocksDatabaseUsersUserDetails addDataBasesItem(String dataBasesItem) { + if (this.dataBases == null) { + this.dataBases = new ArrayList<>(); + } + this.dataBases.add(dataBasesItem); + return this; + } + + public ShowStarRocksDatabaseUsersUserDetails 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 ShowStarRocksDatabaseUsersUserDetails withDml(Integer dml) { + this.dml = dml; + return this; + } + + /** + * DML授权。 - 0:读写权限 - 1:只读权限 - 2:只读和设置权限 - 3:读写和设置权限 + * @return dml + */ + public Integer getDml() { + return dml; + } + + public void setDml(Integer dml) { + this.dml = dml; + } + + public ShowStarRocksDatabaseUsersUserDetails withDdl(Integer ddl) { + this.ddl = ddl; + return this; + } + + /** + * DDL授权。 - 0:无DDL权限 - 1:有DDL权限 + * @return ddl + */ + public Integer getDdl() { + return ddl; + } + + public void setDdl(Integer ddl) { + this.ddl = ddl; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowStarRocksDatabaseUsersUserDetails that = (ShowStarRocksDatabaseUsersUserDetails) obj; + return Objects.equals(this.userName, that.userName) && Objects.equals(this.dataBases, that.dataBases) + && Objects.equals(this.dml, that.dml) && Objects.equals(this.ddl, that.ddl); + } + + @Override + public int hashCode() { + return Objects.hash(userName, dataBases, dml, ddl); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowStarRocksDatabaseUsersUserDetails {\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append(" dataBases: ").append(toIndentedString(dataBases)).append("\n"); + sb.append(" dml: ").append(toIndentedString(dml)).append("\n"); + sb.append(" ddl: ").append(toIndentedString(ddl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/SrCreateInstanceRspInstance.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrCreateInstanceRspInstance.java new file mode 100644 index 0000000000..8f5652bfaa --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrCreateInstanceRspInstance.java @@ -0,0 +1,468 @@ +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; + +/** + * 实例信息。 + */ +public class SrCreateInstanceRspInstance { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "az_code") + + private String azCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "az_mode") + + private String azMode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "engine") + + private SrCreateInstanceRspInstanceEngine engine; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "vpc_id") + + private String vpcId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "security_group_id") + + private String securityGroupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sub_net_id") + + private String subNetId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "db_user") + + private String dbUser; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "port") + + private Integer port; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ha_mode") + + private String haMode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pay_info") + + private SrCreateInstanceRspInstancePayInfo payInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enable_ssl") + + private Boolean enableSsl; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "region") + + private String region; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags_info") + + private SrCreateInstanceRspInstanceTagsInfo tagsInfo; + + public SrCreateInstanceRspInstance withId(String id) { + this.id = id; + return this; + } + + /** + * StarRocks实例ID,严格匹配UUID规则。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SrCreateInstanceRspInstance withAzCode(String azCode) { + this.azCode = azCode; + return this; + } + + /** + * 可用区码。 + * @return azCode + */ + public String getAzCode() { + return azCode; + } + + public void setAzCode(String azCode) { + this.azCode = azCode; + } + + public SrCreateInstanceRspInstance withAzMode(String azMode) { + this.azMode = azMode; + return this; + } + + /** + * 可用区模式。 取值范围: single:单可用区。 multi:多可用区。 + * @return azMode + */ + public String getAzMode() { + return azMode; + } + + public void setAzMode(String azMode) { + this.azMode = azMode; + } + + public SrCreateInstanceRspInstance withName(String name) { + this.name = name; + return this; + } + + /** + * 实例名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SrCreateInstanceRspInstance withEngine(SrCreateInstanceRspInstanceEngine engine) { + this.engine = engine; + return this; + } + + public SrCreateInstanceRspInstance withEngine(Consumer engineSetter) { + if (this.engine == null) { + this.engine = new SrCreateInstanceRspInstanceEngine(); + engineSetter.accept(this.engine); + } + + return this; + } + + /** + * Get engine + * @return engine + */ + public SrCreateInstanceRspInstanceEngine getEngine() { + return engine; + } + + public void setEngine(SrCreateInstanceRspInstanceEngine engine) { + this.engine = engine; + } + + public SrCreateInstanceRspInstance 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 SrCreateInstanceRspInstance withSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + return this; + } + + /** + * 安全组ID。 + * @return securityGroupId + */ + public String getSecurityGroupId() { + return securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public SrCreateInstanceRspInstance withSubNetId(String subNetId) { + this.subNetId = subNetId; + return this; + } + + /** + * 子网ID。 + * @return subNetId + */ + public String getSubNetId() { + return subNetId; + } + + public void setSubNetId(String subNetId) { + this.subNetId = subNetId; + } + + public SrCreateInstanceRspInstance withDbUser(String dbUser) { + this.dbUser = dbUser; + return this; + } + + /** + * 数据库用户。默认root。 + * @return dbUser + */ + public String getDbUser() { + return dbUser; + } + + public void setDbUser(String dbUser) { + this.dbUser = dbUser; + } + + public SrCreateInstanceRspInstance withPort(Integer port) { + this.port = port; + return this; + } + + /** + * 数据库端口号。默认3306。 + * @return port + */ + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public SrCreateInstanceRspInstance withHaMode(String haMode) { + this.haMode = haMode; + return this; + } + + /** + * 部署模式。 + * @return haMode + */ + public String getHaMode() { + return haMode; + } + + public void setHaMode(String haMode) { + this.haMode = haMode; + } + + public SrCreateInstanceRspInstance withPayInfo(SrCreateInstanceRspInstancePayInfo payInfo) { + this.payInfo = payInfo; + return this; + } + + public SrCreateInstanceRspInstance withPayInfo(Consumer payInfoSetter) { + if (this.payInfo == null) { + this.payInfo = new SrCreateInstanceRspInstancePayInfo(); + payInfoSetter.accept(this.payInfo); + } + + return this; + } + + /** + * Get payInfo + * @return payInfo + */ + public SrCreateInstanceRspInstancePayInfo getPayInfo() { + return payInfo; + } + + public void setPayInfo(SrCreateInstanceRspInstancePayInfo payInfo) { + this.payInfo = payInfo; + } + + public SrCreateInstanceRspInstance withEnableSsl(Boolean enableSsl) { + this.enableSsl = enableSsl; + return this; + } + + /** + * SSL开关。 + * @return enableSsl + */ + public Boolean getEnableSsl() { + return enableSsl; + } + + public void setEnableSsl(Boolean enableSsl) { + this.enableSsl = enableSsl; + } + + public SrCreateInstanceRspInstance withStatus(String status) { + this.status = status; + return this; + } + + /** + * 实例状态。 + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public SrCreateInstanceRspInstance withRegion(String region) { + this.region = region; + return this; + } + + /** + * 实例所在区域。 + * @return region + */ + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public SrCreateInstanceRspInstance withTagsInfo(SrCreateInstanceRspInstanceTagsInfo tagsInfo) { + this.tagsInfo = tagsInfo; + return this; + } + + public SrCreateInstanceRspInstance withTagsInfo(Consumer tagsInfoSetter) { + if (this.tagsInfo == null) { + this.tagsInfo = new SrCreateInstanceRspInstanceTagsInfo(); + tagsInfoSetter.accept(this.tagsInfo); + } + + return this; + } + + /** + * Get tagsInfo + * @return tagsInfo + */ + public SrCreateInstanceRspInstanceTagsInfo getTagsInfo() { + return tagsInfo; + } + + public void setTagsInfo(SrCreateInstanceRspInstanceTagsInfo tagsInfo) { + this.tagsInfo = tagsInfo; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SrCreateInstanceRspInstance that = (SrCreateInstanceRspInstance) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.azCode, that.azCode) + && Objects.equals(this.azMode, that.azMode) && Objects.equals(this.name, that.name) + && Objects.equals(this.engine, that.engine) && Objects.equals(this.vpcId, that.vpcId) + && Objects.equals(this.securityGroupId, that.securityGroupId) + && Objects.equals(this.subNetId, that.subNetId) && Objects.equals(this.dbUser, that.dbUser) + && Objects.equals(this.port, that.port) && Objects.equals(this.haMode, that.haMode) + && Objects.equals(this.payInfo, that.payInfo) && Objects.equals(this.enableSsl, that.enableSsl) + && Objects.equals(this.status, that.status) && Objects.equals(this.region, that.region) + && Objects.equals(this.tagsInfo, that.tagsInfo); + } + + @Override + public int hashCode() { + return Objects.hash(id, + azCode, + azMode, + name, + engine, + vpcId, + securityGroupId, + subNetId, + dbUser, + port, + haMode, + payInfo, + enableSsl, + status, + region, + tagsInfo); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SrCreateInstanceRspInstance {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" azCode: ").append(toIndentedString(azCode)).append("\n"); + sb.append(" azMode: ").append(toIndentedString(azMode)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" engine: ").append(toIndentedString(engine)).append("\n"); + sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n"); + sb.append(" securityGroupId: ").append(toIndentedString(securityGroupId)).append("\n"); + sb.append(" subNetId: ").append(toIndentedString(subNetId)).append("\n"); + sb.append(" dbUser: ").append(toIndentedString(dbUser)).append("\n"); + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" haMode: ").append(toIndentedString(haMode)).append("\n"); + sb.append(" payInfo: ").append(toIndentedString(payInfo)).append("\n"); + sb.append(" enableSsl: ").append(toIndentedString(enableSsl)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" tagsInfo: ").append(toIndentedString(tagsInfo)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowTemplateDeployParamsRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrCreateInstanceRspInstanceEngine.java similarity index 58% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowTemplateDeployParamsRequest.java rename to services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrCreateInstanceRspInstanceEngine.java index 8dac7a4f3e..ebbe1647d5 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowTemplateDeployParamsRequest.java +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrCreateInstanceRspInstanceEngine.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.rgc.v1.model; +package com.huaweicloud.sdk.gaussdb.v3.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -6,44 +6,44 @@ import java.util.Objects; /** - * Request Object + * 引擎信息。 */ -public class ShowTemplateDeployParamsRequest { +public class SrCreateInstanceRspInstanceEngine { @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "template_name") + @JsonProperty(value = "type") - private String templateName; + private String type; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "version") private String version; - public ShowTemplateDeployParamsRequest withTemplateName(String templateName) { - this.templateName = templateName; + public SrCreateInstanceRspInstanceEngine withType(String type) { + this.type = type; return this; } /** - * 模板名称。 - * @return templateName + * 引擎类型。 + * @return type */ - public String getTemplateName() { - return templateName; + public String getType() { + return type; } - public void setTemplateName(String templateName) { - this.templateName = templateName; + public void setType(String type) { + this.type = type; } - public ShowTemplateDeployParamsRequest withVersion(String version) { + public SrCreateInstanceRspInstanceEngine withVersion(String version) { this.version = version; return this; } /** - * 模板版本。 + * 引擎大版本号。 * @return version */ public String getVersion() { @@ -62,20 +62,20 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - ShowTemplateDeployParamsRequest that = (ShowTemplateDeployParamsRequest) obj; - return Objects.equals(this.templateName, that.templateName) && Objects.equals(this.version, that.version); + SrCreateInstanceRspInstanceEngine that = (SrCreateInstanceRspInstanceEngine) obj; + return Objects.equals(this.type, that.type) && Objects.equals(this.version, that.version); } @Override public int hashCode() { - return Objects.hash(templateName, version); + return Objects.hash(type, version); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ShowTemplateDeployParamsRequest {\n"); - sb.append(" templateName: ").append(toIndentedString(templateName)).append("\n"); + sb.append("class SrCreateInstanceRspInstanceEngine {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrCreateInstanceRspInstancePayInfo.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrCreateInstanceRspInstancePayInfo.java new file mode 100644 index 0000000000..3edeb67911 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrCreateInstanceRspInstancePayInfo.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 SrCreateInstanceRspInstancePayInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pay_model") + + private String payModel; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "order_id") + + private String orderId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "period") + + private String period; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "period_type") + + private String periodType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_auto_renew") + + private String isAutoRenew; + + public SrCreateInstanceRspInstancePayInfo withPayModel(String payModel) { + this.payModel = payModel; + return this; + } + + /** + * 计费模式。 - 0:按需计费 - 1:包周期 StarRocks实例当前只支持按需计费,默认值为0 + * @return payModel + */ + public String getPayModel() { + return payModel; + } + + public void setPayModel(String payModel) { + this.payModel = payModel; + } + + public SrCreateInstanceRspInstancePayInfo withOrderId(String orderId) { + this.orderId = orderId; + return this; + } + + /** + * 包周期计费ID。 + * @return orderId + */ + public String getOrderId() { + return orderId; + } + + public void setOrderId(String orderId) { + this.orderId = orderId; + } + + public SrCreateInstanceRspInstancePayInfo withPeriod(String period) { + this.period = period; + return this; + } + + /** + * 包周期周期。 + * @return period + */ + public String getPeriod() { + return period; + } + + public void setPeriod(String period) { + this.period = period; + } + + public SrCreateInstanceRspInstancePayInfo withPeriodType(String periodType) { + this.periodType = periodType; + return this; + } + + /** + * 包周期周期类型。 + * @return periodType + */ + public String getPeriodType() { + return periodType; + } + + public void setPeriodType(String periodType) { + this.periodType = periodType; + } + + public SrCreateInstanceRspInstancePayInfo withIsAutoRenew(String isAutoRenew) { + this.isAutoRenew = isAutoRenew; + return this; + } + + /** + * 包周期是否自动续费。 + * @return isAutoRenew + */ + public String getIsAutoRenew() { + return isAutoRenew; + } + + public void setIsAutoRenew(String isAutoRenew) { + this.isAutoRenew = isAutoRenew; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SrCreateInstanceRspInstancePayInfo that = (SrCreateInstanceRspInstancePayInfo) obj; + return Objects.equals(this.payModel, that.payModel) && Objects.equals(this.orderId, that.orderId) + && Objects.equals(this.period, that.period) && Objects.equals(this.periodType, that.periodType) + && Objects.equals(this.isAutoRenew, that.isAutoRenew); + } + + @Override + public int hashCode() { + return Objects.hash(payModel, orderId, period, periodType, isAutoRenew); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SrCreateInstanceRspInstancePayInfo {\n"); + sb.append(" payModel: ").append(toIndentedString(payModel)).append("\n"); + sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n"); + sb.append(" period: ").append(toIndentedString(period)).append("\n"); + sb.append(" periodType: ").append(toIndentedString(periodType)).append("\n"); + sb.append(" isAutoRenew: ").append(toIndentedString(isAutoRenew)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/SrCreateInstanceRspInstanceTagsInfo.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrCreateInstanceRspInstanceTagsInfo.java new file mode 100644 index 0000000000..56be8c6c36 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrCreateInstanceRspInstanceTagsInfo.java @@ -0,0 +1,132 @@ +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 SrCreateInstanceRspInstanceTagsInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sys_tags") + + private List sysTags = null; + + public SrCreateInstanceRspInstanceTagsInfo withTags(List tags) { + this.tags = tags; + return this; + } + + public SrCreateInstanceRspInstanceTagsInfo addTagsItem(SrCreateInstanceRspInstanceTagsInfoTags tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public SrCreateInstanceRspInstanceTagsInfo withTags( + Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 用户标签。默认为空。 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public SrCreateInstanceRspInstanceTagsInfo withSysTags(List sysTags) { + this.sysTags = sysTags; + return this; + } + + public SrCreateInstanceRspInstanceTagsInfo addSysTagsItem(SrCreateInstanceRspInstanceTagsInfoSysTags sysTagsItem) { + if (this.sysTags == null) { + this.sysTags = new ArrayList<>(); + } + this.sysTags.add(sysTagsItem); + return this; + } + + public SrCreateInstanceRspInstanceTagsInfo withSysTags( + Consumer> sysTagsSetter) { + if (this.sysTags == null) { + this.sysTags = new ArrayList<>(); + } + sysTagsSetter.accept(this.sysTags); + return this; + } + + /** + * 系统标签。 + * @return sysTags + */ + public List getSysTags() { + return sysTags; + } + + public void setSysTags(List sysTags) { + this.sysTags = sysTags; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SrCreateInstanceRspInstanceTagsInfo that = (SrCreateInstanceRspInstanceTagsInfo) obj; + return Objects.equals(this.tags, that.tags) && Objects.equals(this.sysTags, that.sysTags); + } + + @Override + public int hashCode() { + return Objects.hash(tags, sysTags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SrCreateInstanceRspInstanceTagsInfo {\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" sysTags: ").append(toIndentedString(sysTags)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrCreateInstanceRspInstanceTagsInfoSysTags.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrCreateInstanceRspInstanceTagsInfoSysTags.java new file mode 100644 index 0000000000..ad6e008f00 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrCreateInstanceRspInstanceTagsInfoSysTags.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; + +/** + * SrCreateInstanceRspInstanceTagsInfoSysTags + */ +public class SrCreateInstanceRspInstanceTagsInfoSysTags { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key") + + private String key; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private String value; + + public SrCreateInstanceRspInstanceTagsInfoSysTags withKey(String key) { + this.key = key; + return this; + } + + /** + * 标签键。 + * @return key + */ + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public SrCreateInstanceRspInstanceTagsInfoSysTags 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; + } + SrCreateInstanceRspInstanceTagsInfoSysTags that = (SrCreateInstanceRspInstanceTagsInfoSysTags) obj; + return Objects.equals(this.key, that.key) && Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(key, value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SrCreateInstanceRspInstanceTagsInfoSysTags {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrCreateInstanceRspInstanceTagsInfoTags.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrCreateInstanceRspInstanceTagsInfoTags.java new file mode 100644 index 0000000000..bd7e61a7d9 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrCreateInstanceRspInstanceTagsInfoTags.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; + +/** + * SrCreateInstanceRspInstanceTagsInfoTags + */ +public class SrCreateInstanceRspInstanceTagsInfoTags { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key") + + private String key; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private String value; + + public SrCreateInstanceRspInstanceTagsInfoTags withKey(String key) { + this.key = key; + return this; + } + + /** + * 标签键。 + * @return key + */ + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public SrCreateInstanceRspInstanceTagsInfoTags 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; + } + SrCreateInstanceRspInstanceTagsInfoTags that = (SrCreateInstanceRspInstanceTagsInfoTags) obj; + return Objects.equals(this.key, that.key) && Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(key, value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SrCreateInstanceRspInstanceTagsInfoTags {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrDataStoresDatastores.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrDataStoresDatastores.java new file mode 100644 index 0000000000..fcae76959d --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/SrDataStoresDatastores.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; + +/** + * SrDataStoresDatastores + */ +public class SrDataStoresDatastores { + + @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 = "kernel_version") + + private String kernelVersion; + + public SrDataStoresDatastores 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 SrDataStoresDatastores withName(String name) { + this.name = name; + return this; + } + + /** + * 数据库版本号,只返回两位数的大版本号。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SrDataStoresDatastores withKernelVersion(String kernelVersion) { + this.kernelVersion = kernelVersion; + return this; + } + + /** + * 数据库内核版本号,返回完整的四位版本号。 + * @return kernelVersion + */ + public String getKernelVersion() { + return kernelVersion; + } + + public void setKernelVersion(String kernelVersion) { + this.kernelVersion = kernelVersion; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SrDataStoresDatastores that = (SrDataStoresDatastores) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.kernelVersion, that.kernelVersion); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, kernelVersion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SrDataStoresDatastores {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" kernelVersion: ").append(toIndentedString(kernelVersion)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/StarRocksCreateRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequest.java new file mode 100644 index 0000000000..c641f94795 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequest.java @@ -0,0 +1,505 @@ +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; +import java.util.function.Consumer; + +/** + * StarRocksCreateRequest + */ +public class StarRocksCreateRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "engine") + + private StarRocksCreateRequestEngine engine; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ha") + + private StarRocksCreateRequestHa ha; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "fe_flavor_id") + + private String feFlavorId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "be_flavor_id") + + private String beFlavorId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "db_root_pwd") + + private String dbRootPwd; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "fe_count") + + private Integer feCount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "be_count") + + private Integer beCount; + + /** + * 可用区类型。 当前仅支持single。 + */ + public static final class AzModeEnum { + + /** + * Enum SINGLE for value: "single" + */ + public static final AzModeEnum SINGLE = new AzModeEnum("single"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("single", SINGLE); + return Collections.unmodifiableMap(map); + } + + private String value; + + AzModeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AzModeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new AzModeEnum(value)); + } + + public static AzModeEnum 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 AzModeEnum) { + return this.value.equals(((AzModeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "az_mode") + + private AzModeEnum azMode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "fe_volume") + + private StarRocksCreateRequestFeVolume feVolume; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "be_volume") + + private StarRocksCreateRequestBeVolume beVolume; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "az_code") + + private String azCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "time_zone") + + private String timeZone; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags_info") + + private StarRocksCreateRequestTagsInfo tagsInfo; + + public StarRocksCreateRequest withName(String name) { + this.name = name; + return this; + } + + /** + * 实例名称。同一租户下,同类型的实例名可重名。 取值范围:最小为4个字符,最大为64个字符且不超过64个字节,必须以字母开头,区分大小写,可以包含字母、数字、中划线、下划线,不能包含其他特殊字符。不支持中文名。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public StarRocksCreateRequest withEngine(StarRocksCreateRequestEngine engine) { + this.engine = engine; + return this; + } + + public StarRocksCreateRequest withEngine(Consumer engineSetter) { + if (this.engine == null) { + this.engine = new StarRocksCreateRequestEngine(); + engineSetter.accept(this.engine); + } + + return this; + } + + /** + * Get engine + * @return engine + */ + public StarRocksCreateRequestEngine getEngine() { + return engine; + } + + public void setEngine(StarRocksCreateRequestEngine engine) { + this.engine = engine; + } + + public StarRocksCreateRequest withHa(StarRocksCreateRequestHa ha) { + this.ha = ha; + return this; + } + + public StarRocksCreateRequest withHa(Consumer haSetter) { + if (this.ha == null) { + this.ha = new StarRocksCreateRequestHa(); + haSetter.accept(this.ha); + } + + return this; + } + + /** + * Get ha + * @return ha + */ + public StarRocksCreateRequestHa getHa() { + return ha; + } + + public void setHa(StarRocksCreateRequestHa ha) { + this.ha = ha; + } + + public StarRocksCreateRequest withFeFlavorId(String feFlavorId) { + this.feFlavorId = feFlavorId; + return this; + } + + /** + * FE节点规格ID。使用可通过查询HTAP规格响应消息中的“id”。 + * @return feFlavorId + */ + public String getFeFlavorId() { + return feFlavorId; + } + + public void setFeFlavorId(String feFlavorId) { + this.feFlavorId = feFlavorId; + } + + public StarRocksCreateRequest withBeFlavorId(String beFlavorId) { + this.beFlavorId = beFlavorId; + return this; + } + + /** + * BE节点规格ID。使用可通过查询HTAP规格响应消息中的“id”。 + * @return beFlavorId + */ + public String getBeFlavorId() { + return beFlavorId; + } + + public void setBeFlavorId(String beFlavorId) { + this.beFlavorId = beFlavorId; + } + + public StarRocksCreateRequest withDbRootPwd(String dbRootPwd) { + this.dbRootPwd = dbRootPwd; + return this; + } + + /** + * 数据库密码。 取值范围:至少包含以下字符的三种:大小写字母、数字和特殊符号~!@#$%^*-_=+?,()&|.,长度8~32个字符。 建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。如果您输入弱密码,系统会自动判定密码非法。 + * @return dbRootPwd + */ + public String getDbRootPwd() { + return dbRootPwd; + } + + public void setDbRootPwd(String dbRootPwd) { + this.dbRootPwd = dbRootPwd; + } + + public StarRocksCreateRequest withFeCount(Integer feCount) { + this.feCount = feCount; + return this; + } + + /** + * FE节点数。 - 单机时固定为1 - 集群时取值[3, 10] + * @return feCount + */ + public Integer getFeCount() { + return feCount; + } + + public void setFeCount(Integer feCount) { + this.feCount = feCount; + } + + public StarRocksCreateRequest withBeCount(Integer beCount) { + this.beCount = beCount; + return this; + } + + /** + * BE节点数。 - 单机时固定为1 - 集群时取值[3, 10] + * @return beCount + */ + public Integer getBeCount() { + return beCount; + } + + public void setBeCount(Integer beCount) { + this.beCount = beCount; + } + + public StarRocksCreateRequest withAzMode(AzModeEnum azMode) { + this.azMode = azMode; + return this; + } + + /** + * 可用区类型。 当前仅支持single。 + * @return azMode + */ + public AzModeEnum getAzMode() { + return azMode; + } + + public void setAzMode(AzModeEnum azMode) { + this.azMode = azMode; + } + + public StarRocksCreateRequest withFeVolume(StarRocksCreateRequestFeVolume feVolume) { + this.feVolume = feVolume; + return this; + } + + public StarRocksCreateRequest withFeVolume(Consumer feVolumeSetter) { + if (this.feVolume == null) { + this.feVolume = new StarRocksCreateRequestFeVolume(); + feVolumeSetter.accept(this.feVolume); + } + + return this; + } + + /** + * Get feVolume + * @return feVolume + */ + public StarRocksCreateRequestFeVolume getFeVolume() { + return feVolume; + } + + public void setFeVolume(StarRocksCreateRequestFeVolume feVolume) { + this.feVolume = feVolume; + } + + public StarRocksCreateRequest withBeVolume(StarRocksCreateRequestBeVolume beVolume) { + this.beVolume = beVolume; + return this; + } + + public StarRocksCreateRequest withBeVolume(Consumer beVolumeSetter) { + if (this.beVolume == null) { + this.beVolume = new StarRocksCreateRequestBeVolume(); + beVolumeSetter.accept(this.beVolume); + } + + return this; + } + + /** + * Get beVolume + * @return beVolume + */ + public StarRocksCreateRequestBeVolume getBeVolume() { + return beVolume; + } + + public void setBeVolume(StarRocksCreateRequestBeVolume beVolume) { + this.beVolume = beVolume; + } + + public StarRocksCreateRequest withAzCode(String azCode) { + this.azCode = azCode; + return this; + } + + /** + * 可用区代码。 + * @return azCode + */ + public String getAzCode() { + return azCode; + } + + public void setAzCode(String azCode) { + this.azCode = azCode; + } + + public StarRocksCreateRequest withTimeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * 时区。默认时区为UTC+08:00。 + * @return timeZone + */ + public String getTimeZone() { + return timeZone; + } + + public void setTimeZone(String timeZone) { + this.timeZone = timeZone; + } + + public StarRocksCreateRequest withTagsInfo(StarRocksCreateRequestTagsInfo tagsInfo) { + this.tagsInfo = tagsInfo; + return this; + } + + public StarRocksCreateRequest withTagsInfo(Consumer tagsInfoSetter) { + if (this.tagsInfo == null) { + this.tagsInfo = new StarRocksCreateRequestTagsInfo(); + tagsInfoSetter.accept(this.tagsInfo); + } + + return this; + } + + /** + * Get tagsInfo + * @return tagsInfo + */ + public StarRocksCreateRequestTagsInfo getTagsInfo() { + return tagsInfo; + } + + public void setTagsInfo(StarRocksCreateRequestTagsInfo tagsInfo) { + this.tagsInfo = tagsInfo; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StarRocksCreateRequest that = (StarRocksCreateRequest) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.engine, that.engine) + && Objects.equals(this.ha, that.ha) && Objects.equals(this.feFlavorId, that.feFlavorId) + && Objects.equals(this.beFlavorId, that.beFlavorId) && Objects.equals(this.dbRootPwd, that.dbRootPwd) + && Objects.equals(this.feCount, that.feCount) && Objects.equals(this.beCount, that.beCount) + && Objects.equals(this.azMode, that.azMode) && Objects.equals(this.feVolume, that.feVolume) + && Objects.equals(this.beVolume, that.beVolume) && Objects.equals(this.azCode, that.azCode) + && Objects.equals(this.timeZone, that.timeZone) && Objects.equals(this.tagsInfo, that.tagsInfo); + } + + @Override + public int hashCode() { + return Objects.hash(name, + engine, + ha, + feFlavorId, + beFlavorId, + dbRootPwd, + feCount, + beCount, + azMode, + feVolume, + beVolume, + azCode, + timeZone, + tagsInfo); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StarRocksCreateRequest {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" engine: ").append(toIndentedString(engine)).append("\n"); + sb.append(" ha: ").append(toIndentedString(ha)).append("\n"); + sb.append(" feFlavorId: ").append(toIndentedString(feFlavorId)).append("\n"); + sb.append(" beFlavorId: ").append(toIndentedString(beFlavorId)).append("\n"); + sb.append(" dbRootPwd: ").append(toIndentedString(dbRootPwd)).append("\n"); + sb.append(" feCount: ").append(toIndentedString(feCount)).append("\n"); + sb.append(" beCount: ").append(toIndentedString(beCount)).append("\n"); + sb.append(" azMode: ").append(toIndentedString(azMode)).append("\n"); + sb.append(" feVolume: ").append(toIndentedString(feVolume)).append("\n"); + sb.append(" beVolume: ").append(toIndentedString(beVolume)).append("\n"); + sb.append(" azCode: ").append(toIndentedString(azCode)).append("\n"); + sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); + sb.append(" tagsInfo: ").append(toIndentedString(tagsInfo)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/StarRocksCreateRequestBeVolume.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequestBeVolume.java new file mode 100644 index 0000000000..7f27648052 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequestBeVolume.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; + +/** + * BE节点存储规格。 + */ +public class StarRocksCreateRequestBeVolume { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "io_type") + + private String ioType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "capacity_in_gb") + + private Integer capacityInGb; + + public StarRocksCreateRequestBeVolume withIoType(String ioType) { + this.ioType = ioType; + return this; + } + + /** + * 磁盘类型。通过查询HTAP引擎资源返回消息获取。 + * @return ioType + */ + public String getIoType() { + return ioType; + } + + public void setIoType(String ioType) { + this.ioType = ioType; + } + + public StarRocksCreateRequestBeVolume withCapacityInGb(Integer capacityInGb) { + this.capacityInGb = capacityInGb; + return this; + } + + /** + * 磁盘容量,单位GB 增长的步长:10GB。 + * minimum: 50 + * maximum: 32000 + * @return capacityInGb + */ + public Integer getCapacityInGb() { + return capacityInGb; + } + + public void setCapacityInGb(Integer capacityInGb) { + this.capacityInGb = capacityInGb; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StarRocksCreateRequestBeVolume that = (StarRocksCreateRequestBeVolume) obj; + return Objects.equals(this.ioType, that.ioType) && Objects.equals(this.capacityInGb, that.capacityInGb); + } + + @Override + public int hashCode() { + return Objects.hash(ioType, capacityInGb); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StarRocksCreateRequestBeVolume {\n"); + sb.append(" ioType: ").append(toIndentedString(ioType)).append("\n"); + sb.append(" capacityInGb: ").append(toIndentedString(capacityInGb)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/Artifact.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequestEngine.java similarity index 57% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/Artifact.java rename to services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequestEngine.java index fe8a3fba86..50415c9dac 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/Artifact.java +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequestEngine.java @@ -1,67 +1,57 @@ -package com.huaweicloud.sdk.rgc.v1.model; +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; /** - * Artifact + * 引擎信息。 */ -public class Artifact { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "content") - - private Content content; +public class StarRocksCreateRequestEngine { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "type") private String type; - public Artifact withContent(Content content) { - this.content = content; - return this; - } + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version") - public Artifact withContent(Consumer contentSetter) { - if (this.content == null) { - this.content = new Content(); - contentSetter.accept(this.content); - } + private String version; + public StarRocksCreateRequestEngine withType(String type) { + this.type = type; return this; } /** - * Get content - * @return content + * 引擎类型。仅支持star-rocks。 + * @return type */ - public Content getContent() { - return content; + public String getType() { + return type; } - public void setContent(Content content) { - this.content = content; + public void setType(String type) { + this.type = type; } - public Artifact withType(String type) { - this.type = type; + public StarRocksCreateRequestEngine withVersion(String version) { + this.version = version; return this; } /** - * 策略类型。 - * @return type + * 引擎大版本号。 + * @return version */ - public String getType() { - return type; + public String getVersion() { + return version; } - public void setType(String type) { - this.type = type; + public void setVersion(String version) { + this.version = version; } @Override @@ -72,21 +62,21 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - Artifact that = (Artifact) obj; - return Objects.equals(this.content, that.content) && Objects.equals(this.type, that.type); + StarRocksCreateRequestEngine that = (StarRocksCreateRequestEngine) obj; + return Objects.equals(this.type, that.type) && Objects.equals(this.version, that.version); } @Override public int hashCode() { - return Objects.hash(content, type); + return Objects.hash(type, version); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class Artifact {\n"); - sb.append(" content: ").append(toIndentedString(content)).append("\n"); + sb.append("class StarRocksCreateRequestEngine {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequestFeVolume.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequestFeVolume.java new file mode 100644 index 0000000000..6bd5706dcd --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequestFeVolume.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; + +/** + * FE节点存储规格。 + */ +public class StarRocksCreateRequestFeVolume { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "io_type") + + private String ioType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "capacity_in_gb") + + private Integer capacityInGb; + + public StarRocksCreateRequestFeVolume withIoType(String ioType) { + this.ioType = ioType; + return this; + } + + /** + * 磁盘类型。通过查询HTAP引擎资源返回消息获取。 + * @return ioType + */ + public String getIoType() { + return ioType; + } + + public void setIoType(String ioType) { + this.ioType = ioType; + } + + public StarRocksCreateRequestFeVolume withCapacityInGb(Integer capacityInGb) { + this.capacityInGb = capacityInGb; + return this; + } + + /** + * 磁盘容量,单位GB 增长的步长:10GB。 + * minimum: 50 + * maximum: 1000 + * @return capacityInGb + */ + public Integer getCapacityInGb() { + return capacityInGb; + } + + public void setCapacityInGb(Integer capacityInGb) { + this.capacityInGb = capacityInGb; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StarRocksCreateRequestFeVolume that = (StarRocksCreateRequestFeVolume) obj; + return Objects.equals(this.ioType, that.ioType) && Objects.equals(this.capacityInGb, that.capacityInGb); + } + + @Override + public int hashCode() { + return Objects.hash(ioType, capacityInGb); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StarRocksCreateRequestFeVolume {\n"); + sb.append(" ioType: ").append(toIndentedString(ioType)).append("\n"); + sb.append(" capacityInGb: ").append(toIndentedString(capacityInGb)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowManagedCoreAccountRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequestHa.java similarity index 50% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowManagedCoreAccountRequest.java rename to services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequestHa.java index cfc00b20d9..da36ea9ada 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowManagedCoreAccountRequest.java +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequestHa.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.rgc.v1.model; +package com.huaweicloud.sdk.gaussdb.v3.model; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; @@ -11,43 +11,37 @@ import java.util.Objects; /** - * Request Object + * 部署信息。 */ -public class ShowManagedCoreAccountRequest { +public class StarRocksCreateRequestHa { /** - * 纳管账号类型。类型包括LOGGING,SECURITY和PRIMARY。 + * 部署模式。 */ - public static final class AccountTypeEnum { + public static final class ModeEnum { /** - * Enum LOGGING for value: "LOGGING" + * Enum SINGLE for value: "Single" */ - public static final AccountTypeEnum LOGGING = new AccountTypeEnum("LOGGING"); + public static final ModeEnum SINGLE = new ModeEnum("Single"); /** - * Enum SECURITY for value: "SECURITY" + * Enum CLUSTER for value: "Cluster" */ - public static final AccountTypeEnum SECURITY = new AccountTypeEnum("SECURITY"); + public static final ModeEnum CLUSTER = new ModeEnum("Cluster"); - /** - * Enum PRIMARY for value: "PRIMARY" - */ - public static final AccountTypeEnum PRIMARY = new AccountTypeEnum("PRIMARY"); - - private static final Map STATIC_FIELDS = createStaticFields(); + private static final Map STATIC_FIELDS = createStaticFields(); - private static Map createStaticFields() { - Map map = new HashMap<>(); - map.put("LOGGING", LOGGING); - map.put("SECURITY", SECURITY); - map.put("PRIMARY", PRIMARY); + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("Single", SINGLE); + map.put("Cluster", CLUSTER); return Collections.unmodifiableMap(map); } private String value; - AccountTypeEnum(String value) { + ModeEnum(String value) { this.value = value; } @@ -62,14 +56,14 @@ public String toString() { } @JsonCreator - public static AccountTypeEnum fromValue(String value) { + public static ModeEnum fromValue(String value) { if (value == null) { return null; } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new AccountTypeEnum(value)); + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ModeEnum(value)); } - public static AccountTypeEnum valueOf(String value) { + public static ModeEnum valueOf(String value) { if (value == null) { return null; } @@ -79,8 +73,8 @@ public static AccountTypeEnum valueOf(String value) { @Override public boolean equals(Object obj) { - if (obj instanceof AccountTypeEnum) { - return this.value.equals(((AccountTypeEnum) obj).value); + if (obj instanceof ModeEnum) { + return this.value.equals(((ModeEnum) obj).value); } return false; } @@ -92,25 +86,25 @@ public int hashCode() { } @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "account_type") + @JsonProperty(value = "mode") - private AccountTypeEnum accountType; + private ModeEnum mode; - public ShowManagedCoreAccountRequest withAccountType(AccountTypeEnum accountType) { - this.accountType = accountType; + public StarRocksCreateRequestHa withMode(ModeEnum mode) { + this.mode = mode; return this; } /** - * 纳管账号类型。类型包括LOGGING,SECURITY和PRIMARY。 - * @return accountType + * 部署模式。 + * @return mode */ - public AccountTypeEnum getAccountType() { - return accountType; + public ModeEnum getMode() { + return mode; } - public void setAccountType(AccountTypeEnum accountType) { - this.accountType = accountType; + public void setMode(ModeEnum mode) { + this.mode = mode; } @Override @@ -121,20 +115,20 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - ShowManagedCoreAccountRequest that = (ShowManagedCoreAccountRequest) obj; - return Objects.equals(this.accountType, that.accountType); + StarRocksCreateRequestHa that = (StarRocksCreateRequestHa) obj; + return Objects.equals(this.mode, that.mode); } @Override public int hashCode() { - return Objects.hash(accountType); + return Objects.hash(mode); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ShowManagedCoreAccountRequest {\n"); - sb.append(" accountType: ").append(toIndentedString(accountType)).append("\n"); + sb.append("class StarRocksCreateRequestHa {\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequestTagsInfo.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequestTagsInfo.java new file mode 100644 index 0000000000..4f50c0f998 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequestTagsInfo.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 java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 标签信息。 + */ +public class StarRocksCreateRequestTagsInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sys_tags") + + private List sysTags = null; + + public StarRocksCreateRequestTagsInfo withSysTags(List sysTags) { + this.sysTags = sysTags; + return this; + } + + public StarRocksCreateRequestTagsInfo addSysTagsItem(StarRocksCreateRequestTagsInfoSysTags sysTagsItem) { + if (this.sysTags == null) { + this.sysTags = new ArrayList<>(); + } + this.sysTags.add(sysTagsItem); + return this; + } + + public StarRocksCreateRequestTagsInfo withSysTags( + Consumer> sysTagsSetter) { + if (this.sysTags == null) { + this.sysTags = new ArrayList<>(); + } + sysTagsSetter.accept(this.sysTags); + return this; + } + + /** + * 系统标签。 + * @return sysTags + */ + public List getSysTags() { + return sysTags; + } + + public void setSysTags(List sysTags) { + this.sysTags = sysTags; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StarRocksCreateRequestTagsInfo that = (StarRocksCreateRequestTagsInfo) obj; + return Objects.equals(this.sysTags, that.sysTags); + } + + @Override + public int hashCode() { + return Objects.hash(sysTags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StarRocksCreateRequestTagsInfo {\n"); + sb.append(" sysTags: ").append(toIndentedString(sysTags)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequestTagsInfoSysTags.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequestTagsInfoSysTags.java new file mode 100644 index 0000000000..c79538b559 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksCreateRequestTagsInfoSysTags.java @@ -0,0 +1,228 @@ +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; + +/** + * StarRocksCreateRequestTagsInfoSysTags + */ +public class StarRocksCreateRequestTagsInfoSysTags { + + /** + * 标签键。 + */ + public static final class KeyEnum { + + /** + * Enum _SYS_ENTERPRISE_PROJECT_ID for value: "_sys_enterprise_project_id" + */ + public static final KeyEnum _SYS_ENTERPRISE_PROJECT_ID = new KeyEnum("_sys_enterprise_project_id"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("_sys_enterprise_project_id", _SYS_ENTERPRISE_PROJECT_ID); + return Collections.unmodifiableMap(map); + } + + private String value; + + KeyEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static KeyEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new KeyEnum(value)); + } + + public static KeyEnum 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 KeyEnum) { + return this.value.equals(((KeyEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key") + + private KeyEnum key; + + /** + * 标签值。 + */ + public static final class ValueEnum { + + /** + * Enum _0 for value: "0" + */ + public static final ValueEnum _0 = new ValueEnum("0"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("0", _0); + return Collections.unmodifiableMap(map); + } + + private String value; + + ValueEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ValueEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ValueEnum(value)); + } + + public static ValueEnum 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 ValueEnum) { + return this.value.equals(((ValueEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private ValueEnum value; + + public StarRocksCreateRequestTagsInfoSysTags withKey(KeyEnum key) { + this.key = key; + return this; + } + + /** + * 标签键。 + * @return key + */ + public KeyEnum getKey() { + return key; + } + + public void setKey(KeyEnum key) { + this.key = key; + } + + public StarRocksCreateRequestTagsInfoSysTags withValue(ValueEnum value) { + this.value = value; + return this; + } + + /** + * 标签值。 + * @return value + */ + public ValueEnum getValue() { + return value; + } + + public void setValue(ValueEnum 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; + } + StarRocksCreateRequestTagsInfoSysTags that = (StarRocksCreateRequestTagsInfoSysTags) obj; + return Objects.equals(this.key, that.key) && Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(key, value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StarRocksCreateRequestTagsInfoSysTags {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksDatabaseUserInfo.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksDatabaseUserInfo.java new file mode 100644 index 0000000000..39aec3700f --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksDatabaseUserInfo.java @@ -0,0 +1,185 @@ +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 StarRocksDatabaseUserInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "user_name") + + private String userName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "password") + + private String password; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "databases") + + private List databases = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dml") + + private Integer dml; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ddl") + + private Integer ddl; + + public StarRocksDatabaseUserInfo withUserName(String userName) { + this.userName = userName; + return this; + } + + /** + * 数据库账户名。 长度为2-32个字符,必须以小写字母开头,小写字母或数字结尾,可以包含小写字母、数字以及下划线,不能包含其它特殊字符。 + * @return userName + */ + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public StarRocksDatabaseUserInfo withPassword(String password) { + this.password = password; + return this; + } + + /** + * 账户密码。 - 8-32个字符 - 不能与用户名或倒序的用户名相同 - 至少包含以下字符中的三种:大写字母、小写字母、数字和特殊字符~!@#%^*-_=+?, + * @return password + */ + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public StarRocksDatabaseUserInfo withDatabases(List databases) { + this.databases = databases; + return this; + } + + public StarRocksDatabaseUserInfo addDatabasesItem(String databasesItem) { + if (this.databases == null) { + this.databases = new ArrayList<>(); + } + this.databases.add(databasesItem); + return this; + } + + public StarRocksDatabaseUserInfo 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 StarRocksDatabaseUserInfo withDml(Integer dml) { + this.dml = dml; + return this; + } + + /** + * DML权限,默认2。 取值范围: - 0:读写权限 - 1:只读权限 - 2:只读和设置权限 - 3:读写和设置权限 + * @return dml + */ + public Integer getDml() { + return dml; + } + + public void setDml(Integer dml) { + this.dml = dml; + } + + public StarRocksDatabaseUserInfo withDdl(Integer ddl) { + this.ddl = ddl; + return this; + } + + /** + * DDL权限,默认0。 取值范围: - 0:无DDL权限 - 1:有DDL权限 + * @return ddl + */ + public Integer getDdl() { + return ddl; + } + + public void setDdl(Integer ddl) { + this.ddl = ddl; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StarRocksDatabaseUserInfo that = (StarRocksDatabaseUserInfo) obj; + return Objects.equals(this.userName, that.userName) && Objects.equals(this.password, that.password) + && Objects.equals(this.databases, that.databases) && Objects.equals(this.dml, that.dml) + && Objects.equals(this.ddl, that.ddl); + } + + @Override + public int hashCode() { + return Objects.hash(userName, password, databases, dml, ddl); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StarRocksDatabaseUserInfo {\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" databases: ").append(toIndentedString(databases)).append("\n"); + sb.append(" dml: ").append(toIndentedString(dml)).append("\n"); + sb.append(" ddl: ").append(toIndentedString(ddl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/StarRocksDatabaseUserPSinfo.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksDatabaseUserPSinfo.java new file mode 100644 index 0000000000..fa1fb50536 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksDatabaseUserPSinfo.java @@ -0,0 +1,161 @@ +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 StarRocksDatabaseUserPSinfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "user_name") + + private String userName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "databases") + + private List databases = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dml") + + private Integer dml; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ddl") + + private Integer ddl; + + public StarRocksDatabaseUserPSinfo withUserName(String userName) { + this.userName = userName; + return this; + } + + /** + * 数据库账号名。 + * @return userName + */ + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public StarRocksDatabaseUserPSinfo withDatabases(List databases) { + this.databases = databases; + return this; + } + + public StarRocksDatabaseUserPSinfo addDatabasesItem(String databasesItem) { + if (this.databases == null) { + this.databases = new ArrayList<>(); + } + this.databases.add(databasesItem); + return this; + } + + public StarRocksDatabaseUserPSinfo 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 StarRocksDatabaseUserPSinfo withDml(Integer dml) { + this.dml = dml; + return this; + } + + /** + * DML权限。 取值范围: - 0:读写权限 - 1:只读权限 - 2:只读和设置权限 - 3:读写和设置权限 + * @return dml + */ + public Integer getDml() { + return dml; + } + + public void setDml(Integer dml) { + this.dml = dml; + } + + public StarRocksDatabaseUserPSinfo withDdl(Integer ddl) { + this.ddl = ddl; + return this; + } + + /** + * DDL权限。 取值范围: - 0:无DDL权限 - 1:有DDL权限 + * @return ddl + */ + public Integer getDdl() { + return ddl; + } + + public void setDdl(Integer ddl) { + this.ddl = ddl; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StarRocksDatabaseUserPSinfo that = (StarRocksDatabaseUserPSinfo) obj; + return Objects.equals(this.userName, that.userName) && Objects.equals(this.databases, that.databases) + && Objects.equals(this.dml, that.dml) && Objects.equals(this.ddl, that.ddl); + } + + @Override + public int hashCode() { + return Objects.hash(userName, databases, dml, ddl); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StarRocksDatabaseUserPSinfo {\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append(" databases: ").append(toIndentedString(databases)).append("\n"); + sb.append(" dml: ").append(toIndentedString(dml)).append("\n"); + sb.append(" ddl: ").append(toIndentedString(ddl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/StarRocksDatabaseUserPWinfo.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksDatabaseUserPWinfo.java new file mode 100644 index 0000000000..64db4bf88d --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksDatabaseUserPWinfo.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 StarRocksDatabaseUserPWinfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "user_name") + + private String userName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "password") + + private String password; + + public StarRocksDatabaseUserPWinfo withUserName(String userName) { + this.userName = userName; + return this; + } + + /** + * 数据库账号名。 + * @return userName + */ + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public StarRocksDatabaseUserPWinfo withPassword(String password) { + this.password = password; + return this; + } + + /** + * 账户密码。 - 8-32个字符 - 不能与用户名或倒序的用户名相同 - 至少包含以下字符中的三种:大写字母、小写字母、数字和特殊字符~!@#%^*-_=+?, + * @return password + */ + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StarRocksDatabaseUserPWinfo that = (StarRocksDatabaseUserPWinfo) obj; + return Objects.equals(this.userName, that.userName) && Objects.equals(this.password, that.password); + } + + @Override + public int hashCode() { + return Objects.hash(userName, password); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StarRocksDatabaseUserPWinfo {\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/StarRocksInstanceInfoDatastore.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoDatastore.java new file mode 100644 index 0000000000..e80ce42177 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoDatastore.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 StarRocksInstanceInfoDatastore { + + @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 = "version") + + private String version; + + public StarRocksInstanceInfoDatastore 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 StarRocksInstanceInfoDatastore withType(String type) { + this.type = type; + return this; + } + + /** + * 数据库类型。 + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public StarRocksInstanceInfoDatastore withVersion(String version) { + this.version = version; + return this; + } + + /** + * 数据库版本。 + * @return version + */ + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StarRocksInstanceInfoDatastore that = (StarRocksInstanceInfoDatastore) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.type, that.type) + && Objects.equals(this.version, that.version); + } + + @Override + public int hashCode() { + return Objects.hash(id, type, version); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StarRocksInstanceInfoDatastore {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/StarRocksInstanceInfoGroups.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoGroups.java new file mode 100644 index 0000000000..aefc5e32ae --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoGroups.java @@ -0,0 +1,185 @@ +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; + +/** + * StarRocksInstanceInfoGroups + */ +public class StarRocksInstanceInfoGroups { + + @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 = "nodes") + + private List nodes = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "group_type_name") + + private String groupTypeName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "group_node_type") + + private String groupNodeType; + + public StarRocksInstanceInfoGroups 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 StarRocksInstanceInfoGroups withName(String name) { + this.name = name; + return this; + } + + /** + * 分组名。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public StarRocksInstanceInfoGroups withNodes(List nodes) { + this.nodes = nodes; + return this; + } + + public StarRocksInstanceInfoGroups addNodesItem(StarRocksInstanceInfoNodes nodesItem) { + if (this.nodes == null) { + this.nodes = new ArrayList<>(); + } + this.nodes.add(nodesItem); + return this; + } + + public StarRocksInstanceInfoGroups withNodes(Consumer> nodesSetter) { + if (this.nodes == null) { + this.nodes = new ArrayList<>(); + } + nodesSetter.accept(this.nodes); + return this; + } + + /** + * 实例节点。 + * @return nodes + */ + public List getNodes() { + return nodes; + } + + public void setNodes(List nodes) { + this.nodes = nodes; + } + + public StarRocksInstanceInfoGroups withGroupTypeName(String groupTypeName) { + this.groupTypeName = groupTypeName; + return this; + } + + /** + * 实例分组类型名。 + * @return groupTypeName + */ + public String getGroupTypeName() { + return groupTypeName; + } + + public void setGroupTypeName(String groupTypeName) { + this.groupTypeName = groupTypeName; + } + + public StarRocksInstanceInfoGroups withGroupNodeType(String groupNodeType) { + this.groupNodeType = groupNodeType; + return this; + } + + /** + * 实例分组节点类型。 + * @return groupNodeType + */ + public String getGroupNodeType() { + return groupNodeType; + } + + public void setGroupNodeType(String groupNodeType) { + this.groupNodeType = groupNodeType; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StarRocksInstanceInfoGroups that = (StarRocksInstanceInfoGroups) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.nodes, that.nodes) && Objects.equals(this.groupTypeName, that.groupTypeName) + && Objects.equals(this.groupNodeType, that.groupNodeType); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, nodes, groupTypeName, groupNodeType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StarRocksInstanceInfoGroups {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" nodes: ").append(toIndentedString(nodes)).append("\n"); + sb.append(" groupTypeName: ").append(toIndentedString(groupTypeName)).append("\n"); + sb.append(" groupNodeType: ").append(toIndentedString(groupNodeType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/StarRocksInstanceInfoInstances.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoInstances.java new file mode 100644 index 0000000000..155232bcd9 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoInstances.java @@ -0,0 +1,1148 @@ +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; + +/** + * StarRocksInstanceInfoInstances + */ +public class StarRocksInstanceInfoInstances { + + @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 = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "public_ip") + + private String publicIp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_vip") + + private String dataVip; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "can_enable_public_access") + + private Boolean canEnablePublicAccess; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "current_backup_node_id") + + private String currentBackupNodeId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cluster_mode") + + private String clusterMode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_frozen") + + private Integer isFrozen; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "frozen_time") + + private Long frozenTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "db_user") + + private String dbUser; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bak_period") + + private String bakPeriod; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bak_keep_day") + + private Integer bakKeepDay; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bak_expected_start_time") + + private Long bakExpectedStartTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_store_version_id") + + private String dataStoreVersionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_store_version") + + private String dataStoreVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_store_type") + + private String dataStoreType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_at") + + private Long createAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_at") + + private Long updateAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "delete_at") + + private Long deleteAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "db_port") + + private String dbPort; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "param_group") + + private String paramGroup; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "actions") + + private List actions = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_fail_error_code") + + private String createFailErrorCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "groups") + + private List groups = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ops_window") + + private StarRocksInstanceInfoOpsWindow opsWindow; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags_info") + + private StarRocksInstanceInfoTagsInfo tagsInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "time_zone") + + private String timeZone; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "backup_used_space") + + private String backupUsedSpace; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "az_mode") + + private String azMode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private String enterpriseProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "port_info") + + private StarRocksInstanceInfoPortInfo portInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "fe_node_volume_code") + + private String feNodeVolumeCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "be_node_volume_code") + + private String beNodeVolumeCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "fe_node_volume_size") + + private String feNodeVolumeSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "be_node_volume_size") + + private String beNodeVolumeSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "support_data_replication") + + private Boolean supportDataReplication; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "new_version_available") + + private Boolean newVersionAvailable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ssl_option") + + private Boolean sslOption; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dedicated_resource_id") + + private String dedicatedResourceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pay_model") + + private String payModel; + + public StarRocksInstanceInfoInstances withId(String id) { + this.id = id; + return this; + } + + /** + * 实例ID,严格匹配UUID规则。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public StarRocksInstanceInfoInstances withName(String name) { + this.name = name; + return this; + } + + /** + * 创建的实例名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public StarRocksInstanceInfoInstances withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 租户在某一Region下的project ID。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public StarRocksInstanceInfoInstances withPublicIp(String publicIp) { + this.publicIp = publicIp; + return this; + } + + /** + * 公网访问IP。 + * @return publicIp + */ + public String getPublicIp() { + return publicIp; + } + + public void setPublicIp(String publicIp) { + this.publicIp = publicIp; + } + + public StarRocksInstanceInfoInstances withDataVip(String dataVip) { + this.dataVip = dataVip; + return this; + } + + /** + * StarRocks FE节点类型数据IP(多个IP使用逗号分隔) + * @return dataVip + */ + public String getDataVip() { + return dataVip; + } + + public void setDataVip(String dataVip) { + this.dataVip = dataVip; + } + + public StarRocksInstanceInfoInstances withCanEnablePublicAccess(Boolean canEnablePublicAccess) { + this.canEnablePublicAccess = canEnablePublicAccess; + return this; + } + + /** + * 是否可公网访问。 + * @return canEnablePublicAccess + */ + public Boolean getCanEnablePublicAccess() { + return canEnablePublicAccess; + } + + public void setCanEnablePublicAccess(Boolean canEnablePublicAccess) { + this.canEnablePublicAccess = canEnablePublicAccess; + } + + public StarRocksInstanceInfoInstances withCurrentBackupNodeId(String currentBackupNodeId) { + this.currentBackupNodeId = currentBackupNodeId; + return this; + } + + /** + * 备份节点ID。 + * @return currentBackupNodeId + */ + public String getCurrentBackupNodeId() { + return currentBackupNodeId; + } + + public void setCurrentBackupNodeId(String currentBackupNodeId) { + this.currentBackupNodeId = currentBackupNodeId; + } + + public StarRocksInstanceInfoInstances withClusterMode(String clusterMode) { + this.clusterMode = clusterMode; + return this; + } + + /** + * 部署模式。 + * @return clusterMode + */ + public String getClusterMode() { + return clusterMode; + } + + public void setClusterMode(String clusterMode) { + this.clusterMode = clusterMode; + } + + public StarRocksInstanceInfoInstances withStatus(String status) { + this.status = status; + return this; + } + + /** + * 实例状态。 + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public StarRocksInstanceInfoInstances withIsFrozen(Integer isFrozen) { + this.isFrozen = isFrozen; + return this; + } + + /** + * 是否冻结。 + * @return isFrozen + */ + public Integer getIsFrozen() { + return isFrozen; + } + + public void setIsFrozen(Integer isFrozen) { + this.isFrozen = isFrozen; + } + + public StarRocksInstanceInfoInstances withFrozenTime(Long frozenTime) { + this.frozenTime = frozenTime; + return this; + } + + /** + * 冻结时间。 + * @return frozenTime + */ + public Long getFrozenTime() { + return frozenTime; + } + + public void setFrozenTime(Long frozenTime) { + this.frozenTime = frozenTime; + } + + public StarRocksInstanceInfoInstances withDbUser(String dbUser) { + this.dbUser = dbUser; + return this; + } + + /** + * 默认用户名。 + * @return dbUser + */ + public String getDbUser() { + return dbUser; + } + + public void setDbUser(String dbUser) { + this.dbUser = dbUser; + } + + public StarRocksInstanceInfoInstances withBakPeriod(String bakPeriod) { + this.bakPeriod = bakPeriod; + return this; + } + + /** + * 备份周期。 + * @return bakPeriod + */ + public String getBakPeriod() { + return bakPeriod; + } + + public void setBakPeriod(String bakPeriod) { + this.bakPeriod = bakPeriod; + } + + public StarRocksInstanceInfoInstances withBakKeepDay(Integer bakKeepDay) { + this.bakKeepDay = bakKeepDay; + return this; + } + + /** + * 备份保存天数。 + * @return bakKeepDay + */ + public Integer getBakKeepDay() { + return bakKeepDay; + } + + public void setBakKeepDay(Integer bakKeepDay) { + this.bakKeepDay = bakKeepDay; + } + + public StarRocksInstanceInfoInstances withBakExpectedStartTime(Long bakExpectedStartTime) { + this.bakExpectedStartTime = bakExpectedStartTime; + return this; + } + + /** + * 备份预计开始时间。 + * @return bakExpectedStartTime + */ + public Long getBakExpectedStartTime() { + return bakExpectedStartTime; + } + + public void setBakExpectedStartTime(Long bakExpectedStartTime) { + this.bakExpectedStartTime = bakExpectedStartTime; + } + + public StarRocksInstanceInfoInstances withDataStoreVersionId(String dataStoreVersionId) { + this.dataStoreVersionId = dataStoreVersionId; + return this; + } + + /** + * 数据库版本ID。 + * @return dataStoreVersionId + */ + public String getDataStoreVersionId() { + return dataStoreVersionId; + } + + public void setDataStoreVersionId(String dataStoreVersionId) { + this.dataStoreVersionId = dataStoreVersionId; + } + + public StarRocksInstanceInfoInstances withDataStoreVersion(String dataStoreVersion) { + this.dataStoreVersion = dataStoreVersion; + return this; + } + + /** + * 数据库版本。 + * @return dataStoreVersion + */ + public String getDataStoreVersion() { + return dataStoreVersion; + } + + public void setDataStoreVersion(String dataStoreVersion) { + this.dataStoreVersion = dataStoreVersion; + } + + public StarRocksInstanceInfoInstances withDataStoreType(String dataStoreType) { + this.dataStoreType = dataStoreType; + return this; + } + + /** + * 数据库引擎。 + * @return dataStoreType + */ + public String getDataStoreType() { + return dataStoreType; + } + + public void setDataStoreType(String dataStoreType) { + this.dataStoreType = dataStoreType; + } + + public StarRocksInstanceInfoInstances withCreateAt(Long createAt) { + this.createAt = createAt; + return this; + } + + /** + * 实例创建时间。 + * @return createAt + */ + public Long getCreateAt() { + return createAt; + } + + public void setCreateAt(Long createAt) { + this.createAt = createAt; + } + + public StarRocksInstanceInfoInstances withUpdateAt(Long updateAt) { + this.updateAt = updateAt; + return this; + } + + /** + * 实例更新时间。 + * @return updateAt + */ + public Long getUpdateAt() { + return updateAt; + } + + public void setUpdateAt(Long updateAt) { + this.updateAt = updateAt; + } + + public StarRocksInstanceInfoInstances withDeleteAt(Long deleteAt) { + this.deleteAt = deleteAt; + return this; + } + + /** + * 实例删除时间。 + * @return deleteAt + */ + public Long getDeleteAt() { + return deleteAt; + } + + public void setDeleteAt(Long deleteAt) { + this.deleteAt = deleteAt; + } + + public StarRocksInstanceInfoInstances withDbPort(String dbPort) { + this.dbPort = dbPort; + return this; + } + + /** + * 数据库端口号。 + * @return dbPort + */ + public String getDbPort() { + return dbPort; + } + + public void setDbPort(String dbPort) { + this.dbPort = dbPort; + } + + public StarRocksInstanceInfoInstances withParamGroup(String paramGroup) { + this.paramGroup = paramGroup; + return this; + } + + /** + * 参数组。 + * @return paramGroup + */ + public String getParamGroup() { + return paramGroup; + } + + public void setParamGroup(String paramGroup) { + this.paramGroup = paramGroup; + } + + public StarRocksInstanceInfoInstances withActions(List actions) { + this.actions = actions; + return this; + } + + public StarRocksInstanceInfoInstances addActionsItem(QueryAction actionsItem) { + if (this.actions == null) { + this.actions = new ArrayList<>(); + } + this.actions.add(actionsItem); + return this; + } + + public StarRocksInstanceInfoInstances withActions(Consumer> actionsSetter) { + if (this.actions == null) { + this.actions = new ArrayList<>(); + } + actionsSetter.accept(this.actions); + return this; + } + + /** + * 实例动作。 + * @return actions + */ + public List getActions() { + return actions; + } + + public void setActions(List actions) { + this.actions = actions; + } + + public StarRocksInstanceInfoInstances withCreateFailErrorCode(String createFailErrorCode) { + this.createFailErrorCode = createFailErrorCode; + return this; + } + + /** + * 实例创建失败错误码。 + * @return createFailErrorCode + */ + public String getCreateFailErrorCode() { + return createFailErrorCode; + } + + public void setCreateFailErrorCode(String createFailErrorCode) { + this.createFailErrorCode = createFailErrorCode; + } + + public StarRocksInstanceInfoInstances withGroups(List groups) { + this.groups = groups; + return this; + } + + public StarRocksInstanceInfoInstances addGroupsItem(StarRocksInstanceInfoGroups groupsItem) { + if (this.groups == null) { + this.groups = new ArrayList<>(); + } + this.groups.add(groupsItem); + return this; + } + + public StarRocksInstanceInfoInstances withGroups(Consumer> groupsSetter) { + if (this.groups == null) { + this.groups = new ArrayList<>(); + } + groupsSetter.accept(this.groups); + return this; + } + + /** + * 实例分组。 + * @return groups + */ + public List getGroups() { + return groups; + } + + public void setGroups(List groups) { + this.groups = groups; + } + + public StarRocksInstanceInfoInstances withOpsWindow(StarRocksInstanceInfoOpsWindow opsWindow) { + this.opsWindow = opsWindow; + return this; + } + + public StarRocksInstanceInfoInstances withOpsWindow(Consumer opsWindowSetter) { + if (this.opsWindow == null) { + this.opsWindow = new StarRocksInstanceInfoOpsWindow(); + opsWindowSetter.accept(this.opsWindow); + } + + return this; + } + + /** + * Get opsWindow + * @return opsWindow + */ + public StarRocksInstanceInfoOpsWindow getOpsWindow() { + return opsWindow; + } + + public void setOpsWindow(StarRocksInstanceInfoOpsWindow opsWindow) { + this.opsWindow = opsWindow; + } + + public StarRocksInstanceInfoInstances withTagsInfo(StarRocksInstanceInfoTagsInfo tagsInfo) { + this.tagsInfo = tagsInfo; + return this; + } + + public StarRocksInstanceInfoInstances withTagsInfo(Consumer tagsInfoSetter) { + if (this.tagsInfo == null) { + this.tagsInfo = new StarRocksInstanceInfoTagsInfo(); + tagsInfoSetter.accept(this.tagsInfo); + } + + return this; + } + + /** + * Get tagsInfo + * @return tagsInfo + */ + public StarRocksInstanceInfoTagsInfo getTagsInfo() { + return tagsInfo; + } + + public void setTagsInfo(StarRocksInstanceInfoTagsInfo tagsInfo) { + this.tagsInfo = tagsInfo; + } + + public StarRocksInstanceInfoInstances withTimeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * 时区。 + * @return timeZone + */ + public String getTimeZone() { + return timeZone; + } + + public void setTimeZone(String timeZone) { + this.timeZone = timeZone; + } + + public StarRocksInstanceInfoInstances withBackupUsedSpace(String backupUsedSpace) { + this.backupUsedSpace = backupUsedSpace; + return this; + } + + /** + * 备份使用空间。 + * @return backupUsedSpace + */ + public String getBackupUsedSpace() { + return backupUsedSpace; + } + + public void setBackupUsedSpace(String backupUsedSpace) { + this.backupUsedSpace = backupUsedSpace; + } + + public StarRocksInstanceInfoInstances withAzMode(String azMode) { + this.azMode = azMode; + return this; + } + + /** + * 可用区模式。 取值范围: - single:单可用区 - multi:多可用区 + * @return azMode + */ + public String getAzMode() { + return azMode; + } + + public void setAzMode(String azMode) { + this.azMode = azMode; + } + + public StarRocksInstanceInfoInstances withEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + return this; + } + + /** + * 企业项目ID。 + * @return enterpriseProjectId + */ + public String getEnterpriseProjectId() { + return enterpriseProjectId; + } + + public void setEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + } + + public StarRocksInstanceInfoInstances withPortInfo(StarRocksInstanceInfoPortInfo portInfo) { + this.portInfo = portInfo; + return this; + } + + public StarRocksInstanceInfoInstances withPortInfo(Consumer portInfoSetter) { + if (this.portInfo == null) { + this.portInfo = new StarRocksInstanceInfoPortInfo(); + portInfoSetter.accept(this.portInfo); + } + + return this; + } + + /** + * Get portInfo + * @return portInfo + */ + public StarRocksInstanceInfoPortInfo getPortInfo() { + return portInfo; + } + + public void setPortInfo(StarRocksInstanceInfoPortInfo portInfo) { + this.portInfo = portInfo; + } + + public StarRocksInstanceInfoInstances withFeNodeVolumeCode(String feNodeVolumeCode) { + this.feNodeVolumeCode = feNodeVolumeCode; + return this; + } + + /** + * FE节点磁盘类型。 + * @return feNodeVolumeCode + */ + public String getFeNodeVolumeCode() { + return feNodeVolumeCode; + } + + public void setFeNodeVolumeCode(String feNodeVolumeCode) { + this.feNodeVolumeCode = feNodeVolumeCode; + } + + public StarRocksInstanceInfoInstances withBeNodeVolumeCode(String beNodeVolumeCode) { + this.beNodeVolumeCode = beNodeVolumeCode; + return this; + } + + /** + * BE节点磁盘类型。 + * @return beNodeVolumeCode + */ + public String getBeNodeVolumeCode() { + return beNodeVolumeCode; + } + + public void setBeNodeVolumeCode(String beNodeVolumeCode) { + this.beNodeVolumeCode = beNodeVolumeCode; + } + + public StarRocksInstanceInfoInstances withFeNodeVolumeSize(String feNodeVolumeSize) { + this.feNodeVolumeSize = feNodeVolumeSize; + return this; + } + + /** + * FE节点磁盘大小。 + * @return feNodeVolumeSize + */ + public String getFeNodeVolumeSize() { + return feNodeVolumeSize; + } + + public void setFeNodeVolumeSize(String feNodeVolumeSize) { + this.feNodeVolumeSize = feNodeVolumeSize; + } + + public StarRocksInstanceInfoInstances withBeNodeVolumeSize(String beNodeVolumeSize) { + this.beNodeVolumeSize = beNodeVolumeSize; + return this; + } + + /** + * BE节点磁盘大小。 + * @return beNodeVolumeSize + */ + public String getBeNodeVolumeSize() { + return beNodeVolumeSize; + } + + public void setBeNodeVolumeSize(String beNodeVolumeSize) { + this.beNodeVolumeSize = beNodeVolumeSize; + } + + public StarRocksInstanceInfoInstances withSupportDataReplication(Boolean supportDataReplication) { + this.supportDataReplication = supportDataReplication; + return this; + } + + /** + * 是否支持副本。 + * @return supportDataReplication + */ + public Boolean getSupportDataReplication() { + return supportDataReplication; + } + + public void setSupportDataReplication(Boolean supportDataReplication) { + this.supportDataReplication = supportDataReplication; + } + + public StarRocksInstanceInfoInstances withNewVersionAvailable(Boolean newVersionAvailable) { + this.newVersionAvailable = newVersionAvailable; + return this; + } + + /** + * 是否有数据库新版本。 + * @return newVersionAvailable + */ + public Boolean getNewVersionAvailable() { + return newVersionAvailable; + } + + public void setNewVersionAvailable(Boolean newVersionAvailable) { + this.newVersionAvailable = newVersionAvailable; + } + + public StarRocksInstanceInfoInstances withSslOption(Boolean sslOption) { + this.sslOption = sslOption; + return this; + } + + /** + * SSL开关。 + * @return sslOption + */ + public Boolean getSslOption() { + return sslOption; + } + + public void setSslOption(Boolean sslOption) { + this.sslOption = sslOption; + } + + public StarRocksInstanceInfoInstances withDedicatedResourceId(String dedicatedResourceId) { + this.dedicatedResourceId = dedicatedResourceId; + return this; + } + + /** + * 专属资源池ID,只有数据库实例属于专属资源池才会返回该参数。 + * @return dedicatedResourceId + */ + public String getDedicatedResourceId() { + return dedicatedResourceId; + } + + public void setDedicatedResourceId(String dedicatedResourceId) { + this.dedicatedResourceId = dedicatedResourceId; + } + + public StarRocksInstanceInfoInstances withPayModel(String payModel) { + this.payModel = payModel; + return this; + } + + /** + * 支付模式。 + * @return payModel + */ + public String getPayModel() { + return payModel; + } + + public void setPayModel(String payModel) { + this.payModel = payModel; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StarRocksInstanceInfoInstances that = (StarRocksInstanceInfoInstances) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.projectId, that.projectId) && Objects.equals(this.publicIp, that.publicIp) + && Objects.equals(this.dataVip, that.dataVip) + && Objects.equals(this.canEnablePublicAccess, that.canEnablePublicAccess) + && Objects.equals(this.currentBackupNodeId, that.currentBackupNodeId) + && Objects.equals(this.clusterMode, that.clusterMode) && Objects.equals(this.status, that.status) + && Objects.equals(this.isFrozen, that.isFrozen) && Objects.equals(this.frozenTime, that.frozenTime) + && Objects.equals(this.dbUser, that.dbUser) && Objects.equals(this.bakPeriod, that.bakPeriod) + && Objects.equals(this.bakKeepDay, that.bakKeepDay) + && Objects.equals(this.bakExpectedStartTime, that.bakExpectedStartTime) + && Objects.equals(this.dataStoreVersionId, that.dataStoreVersionId) + && Objects.equals(this.dataStoreVersion, that.dataStoreVersion) + && Objects.equals(this.dataStoreType, that.dataStoreType) && Objects.equals(this.createAt, that.createAt) + && Objects.equals(this.updateAt, that.updateAt) && Objects.equals(this.deleteAt, that.deleteAt) + && Objects.equals(this.dbPort, that.dbPort) && Objects.equals(this.paramGroup, that.paramGroup) + && Objects.equals(this.actions, that.actions) + && Objects.equals(this.createFailErrorCode, that.createFailErrorCode) + && Objects.equals(this.groups, that.groups) && Objects.equals(this.opsWindow, that.opsWindow) + && Objects.equals(this.tagsInfo, that.tagsInfo) && Objects.equals(this.timeZone, that.timeZone) + && Objects.equals(this.backupUsedSpace, that.backupUsedSpace) && Objects.equals(this.azMode, that.azMode) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) + && Objects.equals(this.portInfo, that.portInfo) + && Objects.equals(this.feNodeVolumeCode, that.feNodeVolumeCode) + && Objects.equals(this.beNodeVolumeCode, that.beNodeVolumeCode) + && Objects.equals(this.feNodeVolumeSize, that.feNodeVolumeSize) + && Objects.equals(this.beNodeVolumeSize, that.beNodeVolumeSize) + && Objects.equals(this.supportDataReplication, that.supportDataReplication) + && Objects.equals(this.newVersionAvailable, that.newVersionAvailable) + && Objects.equals(this.sslOption, that.sslOption) + && Objects.equals(this.dedicatedResourceId, that.dedicatedResourceId) + && Objects.equals(this.payModel, that.payModel); + } + + @Override + public int hashCode() { + return Objects.hash(id, + name, + projectId, + publicIp, + dataVip, + canEnablePublicAccess, + currentBackupNodeId, + clusterMode, + status, + isFrozen, + frozenTime, + dbUser, + bakPeriod, + bakKeepDay, + bakExpectedStartTime, + dataStoreVersionId, + dataStoreVersion, + dataStoreType, + createAt, + updateAt, + deleteAt, + dbPort, + paramGroup, + actions, + createFailErrorCode, + groups, + opsWindow, + tagsInfo, + timeZone, + backupUsedSpace, + azMode, + enterpriseProjectId, + portInfo, + feNodeVolumeCode, + beNodeVolumeCode, + feNodeVolumeSize, + beNodeVolumeSize, + supportDataReplication, + newVersionAvailable, + sslOption, + dedicatedResourceId, + payModel); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StarRocksInstanceInfoInstances {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" publicIp: ").append(toIndentedString(publicIp)).append("\n"); + sb.append(" dataVip: ").append(toIndentedString(dataVip)).append("\n"); + sb.append(" canEnablePublicAccess: ").append(toIndentedString(canEnablePublicAccess)).append("\n"); + sb.append(" currentBackupNodeId: ").append(toIndentedString(currentBackupNodeId)).append("\n"); + sb.append(" clusterMode: ").append(toIndentedString(clusterMode)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" isFrozen: ").append(toIndentedString(isFrozen)).append("\n"); + sb.append(" frozenTime: ").append(toIndentedString(frozenTime)).append("\n"); + sb.append(" dbUser: ").append(toIndentedString(dbUser)).append("\n"); + sb.append(" bakPeriod: ").append(toIndentedString(bakPeriod)).append("\n"); + sb.append(" bakKeepDay: ").append(toIndentedString(bakKeepDay)).append("\n"); + sb.append(" bakExpectedStartTime: ").append(toIndentedString(bakExpectedStartTime)).append("\n"); + sb.append(" dataStoreVersionId: ").append(toIndentedString(dataStoreVersionId)).append("\n"); + sb.append(" dataStoreVersion: ").append(toIndentedString(dataStoreVersion)).append("\n"); + sb.append(" dataStoreType: ").append(toIndentedString(dataStoreType)).append("\n"); + sb.append(" createAt: ").append(toIndentedString(createAt)).append("\n"); + sb.append(" updateAt: ").append(toIndentedString(updateAt)).append("\n"); + sb.append(" deleteAt: ").append(toIndentedString(deleteAt)).append("\n"); + sb.append(" dbPort: ").append(toIndentedString(dbPort)).append("\n"); + sb.append(" paramGroup: ").append(toIndentedString(paramGroup)).append("\n"); + sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); + sb.append(" createFailErrorCode: ").append(toIndentedString(createFailErrorCode)).append("\n"); + sb.append(" groups: ").append(toIndentedString(groups)).append("\n"); + sb.append(" opsWindow: ").append(toIndentedString(opsWindow)).append("\n"); + sb.append(" tagsInfo: ").append(toIndentedString(tagsInfo)).append("\n"); + sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); + sb.append(" backupUsedSpace: ").append(toIndentedString(backupUsedSpace)).append("\n"); + sb.append(" azMode: ").append(toIndentedString(azMode)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append(" portInfo: ").append(toIndentedString(portInfo)).append("\n"); + sb.append(" feNodeVolumeCode: ").append(toIndentedString(feNodeVolumeCode)).append("\n"); + sb.append(" beNodeVolumeCode: ").append(toIndentedString(beNodeVolumeCode)).append("\n"); + sb.append(" feNodeVolumeSize: ").append(toIndentedString(feNodeVolumeSize)).append("\n"); + sb.append(" beNodeVolumeSize: ").append(toIndentedString(beNodeVolumeSize)).append("\n"); + sb.append(" supportDataReplication: ").append(toIndentedString(supportDataReplication)).append("\n"); + sb.append(" newVersionAvailable: ").append(toIndentedString(newVersionAvailable)).append("\n"); + sb.append(" sslOption: ").append(toIndentedString(sslOption)).append("\n"); + sb.append(" dedicatedResourceId: ").append(toIndentedString(dedicatedResourceId)).append("\n"); + sb.append(" payModel: ").append(toIndentedString(payModel)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/StarRocksInstanceInfoNodes.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoNodes.java new file mode 100644 index 0000000000..7e3dfac1d7 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoNodes.java @@ -0,0 +1,886 @@ +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.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * StarRocksInstanceInfoNodes + */ +public class StarRocksInstanceInfoNodes { + + @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 = "period") + + private String period; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "volume") + + private StarRocksInstanceInfoVolume volume; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cpu") + + private String cpu; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "mem") + + private String mem; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "datastore") + + private StarRocksInstanceInfoDatastore datastore; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "actions") + + private List actions = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "priority") + + private Integer priority; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "frozen_flag") + + private Integer frozenFlag; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "db_port") + + private Integer dbPort; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pay_model") + + private String payModel; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "order_id") + + private String orderId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "traffic_ip") + + private String trafficIp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "traffic_ipv6") + + private String trafficIpv6; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "az_code") + + private String azCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "az_description") + + private String azDescription; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "az_type") + + private String azType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "region_code") + + private String regionCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_at") + + private Long createAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_at") + + private Long updateAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flavor_id") + + private String flavorId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flavor_ref") + + private String flavorRef; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "iass_flavor_ref") + + private String iassFlavorRef; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "max_connections") + + private String maxConnections; + + @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 = "need_restart") + + private Boolean needRestart; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sg_id") + + private String sgId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "param_group") + + private Map paramGroup = null; + + public StarRocksInstanceInfoNodes 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 StarRocksInstanceInfoNodes withName(String name) { + this.name = name; + return this; + } + + /** + * 实例节点名。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public StarRocksInstanceInfoNodes withType(String type) { + this.type = type; + return this; + } + + /** + * 实例节点类型。 + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public StarRocksInstanceInfoNodes withStatus(String status) { + this.status = status; + return this; + } + + /** + * 节点状态。 取值: 值为“creating”,表示节点正在创建。 值为“normal”,表示节点正常。 值为“abnormal”,表示节点异常。 值为“createfail”,表示节点创建失败。 + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public StarRocksInstanceInfoNodes withPeriod(String period) { + this.period = period; + return this; + } + + /** + * 实例节点周期。 + * @return period + */ + public String getPeriod() { + return period; + } + + public void setPeriod(String period) { + this.period = period; + } + + public StarRocksInstanceInfoNodes withVolume(StarRocksInstanceInfoVolume volume) { + this.volume = volume; + return this; + } + + public StarRocksInstanceInfoNodes withVolume(Consumer volumeSetter) { + if (this.volume == null) { + this.volume = new StarRocksInstanceInfoVolume(); + volumeSetter.accept(this.volume); + } + + return this; + } + + /** + * Get volume + * @return volume + */ + public StarRocksInstanceInfoVolume getVolume() { + return volume; + } + + public void setVolume(StarRocksInstanceInfoVolume volume) { + this.volume = volume; + } + + public StarRocksInstanceInfoNodes withCpu(String cpu) { + this.cpu = cpu; + return this; + } + + /** + * 实例节点cpu数量。 + * @return cpu + */ + public String getCpu() { + return cpu; + } + + public void setCpu(String cpu) { + this.cpu = cpu; + } + + public StarRocksInstanceInfoNodes withMem(String mem) { + this.mem = mem; + return this; + } + + /** + * 实例节点内存大小(GB)。 + * @return mem + */ + public String getMem() { + return mem; + } + + public void setMem(String mem) { + this.mem = mem; + } + + public StarRocksInstanceInfoNodes withDatastore(StarRocksInstanceInfoDatastore datastore) { + this.datastore = datastore; + return this; + } + + public StarRocksInstanceInfoNodes withDatastore(Consumer datastoreSetter) { + if (this.datastore == null) { + this.datastore = new StarRocksInstanceInfoDatastore(); + datastoreSetter.accept(this.datastore); + } + + return this; + } + + /** + * Get datastore + * @return datastore + */ + public StarRocksInstanceInfoDatastore getDatastore() { + return datastore; + } + + public void setDatastore(StarRocksInstanceInfoDatastore datastore) { + this.datastore = datastore; + } + + public StarRocksInstanceInfoNodes withActions(List actions) { + this.actions = actions; + return this; + } + + public StarRocksInstanceInfoNodes addActionsItem(QueryAction actionsItem) { + if (this.actions == null) { + this.actions = new ArrayList<>(); + } + this.actions.add(actionsItem); + return this; + } + + public StarRocksInstanceInfoNodes withActions(Consumer> actionsSetter) { + if (this.actions == null) { + this.actions = new ArrayList<>(); + } + actionsSetter.accept(this.actions); + return this; + } + + /** + * 节点动作。 + * @return actions + */ + public List getActions() { + return actions; + } + + public void setActions(List actions) { + this.actions = actions; + } + + public StarRocksInstanceInfoNodes withPriority(Integer priority) { + this.priority = priority; + return this; + } + + /** + * 节点优先级。 + * @return priority + */ + public Integer getPriority() { + return priority; + } + + public void setPriority(Integer priority) { + this.priority = priority; + } + + public StarRocksInstanceInfoNodes withFrozenFlag(Integer frozenFlag) { + this.frozenFlag = frozenFlag; + return this; + } + + /** + * 冻结标志。 + * @return frozenFlag + */ + public Integer getFrozenFlag() { + return frozenFlag; + } + + public void setFrozenFlag(Integer frozenFlag) { + this.frozenFlag = frozenFlag; + } + + public StarRocksInstanceInfoNodes withDbPort(Integer dbPort) { + this.dbPort = dbPort; + return this; + } + + /** + * 数据库端口号。默认3306。 + * @return dbPort + */ + public Integer getDbPort() { + return dbPort; + } + + public void setDbPort(Integer dbPort) { + this.dbPort = dbPort; + } + + public StarRocksInstanceInfoNodes withPayModel(String payModel) { + this.payModel = payModel; + return this; + } + + /** + * 支付模式。 + * @return payModel + */ + public String getPayModel() { + return payModel; + } + + public void setPayModel(String payModel) { + this.payModel = payModel; + } + + public StarRocksInstanceInfoNodes withOrderId(String orderId) { + this.orderId = orderId; + return this; + } + + /** + * 订单号。 + * @return orderId + */ + public String getOrderId() { + return orderId; + } + + public void setOrderId(String orderId) { + this.orderId = orderId; + } + + public StarRocksInstanceInfoNodes withTrafficIp(String trafficIp) { + this.trafficIp = trafficIp; + return this; + } + + /** + * 数据IP。 + * @return trafficIp + */ + public String getTrafficIp() { + return trafficIp; + } + + public void setTrafficIp(String trafficIp) { + this.trafficIp = trafficIp; + } + + public StarRocksInstanceInfoNodes withTrafficIpv6(String trafficIpv6) { + this.trafficIpv6 = trafficIpv6; + return this; + } + + /** + * 数据IPV6。 + * @return trafficIpv6 + */ + public String getTrafficIpv6() { + return trafficIpv6; + } + + public void setTrafficIpv6(String trafficIpv6) { + this.trafficIpv6 = trafficIpv6; + } + + public StarRocksInstanceInfoNodes withAzCode(String azCode) { + this.azCode = azCode; + return this; + } + + /** + * 可用区代码。 + * @return azCode + */ + public String getAzCode() { + return azCode; + } + + public void setAzCode(String azCode) { + this.azCode = azCode; + } + + public StarRocksInstanceInfoNodes withAzDescription(String azDescription) { + this.azDescription = azDescription; + return this; + } + + /** + * 可用区描述。 + * @return azDescription + */ + public String getAzDescription() { + return azDescription; + } + + public void setAzDescription(String azDescription) { + this.azDescription = azDescription; + } + + public StarRocksInstanceInfoNodes withAzType(String azType) { + this.azType = azType; + return this; + } + + /** + * 可用区类型。 + * @return azType + */ + public String getAzType() { + return azType; + } + + public void setAzType(String azType) { + this.azType = azType; + } + + public StarRocksInstanceInfoNodes withRegionCode(String regionCode) { + this.regionCode = regionCode; + return this; + } + + /** + * 实例所在区域。 + * @return regionCode + */ + public String getRegionCode() { + return regionCode; + } + + public void setRegionCode(String regionCode) { + this.regionCode = regionCode; + } + + public StarRocksInstanceInfoNodes withCreateAt(Long createAt) { + this.createAt = createAt; + return this; + } + + /** + * 节点创建时间。 + * @return createAt + */ + public Long getCreateAt() { + return createAt; + } + + public void setCreateAt(Long createAt) { + this.createAt = createAt; + } + + public StarRocksInstanceInfoNodes withUpdateAt(Long updateAt) { + this.updateAt = updateAt; + return this; + } + + /** + * 节点更新时间。 + * @return updateAt + */ + public Long getUpdateAt() { + return updateAt; + } + + public void setUpdateAt(Long updateAt) { + this.updateAt = updateAt; + } + + public StarRocksInstanceInfoNodes withFlavorId(String flavorId) { + this.flavorId = flavorId; + return this; + } + + /** + * 节点规格ID。 + * @return flavorId + */ + public String getFlavorId() { + return flavorId; + } + + public void setFlavorId(String flavorId) { + this.flavorId = flavorId; + } + + public StarRocksInstanceInfoNodes withFlavorRef(String flavorRef) { + this.flavorRef = flavorRef; + return this; + } + + /** + * 节点规格码。 + * @return flavorRef + */ + public String getFlavorRef() { + return flavorRef; + } + + public void setFlavorRef(String flavorRef) { + this.flavorRef = flavorRef; + } + + public StarRocksInstanceInfoNodes withIassFlavorRef(String iassFlavorRef) { + this.iassFlavorRef = iassFlavorRef; + return this; + } + + /** + * IASS规格码。 + * @return iassFlavorRef + */ + public String getIassFlavorRef() { + return iassFlavorRef; + } + + public void setIassFlavorRef(String iassFlavorRef) { + this.iassFlavorRef = iassFlavorRef; + } + + public StarRocksInstanceInfoNodes withMaxConnections(String maxConnections) { + this.maxConnections = maxConnections; + return this; + } + + /** + * 公网最大连接数。 + * @return maxConnections + */ + public String getMaxConnections() { + return maxConnections; + } + + public void setMaxConnections(String maxConnections) { + this.maxConnections = maxConnections; + } + + public StarRocksInstanceInfoNodes 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 StarRocksInstanceInfoNodes withSubnetId(String subnetId) { + this.subnetId = subnetId; + return this; + } + + /** + * 子网ID。 + * @return subnetId + */ + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public StarRocksInstanceInfoNodes withNeedRestart(Boolean needRestart) { + this.needRestart = needRestart; + return this; + } + + /** + * 参数更新是否需要重启。 + * @return needRestart + */ + public Boolean getNeedRestart() { + return needRestart; + } + + public void setNeedRestart(Boolean needRestart) { + this.needRestart = needRestart; + } + + public StarRocksInstanceInfoNodes withSgId(String sgId) { + this.sgId = sgId; + return this; + } + + /** + * 安全组。 + * @return sgId + */ + public String getSgId() { + return sgId; + } + + public void setSgId(String sgId) { + this.sgId = sgId; + } + + public StarRocksInstanceInfoNodes withParamGroup(Map paramGroup) { + this.paramGroup = paramGroup; + return this; + } + + public StarRocksInstanceInfoNodes putParamGroupItem(String key, ParamGroup paramGroupItem) { + if (this.paramGroup == null) { + this.paramGroup = new HashMap<>(); + } + this.paramGroup.put(key, paramGroupItem); + return this; + } + + public StarRocksInstanceInfoNodes withParamGroup(Consumer> paramGroupSetter) { + if (this.paramGroup == null) { + this.paramGroup = new HashMap<>(); + } + paramGroupSetter.accept(this.paramGroup); + return this; + } + + /** + * 参数组信息。 + * @return paramGroup + */ + public Map getParamGroup() { + return paramGroup; + } + + public void setParamGroup(Map paramGroup) { + this.paramGroup = paramGroup; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StarRocksInstanceInfoNodes that = (StarRocksInstanceInfoNodes) 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.period, that.period) && Objects.equals(this.volume, that.volume) + && Objects.equals(this.cpu, that.cpu) && Objects.equals(this.mem, that.mem) + && Objects.equals(this.datastore, that.datastore) && Objects.equals(this.actions, that.actions) + && Objects.equals(this.priority, that.priority) && Objects.equals(this.frozenFlag, that.frozenFlag) + && Objects.equals(this.dbPort, that.dbPort) && Objects.equals(this.payModel, that.payModel) + && Objects.equals(this.orderId, that.orderId) && Objects.equals(this.trafficIp, that.trafficIp) + && Objects.equals(this.trafficIpv6, that.trafficIpv6) && Objects.equals(this.azCode, that.azCode) + && Objects.equals(this.azDescription, that.azDescription) && Objects.equals(this.azType, that.azType) + && Objects.equals(this.regionCode, that.regionCode) && Objects.equals(this.createAt, that.createAt) + && Objects.equals(this.updateAt, that.updateAt) && Objects.equals(this.flavorId, that.flavorId) + && Objects.equals(this.flavorRef, that.flavorRef) && Objects.equals(this.iassFlavorRef, that.iassFlavorRef) + && Objects.equals(this.maxConnections, that.maxConnections) && Objects.equals(this.vpcId, that.vpcId) + && Objects.equals(this.subnetId, that.subnetId) && Objects.equals(this.needRestart, that.needRestart) + && Objects.equals(this.sgId, that.sgId) && Objects.equals(this.paramGroup, that.paramGroup); + } + + @Override + public int hashCode() { + return Objects.hash(id, + name, + type, + status, + period, + volume, + cpu, + mem, + datastore, + actions, + priority, + frozenFlag, + dbPort, + payModel, + orderId, + trafficIp, + trafficIpv6, + azCode, + azDescription, + azType, + regionCode, + createAt, + updateAt, + flavorId, + flavorRef, + iassFlavorRef, + maxConnections, + vpcId, + subnetId, + needRestart, + sgId, + paramGroup); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StarRocksInstanceInfoNodes {\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(" period: ").append(toIndentedString(period)).append("\n"); + sb.append(" volume: ").append(toIndentedString(volume)).append("\n"); + sb.append(" cpu: ").append(toIndentedString(cpu)).append("\n"); + sb.append(" mem: ").append(toIndentedString(mem)).append("\n"); + sb.append(" datastore: ").append(toIndentedString(datastore)).append("\n"); + sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" frozenFlag: ").append(toIndentedString(frozenFlag)).append("\n"); + sb.append(" dbPort: ").append(toIndentedString(dbPort)).append("\n"); + sb.append(" payModel: ").append(toIndentedString(payModel)).append("\n"); + sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n"); + sb.append(" trafficIp: ").append(toIndentedString(trafficIp)).append("\n"); + sb.append(" trafficIpv6: ").append(toIndentedString(trafficIpv6)).append("\n"); + sb.append(" azCode: ").append(toIndentedString(azCode)).append("\n"); + sb.append(" azDescription: ").append(toIndentedString(azDescription)).append("\n"); + sb.append(" azType: ").append(toIndentedString(azType)).append("\n"); + sb.append(" regionCode: ").append(toIndentedString(regionCode)).append("\n"); + sb.append(" createAt: ").append(toIndentedString(createAt)).append("\n"); + sb.append(" updateAt: ").append(toIndentedString(updateAt)).append("\n"); + sb.append(" flavorId: ").append(toIndentedString(flavorId)).append("\n"); + sb.append(" flavorRef: ").append(toIndentedString(flavorRef)).append("\n"); + sb.append(" iassFlavorRef: ").append(toIndentedString(iassFlavorRef)).append("\n"); + sb.append(" maxConnections: ").append(toIndentedString(maxConnections)).append("\n"); + sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n"); + sb.append(" subnetId: ").append(toIndentedString(subnetId)).append("\n"); + sb.append(" needRestart: ").append(toIndentedString(needRestart)).append("\n"); + sb.append(" sgId: ").append(toIndentedString(sgId)).append("\n"); + sb.append(" paramGroup: ").append(toIndentedString(paramGroup)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/StarRocksInstanceInfoOpsWindow.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoOpsWindow.java new file mode 100644 index 0000000000..7d8a59e135 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoOpsWindow.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 StarRocksInstanceInfoOpsWindow { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "period") + + private String period; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "start_time") + + private String startTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "end_time") + + private String endTime; + + public StarRocksInstanceInfoOpsWindow withPeriod(String period) { + this.period = period; + return this; + } + + /** + * 时间窗周期。 + * @return period + */ + public String getPeriod() { + return period; + } + + public void setPeriod(String period) { + this.period = period; + } + + public StarRocksInstanceInfoOpsWindow withStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * 时间窗开始时间。 + * @return startTime + */ + public String getStartTime() { + return startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public StarRocksInstanceInfoOpsWindow withEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * 时间窗结束时间。 + * @return endTime + */ + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StarRocksInstanceInfoOpsWindow that = (StarRocksInstanceInfoOpsWindow) obj; + return Objects.equals(this.period, that.period) && Objects.equals(this.startTime, that.startTime) + && Objects.equals(this.endTime, that.endTime); + } + + @Override + public int hashCode() { + return Objects.hash(period, startTime, endTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StarRocksInstanceInfoOpsWindow {\n"); + sb.append(" period: ").append(toIndentedString(period)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/StarRocksInstanceInfoPortInfo.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoPortInfo.java new file mode 100644 index 0000000000..bfbc7c4dcf --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoPortInfo.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; + +/** + * 端口信息。 + */ +public class StarRocksInstanceInfoPortInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "mysql_port") + + private Integer mysqlPort; + + public StarRocksInstanceInfoPortInfo withMysqlPort(Integer mysqlPort) { + this.mysqlPort = mysqlPort; + return this; + } + + /** + * MySQL端口号。默认3306。 + * @return mysqlPort + */ + public Integer getMysqlPort() { + return mysqlPort; + } + + public void setMysqlPort(Integer mysqlPort) { + this.mysqlPort = mysqlPort; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StarRocksInstanceInfoPortInfo that = (StarRocksInstanceInfoPortInfo) obj; + return Objects.equals(this.mysqlPort, that.mysqlPort); + } + + @Override + public int hashCode() { + return Objects.hash(mysqlPort); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StarRocksInstanceInfoPortInfo {\n"); + sb.append(" mysqlPort: ").append(toIndentedString(mysqlPort)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/StarRocksInstanceInfoTagsInfo.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoTagsInfo.java new file mode 100644 index 0000000000..5bebfab56e --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoTagsInfo.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.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 实例标签。 + */ +public class StarRocksInstanceInfoTagsInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sys_tags") + + private List sysTags = null; + + public StarRocksInstanceInfoTagsInfo withTags(List tags) { + this.tags = tags; + return this; + } + + public StarRocksInstanceInfoTagsInfo addTagsItem(StarRocksInstanceInfoTagsInfoTags tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public StarRocksInstanceInfoTagsInfo withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 用户标签。 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public StarRocksInstanceInfoTagsInfo withSysTags(List sysTags) { + this.sysTags = sysTags; + return this; + } + + public StarRocksInstanceInfoTagsInfo addSysTagsItem(StarRocksInstanceInfoTagsInfoSysTags sysTagsItem) { + if (this.sysTags == null) { + this.sysTags = new ArrayList<>(); + } + this.sysTags.add(sysTagsItem); + return this; + } + + public StarRocksInstanceInfoTagsInfo withSysTags( + Consumer> sysTagsSetter) { + if (this.sysTags == null) { + this.sysTags = new ArrayList<>(); + } + sysTagsSetter.accept(this.sysTags); + return this; + } + + /** + * 系统标签。 + * @return sysTags + */ + public List getSysTags() { + return sysTags; + } + + public void setSysTags(List sysTags) { + this.sysTags = sysTags; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StarRocksInstanceInfoTagsInfo that = (StarRocksInstanceInfoTagsInfo) obj; + return Objects.equals(this.tags, that.tags) && Objects.equals(this.sysTags, that.sysTags); + } + + @Override + public int hashCode() { + return Objects.hash(tags, sysTags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StarRocksInstanceInfoTagsInfo {\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" sysTags: ").append(toIndentedString(sysTags)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoTagsInfoSysTags.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoTagsInfoSysTags.java new file mode 100644 index 0000000000..85035d032a --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoTagsInfoSysTags.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; + +/** + * StarRocksInstanceInfoTagsInfoSysTags + */ +public class StarRocksInstanceInfoTagsInfoSysTags { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key") + + private String key; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private String value; + + public StarRocksInstanceInfoTagsInfoSysTags withKey(String key) { + this.key = key; + return this; + } + + /** + * 标签键。最大长度36个unicode字符。key不能为空或者空字符串,不能为空格。 字符集:A-Z,a-z ,0-9,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF)。 + * @return key + */ + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public StarRocksInstanceInfoTagsInfoSysTags withValue(String value) { + this.value = value; + return this; + } + + /** + * 标签值。最大长度43个unicode字符。可以为空字符串。 字符集:A-Z,a-z ,0-9,‘.’,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF)。 + * @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; + } + StarRocksInstanceInfoTagsInfoSysTags that = (StarRocksInstanceInfoTagsInfoSysTags) obj; + return Objects.equals(this.key, that.key) && Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(key, value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StarRocksInstanceInfoTagsInfoSysTags {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoTagsInfoTags.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoTagsInfoTags.java new file mode 100644 index 0000000000..a6e6aafd02 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoTagsInfoTags.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; + +/** + * StarRocksInstanceInfoTagsInfoTags + */ +public class StarRocksInstanceInfoTagsInfoTags { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key") + + private String key; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private String value; + + public StarRocksInstanceInfoTagsInfoTags withKey(String key) { + this.key = key; + return this; + } + + /** + * 标签键。最大长度36个unicode字符。key不能为空或者空字符串,不能为空格。 字符集:A-Z,a-z ,0-9,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF)。 + * @return key + */ + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public StarRocksInstanceInfoTagsInfoTags withValue(String value) { + this.value = value; + return this; + } + + /** + * 标签值。最大长度43个unicode字符。可以为空字符串。 字符集:A-Z,a-z ,0-9,‘.’,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF)。 + * @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; + } + StarRocksInstanceInfoTagsInfoTags that = (StarRocksInstanceInfoTagsInfoTags) obj; + return Objects.equals(this.key, that.key) && Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(key, value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StarRocksInstanceInfoTagsInfoTags {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoVolume.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoVolume.java new file mode 100644 index 0000000000..ba1cd65e72 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/StarRocksInstanceInfoVolume.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 StarRocksInstanceInfoVolume { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "size") + + private String size; + + public StarRocksInstanceInfoVolume withType(String type) { + this.type = type; + return this; + } + + /** + * 实例节点存储类型。 + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public StarRocksInstanceInfoVolume withSize(String size) { + this.size = size; + return this; + } + + /** + * 实例节点存储大小。 + * @return size + */ + public String getSize() { + return size; + } + + public void setSize(String size) { + this.size = size; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StarRocksInstanceInfoVolume that = (StarRocksInstanceInfoVolume) obj; + return Objects.equals(this.type, that.type) && Objects.equals(this.size, that.size); + } + + @Override + public int hashCode() { + return Objects.hash(type, size); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StarRocksInstanceInfoVolume {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/UpdateStarRocksDatabaseUserPasswordRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpdateStarRocksDatabaseUserPasswordRequest.java new file mode 100644 index 0000000000..9d67443756 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpdateStarRocksDatabaseUserPasswordRequest.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 UpdateStarRocksDatabaseUserPasswordRequest { + + @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 StarRocksDatabaseUserPWinfo body; + + public UpdateStarRocksDatabaseUserPasswordRequest 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 UpdateStarRocksDatabaseUserPasswordRequest 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 UpdateStarRocksDatabaseUserPasswordRequest withBody(StarRocksDatabaseUserPWinfo body) { + this.body = body; + return this; + } + + public UpdateStarRocksDatabaseUserPasswordRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new StarRocksDatabaseUserPWinfo(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public StarRocksDatabaseUserPWinfo getBody() { + return body; + } + + public void setBody(StarRocksDatabaseUserPWinfo 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; + } + UpdateStarRocksDatabaseUserPasswordRequest that = (UpdateStarRocksDatabaseUserPasswordRequest) 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 UpdateStarRocksDatabaseUserPasswordRequest {\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/UpdateStarRocksDatabaseUserPasswordResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpdateStarRocksDatabaseUserPasswordResponse.java new file mode 100644 index 0000000000..ded563c461 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpdateStarRocksDatabaseUserPasswordResponse.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 UpdateStarRocksDatabaseUserPasswordResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private String result; + + public UpdateStarRocksDatabaseUserPasswordResponse withResult(String result) { + this.result = result; + return this; + } + + /** + * 请求结果。 + * @return result + */ + public String getResult() { + return result; + } + + public void setResult(String result) { + this.result = result; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateStarRocksDatabaseUserPasswordResponse that = (UpdateStarRocksDatabaseUserPasswordResponse) obj; + return Objects.equals(this.result, that.result); + } + + @Override + public int hashCode() { + return Objects.hash(result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateStarRocksDatabaseUserPasswordResponse {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpdateStarRocksDatabaseUserPermissionRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpdateStarRocksDatabaseUserPermissionRequest.java new file mode 100644 index 0000000000..1e3db99eb9 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpdateStarRocksDatabaseUserPermissionRequest.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 UpdateStarRocksDatabaseUserPermissionRequest { + + @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 StarRocksDatabaseUserPSinfo body; + + public UpdateStarRocksDatabaseUserPermissionRequest 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 UpdateStarRocksDatabaseUserPermissionRequest 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 UpdateStarRocksDatabaseUserPermissionRequest withBody(StarRocksDatabaseUserPSinfo body) { + this.body = body; + return this; + } + + public UpdateStarRocksDatabaseUserPermissionRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new StarRocksDatabaseUserPSinfo(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public StarRocksDatabaseUserPSinfo getBody() { + return body; + } + + public void setBody(StarRocksDatabaseUserPSinfo 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; + } + UpdateStarRocksDatabaseUserPermissionRequest that = (UpdateStarRocksDatabaseUserPermissionRequest) 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 UpdateStarRocksDatabaseUserPermissionRequest {\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/UpdateStarRocksDatabaseUserPermissionResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpdateStarRocksDatabaseUserPermissionResponse.java new file mode 100644 index 0000000000..165d293360 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpdateStarRocksDatabaseUserPermissionResponse.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 UpdateStarRocksDatabaseUserPermissionResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private String result; + + public UpdateStarRocksDatabaseUserPermissionResponse withResult(String result) { + this.result = result; + return this; + } + + /** + * 请求结果。 + * @return result + */ + public String getResult() { + return result; + } + + public void setResult(String result) { + this.result = result; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateStarRocksDatabaseUserPermissionResponse that = (UpdateStarRocksDatabaseUserPermissionResponse) obj; + return Objects.equals(this.result, that.result); + } + + @Override + public int hashCode() { + return Objects.hash(result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateStarRocksDatabaseUserPermissionResponse {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/pom.xml b/services/gaussdbfornosql/pom.xml index 6a9f51983d..fa4398ca8d 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-gaussdbfornosql - 3.1.95 + 3.1.96 Huawei Cloud SDK for GAUSSDBFORNOSQL 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/gaussdbforopengauss/pom.xml b/services/gaussdbforopengauss/pom.xml index 7cdd99dc1a..7fe27462a1 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-gaussdbforopengauss - 3.1.95 + 3.1.96 Huawei Cloud SDK for GAUSSDBFOROPENGAUSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussAsyncClient.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussAsyncClient.java index 02f75ed1cc..f844f6ed9c 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussAsyncClient.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussAsyncClient.java @@ -117,6 +117,8 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ResizeInstanceFlavorResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.RestartInstanceRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.RestartInstanceResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.RestoreInstanceRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.RestoreInstanceResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.RunInstanceActionRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.RunInstanceActionResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.SearchAutoEnlargePolicyRequest; @@ -1857,6 +1859,35 @@ public AsyncInvoker restartInst return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.restartInstance, hcClient); } + /** + * 备份恢复到当前实例 + * + * 备份恢复到当前实例 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RestoreInstanceRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture restoreInstanceAsync(RestoreInstanceRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforopenGaussMeta.restoreInstance); + } + + /** + * 备份恢复到当前实例 + * + * 备份恢复到当前实例 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RestoreInstanceRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker restoreInstanceAsyncInvoker( + RestoreInstanceRequest request) { + return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.restoreInstance, hcClient); + } + /** * CN横向扩容/DN分片扩容/磁盘扩容 * diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussClient.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussClient.java index f9cae88ac5..9a62ad9f61 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussClient.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussClient.java @@ -117,6 +117,8 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ResizeInstanceFlavorResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.RestartInstanceRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.RestartInstanceResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.RestoreInstanceRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.RestoreInstanceResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.RunInstanceActionRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.RunInstanceActionResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.SearchAutoEnlargePolicyRequest; @@ -1831,6 +1833,35 @@ public SyncInvoker restartInsta return new SyncInvoker<>(request, GaussDBforopenGaussMeta.restartInstance, hcClient); } + /** + * 备份恢复到当前实例 + * + * 备份恢复到当前实例 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RestoreInstanceRequest 请求对象 + * @return RestoreInstanceResponse + */ + public RestoreInstanceResponse restoreInstance(RestoreInstanceRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforopenGaussMeta.restoreInstance); + } + + /** + * 备份恢复到当前实例 + * + * 备份恢复到当前实例 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RestoreInstanceRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker restoreInstanceInvoker( + RestoreInstanceRequest request) { + return new SyncInvoker<>(request, GaussDBforopenGaussMeta.restoreInstance, hcClient); + } + /** * CN横向扩容/DN分片扩容/磁盘扩容 * diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussMeta.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussMeta.java index 9410a4b888..28e3fb1654 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussMeta.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussMeta.java @@ -141,6 +141,9 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ResizeInstanceFlavorResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.RestartInstanceRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.RestartInstanceResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.RestoreInstanceRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.RestoreInstanceRequestBody; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.RestoreInstanceResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.RunInstanceActionRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.RunInstanceActionResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.SearchAutoEnlargePolicyRequest; @@ -2307,6 +2310,34 @@ private static HttpRequestDef g return builder.build(); } + public static final HttpRequestDef restoreInstance = + genForRestoreInstance(); + + private static HttpRequestDef genForRestoreInstance() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, RestoreInstanceRequest.class, RestoreInstanceResponse.class) + .withName("RestoreInstance") + .withUri("/v3/{project_id}/instances/recovery") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(RestoreInstanceRequest::getXLanguage, RestoreInstanceRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(RestoreInstanceRequestBody.class), + f -> f.withMarshaller(RestoreInstanceRequest::getBody, RestoreInstanceRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef runInstanceAction = genForRunInstanceAction(); diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/OpenGaussInstanceRequestBody.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/OpenGaussInstanceRequestBody.java index 8f8e6b5df9..d9ee45c1a0 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/OpenGaussInstanceRequestBody.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/OpenGaussInstanceRequestBody.java @@ -196,6 +196,11 @@ public int hashCode() { private Boolean enableForceSwitch; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enable_single_float_ip") + + private Boolean enableSingleFloatIp; + public OpenGaussInstanceRequestBody withName(String name) { this.name = name; return this; @@ -615,6 +620,23 @@ public void setEnableForceSwitch(Boolean enableForceSwitch) { this.enableForceSwitch = enableForceSwitch; } + public OpenGaussInstanceRequestBody withEnableSingleFloatIp(Boolean enableSingleFloatIp) { + this.enableSingleFloatIp = enableSingleFloatIp; + return this; + } + + /** + * 单浮动IP策略,仅主备版支持。默认值是false,表示不开启单浮动IP策略。 取值范围: true:开启单浮动IP策略,实例将只有一个浮动IP绑定主节点,如果发生主备倒换,浮动IP不会发生变化。 false:不开启单浮动IP策略,每个节点都会绑定一个浮动IP,如果发生主备倒换,浮动IP会发生变化。 说明: 仅支持3.206及以上版本的主备版实例。 + * @return enableSingleFloatIp + */ + public Boolean getEnableSingleFloatIp() { + return enableSingleFloatIp; + } + + public void setEnableSingleFloatIp(Boolean enableSingleFloatIp) { + this.enableSingleFloatIp = enableSingleFloatIp; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -638,7 +660,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.shardingNum, that.shardingNum) && Objects.equals(this.coordinatorNum, that.coordinatorNum) && Objects.equals(this.replicaNum, that.replicaNum) - && Objects.equals(this.enableForceSwitch, that.enableForceSwitch); + && Objects.equals(this.enableForceSwitch, that.enableForceSwitch) + && Objects.equals(this.enableSingleFloatIp, that.enableSingleFloatIp); } @Override @@ -664,7 +687,8 @@ public int hashCode() { shardingNum, coordinatorNum, replicaNum, - enableForceSwitch); + enableForceSwitch, + enableSingleFloatIp); } @Override @@ -693,6 +717,7 @@ public String toString() { sb.append(" coordinatorNum: ").append(toIndentedString(coordinatorNum)).append("\n"); sb.append(" replicaNum: ").append(toIndentedString(replicaNum)).append("\n"); sb.append(" enableForceSwitch: ").append(toIndentedString(enableForceSwitch)).append("\n"); + sb.append(" enableSingleFloatIp: ").append(toIndentedString(enableSingleFloatIp)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RecoveryBackupSource.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RecoveryBackupSource.java new file mode 100644 index 0000000000..d77fd56d9f --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RecoveryBackupSource.java @@ -0,0 +1,289 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.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; + +/** + * RecoveryBackupSource + */ +public class RecoveryBackupSource { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "backup_id") + + private String backupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "restore_time") + + private String restoreTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "table_list") + + private List tableList = null; + + /** + * 备份级别取值, 默认值:INSTANCE + */ + public static final class SchemaTypeEnum { + + /** + * Enum INSTANCE_ for value: "INSTANCE 实例级备份" + */ + public static final SchemaTypeEnum INSTANCE_ = new SchemaTypeEnum("INSTANCE 实例级备份"); + + /** + * Enum DATABASE_ for value: "DATABASE 库级备份" + */ + public static final SchemaTypeEnum DATABASE_ = new SchemaTypeEnum("DATABASE 库级备份"); + + /** + * Enum DATABASE_TABLE_ for value: "DATABASE_TABLE 表级备份" + */ + public static final SchemaTypeEnum DATABASE_TABLE_ = new SchemaTypeEnum("DATABASE_TABLE 表级备份"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("INSTANCE 实例级备份", INSTANCE_); + map.put("DATABASE 库级备份", DATABASE_); + map.put("DATABASE_TABLE 表级备份", DATABASE_TABLE_); + return Collections.unmodifiableMap(map); + } + + private String value; + + SchemaTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static SchemaTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new SchemaTypeEnum(value)); + } + + public static SchemaTypeEnum 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 SchemaTypeEnum) { + return this.value.equals(((SchemaTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schema_type") + + private SchemaTypeEnum schemaType; + + public RecoveryBackupSource withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public RecoveryBackupSource withType(String type) { + this.type = type; + return this; + } + + /** + * 恢复备份类型:backup,timestamp,different + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public RecoveryBackupSource withBackupId(String backupId) { + this.backupId = backupId; + return this; + } + + /** + * 用于恢复的备份ID。 + * @return backupId + */ + public String getBackupId() { + return backupId; + } + + public void setBackupId(String backupId) { + this.backupId = backupId; + } + + public RecoveryBackupSource withRestoreTime(String restoreTime) { + this.restoreTime = restoreTime; + return this; + } + + /** + * UTC时间,时间戳 + * @return restoreTime + */ + public String getRestoreTime() { + return restoreTime; + } + + public void setRestoreTime(String restoreTime) { + this.restoreTime = restoreTime; + } + + public RecoveryBackupSource withTableList(List tableList) { + this.tableList = tableList; + return this; + } + + public RecoveryBackupSource addTableListItem(RestoreTableListDetail tableListItem) { + if (this.tableList == null) { + this.tableList = new ArrayList<>(); + } + this.tableList.add(tableListItem); + return this; + } + + public RecoveryBackupSource withTableList(Consumer> tableListSetter) { + if (this.tableList == null) { + this.tableList = new ArrayList<>(); + } + tableListSetter.accept(this.tableList); + return this; + } + + /** + * 表基础信息。 + * @return tableList + */ + public List getTableList() { + return tableList; + } + + public void setTableList(List tableList) { + this.tableList = tableList; + } + + public RecoveryBackupSource withSchemaType(SchemaTypeEnum schemaType) { + this.schemaType = schemaType; + return this; + } + + /** + * 备份级别取值, 默认值:INSTANCE + * @return schemaType + */ + public SchemaTypeEnum getSchemaType() { + return schemaType; + } + + public void setSchemaType(SchemaTypeEnum schemaType) { + this.schemaType = schemaType; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RecoveryBackupSource that = (RecoveryBackupSource) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.type, that.type) + && Objects.equals(this.backupId, that.backupId) && Objects.equals(this.restoreTime, that.restoreTime) + && Objects.equals(this.tableList, that.tableList) && Objects.equals(this.schemaType, that.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, type, backupId, restoreTime, tableList, schemaType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RecoveryBackupSource {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" backupId: ").append(toIndentedString(backupId)).append("\n"); + sb.append(" restoreTime: ").append(toIndentedString(restoreTime)).append("\n"); + sb.append(" tableList: ").append(toIndentedString(tableList)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RecoveryBackupTarget.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RecoveryBackupTarget.java new file mode 100644 index 0000000000..12196efe99 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RecoveryBackupTarget.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * RecoveryBackupTarget + */ +public class RecoveryBackupTarget { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + public RecoveryBackupTarget withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RecoveryBackupTarget that = (RecoveryBackupTarget) obj; + return Objects.equals(this.instanceId, that.instanceId); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RecoveryBackupTarget {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RestoreInstanceRequest.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RestoreInstanceRequest.java new file mode 100644 index 0000000000..ee10505546 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RestoreInstanceRequest.java @@ -0,0 +1,107 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.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 RestoreInstanceRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private RestoreInstanceRequestBody body; + + public RestoreInstanceRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 语言 Default:en-us;Enum:zh-cn,en-us; + * @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 RestoreInstanceRequest withBody(RestoreInstanceRequestBody body) { + this.body = body; + return this; + } + + public RestoreInstanceRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new RestoreInstanceRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public RestoreInstanceRequestBody getBody() { + return body; + } + + public void setBody(RestoreInstanceRequestBody 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; + } + RestoreInstanceRequest that = (RestoreInstanceRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RestoreInstanceRequest {\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/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RestoreInstanceRequestBody.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RestoreInstanceRequestBody.java new file mode 100644 index 0000000000..b72f79bfdb --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RestoreInstanceRequestBody.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * RestoreInstanceRequestBody + */ +public class RestoreInstanceRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source") + + private RecoveryBackupSource source; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target") + + private RecoveryBackupTarget target; + + public RestoreInstanceRequestBody withSource(RecoveryBackupSource source) { + this.source = source; + return this; + } + + public RestoreInstanceRequestBody withSource(Consumer sourceSetter) { + if (this.source == null) { + this.source = new RecoveryBackupSource(); + sourceSetter.accept(this.source); + } + + return this; + } + + /** + * Get source + * @return source + */ + public RecoveryBackupSource getSource() { + return source; + } + + public void setSource(RecoveryBackupSource source) { + this.source = source; + } + + public RestoreInstanceRequestBody withTarget(RecoveryBackupTarget target) { + this.target = target; + return this; + } + + public RestoreInstanceRequestBody withTarget(Consumer targetSetter) { + if (this.target == null) { + this.target = new RecoveryBackupTarget(); + targetSetter.accept(this.target); + } + + return this; + } + + /** + * Get target + * @return target + */ + public RecoveryBackupTarget getTarget() { + return target; + } + + public void setTarget(RecoveryBackupTarget target) { + this.target = target; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RestoreInstanceRequestBody that = (RestoreInstanceRequestBody) obj; + return Objects.equals(this.source, that.source) && Objects.equals(this.target, that.target); + } + + @Override + public int hashCode() { + return Objects.hash(source, target); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RestoreInstanceRequestBody {\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" target: ").append(toIndentedString(target)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/UnEnrollAccountResponse.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RestoreInstanceResponse.java similarity index 55% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/UnEnrollAccountResponse.java rename to services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RestoreInstanceResponse.java index f0a8c89fac..8217ad8a43 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/UnEnrollAccountResponse.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RestoreInstanceResponse.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.rgc.v1.model; +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -9,28 +9,28 @@ /** * Response Object */ -public class UnEnrollAccountResponse extends SdkResponse { +public class RestoreInstanceResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "operation_id") + @JsonProperty(value = "job_id") - private String operationId; + private String jobId; - public UnEnrollAccountResponse withOperationId(String operationId) { - this.operationId = operationId; + public RestoreInstanceResponse withJobId(String jobId) { + this.jobId = jobId; return this; } /** - * 创建账号、纳管账号、纳管注册OU的操作ID。 - * @return operationId + * 恢复当前实例的任务id。 + * @return jobId */ - public String getOperationId() { - return operationId; + public String getJobId() { + return jobId; } - public void setOperationId(String operationId) { - this.operationId = operationId; + public void setJobId(String jobId) { + this.jobId = jobId; } @Override @@ -41,20 +41,20 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - UnEnrollAccountResponse that = (UnEnrollAccountResponse) obj; - return Objects.equals(this.operationId, that.operationId); + RestoreInstanceResponse that = (RestoreInstanceResponse) obj; + return Objects.equals(this.jobId, that.jobId); } @Override public int hashCode() { - return Objects.hash(operationId); + return Objects.hash(jobId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UnEnrollAccountResponse {\n"); - sb.append(" operationId: ").append(toIndentedString(operationId)).append("\n"); + sb.append("class RestoreInstanceResponse {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RestoreTableListDetail.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RestoreTableListDetail.java new file mode 100644 index 0000000000..0b18cbf93c --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RestoreTableListDetail.java @@ -0,0 +1,190 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * RestoreTableListDetail + */ +public class RestoreTableListDetail { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "db_name") + + private String dbName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schema_name") + + private String schemaName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "table_name") + + private String tableName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "new_db_name") + + private String newDbName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "new_schema_name") + + private String newSchemaName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "new_table_name") + + private String newTableName; + + public RestoreTableListDetail withDbName(String dbName) { + this.dbName = dbName; + return this; + } + + /** + * 库名参数必传 + * @return dbName + */ + public String getDbName() { + return dbName; + } + + public void setDbName(String dbName) { + this.dbName = dbName; + } + + public RestoreTableListDetail withSchemaName(String schemaName) { + this.schemaName = schemaName; + return this; + } + + /** + * schema名 备份恢复到新实例和当前实例:使用DATABASE_TABLE级别恢复参数必传, 使用DATABASE类型恢复参数无效。 + * @return schemaName + */ + public String getSchemaName() { + return schemaName; + } + + public void setSchemaName(String schemaName) { + this.schemaName = schemaName; + } + + public RestoreTableListDetail withTableName(String tableName) { + this.tableName = tableName; + return this; + } + + /** + * 表名 备份恢复到新实例和当前实例:使用DATABASE_TABLE级别恢复参数必传, 使用DATABASE类型恢复参数无效。 + * @return tableName + */ + public String getTableName() { + return tableName; + } + + public void setTableName(String tableName) { + this.tableName = tableName; + } + + public RestoreTableListDetail withNewDbName(String newDbName) { + this.newDbName = newDbName; + return this; + } + + /** + * 新库名 备份恢复到新实例和当前实例: 使用DATABASE级别恢复:需注意目标实例不存在当前一样的库名,否则无法下发。 使用DATABASE_TABLE级别恢复,不填时与源库名一致。 + * @return newDbName + */ + public String getNewDbName() { + return newDbName; + } + + public void setNewDbName(String newDbName) { + this.newDbName = newDbName; + } + + public RestoreTableListDetail withNewSchemaName(String newSchemaName) { + this.newSchemaName = newSchemaName; + return this; + } + + /** + * 新schema_name 备份恢复到新实例和当前实例: 使用DATABASE类型恢复参数无效。 使用DATABASE_TABLE级别恢复,不填时与源schema名一致。 + * @return newSchemaName + */ + public String getNewSchemaName() { + return newSchemaName; + } + + public void setNewSchemaName(String newSchemaName) { + this.newSchemaName = newSchemaName; + } + + public RestoreTableListDetail withNewTableName(String newTableName) { + this.newTableName = newTableName; + return this; + } + + /** + * 新表名 备份恢复到新实例和当前实例: 使用DATABASE类型恢复参数无效。 使用DATABASE_TABLE级别恢复,需注意目标实例里不存在当前的表名,否则无法下发。 + * @return newTableName + */ + public String getNewTableName() { + return newTableName; + } + + public void setNewTableName(String newTableName) { + this.newTableName = newTableName; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RestoreTableListDetail that = (RestoreTableListDetail) obj; + return Objects.equals(this.dbName, that.dbName) && Objects.equals(this.schemaName, that.schemaName) + && Objects.equals(this.tableName, that.tableName) && Objects.equals(this.newDbName, that.newDbName) + && Objects.equals(this.newSchemaName, that.newSchemaName) + && Objects.equals(this.newTableName, that.newTableName); + } + + @Override + public int hashCode() { + return Objects.hash(dbName, schemaName, tableName, newDbName, newSchemaName, newTableName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RestoreTableListDetail {\n"); + sb.append(" dbName: ").append(toIndentedString(dbName)).append("\n"); + sb.append(" schemaName: ").append(toIndentedString(schemaName)).append("\n"); + sb.append(" tableName: ").append(toIndentedString(tableName)).append("\n"); + sb.append(" newDbName: ").append(toIndentedString(newDbName)).append("\n"); + sb.append(" newSchemaName: ").append(toIndentedString(newSchemaName)).append("\n"); + sb.append(" newTableName: ").append(toIndentedString(newTableName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/geip/pom.xml b/services/geip/pom.xml index 993c2d6582..a66810e9d2 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-geip - 3.1.95 + 3.1.96 Huawei Cloud SDK for GEIP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/ges/pom.xml b/services/ges/pom.xml index 3a0333fad8..09c7fb867c 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-ges - 3.1.95 + 3.1.96 Huawei Cloud SDK for GES 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/GesAsyncClient.java b/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/GesAsyncClient.java index a809444410..a28b2dc682 100644 --- a/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/GesAsyncClient.java +++ b/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/GesAsyncClient.java @@ -346,8 +346,8 @@ public AsyncInvoker detachEip2AsyncInvoke * * 扩副本能力允许动态扩容多个从节点,扩容的从节点可以处理读请求,从而提高读请求性能。 * > 1.一万边和百亿边规格的图暂不支持扩副本。 - * 2.进行扩副本操作后,不支持扩容图操作。 - * 3.如果要对图进行扩容和扩副本两个操作,需要您先进行扩容图操作,再进行扩副本操作。 + * 2.进行扩副本操作后,不支持变更图规格操作。 + * 3.如果要对图进行扩容和扩副本两个操作,需要您先进行变更图规格操作,再进行扩副本操作。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -363,8 +363,8 @@ public CompletableFuture expandGraph2Async(ExpandGraph2Req * * 扩副本能力允许动态扩容多个从节点,扩容的从节点可以处理读请求,从而提高读请求性能。 * > 1.一万边和百亿边规格的图暂不支持扩副本。 - * 2.进行扩副本操作后,不支持扩容图操作。 - * 3.如果要对图进行扩容和扩副本两个操作,需要您先进行扩容图操作,再进行扩副本操作。 + * 2.进行扩副本操作后,不支持变更图规格操作。 + * 3.如果要对图进行扩容和扩副本两个操作,需要您先进行变更图规格操作,再进行扩副本操作。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -666,10 +666,10 @@ public AsyncInvoker listQuotas2AsyncInv } /** - * 扩容图 + * 变更图规格 * - * 扩容图规格。 - * > 扩容图以后所有索引(复合索引和全文索引)都需要重新创建。 + * 变更图规格规格。 + * > 变更图规格以后所有索引(复合索引和全文索引)都需要重新创建。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -681,10 +681,10 @@ public CompletableFuture resizeGraph2Async(ResizeGraph2Req } /** - * 扩容图 + * 变更图规格 * - * 扩容图规格。 - * > 扩容图以后所有索引(复合索引和全文索引)都需要重新创建。 + * 变更图规格规格。 + * > 变更图规格以后所有索引(复合索引和全文索引)都需要重新创建。 * * Please refer to HUAWEI cloud API Explorer for details. * diff --git a/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/GesClient.java b/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/GesClient.java index b7add4f40c..021657efad 100644 --- a/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/GesClient.java +++ b/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/GesClient.java @@ -340,8 +340,8 @@ public SyncInvoker detachEip2Invoker(Deta * * 扩副本能力允许动态扩容多个从节点,扩容的从节点可以处理读请求,从而提高读请求性能。 * > 1.一万边和百亿边规格的图暂不支持扩副本。 - * 2.进行扩副本操作后,不支持扩容图操作。 - * 3.如果要对图进行扩容和扩副本两个操作,需要您先进行扩容图操作,再进行扩副本操作。 + * 2.进行扩副本操作后,不支持变更图规格操作。 + * 3.如果要对图进行扩容和扩副本两个操作,需要您先进行变更图规格操作,再进行扩副本操作。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -357,8 +357,8 @@ public ExpandGraph2Response expandGraph2(ExpandGraph2Request request) { * * 扩副本能力允许动态扩容多个从节点,扩容的从节点可以处理读请求,从而提高读请求性能。 * > 1.一万边和百亿边规格的图暂不支持扩副本。 - * 2.进行扩副本操作后,不支持扩容图操作。 - * 3.如果要对图进行扩容和扩副本两个操作,需要您先进行扩容图操作,再进行扩副本操作。 + * 2.进行扩副本操作后,不支持变更图规格操作。 + * 3.如果要对图进行扩容和扩副本两个操作,需要您先进行变更图规格操作,再进行扩副本操作。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -654,10 +654,10 @@ public SyncInvoker listQuotas2Invoker(L } /** - * 扩容图 + * 变更图规格 * - * 扩容图规格。 - * > 扩容图以后所有索引(复合索引和全文索引)都需要重新创建。 + * 变更图规格规格。 + * > 变更图规格以后所有索引(复合索引和全文索引)都需要重新创建。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -669,10 +669,10 @@ public ResizeGraph2Response resizeGraph2(ResizeGraph2Request request) { } /** - * 扩容图 + * 变更图规格 * - * 扩容图规格。 - * > 扩容图以后所有索引(复合索引和全文索引)都需要重新创建。 + * 变更图规格规格。 + * > 变更图规格以后所有索引(复合索引和全文索引)都需要重新创建。 * * Please refer to HUAWEI cloud API Explorer for details. * diff --git a/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/model/ResizeGraph2Response.java b/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/model/ResizeGraph2Response.java index 7097ff286d..25aa0e4177 100644 --- a/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/model/ResizeGraph2Response.java +++ b/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/model/ResizeGraph2Response.java @@ -22,7 +22,7 @@ public ResizeGraph2Response withJobId(String jobId) { } /** - * 扩容图任务ID。请求失败时字段为空。 + * 变更图规格任务ID。请求失败时字段为空。 * @return jobId */ public String getJobId() { diff --git a/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/model/ResizeGraphReq.java b/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/model/ResizeGraphReq.java index df1053337f..98c86e499a 100644 --- a/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/model/ResizeGraphReq.java +++ b/services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/model/ResizeGraphReq.java @@ -7,7 +7,7 @@ import java.util.function.Consumer; /** - * 扩容图请求体 + * 变更图规格请求体 */ public class ResizeGraphReq { diff --git a/services/gsl/pom.xml b/services/gsl/pom.xml index d57ae639df..92a35e4aa9 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-gsl - 3.1.95 + 3.1.96 Huawei Cloud SDK for GSL 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/hilens/pom.xml b/services/hilens/pom.xml index 10e68cb2d9..c8dc850f1c 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-hilens - 3.1.95 + 3.1.96 Huawei Cloud SDK for HILENS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/hss/pom.xml b/services/hss/pom.xml index c99a70f829..4906a5c29b 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-hss - 3.1.95 + 3.1.96 Huawei Cloud SDK for HSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/iam/pom.xml b/services/iam/pom.xml index d715d4f3d3..69aa15f836 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-iam - 3.1.95 + 3.1.96 Huawei Cloud SDK for IAM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/iam/src/main/java/com/huaweicloud/sdk/iam/v3/model/ServiceStatement.java b/services/iam/src/main/java/com/huaweicloud/sdk/iam/v3/model/ServiceStatement.java index 1aaae2f9e3..3d1466ceaa 100644 --- a/services/iam/src/main/java/com/huaweicloud/sdk/iam/v3/model/ServiceStatement.java +++ b/services/iam/src/main/java/com/huaweicloud/sdk/iam/v3/model/ServiceStatement.java @@ -106,7 +106,7 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "Resource") - private List resource = null; + private Object resource; public ServiceStatement withAction(List action) { this.action = action; @@ -191,36 +191,20 @@ public void setCondition(Map>> condition) { this.condition = condition; } - public ServiceStatement withResource(List resource) { + public ServiceStatement withResource(Object resource) { this.resource = resource; return this; } - public ServiceStatement addResourceItem(String resourceItem) { - if (this.resource == null) { - this.resource = new ArrayList<>(); - } - this.resource.add(resourceItem); - return this; - } - - public ServiceStatement withResource(Consumer> resourceSetter) { - if (this.resource == null) { - this.resource = new ArrayList<>(); - } - resourceSetter.accept(this.resource); - return this; - } - /** * 资源。规则如下: > - 可填 * 的五段式:::::,例:\"obs:*:*:bucket:*\"。 > - region字段为*或用户可访问的region。service必须存在且resource属于对应service。 * @return resource */ - public List getResource() { + public Object getResource() { return resource; } - public void setResource(List resource) { + public void setResource(Object resource) { this.resource = resource; } diff --git a/services/iamaccessanalyzer/pom.xml b/services/iamaccessanalyzer/pom.xml index f55e95ea3f..64be17a2de 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-iamaccessanalyzer - 3.1.95 + 3.1.96 Huawei Cloud SDK for IAMACCESSANALYZER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/identitycenter/pom.xml b/services/identitycenter/pom.xml index baf6c11f6f..e1e633cb63 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-identitycenter - 3.1.95 + 3.1.96 Huawei Cloud SDK for IDENTITYCENTER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/identitycenterstore/pom.xml b/services/identitycenterstore/pom.xml index 7ba97202d3..3b87c1ac20 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-identitycenterstore - 3.1.95 + 3.1.96 Huawei Cloud SDK for IDENTITYCENTERSTORE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/idme/pom.xml b/services/idme/pom.xml index c0e2b0cf2f..691ae7335d 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-idme - 3.1.95 + 3.1.96 Huawei Cloud SDK for IDME 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/idmeclassicapi/pom.xml b/services/idmeclassicapi/pom.xml index 24d3a08ea3..be2e49f816 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-idmeclassicapi - 3.1.95 + 3.1.96 Huawei Cloud SDK for IDMECLASSICAPI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/iec/pom.xml b/services/iec/pom.xml index dd77304112..f9d565d329 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-iec - 3.1.95 + 3.1.96 Huawei Cloud SDK for IEC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/ief/pom.xml b/services/ief/pom.xml index cb2c9ab96a..073ff5425f 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-ief - 3.1.95 + 3.1.96 Huawei Cloud SDK for IEF 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/image/pom.xml b/services/image/pom.xml index 08f13ca81c..dbb4a888e6 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-image - 3.1.95 + 3.1.96 Huawei Cloud SDK for IMAGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/imagesearch/pom.xml b/services/imagesearch/pom.xml index 1244c88ad3..69ac1adef4 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-imagesearch - 3.1.95 + 3.1.96 Huawei Cloud SDK for IMAGESEARCH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/ims/pom.xml b/services/ims/pom.xml index 53929702a7..92f1eef3a0 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-ims - 3.1.95 + 3.1.96 Huawei Cloud SDK for IMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/iotanalytics/pom.xml b/services/iotanalytics/pom.xml index 247d2536ad..24f8df125f 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-iotanalytics - 3.1.95 + 3.1.96 Huawei Cloud SDK for IOTANALYTICS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/iotda/pom.xml b/services/iotda/pom.xml index 2ae8d43b7d..51bdc391f3 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-iotda - 3.1.95 + 3.1.96 Huawei Cloud SDK for IOTDA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 junit diff --git a/services/iotedge/pom.xml b/services/iotedge/pom.xml index 5bf3532366..e7b270d231 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-iotedge - 3.1.95 + 3.1.96 Huawei Cloud SDK for IOTEDGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeAsyncClient.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeAsyncClient.java index 95cf0d93d8..0ec314ffe8 100644 --- a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeAsyncClient.java +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeAsyncClient.java @@ -99,6 +99,8 @@ import com.huaweicloud.sdk.iotedge.v2.model.ListNasResponse; import com.huaweicloud.sdk.iotedge.v2.model.ListRoutesRequest; import com.huaweicloud.sdk.iotedge.v2.model.ListRoutesResponse; +import com.huaweicloud.sdk.iotedge.v2.model.SetDeviceControlDefaultValuesRequest; +import com.huaweicloud.sdk.iotedge.v2.model.SetDeviceControlDefaultValuesResponse; import com.huaweicloud.sdk.iotedge.v2.model.ShowAppConfigsTemplateRequest; import com.huaweicloud.sdk.iotedge.v2.model.ShowAppConfigsTemplateResponse; import com.huaweicloud.sdk.iotedge.v2.model.ShowDcDsRequest; @@ -376,6 +378,36 @@ public AsyncInvoker(request, IoTEdgeMeta.executeDeviceControlsSet, hcClient); } + /** + * 设备控制默认值 + * + * 设备控制默认值 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SetDeviceControlDefaultValuesRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture setDeviceControlDefaultValuesAsync( + SetDeviceControlDefaultValuesRequest request) { + return hcClient.asyncInvokeHttp(request, IoTEdgeMeta.setDeviceControlDefaultValues); + } + + /** + * 设备控制默认值 + * + * 设备控制默认值 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SetDeviceControlDefaultValuesRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker setDeviceControlDefaultValuesAsyncInvoker( + SetDeviceControlDefaultValuesRequest request) { + return new AsyncInvoker<>(request, IoTEdgeMeta.setDeviceControlDefaultValues, hcClient); + } + /** * 添加设备 * diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeClient.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeClient.java index f6d3829ad1..3666eb5744 100644 --- a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeClient.java +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeClient.java @@ -99,6 +99,8 @@ import com.huaweicloud.sdk.iotedge.v2.model.ListNasResponse; import com.huaweicloud.sdk.iotedge.v2.model.ListRoutesRequest; import com.huaweicloud.sdk.iotedge.v2.model.ListRoutesResponse; +import com.huaweicloud.sdk.iotedge.v2.model.SetDeviceControlDefaultValuesRequest; +import com.huaweicloud.sdk.iotedge.v2.model.SetDeviceControlDefaultValuesResponse; import com.huaweicloud.sdk.iotedge.v2.model.ShowAppConfigsTemplateRequest; import com.huaweicloud.sdk.iotedge.v2.model.ShowAppConfigsTemplateResponse; import com.huaweicloud.sdk.iotedge.v2.model.ShowDcDsRequest; @@ -371,6 +373,36 @@ public SyncInvoker(request, IoTEdgeMeta.executeDeviceControlsSet, hcClient); } + /** + * 设备控制默认值 + * + * 设备控制默认值 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SetDeviceControlDefaultValuesRequest 请求对象 + * @return SetDeviceControlDefaultValuesResponse + */ + public SetDeviceControlDefaultValuesResponse setDeviceControlDefaultValues( + SetDeviceControlDefaultValuesRequest request) { + return hcClient.syncInvokeHttp(request, IoTEdgeMeta.setDeviceControlDefaultValues); + } + + /** + * 设备控制默认值 + * + * 设备控制默认值 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SetDeviceControlDefaultValuesRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker setDeviceControlDefaultValuesInvoker( + SetDeviceControlDefaultValuesRequest request) { + return new SyncInvoker<>(request, IoTEdgeMeta.setDeviceControlDefaultValues, hcClient); + } + /** * 添加设备 * diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeMeta.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeMeta.java index a68b2cb397..f585a22297 100644 --- a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeMeta.java +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeMeta.java @@ -96,6 +96,7 @@ import com.huaweicloud.sdk.iotedge.v2.model.DeleteOtTemplateResponse; import com.huaweicloud.sdk.iotedge.v2.model.DeleteScheduleRequest; import com.huaweicloud.sdk.iotedge.v2.model.DeleteScheduleResponse; +import com.huaweicloud.sdk.iotedge.v2.model.DeviceControlDefaultValuesReqDTO; import com.huaweicloud.sdk.iotedge.v2.model.DeviceControlReleaseReqDTO; import com.huaweicloud.sdk.iotedge.v2.model.DeviceControlSetReqDTO; import com.huaweicloud.sdk.iotedge.v2.model.EdgeNodeCreation; @@ -120,6 +121,8 @@ import com.huaweicloud.sdk.iotedge.v2.model.ListNasResponse; import com.huaweicloud.sdk.iotedge.v2.model.ListRoutesRequest; import com.huaweicloud.sdk.iotedge.v2.model.ListRoutesResponse; +import com.huaweicloud.sdk.iotedge.v2.model.SetDeviceControlDefaultValuesRequest; +import com.huaweicloud.sdk.iotedge.v2.model.SetDeviceControlDefaultValuesResponse; import com.huaweicloud.sdk.iotedge.v2.model.ShowAppConfigsTemplateRequest; import com.huaweicloud.sdk.iotedge.v2.model.ShowAppConfigsTemplateResponse; import com.huaweicloud.sdk.iotedge.v2.model.ShowDcDsRequest; @@ -439,6 +442,45 @@ private static HttpRequestDef setDeviceControlDefaultValues = + genForSetDeviceControlDefaultValues(); + + private static HttpRequestDef genForSetDeviceControlDefaultValues() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + SetDeviceControlDefaultValuesRequest.class, + SetDeviceControlDefaultValuesResponse.class) + .withName("SetDeviceControlDefaultValues") + .withUri("/v2/{project_id}/edge-nodes/{edge_node_id}/devices/controls/default-values") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("edge_node_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(SetDeviceControlDefaultValuesRequest::getEdgeNodeId, + SetDeviceControlDefaultValuesRequest::setEdgeNodeId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(DeviceControlDefaultValuesReqDTO.class), + f -> f.withMarshaller(SetDeviceControlDefaultValuesRequest::getBody, + SetDeviceControlDefaultValuesRequest::setBody)); + + // response + builder.withResponseField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(SetDeviceControlDefaultValuesResponse::getBody, + SetDeviceControlDefaultValuesResponse::setBody)); + + return builder.build(); + } + public static final HttpRequestDef addDevice = genForAddDevice(); private static HttpRequestDef genForAddDevice() { diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/DeviceControlDefaultValuesReqDTO.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/DeviceControlDefaultValuesReqDTO.java new file mode 100644 index 0000000000..6128942500 --- /dev/null +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/DeviceControlDefaultValuesReqDTO.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.iotedge.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 设备控制默认值请求结构体 + */ +public class DeviceControlDefaultValuesReqDTO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "devices") + + private List devices = null; + + public DeviceControlDefaultValuesReqDTO withDevices(List devices) { + this.devices = devices; + return this; + } + + public DeviceControlDefaultValuesReqDTO addDevicesItem(DeviceDefaultValues devicesItem) { + if (this.devices == null) { + this.devices = new ArrayList<>(); + } + this.devices.add(devicesItem); + return this; + } + + public DeviceControlDefaultValuesReqDTO withDevices(Consumer> devicesSetter) { + if (this.devices == null) { + this.devices = new ArrayList<>(); + } + devicesSetter.accept(this.devices); + return this; + } + + /** + * 设备默认值数组 + * @return devices + */ + public List getDevices() { + return devices; + } + + public void setDevices(List devices) { + this.devices = devices; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeviceControlDefaultValuesReqDTO that = (DeviceControlDefaultValuesReqDTO) obj; + return Objects.equals(this.devices, that.devices); + } + + @Override + public int hashCode() { + return Objects.hash(devices); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceControlDefaultValuesReqDTO {\n"); + sb.append(" devices: ").append(toIndentedString(devices)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/DeviceDefaultValues.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/DeviceDefaultValues.java new file mode 100644 index 0000000000..4213dd2bfd --- /dev/null +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/DeviceDefaultValues.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.iotedge.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 设备属性默认值 + */ +public class DeviceDefaultValues { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "device_id") + + private String deviceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_id") + + private String serviceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "properties") + + private Object properties; + + public DeviceDefaultValues withDeviceId(String deviceId) { + this.deviceId = deviceId; + return this; + } + + /** + * 设备ID + * @return deviceId + */ + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public DeviceDefaultValues withServiceId(String serviceId) { + this.serviceId = serviceId; + return this; + } + + /** + * 服务id,可选 + * @return serviceId + */ + public String getServiceId() { + return serviceId; + } + + public void setServiceId(String serviceId) { + this.serviceId = serviceId; + } + + public DeviceDefaultValues withProperties(Object properties) { + this.properties = properties; + return this; + } + + /** + * 属性key和value的map,用于设置属性的值 + * @return properties + */ + public Object getProperties() { + return properties; + } + + public void setProperties(Object properties) { + this.properties = properties; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeviceDefaultValues that = (DeviceDefaultValues) obj; + return Objects.equals(this.deviceId, that.deviceId) && Objects.equals(this.serviceId, that.serviceId) + && Objects.equals(this.properties, that.properties); + } + + @Override + public int hashCode() { + return Objects.hash(deviceId, serviceId, properties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceDefaultValues {\n"); + sb.append(" deviceId: ").append(toIndentedString(deviceId)).append("\n"); + sb.append(" serviceId: ").append(toIndentedString(serviceId)).append("\n"); + sb.append(" properties: ").append(toIndentedString(properties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/SetDeviceControlDefaultValuesRequest.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/SetDeviceControlDefaultValuesRequest.java new file mode 100644 index 0000000000..fd937b7afc --- /dev/null +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/SetDeviceControlDefaultValuesRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.iotedge.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class SetDeviceControlDefaultValuesRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "edge_node_id") + + private String edgeNodeId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private DeviceControlDefaultValuesReqDTO body; + + public SetDeviceControlDefaultValuesRequest withEdgeNodeId(String edgeNodeId) { + this.edgeNodeId = edgeNodeId; + return this; + } + + /** + * 边缘节点ID + * @return edgeNodeId + */ + public String getEdgeNodeId() { + return edgeNodeId; + } + + public void setEdgeNodeId(String edgeNodeId) { + this.edgeNodeId = edgeNodeId; + } + + public SetDeviceControlDefaultValuesRequest withBody(DeviceControlDefaultValuesReqDTO body) { + this.body = body; + return this; + } + + public SetDeviceControlDefaultValuesRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new DeviceControlDefaultValuesReqDTO(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public DeviceControlDefaultValuesReqDTO getBody() { + return body; + } + + public void setBody(DeviceControlDefaultValuesReqDTO 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; + } + SetDeviceControlDefaultValuesRequest that = (SetDeviceControlDefaultValuesRequest) obj; + return Objects.equals(this.edgeNodeId, that.edgeNodeId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(edgeNodeId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SetDeviceControlDefaultValuesRequest {\n"); + sb.append(" edgeNodeId: ").append(toIndentedString(edgeNodeId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/SetDeviceControlDefaultValuesResponse.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/SetDeviceControlDefaultValuesResponse.java new file mode 100644 index 0000000000..fd3eb0a04a --- /dev/null +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/SetDeviceControlDefaultValuesResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.iotedge.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class SetDeviceControlDefaultValuesResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private String body; + + public SetDeviceControlDefaultValuesResponse withBody(String body) { + this.body = body; + return this; + } + + /** + * Get body + * @return body + */ + public String getBody() { + return body; + } + + public void setBody(String body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SetDeviceControlDefaultValuesResponse that = (SetDeviceControlDefaultValuesResponse) 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 SetDeviceControlDefaultValuesResponse {\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/ivs/pom.xml b/services/ivs/pom.xml index ef9b2f3d7d..3e6b672040 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-ivs - 3.1.95 + 3.1.96 Huawei Cloud SDK for IVS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/kafka/pom.xml b/services/kafka/pom.xml index 8e78ee9fa4..86607f6dcb 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-kafka - 3.1.95 + 3.1.96 Huawei Cloud SDK for KAFKA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/kms/pom.xml b/services/kms/pom.xml index 14a2489f35..cd72023105 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-kms - 3.1.95 + 3.1.96 Huawei Cloud SDK for KMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/koomap/pom.xml b/services/koomap/pom.xml index 0b131d473e..740dfc8745 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-koomap - 3.1.95 + 3.1.96 Huawei Cloud SDK for KOOMAP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/koomessage/pom.xml b/services/koomessage/pom.xml index c7f761f6c2..76db976fe6 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-koomessage - 3.1.95 + 3.1.96 Huawei Cloud SDK for KOOMESSAGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/koophone/pom.xml b/services/koophone/pom.xml index acd55247cc..98380a1ef0 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-koophone - 3.1.95 + 3.1.96 Huawei Cloud SDK for KOOPHONE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/kps/pom.xml b/services/kps/pom.xml index 3b41c8b17c..2ef730ef3b 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-kps - 3.1.95 + 3.1.96 Huawei Cloud SDK for KPS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/kvs/pom.xml b/services/kvs/pom.xml index fb5e4879db..694e8a162a 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-kvs - 3.1.95 + 3.1.96 Huawei Cloud SDK for KVS 4.0.0 @@ -17,12 +17,12 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-core-bson - 3.1.95 + 3.1.96 diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/region/KvsRegion.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/region/KvsRegion.java new file mode 100644 index 0000000000..e2ead63e7f --- /dev/null +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/region/KvsRegion.java @@ -0,0 +1,49 @@ +package com.huaweicloud.sdk.kvs.v1.region; + +import com.huaweicloud.sdk.core.region.IRegionProvider; +import com.huaweicloud.sdk.core.region.Region; +import com.huaweicloud.sdk.core.region.RegionProviderChain; +import com.huaweicloud.sdk.core.utils.StringUtils; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Locale; +import java.util.Map; +import java.util.Objects; +import java.util.stream.Collectors; + +public class KvsRegion { + + public static final Region CN_NORTH_4 = new Region("cn-north-4", "https://kvs.cn-north-4.myhuaweicloud.com"); + + private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("KVS"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("cn-north-4", CN_NORTH_4); + return Collections.unmodifiableMap(map); + } + + public static Region valueOf(String regionId) { + if (StringUtils.isEmpty(regionId)) { + throw new IllegalArgumentException("Unexpected empty parameter: regionId."); + } + + Region result = PROVIDER.getRegion(regionId); + if (Objects.nonNull(result)) { + return result; + } + + result = STATIC_FIELDS.get(regionId); + if (Objects.nonNull(result)) { + return result; + } + + throw new IllegalArgumentException(String.format(Locale.ROOT, + "region id '%s' is not in the following supported regions of service KVS: [%s]", + regionId, + STATIC_FIELDS.keySet().stream().sorted().collect(Collectors.joining(", ")))); + } +} diff --git a/services/lakeformation/pom.xml b/services/lakeformation/pom.xml index 74d59776ee..815ef8aeb8 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-lakeformation - 3.1.95 + 3.1.96 Huawei Cloud SDK for LAKEFORMATION 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/live/pom.xml b/services/live/pom.xml index 4aa3f16734..6be0ec7033 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-live - 3.1.95 + 3.1.96 Huawei Cloud SDK for LIVE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/lts/pom.xml b/services/lts/pom.xml index dc48a46222..9eb6f02ef7 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-lts - 3.1.95 + 3.1.96 Huawei Cloud SDK for LTS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/lts/src/main/java/com/huaweicloud/sdk/lts/v2/model/QueryLtsLogParams.java b/services/lts/src/main/java/com/huaweicloud/sdk/lts/v2/model/QueryLtsLogParams.java index 7d01dc1f7a..5693da5750 100644 --- a/services/lts/src/main/java/com/huaweicloud/sdk/lts/v2/model/QueryLtsLogParams.java +++ b/services/lts/src/main/java/com/huaweicloud/sdk/lts/v2/model/QueryLtsLogParams.java @@ -46,6 +46,11 @@ public class QueryLtsLogParams { private String lineNum; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "__time__") + + private String time; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "is_desc") @@ -259,6 +264,25 @@ public void setLineNum(String lineNum) { this.lineNum = lineNum; } + public QueryLtsLogParams withTime(String time) { + this.time = time; + return this; + } + + /** + * 若已开启自定义时间功能,需要使用该字段进行分页查询。 + * @return time + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "__time__") + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + public QueryLtsLogParams withIsDesc(Boolean isDesc) { this.isDesc = isDesc; return this; @@ -358,9 +382,9 @@ public boolean equals(java.lang.Object obj) { return Objects.equals(this.startTime, that.startTime) && Objects.equals(this.endTime, that.endTime) && Objects.equals(this.labels, that.labels) && Objects.equals(this.isCount, that.isCount) && Objects.equals(this.keywords, that.keywords) && Objects.equals(this.lineNum, that.lineNum) - && Objects.equals(this.isDesc, that.isDesc) && Objects.equals(this.searchType, that.searchType) - && Objects.equals(this.limit, that.limit) && Objects.equals(this.highlight, that.highlight) - && Objects.equals(this.isIterative, that.isIterative); + && Objects.equals(this.time, that.time) && Objects.equals(this.isDesc, that.isDesc) + && Objects.equals(this.searchType, that.searchType) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.highlight, that.highlight) && Objects.equals(this.isIterative, that.isIterative); } @Override @@ -371,6 +395,7 @@ public int hashCode() { isCount, keywords, lineNum, + time, isDesc, searchType, limit, @@ -388,6 +413,7 @@ public String toString() { sb.append(" isCount: ").append(toIndentedString(isCount)).append("\n"); sb.append(" keywords: ").append(toIndentedString(keywords)).append("\n"); sb.append(" lineNum: ").append(toIndentedString(lineNum)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); sb.append(" isDesc: ").append(toIndentedString(isDesc)).append("\n"); sb.append(" searchType: ").append(toIndentedString(searchType)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); diff --git a/services/lts/src/main/java/com/huaweicloud/sdk/lts/v2/model/TimeRange.java b/services/lts/src/main/java/com/huaweicloud/sdk/lts/v2/model/TimeRange.java index fea64cf5f4..e280eb243f 100644 --- a/services/lts/src/main/java/com/huaweicloud/sdk/lts/v2/model/TimeRange.java +++ b/services/lts/src/main/java/com/huaweicloud/sdk/lts/v2/model/TimeRange.java @@ -18,12 +18,12 @@ public class TimeRange { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "start_time") - private String startTime; + private Long startTime; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "end_time") - private String endTime; + private Long endTime; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "start_time_gt") @@ -52,37 +52,37 @@ public void setSqlTimeZone(String sqlTimeZone) { this.sqlTimeZone = sqlTimeZone; } - public TimeRange withStartTime(String startTime) { + public TimeRange withStartTime(Long startTime) { this.startTime = startTime; return this; } /** - * 搜索起始时间(UTC时间,毫秒级)。 + * 搜索起始时间(UTC时间,毫秒级) * @return startTime */ - public String getStartTime() { + public Long getStartTime() { return startTime; } - public void setStartTime(String startTime) { + public void setStartTime(Long startTime) { this.startTime = startTime; } - public TimeRange withEndTime(String endTime) { + public TimeRange withEndTime(Long endTime) { this.endTime = endTime; return this; } /** - * 搜索起始时间(UTC时间,毫秒级)。 + * 搜索结束时间(UTC时间,毫秒级)。 * @return endTime */ - public String getEndTime() { + public Long getEndTime() { return endTime; } - public void setEndTime(String endTime) { + public void setEndTime(Long endTime) { this.endTime = endTime; } diff --git a/services/mapds/pom.xml b/services/mapds/pom.xml index 6700a47971..b7d37fb6ee 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-mapds - 3.1.95 + 3.1.96 Huawei Cloud SDK for MAPDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/mas/pom.xml b/services/mas/pom.xml index f5eb3629d2..864784735b 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-mas - 3.1.95 + 3.1.96 Huawei Cloud SDK for MAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/meeting/pom.xml b/services/meeting/pom.xml index ce642ce812..8fb6e184fd 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-meeting - 3.1.95 + 3.1.96 Huawei Cloud SDK for MEETING 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/metastudio/pom.xml b/services/metastudio/pom.xml index 1cca9c1633..7a8b280ee6 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-metastudio - 3.1.95 + 3.1.96 Huawei Cloud SDK for METASTUDIO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioAsyncClient.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioAsyncClient.java index 0b28dbde4c..5bbaa129fa 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioAsyncClient.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioAsyncClient.java @@ -25,6 +25,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.CreateActiveCodeResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateAssetbyReplicationInfoRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateAssetbyReplicationInfoResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateBatchKnowledgeQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateBatchKnowledgeQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateDialogUrlRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateDialogUrlResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateDigitalAssetRequest; @@ -35,8 +37,20 @@ import com.huaweicloud.sdk.metastudio.v1.model.CreateFacialAnimationsResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateFileRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateFileResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateHotQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateHotQuestionResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateIntentAndQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateIntentAndQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateInteractionRuleGroupRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateInteractionRuleGroupResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateKnowledgeIntentRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateKnowledgeIntentResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateKnowledgeQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateKnowledgeQuestionResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateKnowledgeSkillRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateKnowledgeSkillResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateLargeFileRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateLargeFileResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateOnceCodeRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateOnceCodeResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreatePhotoDetectionRequest; @@ -67,6 +81,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.CreateVideoMotionCaptureJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateVideoScriptsRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateVideoScriptsResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateWelcomeSpeechRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateWelcomeSpeechResponse; import com.huaweicloud.sdk.metastudio.v1.model.Delete2dModelTrainingJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.Delete2dModelTrainingJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteActiveCodeRequest; @@ -77,8 +93,16 @@ import com.huaweicloud.sdk.metastudio.v1.model.DeleteDigitalHumanBusinessCardResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteFileRequest; import com.huaweicloud.sdk.metastudio.v1.model.DeleteFileResponse; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteHotQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteHotQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteInteractionRuleGroupRequest; import com.huaweicloud.sdk.metastudio.v1.model.DeleteInteractionRuleGroupResponse; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeIntentRequest; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeIntentResponse; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeQuestionResponse; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeSkillRequest; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeSkillResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteRobotRequest; import com.huaweicloud.sdk.metastudio.v1.model.DeleteRobotResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteSmartChatRoomRequest; @@ -89,12 +113,16 @@ import com.huaweicloud.sdk.metastudio.v1.model.DeleteVideoScriptResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteVoiceTrainingJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.DeleteVoiceTrainingJobResponse; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteWelcomeSpeechRequest; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteWelcomeSpeechResponse; import com.huaweicloud.sdk.metastudio.v1.model.Execute2dModelTrainingCommandByUserRequest; import com.huaweicloud.sdk.metastudio.v1.model.Execute2dModelTrainingCommandByUserResponse; import com.huaweicloud.sdk.metastudio.v1.model.ExecuteSmartLiveCommandRequest; import com.huaweicloud.sdk.metastudio.v1.model.ExecuteSmartLiveCommandResponse; import com.huaweicloud.sdk.metastudio.v1.model.ExecuteVideoMotionCaptureCommandRequest; import com.huaweicloud.sdk.metastudio.v1.model.ExecuteVideoMotionCaptureCommandResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ExportKnowledgeSkillRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ExportKnowledgeSkillResponse; import com.huaweicloud.sdk.metastudio.v1.model.List2dModelTrainingJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.List2dModelTrainingJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListActiveCodeRequest; @@ -109,8 +137,16 @@ import com.huaweicloud.sdk.metastudio.v1.model.ListDigitalHumanVideoResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListFacialAnimationsDataRequest; import com.huaweicloud.sdk.metastudio.v1.model.ListFacialAnimationsDataResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ListHotQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ListHotQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListInteractionRuleGroupsRequest; import com.huaweicloud.sdk.metastudio.v1.model.ListInteractionRuleGroupsResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ListKnowledgeIntentRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ListKnowledgeIntentResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ListKnowledgeQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ListKnowledgeQuestionResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ListKnowledgeSkillRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ListKnowledgeSkillResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListPictureModelingJobsRequest; import com.huaweicloud.sdk.metastudio.v1.model.ListPictureModelingJobsResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListRobotRequest; @@ -135,6 +171,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.ListVideoScriptsResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListVoiceTrainingJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.ListVoiceTrainingJobResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ListWelcomeSpeechRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ListWelcomeSpeechResponse; import com.huaweicloud.sdk.metastudio.v1.model.LiveEventReportRequest; import com.huaweicloud.sdk.metastudio.v1.model.LiveEventReportResponse; import com.huaweicloud.sdk.metastudio.v1.model.ResetActiveCodeRequest; @@ -153,10 +191,18 @@ import com.huaweicloud.sdk.metastudio.v1.model.ShowAssetResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowDigitalHumanBusinessCardRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowDigitalHumanBusinessCardResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ShowHotQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ShowHotQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowJobAuditResultRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowJobAuditResultResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowJobUploadingAddressRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowJobUploadingAddressResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ShowKnowledgeIntentRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ShowKnowledgeIntentResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ShowKnowledgeQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ShowKnowledgeQuestionResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ShowKnowledgeSkillRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ShowKnowledgeSkillResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowPhotoDetectionRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowPhotoDetectionResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowPhotoDigitalHumanVideoRequest; @@ -183,6 +229,10 @@ import com.huaweicloud.sdk.metastudio.v1.model.ShowVideoScriptResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowVoiceTrainingJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowVoiceTrainingJobResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ShowWelcomeSpeechRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ShowWelcomeSpeechResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ShowWelcomeSpeechSwitchRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ShowWelcomeSpeechSwitchResponse; import com.huaweicloud.sdk.metastudio.v1.model.StartSmartChatJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.StartSmartChatJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.StartSmartLiveRequest; @@ -197,12 +247,22 @@ import com.huaweicloud.sdk.metastudio.v1.model.Update2dModelTrainingJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateActiveCodeRequest; import com.huaweicloud.sdk.metastudio.v1.model.UpdateActiveCodeResponse; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateBatchKnowledgeQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateBatchKnowledgeQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateDigitalAssetRequest; import com.huaweicloud.sdk.metastudio.v1.model.UpdateDigitalAssetResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateDigitalHumanBusinessCardRequest; import com.huaweicloud.sdk.metastudio.v1.model.UpdateDigitalHumanBusinessCardResponse; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateHotQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateHotQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateInteractionRuleGroupRequest; import com.huaweicloud.sdk.metastudio.v1.model.UpdateInteractionRuleGroupResponse; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeIntentRequest; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeIntentResponse; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeQuestionResponse; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeSkillRequest; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeSkillResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateRobotRequest; import com.huaweicloud.sdk.metastudio.v1.model.UpdateRobotResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateSmartChatRoomRequest; @@ -211,6 +271,10 @@ import com.huaweicloud.sdk.metastudio.v1.model.UpdateSmartLiveRoomResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateVideoScriptRequest; import com.huaweicloud.sdk.metastudio.v1.model.UpdateVideoScriptResponse; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateWelcomeSpeechRequest; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateWelcomeSpeechResponse; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateWelcomeSpeechSwitchRequest; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateWelcomeSpeechSwitchResponse; import java.util.concurrent.CompletableFuture; @@ -1259,6 +1323,35 @@ public AsyncInvoker createFileAsyncInvoke return new AsyncInvoker<>(request, MetaStudioMeta.createFile, hcClient); } + /** + * 创建大文件 + * + * 该接口用于创建大文件(超过5G),获取分段上传URL。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateLargeFileRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createLargeFileAsync(CreateLargeFileRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.createLargeFile); + } + + /** + * 创建大文件 + * + * 该接口用于创建大文件(超过5G),获取分段上传URL。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateLargeFileRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createLargeFileAsyncInvoker( + CreateLargeFileRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.createLargeFile, hcClient); + } + /** * 删除文件 * @@ -1287,6 +1380,717 @@ public AsyncInvoker deleteFileAsyncInvoke return new AsyncInvoker<>(request, MetaStudioMeta.deleteFile, hcClient); } + /** + * 创建热点问题 + * + * 该接口用于创建热点问题。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateHotQuestionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createHotQuestionAsync(CreateHotQuestionRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.createHotQuestion); + } + + /** + * 创建热点问题 + * + * 该接口用于创建热点问题。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateHotQuestionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createHotQuestionAsyncInvoker( + CreateHotQuestionRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.createHotQuestion, hcClient); + } + + /** + * 删除热点问题 + * + * 该接口用于删除热点问题。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteHotQuestionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteHotQuestionAsync(DeleteHotQuestionRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.deleteHotQuestion); + } + + /** + * 删除热点问题 + * + * 该接口用于删除热点问题。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteHotQuestionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteHotQuestionAsyncInvoker( + DeleteHotQuestionRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.deleteHotQuestion, hcClient); + } + + /** + * 查询热点问题列表 + * + * 该接口用于查询热点问题列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHotQuestionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listHotQuestionAsync(ListHotQuestionRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.listHotQuestion); + } + + /** + * 查询热点问题列表 + * + * 该接口用于查询热点问题列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHotQuestionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listHotQuestionAsyncInvoker( + ListHotQuestionRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.listHotQuestion, hcClient); + } + + /** + * 查询热点问题详情 + * + * 该接口用于查询热点问题详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowHotQuestionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showHotQuestionAsync(ShowHotQuestionRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.showHotQuestion); + } + + /** + * 查询热点问题详情 + * + * 该接口用于查询热点问题详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowHotQuestionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showHotQuestionAsyncInvoker( + ShowHotQuestionRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.showHotQuestion, hcClient); + } + + /** + * 修改热点问题 + * + * 该接口用于修改热点问题。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateHotQuestionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateHotQuestionAsync(UpdateHotQuestionRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.updateHotQuestion); + } + + /** + * 修改热点问题 + * + * 该接口用于修改热点问题。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateHotQuestionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateHotQuestionAsyncInvoker( + UpdateHotQuestionRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.updateHotQuestion, hcClient); + } + + /** + * 创建知识库意图和问法 + * + * 该接口用于创建知识库意图和问法。一个意图包含一个主题,一个答案,若干个问法等。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateIntentAndQuestionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createIntentAndQuestionAsync( + CreateIntentAndQuestionRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.createIntentAndQuestion); + } + + /** + * 创建知识库意图和问法 + * + * 该接口用于创建知识库意图和问法。一个意图包含一个主题,一个答案,若干个问法等。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateIntentAndQuestionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createIntentAndQuestionAsyncInvoker( + CreateIntentAndQuestionRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.createIntentAndQuestion, hcClient); + } + + /** + * 创建知识库意图 + * + * 该接口用于创建知识库意图。一个意图包含一个主题,一个答案,若干个问法等。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateKnowledgeIntentRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createKnowledgeIntentAsync( + CreateKnowledgeIntentRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.createKnowledgeIntent); + } + + /** + * 创建知识库意图 + * + * 该接口用于创建知识库意图。一个意图包含一个主题,一个答案,若干个问法等。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateKnowledgeIntentRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createKnowledgeIntentAsyncInvoker( + CreateKnowledgeIntentRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.createKnowledgeIntent, hcClient); + } + + /** + * 删除知识库意图 + * + * 该接口用于删除知识库意图。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteKnowledgeIntentRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteKnowledgeIntentAsync( + DeleteKnowledgeIntentRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.deleteKnowledgeIntent); + } + + /** + * 删除知识库意图 + * + * 该接口用于删除知识库意图。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteKnowledgeIntentRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteKnowledgeIntentAsyncInvoker( + DeleteKnowledgeIntentRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.deleteKnowledgeIntent, hcClient); + } + + /** + * 查询知识库意图列表 + * + * 该接口用于查询知识库意图列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListKnowledgeIntentRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listKnowledgeIntentAsync(ListKnowledgeIntentRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.listKnowledgeIntent); + } + + /** + * 查询知识库意图列表 + * + * 该接口用于查询知识库意图列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListKnowledgeIntentRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listKnowledgeIntentAsyncInvoker( + ListKnowledgeIntentRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.listKnowledgeIntent, hcClient); + } + + /** + * 查询知识库意图详情 + * + * 该接口用于查询知识库意图详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowKnowledgeIntentRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showKnowledgeIntentAsync(ShowKnowledgeIntentRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.showKnowledgeIntent); + } + + /** + * 查询知识库意图详情 + * + * 该接口用于查询知识库意图详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowKnowledgeIntentRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showKnowledgeIntentAsyncInvoker( + ShowKnowledgeIntentRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.showKnowledgeIntent, hcClient); + } + + /** + * 修改知识库意图 + * + * 该接口用于修改知识库意图。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateKnowledgeIntentRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateKnowledgeIntentAsync( + UpdateKnowledgeIntentRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.updateKnowledgeIntent); + } + + /** + * 修改知识库意图 + * + * 该接口用于修改知识库意图。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateKnowledgeIntentRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateKnowledgeIntentAsyncInvoker( + UpdateKnowledgeIntentRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.updateKnowledgeIntent, hcClient); + } + + /** + * 批量创建知识库问法 + * + * 该接口用于批量创建知识库问法。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateBatchKnowledgeQuestionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createBatchKnowledgeQuestionAsync( + CreateBatchKnowledgeQuestionRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.createBatchKnowledgeQuestion); + } + + /** + * 批量创建知识库问法 + * + * 该接口用于批量创建知识库问法。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateBatchKnowledgeQuestionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createBatchKnowledgeQuestionAsyncInvoker( + CreateBatchKnowledgeQuestionRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.createBatchKnowledgeQuestion, hcClient); + } + + /** + * 创建知识库问法 + * + * 该接口用于创建知识库问法。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateKnowledgeQuestionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createKnowledgeQuestionAsync( + CreateKnowledgeQuestionRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.createKnowledgeQuestion); + } + + /** + * 创建知识库问法 + * + * 该接口用于创建知识库问法。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateKnowledgeQuestionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createKnowledgeQuestionAsyncInvoker( + CreateKnowledgeQuestionRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.createKnowledgeQuestion, hcClient); + } + + /** + * 删除知识库问法 + * + * 该接口用于删除知识库问法。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteKnowledgeQuestionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteKnowledgeQuestionAsync( + DeleteKnowledgeQuestionRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.deleteKnowledgeQuestion); + } + + /** + * 删除知识库问法 + * + * 该接口用于删除知识库问法。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteKnowledgeQuestionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteKnowledgeQuestionAsyncInvoker( + DeleteKnowledgeQuestionRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.deleteKnowledgeQuestion, hcClient); + } + + /** + * 查询知识库问法列表 + * + * 该接口用于查询知识库问法列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListKnowledgeQuestionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listKnowledgeQuestionAsync( + ListKnowledgeQuestionRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.listKnowledgeQuestion); + } + + /** + * 查询知识库问法列表 + * + * 该接口用于查询知识库问法列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListKnowledgeQuestionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listKnowledgeQuestionAsyncInvoker( + ListKnowledgeQuestionRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.listKnowledgeQuestion, hcClient); + } + + /** + * 查询知识库问法详情 + * + * 该接口用于查询知识库问法详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowKnowledgeQuestionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showKnowledgeQuestionAsync( + ShowKnowledgeQuestionRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.showKnowledgeQuestion); + } + + /** + * 查询知识库问法详情 + * + * 该接口用于查询知识库问法详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowKnowledgeQuestionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showKnowledgeQuestionAsyncInvoker( + ShowKnowledgeQuestionRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.showKnowledgeQuestion, hcClient); + } + + /** + * 批量修改知识库问法 + * + * 该接口用于批量修改知识库问法。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateBatchKnowledgeQuestionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateBatchKnowledgeQuestionAsync( + UpdateBatchKnowledgeQuestionRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.updateBatchKnowledgeQuestion); + } + + /** + * 批量修改知识库问法 + * + * 该接口用于批量修改知识库问法。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateBatchKnowledgeQuestionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateBatchKnowledgeQuestionAsyncInvoker( + UpdateBatchKnowledgeQuestionRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.updateBatchKnowledgeQuestion, hcClient); + } + + /** + * 修改知识库问法 + * + * 该接口用于修改知识库问法。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateKnowledgeQuestionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateKnowledgeQuestionAsync( + UpdateKnowledgeQuestionRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.updateKnowledgeQuestion); + } + + /** + * 修改知识库问法 + * + * 该接口用于修改知识库问法。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateKnowledgeQuestionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateKnowledgeQuestionAsyncInvoker( + UpdateKnowledgeQuestionRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.updateKnowledgeQuestion, hcClient); + } + + /** + * 创建知识库技能 + * + * 该接口用于创建知识库技能。一个技能用于特定场景的交互问答,包含若干个意图等。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateKnowledgeSkillRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createKnowledgeSkillAsync( + CreateKnowledgeSkillRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.createKnowledgeSkill); + } + + /** + * 创建知识库技能 + * + * 该接口用于创建知识库技能。一个技能用于特定场景的交互问答,包含若干个意图等。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateKnowledgeSkillRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createKnowledgeSkillAsyncInvoker( + CreateKnowledgeSkillRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.createKnowledgeSkill, hcClient); + } + + /** + * 删除知识库技能 + * + * 该接口用于删除知识库技能。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteKnowledgeSkillRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteKnowledgeSkillAsync( + DeleteKnowledgeSkillRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.deleteKnowledgeSkill); + } + + /** + * 删除知识库技能 + * + * 该接口用于删除知识库技能。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteKnowledgeSkillRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteKnowledgeSkillAsyncInvoker( + DeleteKnowledgeSkillRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.deleteKnowledgeSkill, hcClient); + } + + /** + * 导出知识库技能 + * + * 该接口用于导出知识库技能。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ExportKnowledgeSkillRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture exportKnowledgeSkillAsync( + ExportKnowledgeSkillRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.exportKnowledgeSkill); + } + + /** + * 导出知识库技能 + * + * 该接口用于导出知识库技能。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ExportKnowledgeSkillRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker exportKnowledgeSkillAsyncInvoker( + ExportKnowledgeSkillRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.exportKnowledgeSkill, hcClient); + } + + /** + * 查询知识库技能列表 + * + * 该接口用于查询知识库技能列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListKnowledgeSkillRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listKnowledgeSkillAsync(ListKnowledgeSkillRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.listKnowledgeSkill); + } + + /** + * 查询知识库技能列表 + * + * 该接口用于查询知识库技能列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListKnowledgeSkillRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listKnowledgeSkillAsyncInvoker( + ListKnowledgeSkillRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.listKnowledgeSkill, hcClient); + } + + /** + * 查询知识库技能详情 + * + * 该接口用于查询知识库技能详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowKnowledgeSkillRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showKnowledgeSkillAsync(ShowKnowledgeSkillRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.showKnowledgeSkill); + } + + /** + * 查询知识库技能详情 + * + * 该接口用于查询知识库技能详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowKnowledgeSkillRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showKnowledgeSkillAsyncInvoker( + ShowKnowledgeSkillRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.showKnowledgeSkill, hcClient); + } + + /** + * 修改知识库技能 + * + * 该接口用于修改知识库技能。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateKnowledgeSkillRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateKnowledgeSkillAsync( + UpdateKnowledgeSkillRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.updateKnowledgeSkill); + } + + /** + * 修改知识库技能 + * + * 该接口用于修改知识库技能。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateKnowledgeSkillRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateKnowledgeSkillAsyncInvoker( + UpdateKnowledgeSkillRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.updateKnowledgeSkill, hcClient); + } + /** * 创建一次性鉴权码 * @@ -3322,4 +4126,209 @@ public AsyncInvoker updateV return new AsyncInvoker<>(request, MetaStudioMeta.updateVideoScript, hcClient); } + /** + * 创建欢迎词 + * + * 该接口用于创建欢迎词。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateWelcomeSpeechRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createWelcomeSpeechAsync(CreateWelcomeSpeechRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.createWelcomeSpeech); + } + + /** + * 创建欢迎词 + * + * 该接口用于创建欢迎词。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateWelcomeSpeechRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createWelcomeSpeechAsyncInvoker( + CreateWelcomeSpeechRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.createWelcomeSpeech, hcClient); + } + + /** + * 删除欢迎词 + * + * 该接口用于删除欢迎词。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteWelcomeSpeechRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteWelcomeSpeechAsync(DeleteWelcomeSpeechRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.deleteWelcomeSpeech); + } + + /** + * 删除欢迎词 + * + * 该接口用于删除欢迎词。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteWelcomeSpeechRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteWelcomeSpeechAsyncInvoker( + DeleteWelcomeSpeechRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.deleteWelcomeSpeech, hcClient); + } + + /** + * 查询欢迎词列表 + * + * 该接口用于查询欢迎词列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListWelcomeSpeechRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listWelcomeSpeechAsync(ListWelcomeSpeechRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.listWelcomeSpeech); + } + + /** + * 查询欢迎词列表 + * + * 该接口用于查询欢迎词列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListWelcomeSpeechRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listWelcomeSpeechAsyncInvoker( + ListWelcomeSpeechRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.listWelcomeSpeech, hcClient); + } + + /** + * 查询欢迎词详情 + * + * 该接口用于查询欢迎词详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowWelcomeSpeechRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showWelcomeSpeechAsync(ShowWelcomeSpeechRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.showWelcomeSpeech); + } + + /** + * 查询欢迎词详情 + * + * 该接口用于查询欢迎词详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowWelcomeSpeechRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showWelcomeSpeechAsyncInvoker( + ShowWelcomeSpeechRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.showWelcomeSpeech, hcClient); + } + + /** + * 查询欢迎词功能开关 + * + * 该接口用于查询欢迎词功能开关。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowWelcomeSpeechSwitchRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showWelcomeSpeechSwitchAsync( + ShowWelcomeSpeechSwitchRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.showWelcomeSpeechSwitch); + } + + /** + * 查询欢迎词功能开关 + * + * 该接口用于查询欢迎词功能开关。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowWelcomeSpeechSwitchRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showWelcomeSpeechSwitchAsyncInvoker( + ShowWelcomeSpeechSwitchRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.showWelcomeSpeechSwitch, hcClient); + } + + /** + * 修改欢迎词 + * + * 该接口用于修改欢迎词。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateWelcomeSpeechRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateWelcomeSpeechAsync(UpdateWelcomeSpeechRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.updateWelcomeSpeech); + } + + /** + * 修改欢迎词 + * + * 该接口用于修改欢迎词。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateWelcomeSpeechRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateWelcomeSpeechAsyncInvoker( + UpdateWelcomeSpeechRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.updateWelcomeSpeech, hcClient); + } + + /** + * 修改欢迎词功能开关 + * + * 该接口用于修改欢迎词功能开关。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateWelcomeSpeechSwitchRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateWelcomeSpeechSwitchAsync( + UpdateWelcomeSpeechSwitchRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.updateWelcomeSpeechSwitch); + } + + /** + * 修改欢迎词功能开关 + * + * 该接口用于修改欢迎词功能开关。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateWelcomeSpeechSwitchRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateWelcomeSpeechSwitchAsyncInvoker( + UpdateWelcomeSpeechSwitchRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.updateWelcomeSpeechSwitch, hcClient); + } + } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioClient.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioClient.java index bf7b650b4e..25839c4a6e 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioClient.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioClient.java @@ -25,6 +25,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.CreateActiveCodeResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateAssetbyReplicationInfoRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateAssetbyReplicationInfoResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateBatchKnowledgeQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateBatchKnowledgeQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateDialogUrlRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateDialogUrlResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateDigitalAssetRequest; @@ -35,8 +37,20 @@ import com.huaweicloud.sdk.metastudio.v1.model.CreateFacialAnimationsResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateFileRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateFileResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateHotQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateHotQuestionResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateIntentAndQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateIntentAndQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateInteractionRuleGroupRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateInteractionRuleGroupResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateKnowledgeIntentRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateKnowledgeIntentResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateKnowledgeQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateKnowledgeQuestionResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateKnowledgeSkillRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateKnowledgeSkillResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateLargeFileRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateLargeFileResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateOnceCodeRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateOnceCodeResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreatePhotoDetectionRequest; @@ -67,6 +81,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.CreateVideoMotionCaptureJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateVideoScriptsRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateVideoScriptsResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateWelcomeSpeechRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateWelcomeSpeechResponse; import com.huaweicloud.sdk.metastudio.v1.model.Delete2dModelTrainingJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.Delete2dModelTrainingJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteActiveCodeRequest; @@ -77,8 +93,16 @@ import com.huaweicloud.sdk.metastudio.v1.model.DeleteDigitalHumanBusinessCardResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteFileRequest; import com.huaweicloud.sdk.metastudio.v1.model.DeleteFileResponse; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteHotQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteHotQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteInteractionRuleGroupRequest; import com.huaweicloud.sdk.metastudio.v1.model.DeleteInteractionRuleGroupResponse; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeIntentRequest; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeIntentResponse; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeQuestionResponse; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeSkillRequest; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeSkillResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteRobotRequest; import com.huaweicloud.sdk.metastudio.v1.model.DeleteRobotResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteSmartChatRoomRequest; @@ -89,12 +113,16 @@ import com.huaweicloud.sdk.metastudio.v1.model.DeleteVideoScriptResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteVoiceTrainingJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.DeleteVoiceTrainingJobResponse; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteWelcomeSpeechRequest; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteWelcomeSpeechResponse; import com.huaweicloud.sdk.metastudio.v1.model.Execute2dModelTrainingCommandByUserRequest; import com.huaweicloud.sdk.metastudio.v1.model.Execute2dModelTrainingCommandByUserResponse; import com.huaweicloud.sdk.metastudio.v1.model.ExecuteSmartLiveCommandRequest; import com.huaweicloud.sdk.metastudio.v1.model.ExecuteSmartLiveCommandResponse; import com.huaweicloud.sdk.metastudio.v1.model.ExecuteVideoMotionCaptureCommandRequest; import com.huaweicloud.sdk.metastudio.v1.model.ExecuteVideoMotionCaptureCommandResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ExportKnowledgeSkillRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ExportKnowledgeSkillResponse; import com.huaweicloud.sdk.metastudio.v1.model.List2dModelTrainingJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.List2dModelTrainingJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListActiveCodeRequest; @@ -109,8 +137,16 @@ import com.huaweicloud.sdk.metastudio.v1.model.ListDigitalHumanVideoResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListFacialAnimationsDataRequest; import com.huaweicloud.sdk.metastudio.v1.model.ListFacialAnimationsDataResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ListHotQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ListHotQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListInteractionRuleGroupsRequest; import com.huaweicloud.sdk.metastudio.v1.model.ListInteractionRuleGroupsResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ListKnowledgeIntentRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ListKnowledgeIntentResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ListKnowledgeQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ListKnowledgeQuestionResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ListKnowledgeSkillRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ListKnowledgeSkillResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListPictureModelingJobsRequest; import com.huaweicloud.sdk.metastudio.v1.model.ListPictureModelingJobsResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListRobotRequest; @@ -135,6 +171,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.ListVideoScriptsResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListVoiceTrainingJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.ListVoiceTrainingJobResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ListWelcomeSpeechRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ListWelcomeSpeechResponse; import com.huaweicloud.sdk.metastudio.v1.model.LiveEventReportRequest; import com.huaweicloud.sdk.metastudio.v1.model.LiveEventReportResponse; import com.huaweicloud.sdk.metastudio.v1.model.ResetActiveCodeRequest; @@ -153,10 +191,18 @@ import com.huaweicloud.sdk.metastudio.v1.model.ShowAssetResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowDigitalHumanBusinessCardRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowDigitalHumanBusinessCardResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ShowHotQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ShowHotQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowJobAuditResultRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowJobAuditResultResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowJobUploadingAddressRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowJobUploadingAddressResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ShowKnowledgeIntentRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ShowKnowledgeIntentResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ShowKnowledgeQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ShowKnowledgeQuestionResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ShowKnowledgeSkillRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ShowKnowledgeSkillResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowPhotoDetectionRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowPhotoDetectionResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowPhotoDigitalHumanVideoRequest; @@ -183,6 +229,10 @@ import com.huaweicloud.sdk.metastudio.v1.model.ShowVideoScriptResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowVoiceTrainingJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowVoiceTrainingJobResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ShowWelcomeSpeechRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ShowWelcomeSpeechResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ShowWelcomeSpeechSwitchRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ShowWelcomeSpeechSwitchResponse; import com.huaweicloud.sdk.metastudio.v1.model.StartSmartChatJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.StartSmartChatJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.StartSmartLiveRequest; @@ -197,12 +247,22 @@ import com.huaweicloud.sdk.metastudio.v1.model.Update2dModelTrainingJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateActiveCodeRequest; import com.huaweicloud.sdk.metastudio.v1.model.UpdateActiveCodeResponse; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateBatchKnowledgeQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateBatchKnowledgeQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateDigitalAssetRequest; import com.huaweicloud.sdk.metastudio.v1.model.UpdateDigitalAssetResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateDigitalHumanBusinessCardRequest; import com.huaweicloud.sdk.metastudio.v1.model.UpdateDigitalHumanBusinessCardResponse; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateHotQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateHotQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateInteractionRuleGroupRequest; import com.huaweicloud.sdk.metastudio.v1.model.UpdateInteractionRuleGroupResponse; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeIntentRequest; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeIntentResponse; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeQuestionResponse; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeSkillRequest; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeSkillResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateRobotRequest; import com.huaweicloud.sdk.metastudio.v1.model.UpdateRobotResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateSmartChatRoomRequest; @@ -211,6 +271,10 @@ import com.huaweicloud.sdk.metastudio.v1.model.UpdateSmartLiveRoomResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateVideoScriptRequest; import com.huaweicloud.sdk.metastudio.v1.model.UpdateVideoScriptResponse; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateWelcomeSpeechRequest; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateWelcomeSpeechResponse; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateWelcomeSpeechSwitchRequest; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateWelcomeSpeechSwitchResponse; public class MetaStudioClient { @@ -1249,6 +1313,35 @@ public SyncInvoker createFileInvoker(Crea return new SyncInvoker<>(request, MetaStudioMeta.createFile, hcClient); } + /** + * 创建大文件 + * + * 该接口用于创建大文件(超过5G),获取分段上传URL。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateLargeFileRequest 请求对象 + * @return CreateLargeFileResponse + */ + public CreateLargeFileResponse createLargeFile(CreateLargeFileRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.createLargeFile); + } + + /** + * 创建大文件 + * + * 该接口用于创建大文件(超过5G),获取分段上传URL。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateLargeFileRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createLargeFileInvoker( + CreateLargeFileRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.createLargeFile, hcClient); + } + /** * 删除文件 * @@ -1277,6 +1370,704 @@ public SyncInvoker deleteFileInvoker(Dele return new SyncInvoker<>(request, MetaStudioMeta.deleteFile, hcClient); } + /** + * 创建热点问题 + * + * 该接口用于创建热点问题。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateHotQuestionRequest 请求对象 + * @return CreateHotQuestionResponse + */ + public CreateHotQuestionResponse createHotQuestion(CreateHotQuestionRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.createHotQuestion); + } + + /** + * 创建热点问题 + * + * 该接口用于创建热点问题。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateHotQuestionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createHotQuestionInvoker( + CreateHotQuestionRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.createHotQuestion, hcClient); + } + + /** + * 删除热点问题 + * + * 该接口用于删除热点问题。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteHotQuestionRequest 请求对象 + * @return DeleteHotQuestionResponse + */ + public DeleteHotQuestionResponse deleteHotQuestion(DeleteHotQuestionRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.deleteHotQuestion); + } + + /** + * 删除热点问题 + * + * 该接口用于删除热点问题。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteHotQuestionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteHotQuestionInvoker( + DeleteHotQuestionRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.deleteHotQuestion, hcClient); + } + + /** + * 查询热点问题列表 + * + * 该接口用于查询热点问题列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHotQuestionRequest 请求对象 + * @return ListHotQuestionResponse + */ + public ListHotQuestionResponse listHotQuestion(ListHotQuestionRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.listHotQuestion); + } + + /** + * 查询热点问题列表 + * + * 该接口用于查询热点问题列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListHotQuestionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listHotQuestionInvoker( + ListHotQuestionRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.listHotQuestion, hcClient); + } + + /** + * 查询热点问题详情 + * + * 该接口用于查询热点问题详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowHotQuestionRequest 请求对象 + * @return ShowHotQuestionResponse + */ + public ShowHotQuestionResponse showHotQuestion(ShowHotQuestionRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.showHotQuestion); + } + + /** + * 查询热点问题详情 + * + * 该接口用于查询热点问题详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowHotQuestionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showHotQuestionInvoker( + ShowHotQuestionRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.showHotQuestion, hcClient); + } + + /** + * 修改热点问题 + * + * 该接口用于修改热点问题。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateHotQuestionRequest 请求对象 + * @return UpdateHotQuestionResponse + */ + public UpdateHotQuestionResponse updateHotQuestion(UpdateHotQuestionRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.updateHotQuestion); + } + + /** + * 修改热点问题 + * + * 该接口用于修改热点问题。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateHotQuestionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateHotQuestionInvoker( + UpdateHotQuestionRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.updateHotQuestion, hcClient); + } + + /** + * 创建知识库意图和问法 + * + * 该接口用于创建知识库意图和问法。一个意图包含一个主题,一个答案,若干个问法等。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateIntentAndQuestionRequest 请求对象 + * @return CreateIntentAndQuestionResponse + */ + public CreateIntentAndQuestionResponse createIntentAndQuestion(CreateIntentAndQuestionRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.createIntentAndQuestion); + } + + /** + * 创建知识库意图和问法 + * + * 该接口用于创建知识库意图和问法。一个意图包含一个主题,一个答案,若干个问法等。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateIntentAndQuestionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createIntentAndQuestionInvoker( + CreateIntentAndQuestionRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.createIntentAndQuestion, hcClient); + } + + /** + * 创建知识库意图 + * + * 该接口用于创建知识库意图。一个意图包含一个主题,一个答案,若干个问法等。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateKnowledgeIntentRequest 请求对象 + * @return CreateKnowledgeIntentResponse + */ + public CreateKnowledgeIntentResponse createKnowledgeIntent(CreateKnowledgeIntentRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.createKnowledgeIntent); + } + + /** + * 创建知识库意图 + * + * 该接口用于创建知识库意图。一个意图包含一个主题,一个答案,若干个问法等。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateKnowledgeIntentRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createKnowledgeIntentInvoker( + CreateKnowledgeIntentRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.createKnowledgeIntent, hcClient); + } + + /** + * 删除知识库意图 + * + * 该接口用于删除知识库意图。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteKnowledgeIntentRequest 请求对象 + * @return DeleteKnowledgeIntentResponse + */ + public DeleteKnowledgeIntentResponse deleteKnowledgeIntent(DeleteKnowledgeIntentRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.deleteKnowledgeIntent); + } + + /** + * 删除知识库意图 + * + * 该接口用于删除知识库意图。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteKnowledgeIntentRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteKnowledgeIntentInvoker( + DeleteKnowledgeIntentRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.deleteKnowledgeIntent, hcClient); + } + + /** + * 查询知识库意图列表 + * + * 该接口用于查询知识库意图列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListKnowledgeIntentRequest 请求对象 + * @return ListKnowledgeIntentResponse + */ + public ListKnowledgeIntentResponse listKnowledgeIntent(ListKnowledgeIntentRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.listKnowledgeIntent); + } + + /** + * 查询知识库意图列表 + * + * 该接口用于查询知识库意图列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListKnowledgeIntentRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listKnowledgeIntentInvoker( + ListKnowledgeIntentRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.listKnowledgeIntent, hcClient); + } + + /** + * 查询知识库意图详情 + * + * 该接口用于查询知识库意图详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowKnowledgeIntentRequest 请求对象 + * @return ShowKnowledgeIntentResponse + */ + public ShowKnowledgeIntentResponse showKnowledgeIntent(ShowKnowledgeIntentRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.showKnowledgeIntent); + } + + /** + * 查询知识库意图详情 + * + * 该接口用于查询知识库意图详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowKnowledgeIntentRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showKnowledgeIntentInvoker( + ShowKnowledgeIntentRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.showKnowledgeIntent, hcClient); + } + + /** + * 修改知识库意图 + * + * 该接口用于修改知识库意图。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateKnowledgeIntentRequest 请求对象 + * @return UpdateKnowledgeIntentResponse + */ + public UpdateKnowledgeIntentResponse updateKnowledgeIntent(UpdateKnowledgeIntentRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.updateKnowledgeIntent); + } + + /** + * 修改知识库意图 + * + * 该接口用于修改知识库意图。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateKnowledgeIntentRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateKnowledgeIntentInvoker( + UpdateKnowledgeIntentRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.updateKnowledgeIntent, hcClient); + } + + /** + * 批量创建知识库问法 + * + * 该接口用于批量创建知识库问法。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateBatchKnowledgeQuestionRequest 请求对象 + * @return CreateBatchKnowledgeQuestionResponse + */ + public CreateBatchKnowledgeQuestionResponse createBatchKnowledgeQuestion( + CreateBatchKnowledgeQuestionRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.createBatchKnowledgeQuestion); + } + + /** + * 批量创建知识库问法 + * + * 该接口用于批量创建知识库问法。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateBatchKnowledgeQuestionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createBatchKnowledgeQuestionInvoker( + CreateBatchKnowledgeQuestionRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.createBatchKnowledgeQuestion, hcClient); + } + + /** + * 创建知识库问法 + * + * 该接口用于创建知识库问法。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateKnowledgeQuestionRequest 请求对象 + * @return CreateKnowledgeQuestionResponse + */ + public CreateKnowledgeQuestionResponse createKnowledgeQuestion(CreateKnowledgeQuestionRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.createKnowledgeQuestion); + } + + /** + * 创建知识库问法 + * + * 该接口用于创建知识库问法。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateKnowledgeQuestionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createKnowledgeQuestionInvoker( + CreateKnowledgeQuestionRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.createKnowledgeQuestion, hcClient); + } + + /** + * 删除知识库问法 + * + * 该接口用于删除知识库问法。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteKnowledgeQuestionRequest 请求对象 + * @return DeleteKnowledgeQuestionResponse + */ + public DeleteKnowledgeQuestionResponse deleteKnowledgeQuestion(DeleteKnowledgeQuestionRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.deleteKnowledgeQuestion); + } + + /** + * 删除知识库问法 + * + * 该接口用于删除知识库问法。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteKnowledgeQuestionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteKnowledgeQuestionInvoker( + DeleteKnowledgeQuestionRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.deleteKnowledgeQuestion, hcClient); + } + + /** + * 查询知识库问法列表 + * + * 该接口用于查询知识库问法列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListKnowledgeQuestionRequest 请求对象 + * @return ListKnowledgeQuestionResponse + */ + public ListKnowledgeQuestionResponse listKnowledgeQuestion(ListKnowledgeQuestionRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.listKnowledgeQuestion); + } + + /** + * 查询知识库问法列表 + * + * 该接口用于查询知识库问法列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListKnowledgeQuestionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listKnowledgeQuestionInvoker( + ListKnowledgeQuestionRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.listKnowledgeQuestion, hcClient); + } + + /** + * 查询知识库问法详情 + * + * 该接口用于查询知识库问法详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowKnowledgeQuestionRequest 请求对象 + * @return ShowKnowledgeQuestionResponse + */ + public ShowKnowledgeQuestionResponse showKnowledgeQuestion(ShowKnowledgeQuestionRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.showKnowledgeQuestion); + } + + /** + * 查询知识库问法详情 + * + * 该接口用于查询知识库问法详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowKnowledgeQuestionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showKnowledgeQuestionInvoker( + ShowKnowledgeQuestionRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.showKnowledgeQuestion, hcClient); + } + + /** + * 批量修改知识库问法 + * + * 该接口用于批量修改知识库问法。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateBatchKnowledgeQuestionRequest 请求对象 + * @return UpdateBatchKnowledgeQuestionResponse + */ + public UpdateBatchKnowledgeQuestionResponse updateBatchKnowledgeQuestion( + UpdateBatchKnowledgeQuestionRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.updateBatchKnowledgeQuestion); + } + + /** + * 批量修改知识库问法 + * + * 该接口用于批量修改知识库问法。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateBatchKnowledgeQuestionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateBatchKnowledgeQuestionInvoker( + UpdateBatchKnowledgeQuestionRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.updateBatchKnowledgeQuestion, hcClient); + } + + /** + * 修改知识库问法 + * + * 该接口用于修改知识库问法。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateKnowledgeQuestionRequest 请求对象 + * @return UpdateKnowledgeQuestionResponse + */ + public UpdateKnowledgeQuestionResponse updateKnowledgeQuestion(UpdateKnowledgeQuestionRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.updateKnowledgeQuestion); + } + + /** + * 修改知识库问法 + * + * 该接口用于修改知识库问法。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateKnowledgeQuestionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateKnowledgeQuestionInvoker( + UpdateKnowledgeQuestionRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.updateKnowledgeQuestion, hcClient); + } + + /** + * 创建知识库技能 + * + * 该接口用于创建知识库技能。一个技能用于特定场景的交互问答,包含若干个意图等。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateKnowledgeSkillRequest 请求对象 + * @return CreateKnowledgeSkillResponse + */ + public CreateKnowledgeSkillResponse createKnowledgeSkill(CreateKnowledgeSkillRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.createKnowledgeSkill); + } + + /** + * 创建知识库技能 + * + * 该接口用于创建知识库技能。一个技能用于特定场景的交互问答,包含若干个意图等。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateKnowledgeSkillRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createKnowledgeSkillInvoker( + CreateKnowledgeSkillRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.createKnowledgeSkill, hcClient); + } + + /** + * 删除知识库技能 + * + * 该接口用于删除知识库技能。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteKnowledgeSkillRequest 请求对象 + * @return DeleteKnowledgeSkillResponse + */ + public DeleteKnowledgeSkillResponse deleteKnowledgeSkill(DeleteKnowledgeSkillRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.deleteKnowledgeSkill); + } + + /** + * 删除知识库技能 + * + * 该接口用于删除知识库技能。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteKnowledgeSkillRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteKnowledgeSkillInvoker( + DeleteKnowledgeSkillRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.deleteKnowledgeSkill, hcClient); + } + + /** + * 导出知识库技能 + * + * 该接口用于导出知识库技能。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ExportKnowledgeSkillRequest 请求对象 + * @return ExportKnowledgeSkillResponse + */ + public ExportKnowledgeSkillResponse exportKnowledgeSkill(ExportKnowledgeSkillRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.exportKnowledgeSkill); + } + + /** + * 导出知识库技能 + * + * 该接口用于导出知识库技能。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ExportKnowledgeSkillRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker exportKnowledgeSkillInvoker( + ExportKnowledgeSkillRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.exportKnowledgeSkill, hcClient); + } + + /** + * 查询知识库技能列表 + * + * 该接口用于查询知识库技能列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListKnowledgeSkillRequest 请求对象 + * @return ListKnowledgeSkillResponse + */ + public ListKnowledgeSkillResponse listKnowledgeSkill(ListKnowledgeSkillRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.listKnowledgeSkill); + } + + /** + * 查询知识库技能列表 + * + * 该接口用于查询知识库技能列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListKnowledgeSkillRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listKnowledgeSkillInvoker( + ListKnowledgeSkillRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.listKnowledgeSkill, hcClient); + } + + /** + * 查询知识库技能详情 + * + * 该接口用于查询知识库技能详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowKnowledgeSkillRequest 请求对象 + * @return ShowKnowledgeSkillResponse + */ + public ShowKnowledgeSkillResponse showKnowledgeSkill(ShowKnowledgeSkillRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.showKnowledgeSkill); + } + + /** + * 查询知识库技能详情 + * + * 该接口用于查询知识库技能详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowKnowledgeSkillRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showKnowledgeSkillInvoker( + ShowKnowledgeSkillRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.showKnowledgeSkill, hcClient); + } + + /** + * 修改知识库技能 + * + * 该接口用于修改知识库技能。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateKnowledgeSkillRequest 请求对象 + * @return UpdateKnowledgeSkillResponse + */ + public UpdateKnowledgeSkillResponse updateKnowledgeSkill(UpdateKnowledgeSkillRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.updateKnowledgeSkill); + } + + /** + * 修改知识库技能 + * + * 该接口用于修改知识库技能。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateKnowledgeSkillRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateKnowledgeSkillInvoker( + UpdateKnowledgeSkillRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.updateKnowledgeSkill, hcClient); + } + /** * 创建一次性鉴权码 * @@ -3278,4 +4069,207 @@ public SyncInvoker updateVi return new SyncInvoker<>(request, MetaStudioMeta.updateVideoScript, hcClient); } + /** + * 创建欢迎词 + * + * 该接口用于创建欢迎词。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateWelcomeSpeechRequest 请求对象 + * @return CreateWelcomeSpeechResponse + */ + public CreateWelcomeSpeechResponse createWelcomeSpeech(CreateWelcomeSpeechRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.createWelcomeSpeech); + } + + /** + * 创建欢迎词 + * + * 该接口用于创建欢迎词。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateWelcomeSpeechRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createWelcomeSpeechInvoker( + CreateWelcomeSpeechRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.createWelcomeSpeech, hcClient); + } + + /** + * 删除欢迎词 + * + * 该接口用于删除欢迎词。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteWelcomeSpeechRequest 请求对象 + * @return DeleteWelcomeSpeechResponse + */ + public DeleteWelcomeSpeechResponse deleteWelcomeSpeech(DeleteWelcomeSpeechRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.deleteWelcomeSpeech); + } + + /** + * 删除欢迎词 + * + * 该接口用于删除欢迎词。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteWelcomeSpeechRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteWelcomeSpeechInvoker( + DeleteWelcomeSpeechRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.deleteWelcomeSpeech, hcClient); + } + + /** + * 查询欢迎词列表 + * + * 该接口用于查询欢迎词列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListWelcomeSpeechRequest 请求对象 + * @return ListWelcomeSpeechResponse + */ + public ListWelcomeSpeechResponse listWelcomeSpeech(ListWelcomeSpeechRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.listWelcomeSpeech); + } + + /** + * 查询欢迎词列表 + * + * 该接口用于查询欢迎词列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListWelcomeSpeechRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listWelcomeSpeechInvoker( + ListWelcomeSpeechRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.listWelcomeSpeech, hcClient); + } + + /** + * 查询欢迎词详情 + * + * 该接口用于查询欢迎词详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowWelcomeSpeechRequest 请求对象 + * @return ShowWelcomeSpeechResponse + */ + public ShowWelcomeSpeechResponse showWelcomeSpeech(ShowWelcomeSpeechRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.showWelcomeSpeech); + } + + /** + * 查询欢迎词详情 + * + * 该接口用于查询欢迎词详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowWelcomeSpeechRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showWelcomeSpeechInvoker( + ShowWelcomeSpeechRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.showWelcomeSpeech, hcClient); + } + + /** + * 查询欢迎词功能开关 + * + * 该接口用于查询欢迎词功能开关。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowWelcomeSpeechSwitchRequest 请求对象 + * @return ShowWelcomeSpeechSwitchResponse + */ + public ShowWelcomeSpeechSwitchResponse showWelcomeSpeechSwitch(ShowWelcomeSpeechSwitchRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.showWelcomeSpeechSwitch); + } + + /** + * 查询欢迎词功能开关 + * + * 该接口用于查询欢迎词功能开关。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowWelcomeSpeechSwitchRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showWelcomeSpeechSwitchInvoker( + ShowWelcomeSpeechSwitchRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.showWelcomeSpeechSwitch, hcClient); + } + + /** + * 修改欢迎词 + * + * 该接口用于修改欢迎词。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateWelcomeSpeechRequest 请求对象 + * @return UpdateWelcomeSpeechResponse + */ + public UpdateWelcomeSpeechResponse updateWelcomeSpeech(UpdateWelcomeSpeechRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.updateWelcomeSpeech); + } + + /** + * 修改欢迎词 + * + * 该接口用于修改欢迎词。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateWelcomeSpeechRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateWelcomeSpeechInvoker( + UpdateWelcomeSpeechRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.updateWelcomeSpeech, hcClient); + } + + /** + * 修改欢迎词功能开关 + * + * 该接口用于修改欢迎词功能开关。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateWelcomeSpeechSwitchRequest 请求对象 + * @return UpdateWelcomeSpeechSwitchResponse + */ + public UpdateWelcomeSpeechSwitchResponse updateWelcomeSpeechSwitch(UpdateWelcomeSpeechSwitchRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.updateWelcomeSpeechSwitch); + } + + /** + * 修改欢迎词功能开关 + * + * 该接口用于修改欢迎词功能开关。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateWelcomeSpeechSwitchRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateWelcomeSpeechSwitchInvoker( + UpdateWelcomeSpeechSwitchRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.updateWelcomeSpeechSwitch, hcClient); + } + } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioMeta.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioMeta.java index 916d5a5c22..9b59f1eb5f 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioMeta.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioMeta.java @@ -11,6 +11,7 @@ import com.huaweicloud.sdk.metastudio.v1.model.CancelPhotoDigitalHumanVideoResponse; import com.huaweicloud.sdk.metastudio.v1.model.CheckTextLanguageRequest; import com.huaweicloud.sdk.metastudio.v1.model.CheckTextLanguageResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CommitJobReq; import com.huaweicloud.sdk.metastudio.v1.model.CommitVoiceTrainingJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.CommitVoiceTrainingJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.ConfirmFileUploadRequest; @@ -33,6 +34,9 @@ import com.huaweicloud.sdk.metastudio.v1.model.CreateActiveCodeResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateAssetbyReplicationInfoRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateAssetbyReplicationInfoResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateBatchKnowledgeQuestionReq; +import com.huaweicloud.sdk.metastudio.v1.model.CreateBatchKnowledgeQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateBatchKnowledgeQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateDialogUrlReq; import com.huaweicloud.sdk.metastudio.v1.model.CreateDialogUrlRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateDialogUrlResponse; @@ -47,8 +51,25 @@ import com.huaweicloud.sdk.metastudio.v1.model.CreateFacialAnimationsResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateFileRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateFileResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateHotQuestionReq; +import com.huaweicloud.sdk.metastudio.v1.model.CreateHotQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateHotQuestionResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateIntentAndQuestionReq; +import com.huaweicloud.sdk.metastudio.v1.model.CreateIntentAndQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateIntentAndQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateInteractionRuleGroupRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateInteractionRuleGroupResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateKnowledgeIntentReq; +import com.huaweicloud.sdk.metastudio.v1.model.CreateKnowledgeIntentRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateKnowledgeIntentResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateKnowledgeQuestionReq; +import com.huaweicloud.sdk.metastudio.v1.model.CreateKnowledgeQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateKnowledgeQuestionResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateKnowledgeSkillReq; +import com.huaweicloud.sdk.metastudio.v1.model.CreateKnowledgeSkillRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateKnowledgeSkillResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateLargeFileRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateLargeFileResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateOnceCodeRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateOnceCodeResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreatePhotoDetectionReq; @@ -89,6 +110,9 @@ import com.huaweicloud.sdk.metastudio.v1.model.CreateVideoScriptsReq; import com.huaweicloud.sdk.metastudio.v1.model.CreateVideoScriptsRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateVideoScriptsResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateWelcomeSpeechReq; +import com.huaweicloud.sdk.metastudio.v1.model.CreateWelcomeSpeechRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateWelcomeSpeechResponse; import com.huaweicloud.sdk.metastudio.v1.model.Delete2dModelTrainingJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.Delete2dModelTrainingJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteActiveCodeRequest; @@ -99,8 +123,16 @@ import com.huaweicloud.sdk.metastudio.v1.model.DeleteDigitalHumanBusinessCardResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteFileRequest; import com.huaweicloud.sdk.metastudio.v1.model.DeleteFileResponse; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteHotQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteHotQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteInteractionRuleGroupRequest; import com.huaweicloud.sdk.metastudio.v1.model.DeleteInteractionRuleGroupResponse; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeIntentRequest; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeIntentResponse; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeQuestionResponse; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeSkillRequest; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeSkillResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteRobotRequest; import com.huaweicloud.sdk.metastudio.v1.model.DeleteRobotResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteSmartChatRoomRequest; @@ -111,6 +143,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.DeleteVideoScriptResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteVoiceTrainingJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.DeleteVoiceTrainingJobResponse; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteWelcomeSpeechRequest; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteWelcomeSpeechResponse; import com.huaweicloud.sdk.metastudio.v1.model.Execute2dModelTrainingCommandByUserReq; import com.huaweicloud.sdk.metastudio.v1.model.Execute2dModelTrainingCommandByUserRequest; import com.huaweicloud.sdk.metastudio.v1.model.Execute2dModelTrainingCommandByUserResponse; @@ -118,9 +152,12 @@ import com.huaweicloud.sdk.metastudio.v1.model.ExecuteSmartLiveCommandResponse; import com.huaweicloud.sdk.metastudio.v1.model.ExecuteVideoMotionCaptureCommandRequest; import com.huaweicloud.sdk.metastudio.v1.model.ExecuteVideoMotionCaptureCommandResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ExportKnowledgeSkillRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ExportKnowledgeSkillResponse; import com.huaweicloud.sdk.metastudio.v1.model.FilesCreateReq; import com.huaweicloud.sdk.metastudio.v1.model.InteractionRuleGroup; import com.huaweicloud.sdk.metastudio.v1.model.LanguageCheckInfoReq; +import com.huaweicloud.sdk.metastudio.v1.model.LargeFilesCreateReq; import com.huaweicloud.sdk.metastudio.v1.model.List2dModelTrainingJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.List2dModelTrainingJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListActiveCodeRequest; @@ -136,8 +173,16 @@ import com.huaweicloud.sdk.metastudio.v1.model.ListDigitalHumanVideoResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListFacialAnimationsDataRequest; import com.huaweicloud.sdk.metastudio.v1.model.ListFacialAnimationsDataResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ListHotQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ListHotQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListInteractionRuleGroupsRequest; import com.huaweicloud.sdk.metastudio.v1.model.ListInteractionRuleGroupsResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ListKnowledgeIntentRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ListKnowledgeIntentResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ListKnowledgeQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ListKnowledgeQuestionResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ListKnowledgeSkillRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ListKnowledgeSkillResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListPictureModelingJobsRequest; import com.huaweicloud.sdk.metastudio.v1.model.ListPictureModelingJobsResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListRobotRequest; @@ -162,6 +207,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.ListVideoScriptsResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListVoiceTrainingJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.ListVoiceTrainingJobResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ListWelcomeSpeechRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ListWelcomeSpeechResponse; import com.huaweicloud.sdk.metastudio.v1.model.LiveEventReportRequest; import com.huaweicloud.sdk.metastudio.v1.model.LiveEventReportResponse; import com.huaweicloud.sdk.metastudio.v1.model.PictureModelingByUrlReq; @@ -183,10 +230,18 @@ import com.huaweicloud.sdk.metastudio.v1.model.ShowAssetResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowDigitalHumanBusinessCardRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowDigitalHumanBusinessCardResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ShowHotQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ShowHotQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowJobAuditResultRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowJobAuditResultResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowJobUploadingAddressRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowJobUploadingAddressResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ShowKnowledgeIntentRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ShowKnowledgeIntentResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ShowKnowledgeQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ShowKnowledgeQuestionResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ShowKnowledgeSkillRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ShowKnowledgeSkillResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowPhotoDetectionRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowPhotoDetectionResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowPhotoDigitalHumanVideoRequest; @@ -213,6 +268,10 @@ import com.huaweicloud.sdk.metastudio.v1.model.ShowVideoScriptResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowVoiceTrainingJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowVoiceTrainingJobResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ShowWelcomeSpeechRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ShowWelcomeSpeechResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ShowWelcomeSpeechSwitchRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ShowWelcomeSpeechSwitchResponse; import com.huaweicloud.sdk.metastudio.v1.model.StartSmartChatJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.StartSmartChatJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.StartSmartLiveReq; @@ -230,13 +289,28 @@ import com.huaweicloud.sdk.metastudio.v1.model.UpdateActiveCodeReq; import com.huaweicloud.sdk.metastudio.v1.model.UpdateActiveCodeRequest; import com.huaweicloud.sdk.metastudio.v1.model.UpdateActiveCodeResponse; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateBatchKnowledgeQuestionReq; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateBatchKnowledgeQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateBatchKnowledgeQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateDigitalAssetRequest; import com.huaweicloud.sdk.metastudio.v1.model.UpdateDigitalAssetRequestBody; import com.huaweicloud.sdk.metastudio.v1.model.UpdateDigitalAssetResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateDigitalHumanBusinessCardRequest; import com.huaweicloud.sdk.metastudio.v1.model.UpdateDigitalHumanBusinessCardResponse; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateHotQuestionReq; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateHotQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateHotQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateInteractionRuleGroupRequest; import com.huaweicloud.sdk.metastudio.v1.model.UpdateInteractionRuleGroupResponse; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeIntentReq; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeIntentRequest; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeIntentResponse; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeQuestionReq; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeQuestionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeQuestionResponse; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeSkillReq; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeSkillRequest; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeSkillResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateRobotReq; import com.huaweicloud.sdk.metastudio.v1.model.UpdateRobotRequest; import com.huaweicloud.sdk.metastudio.v1.model.UpdateRobotResponse; @@ -247,6 +321,12 @@ import com.huaweicloud.sdk.metastudio.v1.model.UpdateVideoScriptRequest; import com.huaweicloud.sdk.metastudio.v1.model.UpdateVideoScriptResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateVideoScriptsReq; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateWelcomeSpeechReq; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateWelcomeSpeechRequest; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateWelcomeSpeechResponse; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateWelcomeSpeechSwitchReq; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateWelcomeSpeechSwitchRequest; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateWelcomeSpeechSwitchResponse; import com.huaweicloud.sdk.metastudio.v1.model.VideoMotionCaptureJobReq; import java.util.List; @@ -2252,6 +2332,49 @@ private static HttpRequestDef genForCreat return builder.build(); } + public static final HttpRequestDef createLargeFile = + genForCreateLargeFile(); + + private static HttpRequestDef genForCreateLargeFile() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, CreateLargeFileRequest.class, CreateLargeFileResponse.class) + .withName("CreateLargeFile") + .withUri("/v1/{project_id}/large-files") + .withContentType("application/json"); + + // requests + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateLargeFileRequest::getAuthorization, CreateLargeFileRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateLargeFileRequest::getXSdkDate, CreateLargeFileRequest::setXSdkDate)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateLargeFileRequest::getXAppUserId, CreateLargeFileRequest::setXAppUserId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(LargeFilesCreateReq.class), + f -> f.withMarshaller(CreateLargeFileRequest::getBody, CreateLargeFileRequest::setBody)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(CreateLargeFileResponse::getXRequestId, CreateLargeFileResponse::setXRequestId)); + return builder.build(); + } + public static final HttpRequestDef deleteFile = genForDeleteFile(); private static HttpRequestDef genForDeleteFile() { @@ -2290,7 +2413,1328 @@ private static HttpRequestDef genForDelet LocationType.Header, FieldExistence.NULL_IGNORE, String.class, - f -> f.withMarshaller(DeleteFileResponse::getXRequestId, DeleteFileResponse::setXRequestId)); + f -> f.withMarshaller(DeleteFileResponse::getXRequestId, DeleteFileResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef createHotQuestion = + genForCreateHotQuestion(); + + private static HttpRequestDef genForCreateHotQuestion() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, CreateHotQuestionRequest.class, CreateHotQuestionResponse.class) + .withName("CreateHotQuestion") + .withUri("/v1/{project_id}/digital-human-chat/hot-question") + .withContentType("application/json"); + + // requests + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateHotQuestionRequest::getAuthorization, + CreateHotQuestionRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateHotQuestionRequest::getXSdkDate, CreateHotQuestionRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateHotQuestionRequest::getXProjectId, CreateHotQuestionRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateHotQuestionRequest::getXAppUserId, CreateHotQuestionRequest::setXAppUserId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateHotQuestionReq.class), + f -> f.withMarshaller(CreateHotQuestionRequest::getBody, CreateHotQuestionRequest::setBody)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(CreateHotQuestionResponse::getXRequestId, CreateHotQuestionResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef deleteHotQuestion = + genForDeleteHotQuestion(); + + private static HttpRequestDef genForDeleteHotQuestion() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, DeleteHotQuestionRequest.class, DeleteHotQuestionResponse.class) + .withName("DeleteHotQuestion") + .withUri("/v1/{project_id}/digital-human-chat/hot-question/delete") + .withContentType("application/json"); + + // requests + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteHotQuestionRequest::getAuthorization, + DeleteHotQuestionRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteHotQuestionRequest::getXSdkDate, DeleteHotQuestionRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteHotQuestionRequest::getXProjectId, DeleteHotQuestionRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteHotQuestionRequest::getXAppUserId, DeleteHotQuestionRequest::setXAppUserId)); + builder.>withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(List.class), + f -> f.withMarshaller(DeleteHotQuestionRequest::getBody, DeleteHotQuestionRequest::setBody) + .withInnerContainerType(String.class)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(DeleteHotQuestionResponse::getXRequestId, DeleteHotQuestionResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef listHotQuestion = + genForListHotQuestion(); + + private static HttpRequestDef genForListHotQuestion() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListHotQuestionRequest.class, ListHotQuestionResponse.class) + .withName("ListHotQuestion") + .withUri("/v1/{project_id}/digital-human-chat/hot-question") + .withContentType("application/json"); + + // requests + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListHotQuestionRequest::getOffset, ListHotQuestionRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListHotQuestionRequest::getLimit, ListHotQuestionRequest::setLimit)); + builder.withRequestField("sort_dir", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListHotQuestionRequest::getSortDir, ListHotQuestionRequest::setSortDir)); + builder.withRequestField("robot_id", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListHotQuestionRequest::getRobotId, ListHotQuestionRequest::setRobotId)); + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListHotQuestionRequest::getAuthorization, ListHotQuestionRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListHotQuestionRequest::getXSdkDate, ListHotQuestionRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListHotQuestionRequest::getXProjectId, ListHotQuestionRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListHotQuestionRequest::getXAppUserId, ListHotQuestionRequest::setXAppUserId)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(ListHotQuestionResponse::getXRequestId, ListHotQuestionResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef showHotQuestion = + genForShowHotQuestion(); + + private static HttpRequestDef genForShowHotQuestion() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowHotQuestionRequest.class, ShowHotQuestionResponse.class) + .withName("ShowHotQuestion") + .withUri("/v1/{project_id}/digital-human-chat/hot-question/{hot_question_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("hot_question_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowHotQuestionRequest::getHotQuestionId, ShowHotQuestionRequest::setHotQuestionId)); + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowHotQuestionRequest::getAuthorization, ShowHotQuestionRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowHotQuestionRequest::getXSdkDate, ShowHotQuestionRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowHotQuestionRequest::getXProjectId, ShowHotQuestionRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowHotQuestionRequest::getXAppUserId, ShowHotQuestionRequest::setXAppUserId)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(ShowHotQuestionResponse::getXRequestId, ShowHotQuestionResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef updateHotQuestion = + genForUpdateHotQuestion(); + + private static HttpRequestDef genForUpdateHotQuestion() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.PUT, UpdateHotQuestionRequest.class, UpdateHotQuestionResponse.class) + .withName("UpdateHotQuestion") + .withUri("/v1/{project_id}/digital-human-chat/hot-question/{hot_question_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("hot_question_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateHotQuestionRequest::getHotQuestionId, + UpdateHotQuestionRequest::setHotQuestionId)); + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateHotQuestionRequest::getAuthorization, + UpdateHotQuestionRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateHotQuestionRequest::getXSdkDate, UpdateHotQuestionRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateHotQuestionRequest::getXProjectId, UpdateHotQuestionRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateHotQuestionRequest::getXAppUserId, UpdateHotQuestionRequest::setXAppUserId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateHotQuestionReq.class), + f -> f.withMarshaller(UpdateHotQuestionRequest::getBody, UpdateHotQuestionRequest::setBody)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(UpdateHotQuestionResponse::getXRequestId, UpdateHotQuestionResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef createIntentAndQuestion = + genForCreateIntentAndQuestion(); + + private static HttpRequestDef genForCreateIntentAndQuestion() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, CreateIntentAndQuestionRequest.class, CreateIntentAndQuestionResponse.class) + .withName("CreateIntentAndQuestion") + .withUri("/v1/{project_id}/digital-human-chat/knowledge/intent-question") + .withContentType("application/json"); + + // requests + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateIntentAndQuestionRequest::getAuthorization, + CreateIntentAndQuestionRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateIntentAndQuestionRequest::getXSdkDate, + CreateIntentAndQuestionRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateIntentAndQuestionRequest::getXProjectId, + CreateIntentAndQuestionRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateIntentAndQuestionRequest::getXAppUserId, + CreateIntentAndQuestionRequest::setXAppUserId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateIntentAndQuestionReq.class), + f -> f.withMarshaller(CreateIntentAndQuestionRequest::getBody, CreateIntentAndQuestionRequest::setBody)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(CreateIntentAndQuestionResponse::getXRequestId, + CreateIntentAndQuestionResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef createKnowledgeIntent = + genForCreateKnowledgeIntent(); + + private static HttpRequestDef genForCreateKnowledgeIntent() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, CreateKnowledgeIntentRequest.class, CreateKnowledgeIntentResponse.class) + .withName("CreateKnowledgeIntent") + .withUri("/v1/{project_id}/digital-human-chat/knowledge/intent") + .withContentType("application/json"); + + // requests + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateKnowledgeIntentRequest::getAuthorization, + CreateKnowledgeIntentRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateKnowledgeIntentRequest::getXSdkDate, + CreateKnowledgeIntentRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateKnowledgeIntentRequest::getXProjectId, + CreateKnowledgeIntentRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateKnowledgeIntentRequest::getXAppUserId, + CreateKnowledgeIntentRequest::setXAppUserId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateKnowledgeIntentReq.class), + f -> f.withMarshaller(CreateKnowledgeIntentRequest::getBody, CreateKnowledgeIntentRequest::setBody)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(CreateKnowledgeIntentResponse::getXRequestId, + CreateKnowledgeIntentResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef deleteKnowledgeIntent = + genForDeleteKnowledgeIntent(); + + private static HttpRequestDef genForDeleteKnowledgeIntent() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, DeleteKnowledgeIntentRequest.class, DeleteKnowledgeIntentResponse.class) + .withName("DeleteKnowledgeIntent") + .withUri("/v1/{project_id}/digital-human-chat/knowledge/intent/delete") + .withContentType("application/json"); + + // requests + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteKnowledgeIntentRequest::getAuthorization, + DeleteKnowledgeIntentRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteKnowledgeIntentRequest::getXSdkDate, + DeleteKnowledgeIntentRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteKnowledgeIntentRequest::getXProjectId, + DeleteKnowledgeIntentRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteKnowledgeIntentRequest::getXAppUserId, + DeleteKnowledgeIntentRequest::setXAppUserId)); + builder.>withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(List.class), + f -> f.withMarshaller(DeleteKnowledgeIntentRequest::getBody, DeleteKnowledgeIntentRequest::setBody) + .withInnerContainerType(String.class)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(DeleteKnowledgeIntentResponse::getXRequestId, + DeleteKnowledgeIntentResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef listKnowledgeIntent = + genForListKnowledgeIntent(); + + private static HttpRequestDef genForListKnowledgeIntent() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListKnowledgeIntentRequest.class, ListKnowledgeIntentResponse.class) + .withName("ListKnowledgeIntent") + .withUri("/v1/{project_id}/digital-human-chat/knowledge/intent") + .withContentType("application/json"); + + // requests + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListKnowledgeIntentRequest::getOffset, ListKnowledgeIntentRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListKnowledgeIntentRequest::getLimit, ListKnowledgeIntentRequest::setLimit)); + builder.withRequestField("skill_id", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListKnowledgeIntentRequest::getSkillId, ListKnowledgeIntentRequest::setSkillId)); + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListKnowledgeIntentRequest::getAuthorization, + ListKnowledgeIntentRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListKnowledgeIntentRequest::getXSdkDate, ListKnowledgeIntentRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListKnowledgeIntentRequest::getXProjectId, + ListKnowledgeIntentRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListKnowledgeIntentRequest::getXAppUserId, + ListKnowledgeIntentRequest::setXAppUserId)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(ListKnowledgeIntentResponse::getXRequestId, + ListKnowledgeIntentResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef showKnowledgeIntent = + genForShowKnowledgeIntent(); + + private static HttpRequestDef genForShowKnowledgeIntent() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowKnowledgeIntentRequest.class, ShowKnowledgeIntentResponse.class) + .withName("ShowKnowledgeIntent") + .withUri("/v1/{project_id}/digital-human-chat/knowledge/intent/{intent_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("intent_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowKnowledgeIntentRequest::getIntentId, ShowKnowledgeIntentRequest::setIntentId)); + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowKnowledgeIntentRequest::getAuthorization, + ShowKnowledgeIntentRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowKnowledgeIntentRequest::getXSdkDate, ShowKnowledgeIntentRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowKnowledgeIntentRequest::getXProjectId, + ShowKnowledgeIntentRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowKnowledgeIntentRequest::getXAppUserId, + ShowKnowledgeIntentRequest::setXAppUserId)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(ShowKnowledgeIntentResponse::getXRequestId, + ShowKnowledgeIntentResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef updateKnowledgeIntent = + genForUpdateKnowledgeIntent(); + + private static HttpRequestDef genForUpdateKnowledgeIntent() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.PUT, UpdateKnowledgeIntentRequest.class, UpdateKnowledgeIntentResponse.class) + .withName("UpdateKnowledgeIntent") + .withUri("/v1/{project_id}/digital-human-chat/knowledge/intent/{intent_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("intent_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateKnowledgeIntentRequest::getIntentId, + UpdateKnowledgeIntentRequest::setIntentId)); + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateKnowledgeIntentRequest::getAuthorization, + UpdateKnowledgeIntentRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateKnowledgeIntentRequest::getXSdkDate, + UpdateKnowledgeIntentRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateKnowledgeIntentRequest::getXProjectId, + UpdateKnowledgeIntentRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateKnowledgeIntentRequest::getXAppUserId, + UpdateKnowledgeIntentRequest::setXAppUserId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateKnowledgeIntentReq.class), + f -> f.withMarshaller(UpdateKnowledgeIntentRequest::getBody, UpdateKnowledgeIntentRequest::setBody)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(UpdateKnowledgeIntentResponse::getXRequestId, + UpdateKnowledgeIntentResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef createBatchKnowledgeQuestion = + genForCreateBatchKnowledgeQuestion(); + + private static HttpRequestDef genForCreateBatchKnowledgeQuestion() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + CreateBatchKnowledgeQuestionRequest.class, + CreateBatchKnowledgeQuestionResponse.class) + .withName("CreateBatchKnowledgeQuestion") + .withUri("/v1/{project_id}/digital-human-chat/knowledge/question-batch") + .withContentType("application/json"); + + // requests + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateBatchKnowledgeQuestionRequest::getAuthorization, + CreateBatchKnowledgeQuestionRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateBatchKnowledgeQuestionRequest::getXSdkDate, + CreateBatchKnowledgeQuestionRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateBatchKnowledgeQuestionRequest::getXProjectId, + CreateBatchKnowledgeQuestionRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateBatchKnowledgeQuestionRequest::getXAppUserId, + CreateBatchKnowledgeQuestionRequest::setXAppUserId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateBatchKnowledgeQuestionReq.class), + f -> f.withMarshaller(CreateBatchKnowledgeQuestionRequest::getBody, + CreateBatchKnowledgeQuestionRequest::setBody)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(CreateBatchKnowledgeQuestionResponse::getXRequestId, + CreateBatchKnowledgeQuestionResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef createKnowledgeQuestion = + genForCreateKnowledgeQuestion(); + + private static HttpRequestDef genForCreateKnowledgeQuestion() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, CreateKnowledgeQuestionRequest.class, CreateKnowledgeQuestionResponse.class) + .withName("CreateKnowledgeQuestion") + .withUri("/v1/{project_id}/digital-human-chat/knowledge/question") + .withContentType("application/json"); + + // requests + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateKnowledgeQuestionRequest::getAuthorization, + CreateKnowledgeQuestionRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateKnowledgeQuestionRequest::getXSdkDate, + CreateKnowledgeQuestionRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateKnowledgeQuestionRequest::getXProjectId, + CreateKnowledgeQuestionRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateKnowledgeQuestionRequest::getXAppUserId, + CreateKnowledgeQuestionRequest::setXAppUserId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateKnowledgeQuestionReq.class), + f -> f.withMarshaller(CreateKnowledgeQuestionRequest::getBody, CreateKnowledgeQuestionRequest::setBody)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(CreateKnowledgeQuestionResponse::getXRequestId, + CreateKnowledgeQuestionResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef deleteKnowledgeQuestion = + genForDeleteKnowledgeQuestion(); + + private static HttpRequestDef genForDeleteKnowledgeQuestion() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, DeleteKnowledgeQuestionRequest.class, DeleteKnowledgeQuestionResponse.class) + .withName("DeleteKnowledgeQuestion") + .withUri("/v1/{project_id}/digital-human-chat/knowledge/question/delete") + .withContentType("application/json"); + + // requests + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteKnowledgeQuestionRequest::getAuthorization, + DeleteKnowledgeQuestionRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteKnowledgeQuestionRequest::getXSdkDate, + DeleteKnowledgeQuestionRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteKnowledgeQuestionRequest::getXProjectId, + DeleteKnowledgeQuestionRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteKnowledgeQuestionRequest::getXAppUserId, + DeleteKnowledgeQuestionRequest::setXAppUserId)); + builder.>withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(List.class), + f -> f.withMarshaller(DeleteKnowledgeQuestionRequest::getBody, DeleteKnowledgeQuestionRequest::setBody) + .withInnerContainerType(String.class)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(DeleteKnowledgeQuestionResponse::getXRequestId, + DeleteKnowledgeQuestionResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef listKnowledgeQuestion = + genForListKnowledgeQuestion(); + + private static HttpRequestDef genForListKnowledgeQuestion() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ListKnowledgeQuestionRequest.class, ListKnowledgeQuestionResponse.class) + .withName("ListKnowledgeQuestion") + .withUri("/v1/{project_id}/digital-human-chat/knowledge/question") + .withContentType("application/json"); + + // requests + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListKnowledgeQuestionRequest::getOffset, ListKnowledgeQuestionRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListKnowledgeQuestionRequest::getLimit, ListKnowledgeQuestionRequest::setLimit)); + builder.withRequestField("intent_id", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListKnowledgeQuestionRequest::getIntentId, + ListKnowledgeQuestionRequest::setIntentId)); + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListKnowledgeQuestionRequest::getAuthorization, + ListKnowledgeQuestionRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListKnowledgeQuestionRequest::getXSdkDate, + ListKnowledgeQuestionRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListKnowledgeQuestionRequest::getXProjectId, + ListKnowledgeQuestionRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListKnowledgeQuestionRequest::getXAppUserId, + ListKnowledgeQuestionRequest::setXAppUserId)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(ListKnowledgeQuestionResponse::getXRequestId, + ListKnowledgeQuestionResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef showKnowledgeQuestion = + genForShowKnowledgeQuestion(); + + private static HttpRequestDef genForShowKnowledgeQuestion() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ShowKnowledgeQuestionRequest.class, ShowKnowledgeQuestionResponse.class) + .withName("ShowKnowledgeQuestion") + .withUri("/v1/{project_id}/digital-human-chat/knowledge/question/{question_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("question_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowKnowledgeQuestionRequest::getQuestionId, + ShowKnowledgeQuestionRequest::setQuestionId)); + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowKnowledgeQuestionRequest::getAuthorization, + ShowKnowledgeQuestionRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowKnowledgeQuestionRequest::getXSdkDate, + ShowKnowledgeQuestionRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowKnowledgeQuestionRequest::getXProjectId, + ShowKnowledgeQuestionRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowKnowledgeQuestionRequest::getXAppUserId, + ShowKnowledgeQuestionRequest::setXAppUserId)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(ShowKnowledgeQuestionResponse::getXRequestId, + ShowKnowledgeQuestionResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef updateBatchKnowledgeQuestion = + genForUpdateBatchKnowledgeQuestion(); + + private static HttpRequestDef genForUpdateBatchKnowledgeQuestion() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.PUT, + UpdateBatchKnowledgeQuestionRequest.class, + UpdateBatchKnowledgeQuestionResponse.class) + .withName("UpdateBatchKnowledgeQuestion") + .withUri("/v1/{project_id}/digital-human-chat/knowledge/question-batch") + .withContentType("application/json"); + + // requests + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateBatchKnowledgeQuestionRequest::getAuthorization, + UpdateBatchKnowledgeQuestionRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateBatchKnowledgeQuestionRequest::getXSdkDate, + UpdateBatchKnowledgeQuestionRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateBatchKnowledgeQuestionRequest::getXProjectId, + UpdateBatchKnowledgeQuestionRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateBatchKnowledgeQuestionRequest::getXAppUserId, + UpdateBatchKnowledgeQuestionRequest::setXAppUserId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateBatchKnowledgeQuestionReq.class), + f -> f.withMarshaller(UpdateBatchKnowledgeQuestionRequest::getBody, + UpdateBatchKnowledgeQuestionRequest::setBody)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(UpdateBatchKnowledgeQuestionResponse::getXRequestId, + UpdateBatchKnowledgeQuestionResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef updateKnowledgeQuestion = + genForUpdateKnowledgeQuestion(); + + private static HttpRequestDef genForUpdateKnowledgeQuestion() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.PUT, UpdateKnowledgeQuestionRequest.class, UpdateKnowledgeQuestionResponse.class) + .withName("UpdateKnowledgeQuestion") + .withUri("/v1/{project_id}/digital-human-chat/knowledge/question/{question_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("question_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateKnowledgeQuestionRequest::getQuestionId, + UpdateKnowledgeQuestionRequest::setQuestionId)); + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateKnowledgeQuestionRequest::getAuthorization, + UpdateKnowledgeQuestionRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateKnowledgeQuestionRequest::getXSdkDate, + UpdateKnowledgeQuestionRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateKnowledgeQuestionRequest::getXProjectId, + UpdateKnowledgeQuestionRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateKnowledgeQuestionRequest::getXAppUserId, + UpdateKnowledgeQuestionRequest::setXAppUserId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateKnowledgeQuestionReq.class), + f -> f.withMarshaller(UpdateKnowledgeQuestionRequest::getBody, UpdateKnowledgeQuestionRequest::setBody)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(UpdateKnowledgeQuestionResponse::getXRequestId, + UpdateKnowledgeQuestionResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef createKnowledgeSkill = + genForCreateKnowledgeSkill(); + + private static HttpRequestDef genForCreateKnowledgeSkill() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, CreateKnowledgeSkillRequest.class, CreateKnowledgeSkillResponse.class) + .withName("CreateKnowledgeSkill") + .withUri("/v1/{project_id}/digital-human-chat/knowledge/skill") + .withContentType("application/json"); + + // requests + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateKnowledgeSkillRequest::getAuthorization, + CreateKnowledgeSkillRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateKnowledgeSkillRequest::getXSdkDate, CreateKnowledgeSkillRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateKnowledgeSkillRequest::getXProjectId, + CreateKnowledgeSkillRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateKnowledgeSkillRequest::getXAppUserId, + CreateKnowledgeSkillRequest::setXAppUserId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateKnowledgeSkillReq.class), + f -> f.withMarshaller(CreateKnowledgeSkillRequest::getBody, CreateKnowledgeSkillRequest::setBody)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(CreateKnowledgeSkillResponse::getXRequestId, + CreateKnowledgeSkillResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef deleteKnowledgeSkill = + genForDeleteKnowledgeSkill(); + + private static HttpRequestDef genForDeleteKnowledgeSkill() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, DeleteKnowledgeSkillRequest.class, DeleteKnowledgeSkillResponse.class) + .withName("DeleteKnowledgeSkill") + .withUri("/v1/{project_id}/digital-human-chat/knowledge/skill/delete") + .withContentType("application/json"); + + // requests + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteKnowledgeSkillRequest::getAuthorization, + DeleteKnowledgeSkillRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteKnowledgeSkillRequest::getXSdkDate, DeleteKnowledgeSkillRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteKnowledgeSkillRequest::getXProjectId, + DeleteKnowledgeSkillRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteKnowledgeSkillRequest::getXAppUserId, + DeleteKnowledgeSkillRequest::setXAppUserId)); + builder.>withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(List.class), + f -> f.withMarshaller(DeleteKnowledgeSkillRequest::getBody, DeleteKnowledgeSkillRequest::setBody) + .withInnerContainerType(String.class)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(DeleteKnowledgeSkillResponse::getXRequestId, + DeleteKnowledgeSkillResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef exportKnowledgeSkill = + genForExportKnowledgeSkill(); + + private static HttpRequestDef genForExportKnowledgeSkill() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ExportKnowledgeSkillRequest.class, ExportKnowledgeSkillResponse.class) + .withName("ExportKnowledgeSkill") + .withUri("/v1/{project_id}/digital-human-chat/knowledge/skill/{skill_id}/export") + .withContentType("application/json"); + + // requests + builder.withRequestField("skill_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ExportKnowledgeSkillRequest::getSkillId, ExportKnowledgeSkillRequest::setSkillId)); + builder.withRequestField("export_type", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ExportKnowledgeSkillRequest::getExportType, + ExportKnowledgeSkillRequest::setExportType)); + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ExportKnowledgeSkillRequest::getAuthorization, + ExportKnowledgeSkillRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ExportKnowledgeSkillRequest::getXSdkDate, ExportKnowledgeSkillRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ExportKnowledgeSkillRequest::getXProjectId, + ExportKnowledgeSkillRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ExportKnowledgeSkillRequest::getXAppUserId, + ExportKnowledgeSkillRequest::setXAppUserId)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(ExportKnowledgeSkillResponse::getXRequestId, + ExportKnowledgeSkillResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef listKnowledgeSkill = + genForListKnowledgeSkill(); + + private static HttpRequestDef genForListKnowledgeSkill() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListKnowledgeSkillRequest.class, ListKnowledgeSkillResponse.class) + .withName("ListKnowledgeSkill") + .withUri("/v1/{project_id}/digital-human-chat/knowledge/skill") + .withContentType("application/json"); + + // requests + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListKnowledgeSkillRequest::getOffset, ListKnowledgeSkillRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListKnowledgeSkillRequest::getLimit, ListKnowledgeSkillRequest::setLimit)); + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListKnowledgeSkillRequest::getAuthorization, + ListKnowledgeSkillRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListKnowledgeSkillRequest::getXSdkDate, ListKnowledgeSkillRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListKnowledgeSkillRequest::getXProjectId, ListKnowledgeSkillRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListKnowledgeSkillRequest::getXAppUserId, ListKnowledgeSkillRequest::setXAppUserId)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(ListKnowledgeSkillResponse::getXRequestId, + ListKnowledgeSkillResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef showKnowledgeSkill = + genForShowKnowledgeSkill(); + + private static HttpRequestDef genForShowKnowledgeSkill() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowKnowledgeSkillRequest.class, ShowKnowledgeSkillResponse.class) + .withName("ShowKnowledgeSkill") + .withUri("/v1/{project_id}/digital-human-chat/knowledge/skill/{skill_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("skill_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowKnowledgeSkillRequest::getSkillId, ShowKnowledgeSkillRequest::setSkillId)); + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowKnowledgeSkillRequest::getAuthorization, + ShowKnowledgeSkillRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowKnowledgeSkillRequest::getXSdkDate, ShowKnowledgeSkillRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowKnowledgeSkillRequest::getXProjectId, ShowKnowledgeSkillRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowKnowledgeSkillRequest::getXAppUserId, ShowKnowledgeSkillRequest::setXAppUserId)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(ShowKnowledgeSkillResponse::getXRequestId, + ShowKnowledgeSkillResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef updateKnowledgeSkill = + genForUpdateKnowledgeSkill(); + + private static HttpRequestDef genForUpdateKnowledgeSkill() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.PUT, UpdateKnowledgeSkillRequest.class, UpdateKnowledgeSkillResponse.class) + .withName("UpdateKnowledgeSkill") + .withUri("/v1/{project_id}/digital-human-chat/knowledge/skill/{skill_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("skill_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateKnowledgeSkillRequest::getSkillId, UpdateKnowledgeSkillRequest::setSkillId)); + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateKnowledgeSkillRequest::getAuthorization, + UpdateKnowledgeSkillRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateKnowledgeSkillRequest::getXSdkDate, UpdateKnowledgeSkillRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateKnowledgeSkillRequest::getXProjectId, + UpdateKnowledgeSkillRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateKnowledgeSkillRequest::getXAppUserId, + UpdateKnowledgeSkillRequest::setXAppUserId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateKnowledgeSkillReq.class), + f -> f.withMarshaller(UpdateKnowledgeSkillRequest::getBody, UpdateKnowledgeSkillRequest::setBody)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(UpdateKnowledgeSkillResponse::getXRequestId, + UpdateKnowledgeSkillResponse::setXRequestId)); return builder.build(); } @@ -4293,6 +5737,11 @@ private static HttpRequestDef f.withMarshaller(CommitVoiceTrainingJobRequest::getXAppUserId, CommitVoiceTrainingJobRequest::setXAppUserId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(CommitJobReq.class), + f -> f.withMarshaller(CommitVoiceTrainingJobRequest::getBody, CommitVoiceTrainingJobRequest::setBody)); // response @@ -6011,4 +7460,387 @@ private static HttpRequestDef createWelcomeSpeech = + genForCreateWelcomeSpeech(); + + private static HttpRequestDef genForCreateWelcomeSpeech() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, CreateWelcomeSpeechRequest.class, CreateWelcomeSpeechResponse.class) + .withName("CreateWelcomeSpeech") + .withUri("/v1/{project_id}/digital-human-chat/welcome-speech") + .withContentType("application/json"); + + // requests + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateWelcomeSpeechRequest::getAuthorization, + CreateWelcomeSpeechRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateWelcomeSpeechRequest::getXSdkDate, CreateWelcomeSpeechRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateWelcomeSpeechRequest::getXProjectId, + CreateWelcomeSpeechRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateWelcomeSpeechRequest::getXAppUserId, + CreateWelcomeSpeechRequest::setXAppUserId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateWelcomeSpeechReq.class), + f -> f.withMarshaller(CreateWelcomeSpeechRequest::getBody, CreateWelcomeSpeechRequest::setBody)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(CreateWelcomeSpeechResponse::getXRequestId, + CreateWelcomeSpeechResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef deleteWelcomeSpeech = + genForDeleteWelcomeSpeech(); + + private static HttpRequestDef genForDeleteWelcomeSpeech() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, DeleteWelcomeSpeechRequest.class, DeleteWelcomeSpeechResponse.class) + .withName("DeleteWelcomeSpeech") + .withUri("/v1/{project_id}/digital-human-chat/welcome-speech/delete") + .withContentType("application/json"); + + // requests + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteWelcomeSpeechRequest::getAuthorization, + DeleteWelcomeSpeechRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteWelcomeSpeechRequest::getXSdkDate, DeleteWelcomeSpeechRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteWelcomeSpeechRequest::getXProjectId, + DeleteWelcomeSpeechRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteWelcomeSpeechRequest::getXAppUserId, + DeleteWelcomeSpeechRequest::setXAppUserId)); + builder.>withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(List.class), + f -> f.withMarshaller(DeleteWelcomeSpeechRequest::getBody, DeleteWelcomeSpeechRequest::setBody) + .withInnerContainerType(String.class)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(DeleteWelcomeSpeechResponse::getXRequestId, + DeleteWelcomeSpeechResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef listWelcomeSpeech = + genForListWelcomeSpeech(); + + private static HttpRequestDef genForListWelcomeSpeech() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListWelcomeSpeechRequest.class, ListWelcomeSpeechResponse.class) + .withName("ListWelcomeSpeech") + .withUri("/v1/{project_id}/digital-human-chat/welcome-speech") + .withContentType("application/json"); + + // requests + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListWelcomeSpeechRequest::getOffset, ListWelcomeSpeechRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListWelcomeSpeechRequest::getLimit, ListWelcomeSpeechRequest::setLimit)); + builder.withRequestField("robot_id", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListWelcomeSpeechRequest::getRobotId, ListWelcomeSpeechRequest::setRobotId)); + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListWelcomeSpeechRequest::getAuthorization, + ListWelcomeSpeechRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListWelcomeSpeechRequest::getXSdkDate, ListWelcomeSpeechRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListWelcomeSpeechRequest::getXProjectId, ListWelcomeSpeechRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListWelcomeSpeechRequest::getXAppUserId, ListWelcomeSpeechRequest::setXAppUserId)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(ListWelcomeSpeechResponse::getXRequestId, ListWelcomeSpeechResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef showWelcomeSpeech = + genForShowWelcomeSpeech(); + + private static HttpRequestDef genForShowWelcomeSpeech() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowWelcomeSpeechRequest.class, ShowWelcomeSpeechResponse.class) + .withName("ShowWelcomeSpeech") + .withUri("/v1/{project_id}/digital-human-chat/welcome-speech/{welcome_speech_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("welcome_speech_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowWelcomeSpeechRequest::getWelcomeSpeechId, + ShowWelcomeSpeechRequest::setWelcomeSpeechId)); + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowWelcomeSpeechRequest::getAuthorization, + ShowWelcomeSpeechRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowWelcomeSpeechRequest::getXSdkDate, ShowWelcomeSpeechRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowWelcomeSpeechRequest::getXProjectId, ShowWelcomeSpeechRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowWelcomeSpeechRequest::getXAppUserId, ShowWelcomeSpeechRequest::setXAppUserId)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(ShowWelcomeSpeechResponse::getXRequestId, ShowWelcomeSpeechResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef showWelcomeSpeechSwitch = + genForShowWelcomeSpeechSwitch(); + + private static HttpRequestDef genForShowWelcomeSpeechSwitch() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ShowWelcomeSpeechSwitchRequest.class, ShowWelcomeSpeechSwitchResponse.class) + .withName("ShowWelcomeSpeechSwitch") + .withUri("/v1/{project_id}/digital-human-chat/welcome-speech-switch") + .withContentType("application/json"); + + // requests + builder.withRequestField("robot_id", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowWelcomeSpeechSwitchRequest::getRobotId, + ShowWelcomeSpeechSwitchRequest::setRobotId)); + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowWelcomeSpeechSwitchRequest::getAuthorization, + ShowWelcomeSpeechSwitchRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowWelcomeSpeechSwitchRequest::getXSdkDate, + ShowWelcomeSpeechSwitchRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowWelcomeSpeechSwitchRequest::getXProjectId, + ShowWelcomeSpeechSwitchRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowWelcomeSpeechSwitchRequest::getXAppUserId, + ShowWelcomeSpeechSwitchRequest::setXAppUserId)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(ShowWelcomeSpeechSwitchResponse::getXRequestId, + ShowWelcomeSpeechSwitchResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef updateWelcomeSpeech = + genForUpdateWelcomeSpeech(); + + private static HttpRequestDef genForUpdateWelcomeSpeech() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.PUT, UpdateWelcomeSpeechRequest.class, UpdateWelcomeSpeechResponse.class) + .withName("UpdateWelcomeSpeech") + .withUri("/v1/{project_id}/digital-human-chat/welcome-speech/{welcome_speech_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("welcome_speech_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateWelcomeSpeechRequest::getWelcomeSpeechId, + UpdateWelcomeSpeechRequest::setWelcomeSpeechId)); + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateWelcomeSpeechRequest::getAuthorization, + UpdateWelcomeSpeechRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateWelcomeSpeechRequest::getXSdkDate, UpdateWelcomeSpeechRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateWelcomeSpeechRequest::getXProjectId, + UpdateWelcomeSpeechRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateWelcomeSpeechRequest::getXAppUserId, + UpdateWelcomeSpeechRequest::setXAppUserId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateWelcomeSpeechReq.class), + f -> f.withMarshaller(UpdateWelcomeSpeechRequest::getBody, UpdateWelcomeSpeechRequest::setBody)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(UpdateWelcomeSpeechResponse::getXRequestId, + UpdateWelcomeSpeechResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef updateWelcomeSpeechSwitch = + genForUpdateWelcomeSpeechSwitch(); + + private static HttpRequestDef genForUpdateWelcomeSpeechSwitch() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + UpdateWelcomeSpeechSwitchRequest.class, + UpdateWelcomeSpeechSwitchResponse.class) + .withName("UpdateWelcomeSpeechSwitch") + .withUri("/v1/{project_id}/digital-human-chat/welcome-speech-switch") + .withContentType("application/json"); + + // requests + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateWelcomeSpeechSwitchRequest::getAuthorization, + UpdateWelcomeSpeechSwitchRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateWelcomeSpeechSwitchRequest::getXSdkDate, + UpdateWelcomeSpeechSwitchRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateWelcomeSpeechSwitchRequest::getXProjectId, + UpdateWelcomeSpeechSwitchRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateWelcomeSpeechSwitchRequest::getXAppUserId, + UpdateWelcomeSpeechSwitchRequest::setXAppUserId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateWelcomeSpeechSwitchReq.class), + f -> f.withMarshaller(UpdateWelcomeSpeechSwitchRequest::getBody, + UpdateWelcomeSpeechSwitchRequest::setBody)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(UpdateWelcomeSpeechSwitchResponse::getXRequestId, + UpdateWelcomeSpeechSwitchResponse::setXRequestId)); + return builder.build(); + } + } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CommitJobReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CommitJobReq.java new file mode 100644 index 0000000000..40bda84c63 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CommitJobReq.java @@ -0,0 +1,358 @@ +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 CommitJobReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tag") + + private JobTag tag; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + /** + * 语音性别,是男性声音还是女性声音。 * FEMALE: 女性 * MALE: 男性 + */ + public static final class SexEnum { + + /** + * Enum FEMALE for value: "FEMALE" + */ + public static final SexEnum FEMALE = new SexEnum("FEMALE"); + + /** + * Enum MALE for value: "MALE" + */ + public static final SexEnum MALE = new SexEnum("MALE"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("FEMALE", FEMALE); + map.put("MALE", MALE); + return Collections.unmodifiableMap(map); + } + + private String value; + + SexEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static SexEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new SexEnum(value)); + } + + public static SexEnum 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 SexEnum) { + return this.value.equals(((SexEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sex") + + private SexEnum sex; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "voice_name") + + private String voiceName; + + /** + * 训练语言,当前仅支持中文。 * CN: 中文 * EN: 英文 + */ + public static final class LanguageEnum { + + /** + * Enum CN for value: "CN" + */ + public static final LanguageEnum CN = new LanguageEnum("CN"); + + /** + * Enum EN for value: "EN" + */ + public static final LanguageEnum EN = new LanguageEnum("EN"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("CN", CN); + map.put("EN", EN); + return Collections.unmodifiableMap(map); + } + + private String value; + + LanguageEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static LanguageEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new LanguageEnum(value)); + } + + public static LanguageEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof LanguageEnum) { + return this.value.equals(((LanguageEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "language") + + private LanguageEnum language; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "phone") + + private String phone; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_user_id") + + private String appUserId; + + public CommitJobReq withTag(JobTag tag) { + this.tag = tag; + return this; + } + + /** + * Get tag + * @return tag + */ + public JobTag getTag() { + return tag; + } + + public void setTag(JobTag tag) { + this.tag = tag; + } + + public CommitJobReq withDescription(String description) { + this.description = description; + return this; + } + + /** + * 一段描述信息,会呈现在资产库中。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public CommitJobReq withSex(SexEnum sex) { + this.sex = sex; + return this; + } + + /** + * 语音性别,是男性声音还是女性声音。 * FEMALE: 女性 * MALE: 男性 + * @return sex + */ + public SexEnum getSex() { + return sex; + } + + public void setSex(SexEnum sex) { + this.sex = sex; + } + + public CommitJobReq withVoiceName(String voiceName) { + this.voiceName = voiceName; + return this; + } + + /** + * 音色名称。该名称会作为资产库中音色模型资产名称。 + * @return voiceName + */ + public String getVoiceName() { + return voiceName; + } + + public void setVoiceName(String voiceName) { + this.voiceName = voiceName; + } + + public CommitJobReq withLanguage(LanguageEnum language) { + this.language = language; + return this; + } + + /** + * 训练语言,当前仅支持中文。 * CN: 中文 * EN: 英文 + * @return language + */ + public LanguageEnum getLanguage() { + return language; + } + + public void setLanguage(LanguageEnum language) { + this.language = language; + } + + public CommitJobReq withPhone(String phone) { + this.phone = phone; + return this; + } + + /** + * 手机号 + * @return phone + */ + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public CommitJobReq withAppUserId(String appUserId) { + this.appUserId = appUserId; + return this; + } + + /** + * 第三方用户id + * @return appUserId + */ + public String getAppUserId() { + return appUserId; + } + + public void setAppUserId(String appUserId) { + this.appUserId = appUserId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CommitJobReq that = (CommitJobReq) obj; + return Objects.equals(this.tag, that.tag) && Objects.equals(this.description, that.description) + && Objects.equals(this.sex, that.sex) && Objects.equals(this.voiceName, that.voiceName) + && Objects.equals(this.language, that.language) && Objects.equals(this.phone, that.phone) + && Objects.equals(this.appUserId, that.appUserId); + } + + @Override + public int hashCode() { + return Objects.hash(tag, description, sex, voiceName, language, phone, appUserId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CommitJobReq {\n"); + sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" sex: ").append(toIndentedString(sex)).append("\n"); + sb.append(" voiceName: ").append(toIndentedString(voiceName)).append("\n"); + sb.append(" language: ").append(toIndentedString(language)).append("\n"); + sb.append(" phone: ").append(toIndentedString(phone)).append("\n"); + sb.append(" appUserId: ").append(toIndentedString(appUserId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/CommitVoiceTrainingJobRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CommitVoiceTrainingJobRequest.java index 15c11f7f08..60321af514 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CommitVoiceTrainingJobRequest.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CommitVoiceTrainingJobRequest.java @@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Objects; +import java.util.function.Consumer; /** * Request Object @@ -35,6 +36,11 @@ public class CommitVoiceTrainingJobRequest { private String jobId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CommitJobReq body; + public CommitVoiceTrainingJobRequest withAuthorization(String authorization) { this.authorization = authorization; return this; @@ -126,6 +132,32 @@ public void setJobId(String jobId) { this.jobId = jobId; } + public CommitVoiceTrainingJobRequest withBody(CommitJobReq body) { + this.body = body; + return this; + } + + public CommitVoiceTrainingJobRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CommitJobReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CommitJobReq getBody() { + return body; + } + + public void setBody(CommitJobReq body) { + this.body = body; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -137,12 +169,12 @@ public boolean equals(java.lang.Object obj) { CommitVoiceTrainingJobRequest that = (CommitVoiceTrainingJobRequest) obj; return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) - && Objects.equals(this.jobId, that.jobId); + && Objects.equals(this.jobId, that.jobId) && Objects.equals(this.body, that.body); } @Override public int hashCode() { - return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, jobId); + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, jobId, body); } @Override @@ -154,6 +186,7 @@ public String toString() { sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateBatchKnowledgeQuestionReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateBatchKnowledgeQuestionReq.java new file mode 100644 index 0000000000..2fa64108e6 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateBatchKnowledgeQuestionReq.java @@ -0,0 +1,115 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 批量创建知识库问法请求。 + */ +public class CreateBatchKnowledgeQuestionReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "intent_id") + + private String intentId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "question_list") + + private List questionList = null; + + public CreateBatchKnowledgeQuestionReq withIntentId(String intentId) { + this.intentId = intentId; + return this; + } + + /** + * 意图ID。 + * @return intentId + */ + public String getIntentId() { + return intentId; + } + + public void setIntentId(String intentId) { + this.intentId = intentId; + } + + public CreateBatchKnowledgeQuestionReq withQuestionList(List questionList) { + this.questionList = questionList; + return this; + } + + public CreateBatchKnowledgeQuestionReq addQuestionListItem(KnowledgeQuestionCreateInfo questionListItem) { + if (this.questionList == null) { + this.questionList = new ArrayList<>(); + } + this.questionList.add(questionListItem); + return this; + } + + public CreateBatchKnowledgeQuestionReq withQuestionList( + Consumer> questionListSetter) { + if (this.questionList == null) { + this.questionList = new ArrayList<>(); + } + questionListSetter.accept(this.questionList); + return this; + } + + /** + * 问法列表 + * @return questionList + */ + public List getQuestionList() { + return questionList; + } + + public void setQuestionList(List questionList) { + this.questionList = questionList; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateBatchKnowledgeQuestionReq that = (CreateBatchKnowledgeQuestionReq) obj; + return Objects.equals(this.intentId, that.intentId) && Objects.equals(this.questionList, that.questionList); + } + + @Override + public int hashCode() { + return Objects.hash(intentId, questionList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateBatchKnowledgeQuestionReq {\n"); + sb.append(" intentId: ").append(toIndentedString(intentId)).append("\n"); + sb.append(" questionList: ").append(toIndentedString(questionList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/CreateBatchKnowledgeQuestionRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateBatchKnowledgeQuestionRequest.java new file mode 100644 index 0000000000..f4a0e59d32 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateBatchKnowledgeQuestionRequest.java @@ -0,0 +1,182 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CreateBatchKnowledgeQuestionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateBatchKnowledgeQuestionReq body; + + public CreateBatchKnowledgeQuestionRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public CreateBatchKnowledgeQuestionRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public CreateBatchKnowledgeQuestionRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public CreateBatchKnowledgeQuestionRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public CreateBatchKnowledgeQuestionRequest withBody(CreateBatchKnowledgeQuestionReq body) { + this.body = body; + return this; + } + + public CreateBatchKnowledgeQuestionRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateBatchKnowledgeQuestionReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateBatchKnowledgeQuestionReq getBody() { + return body; + } + + public void setBody(CreateBatchKnowledgeQuestionReq 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; + } + CreateBatchKnowledgeQuestionRequest that = (CreateBatchKnowledgeQuestionRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateBatchKnowledgeQuestionRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateBatchKnowledgeQuestionResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateBatchKnowledgeQuestionResponse.java new file mode 100644 index 0000000000..b58836b497 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateBatchKnowledgeQuestionResponse.java @@ -0,0 +1,118 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class CreateBatchKnowledgeQuestionResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "question_list") + + private List questionList = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public CreateBatchKnowledgeQuestionResponse withQuestionList(List questionList) { + this.questionList = questionList; + return this; + } + + public CreateBatchKnowledgeQuestionResponse addQuestionListItem(KnowledgeQuestionInfo questionListItem) { + if (this.questionList == null) { + this.questionList = new ArrayList<>(); + } + this.questionList.add(questionListItem); + return this; + } + + public CreateBatchKnowledgeQuestionResponse withQuestionList( + Consumer> questionListSetter) { + if (this.questionList == null) { + this.questionList = new ArrayList<>(); + } + questionListSetter.accept(this.questionList); + return this; + } + + /** + * 问法列表 + * @return questionList + */ + public List getQuestionList() { + return questionList; + } + + public void setQuestionList(List questionList) { + this.questionList = questionList; + } + + public CreateBatchKnowledgeQuestionResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateBatchKnowledgeQuestionResponse that = (CreateBatchKnowledgeQuestionResponse) obj; + return Objects.equals(this.questionList, that.questionList) && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(questionList, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateBatchKnowledgeQuestionResponse {\n"); + sb.append(" questionList: ").append(toIndentedString(questionList)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateDigitalAssetRequestBody.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateDigitalAssetRequestBody.java index 9898870520..5978913403 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateDigitalAssetRequestBody.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateDigitalAssetRequestBody.java @@ -267,7 +267,7 @@ public CreateDigitalAssetRequestBody withAssetOwner(String assetOwner) { } /** - * 项目ID。 > * 仅管理员帐号可设置此参数。 + * 项目ID。 > * 仅管理员账号可设置此参数。 * @return assetOwner */ public String getAssetOwner() { diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateHotQuestionReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateHotQuestionReq.java new file mode 100644 index 0000000000..86e7174963 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateHotQuestionReq.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 创建热点问题请求。 + */ +public class CreateHotQuestionReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "robot_id") + + private String robotId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hot_question") + + private String hotQuestion; + + public CreateHotQuestionReq withRobotId(String robotId) { + this.robotId = robotId; + return this; + } + + /** + * 机器人ID。 + * @return robotId + */ + public String getRobotId() { + return robotId; + } + + public void setRobotId(String robotId) { + this.robotId = robotId; + } + + public CreateHotQuestionReq withHotQuestion(String hotQuestion) { + this.hotQuestion = hotQuestion; + return this; + } + + /** + * 热点问题。 + * @return hotQuestion + */ + public String getHotQuestion() { + return hotQuestion; + } + + public void setHotQuestion(String hotQuestion) { + this.hotQuestion = hotQuestion; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateHotQuestionReq that = (CreateHotQuestionReq) obj; + return Objects.equals(this.robotId, that.robotId) && Objects.equals(this.hotQuestion, that.hotQuestion); + } + + @Override + public int hashCode() { + return Objects.hash(robotId, hotQuestion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateHotQuestionReq {\n"); + sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); + sb.append(" hotQuestion: ").append(toIndentedString(hotQuestion)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/CreateHotQuestionRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateHotQuestionRequest.java new file mode 100644 index 0000000000..e020ed69fa --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateHotQuestionRequest.java @@ -0,0 +1,182 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CreateHotQuestionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateHotQuestionReq body; + + public CreateHotQuestionRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public CreateHotQuestionRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public CreateHotQuestionRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public CreateHotQuestionRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public CreateHotQuestionRequest withBody(CreateHotQuestionReq body) { + this.body = body; + return this; + } + + public CreateHotQuestionRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateHotQuestionReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateHotQuestionReq getBody() { + return body; + } + + public void setBody(CreateHotQuestionReq 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; + } + CreateHotQuestionRequest that = (CreateHotQuestionRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateHotQuestionRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateHotQuestionResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateHotQuestionResponse.java new file mode 100644 index 0000000000..42a2edb5d5 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateHotQuestionResponse.java @@ -0,0 +1,193 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class CreateHotQuestionResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hot_question_id") + + private String hotQuestionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hot_question") + + private String hotQuestion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "robot_id") + + private String robotId; + + @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 = "X-Request-Id") + + private String xRequestId; + + public CreateHotQuestionResponse withHotQuestionId(String hotQuestionId) { + this.hotQuestionId = hotQuestionId; + return this; + } + + /** + * 热点问题ID。 + * @return hotQuestionId + */ + public String getHotQuestionId() { + return hotQuestionId; + } + + public void setHotQuestionId(String hotQuestionId) { + this.hotQuestionId = hotQuestionId; + } + + public CreateHotQuestionResponse withHotQuestion(String hotQuestion) { + this.hotQuestion = hotQuestion; + return this; + } + + /** + * 热点问题。 + * @return hotQuestion + */ + public String getHotQuestion() { + return hotQuestion; + } + + public void setHotQuestion(String hotQuestion) { + this.hotQuestion = hotQuestion; + } + + public CreateHotQuestionResponse withRobotId(String robotId) { + this.robotId = robotId; + return this; + } + + /** + * 机器人ID。 + * @return robotId + */ + public String getRobotId() { + return robotId; + } + + public void setRobotId(String robotId) { + this.robotId = robotId; + } + + public CreateHotQuestionResponse withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public CreateHotQuestionResponse withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + public CreateHotQuestionResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateHotQuestionResponse that = (CreateHotQuestionResponse) obj; + return Objects.equals(this.hotQuestionId, that.hotQuestionId) + && Objects.equals(this.hotQuestion, that.hotQuestion) && Objects.equals(this.robotId, that.robotId) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(hotQuestionId, hotQuestion, robotId, createTime, updateTime, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateHotQuestionResponse {\n"); + sb.append(" hotQuestionId: ").append(toIndentedString(hotQuestionId)).append("\n"); + sb.append(" hotQuestion: ").append(toIndentedString(hotQuestion)).append("\n"); + sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateIntentAndQuestionReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateIntentAndQuestionReq.java new file mode 100644 index 0000000000..2e50a7453e --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateIntentAndQuestionReq.java @@ -0,0 +1,161 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 创建知识库意图和问法请求。 + */ +public class CreateIntentAndQuestionReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "answer") + + private String answer; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "skill_id") + + private String skillId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "question_list") + + private List questionList = null; + + public CreateIntentAndQuestionReq withName(String name) { + this.name = name; + return this; + } + + /** + * 主题。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateIntentAndQuestionReq withAnswer(String answer) { + this.answer = answer; + return this; + } + + /** + * 问题答案。 + * @return answer + */ + public String getAnswer() { + return answer; + } + + public void setAnswer(String answer) { + this.answer = answer; + } + + public CreateIntentAndQuestionReq withSkillId(String skillId) { + this.skillId = skillId; + return this; + } + + /** + * 技能ID。 + * @return skillId + */ + public String getSkillId() { + return skillId; + } + + public void setSkillId(String skillId) { + this.skillId = skillId; + } + + public CreateIntentAndQuestionReq withQuestionList(List questionList) { + this.questionList = questionList; + return this; + } + + public CreateIntentAndQuestionReq addQuestionListItem(KnowledgeQuestionCreateInfo questionListItem) { + if (this.questionList == null) { + this.questionList = new ArrayList<>(); + } + this.questionList.add(questionListItem); + return this; + } + + public CreateIntentAndQuestionReq withQuestionList(Consumer> questionListSetter) { + if (this.questionList == null) { + this.questionList = new ArrayList<>(); + } + questionListSetter.accept(this.questionList); + return this; + } + + /** + * 问法列表 + * @return questionList + */ + public List getQuestionList() { + return questionList; + } + + public void setQuestionList(List questionList) { + this.questionList = questionList; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateIntentAndQuestionReq that = (CreateIntentAndQuestionReq) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.answer, that.answer) + && Objects.equals(this.skillId, that.skillId) && Objects.equals(this.questionList, that.questionList); + } + + @Override + public int hashCode() { + return Objects.hash(name, answer, skillId, questionList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateIntentAndQuestionReq {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" answer: ").append(toIndentedString(answer)).append("\n"); + sb.append(" skillId: ").append(toIndentedString(skillId)).append("\n"); + sb.append(" questionList: ").append(toIndentedString(questionList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/CreateIntentAndQuestionRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateIntentAndQuestionRequest.java new file mode 100644 index 0000000000..4cff0b491d --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateIntentAndQuestionRequest.java @@ -0,0 +1,182 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CreateIntentAndQuestionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateIntentAndQuestionReq body; + + public CreateIntentAndQuestionRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public CreateIntentAndQuestionRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public CreateIntentAndQuestionRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public CreateIntentAndQuestionRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public CreateIntentAndQuestionRequest withBody(CreateIntentAndQuestionReq body) { + this.body = body; + return this; + } + + public CreateIntentAndQuestionRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateIntentAndQuestionReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateIntentAndQuestionReq getBody() { + return body; + } + + public void setBody(CreateIntentAndQuestionReq 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; + } + CreateIntentAndQuestionRequest that = (CreateIntentAndQuestionRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateIntentAndQuestionRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateIntentAndQuestionResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateIntentAndQuestionResponse.java new file mode 100644 index 0000000000..118469de5f --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateIntentAndQuestionResponse.java @@ -0,0 +1,164 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class CreateIntentAndQuestionResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "intent_id") + + private String intentId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "identify") + + private String identify; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "question_list") + + private List questionList = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public CreateIntentAndQuestionResponse withIntentId(String intentId) { + this.intentId = intentId; + return this; + } + + /** + * 意图ID。 + * @return intentId + */ + public String getIntentId() { + return intentId; + } + + public void setIntentId(String intentId) { + this.intentId = intentId; + } + + public CreateIntentAndQuestionResponse withIdentify(String identify) { + this.identify = identify; + return this; + } + + /** + * 意图标识。 + * @return identify + */ + public String getIdentify() { + return identify; + } + + public void setIdentify(String identify) { + this.identify = identify; + } + + public CreateIntentAndQuestionResponse withQuestionList(List questionList) { + this.questionList = questionList; + return this; + } + + public CreateIntentAndQuestionResponse addQuestionListItem(KnowledgeQuestionInfo questionListItem) { + if (this.questionList == null) { + this.questionList = new ArrayList<>(); + } + this.questionList.add(questionListItem); + return this; + } + + public CreateIntentAndQuestionResponse withQuestionList(Consumer> questionListSetter) { + if (this.questionList == null) { + this.questionList = new ArrayList<>(); + } + questionListSetter.accept(this.questionList); + return this; + } + + /** + * 问法列表 + * @return questionList + */ + public List getQuestionList() { + return questionList; + } + + public void setQuestionList(List questionList) { + this.questionList = questionList; + } + + public CreateIntentAndQuestionResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateIntentAndQuestionResponse that = (CreateIntentAndQuestionResponse) obj; + return Objects.equals(this.intentId, that.intentId) && Objects.equals(this.identify, that.identify) + && Objects.equals(this.questionList, that.questionList) && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(intentId, identify, questionList, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateIntentAndQuestionResponse {\n"); + sb.append(" intentId: ").append(toIndentedString(intentId)).append("\n"); + sb.append(" identify: ").append(toIndentedString(identify)).append("\n"); + sb.append(" questionList: ").append(toIndentedString(questionList)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeIntentReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeIntentReq.java new file mode 100644 index 0000000000..1fd8de3810 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeIntentReq.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 创建知识库意图请求。 + */ +public class CreateKnowledgeIntentReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "answer") + + private String answer; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "skill_id") + + private String skillId; + + public CreateKnowledgeIntentReq withName(String name) { + this.name = name; + return this; + } + + /** + * 主题。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateKnowledgeIntentReq withAnswer(String answer) { + this.answer = answer; + return this; + } + + /** + * 问题答案。 + * @return answer + */ + public String getAnswer() { + return answer; + } + + public void setAnswer(String answer) { + this.answer = answer; + } + + public CreateKnowledgeIntentReq withSkillId(String skillId) { + this.skillId = skillId; + return this; + } + + /** + * 技能ID。 + * @return skillId + */ + public String getSkillId() { + return skillId; + } + + public void setSkillId(String skillId) { + this.skillId = skillId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateKnowledgeIntentReq that = (CreateKnowledgeIntentReq) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.answer, that.answer) + && Objects.equals(this.skillId, that.skillId); + } + + @Override + public int hashCode() { + return Objects.hash(name, answer, skillId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateKnowledgeIntentReq {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" answer: ").append(toIndentedString(answer)).append("\n"); + sb.append(" skillId: ").append(toIndentedString(skillId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/CreateKnowledgeIntentRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeIntentRequest.java new file mode 100644 index 0000000000..2798e614d6 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeIntentRequest.java @@ -0,0 +1,182 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CreateKnowledgeIntentRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateKnowledgeIntentReq body; + + public CreateKnowledgeIntentRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public CreateKnowledgeIntentRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public CreateKnowledgeIntentRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public CreateKnowledgeIntentRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public CreateKnowledgeIntentRequest withBody(CreateKnowledgeIntentReq body) { + this.body = body; + return this; + } + + public CreateKnowledgeIntentRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateKnowledgeIntentReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateKnowledgeIntentReq getBody() { + return body; + } + + public void setBody(CreateKnowledgeIntentReq 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; + } + CreateKnowledgeIntentRequest that = (CreateKnowledgeIntentRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateKnowledgeIntentRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeIntentResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeIntentResponse.java new file mode 100644 index 0000000000..806722e15b --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeIntentResponse.java @@ -0,0 +1,122 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class CreateKnowledgeIntentResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "intent_id") + + private String intentId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "identify") + + private String identify; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public CreateKnowledgeIntentResponse withIntentId(String intentId) { + this.intentId = intentId; + return this; + } + + /** + * 意图ID。 + * @return intentId + */ + public String getIntentId() { + return intentId; + } + + public void setIntentId(String intentId) { + this.intentId = intentId; + } + + public CreateKnowledgeIntentResponse withIdentify(String identify) { + this.identify = identify; + return this; + } + + /** + * 意图标识。 + * @return identify + */ + public String getIdentify() { + return identify; + } + + public void setIdentify(String identify) { + this.identify = identify; + } + + public CreateKnowledgeIntentResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateKnowledgeIntentResponse that = (CreateKnowledgeIntentResponse) obj; + return Objects.equals(this.intentId, that.intentId) && Objects.equals(this.identify, that.identify) + && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(intentId, identify, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateKnowledgeIntentResponse {\n"); + sb.append(" intentId: ").append(toIndentedString(intentId)).append("\n"); + sb.append(" identify: ").append(toIndentedString(identify)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeIntentRsp.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeIntentRsp.java new file mode 100644 index 0000000000..ce904898a6 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeIntentRsp.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 创建知识库意图响应。 + */ +public class CreateKnowledgeIntentRsp { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "intent_id") + + private String intentId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "identify") + + private String identify; + + public CreateKnowledgeIntentRsp withIntentId(String intentId) { + this.intentId = intentId; + return this; + } + + /** + * 意图ID。 + * @return intentId + */ + public String getIntentId() { + return intentId; + } + + public void setIntentId(String intentId) { + this.intentId = intentId; + } + + public CreateKnowledgeIntentRsp withIdentify(String identify) { + this.identify = identify; + return this; + } + + /** + * 意图标识。 + * @return identify + */ + public String getIdentify() { + return identify; + } + + public void setIdentify(String identify) { + this.identify = identify; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateKnowledgeIntentRsp that = (CreateKnowledgeIntentRsp) obj; + return Objects.equals(this.intentId, that.intentId) && Objects.equals(this.identify, that.identify); + } + + @Override + public int hashCode() { + return Objects.hash(intentId, identify); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateKnowledgeIntentRsp {\n"); + sb.append(" intentId: ").append(toIndentedString(intentId)).append("\n"); + sb.append(" identify: ").append(toIndentedString(identify)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/CreateKnowledgeQuestionReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeQuestionReq.java new file mode 100644 index 0000000000..674266d56e --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeQuestionReq.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 创建知识库问法请求。 + */ +public class CreateKnowledgeQuestionReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "question") + + private String question; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "intent_id") + + private String intentId; + + public CreateKnowledgeQuestionReq withQuestion(String question) { + this.question = question; + return this; + } + + /** + * 问法。 + * @return question + */ + public String getQuestion() { + return question; + } + + public void setQuestion(String question) { + this.question = question; + } + + public CreateKnowledgeQuestionReq withIntentId(String intentId) { + this.intentId = intentId; + return this; + } + + /** + * 意图ID。 + * @return intentId + */ + public String getIntentId() { + return intentId; + } + + public void setIntentId(String intentId) { + this.intentId = intentId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateKnowledgeQuestionReq that = (CreateKnowledgeQuestionReq) obj; + return Objects.equals(this.question, that.question) && Objects.equals(this.intentId, that.intentId); + } + + @Override + public int hashCode() { + return Objects.hash(question, intentId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateKnowledgeQuestionReq {\n"); + sb.append(" question: ").append(toIndentedString(question)).append("\n"); + sb.append(" intentId: ").append(toIndentedString(intentId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/CreateKnowledgeQuestionRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeQuestionRequest.java new file mode 100644 index 0000000000..5b31e572c8 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeQuestionRequest.java @@ -0,0 +1,182 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CreateKnowledgeQuestionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateKnowledgeQuestionReq body; + + public CreateKnowledgeQuestionRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public CreateKnowledgeQuestionRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public CreateKnowledgeQuestionRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public CreateKnowledgeQuestionRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public CreateKnowledgeQuestionRequest withBody(CreateKnowledgeQuestionReq body) { + this.body = body; + return this; + } + + public CreateKnowledgeQuestionRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateKnowledgeQuestionReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateKnowledgeQuestionReq getBody() { + return body; + } + + public void setBody(CreateKnowledgeQuestionReq 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; + } + CreateKnowledgeQuestionRequest that = (CreateKnowledgeQuestionRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateKnowledgeQuestionRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeQuestionResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeQuestionResponse.java new file mode 100644 index 0000000000..d4587afe2f --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeQuestionResponse.java @@ -0,0 +1,98 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class CreateKnowledgeQuestionResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "question_id") + + private String questionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public CreateKnowledgeQuestionResponse withQuestionId(String questionId) { + this.questionId = questionId; + return this; + } + + /** + * 问法ID。 + * @return questionId + */ + public String getQuestionId() { + return questionId; + } + + public void setQuestionId(String questionId) { + this.questionId = questionId; + } + + public CreateKnowledgeQuestionResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateKnowledgeQuestionResponse that = (CreateKnowledgeQuestionResponse) obj; + return Objects.equals(this.questionId, that.questionId) && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(questionId, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateKnowledgeQuestionResponse {\n"); + sb.append(" questionId: ").append(toIndentedString(questionId)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeSkillReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeSkillReq.java new file mode 100644 index 0000000000..36bd40613a --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeSkillReq.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 创建知识库技能请求。 + */ +public class CreateKnowledgeSkillReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "identify") + + private String identify; + + public CreateKnowledgeSkillReq withName(String name) { + this.name = name; + return this; + } + + /** + * 技能名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateKnowledgeSkillReq withIdentify(String identify) { + this.identify = identify; + return this; + } + + /** + * 技能标识。 + * @return identify + */ + public String getIdentify() { + return identify; + } + + public void setIdentify(String identify) { + this.identify = identify; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateKnowledgeSkillReq that = (CreateKnowledgeSkillReq) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.identify, that.identify); + } + + @Override + public int hashCode() { + return Objects.hash(name, identify); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateKnowledgeSkillReq {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" identify: ").append(toIndentedString(identify)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/CreateKnowledgeSkillRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeSkillRequest.java new file mode 100644 index 0000000000..d377d97784 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeSkillRequest.java @@ -0,0 +1,182 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CreateKnowledgeSkillRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateKnowledgeSkillReq body; + + public CreateKnowledgeSkillRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public CreateKnowledgeSkillRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public CreateKnowledgeSkillRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public CreateKnowledgeSkillRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public CreateKnowledgeSkillRequest withBody(CreateKnowledgeSkillReq body) { + this.body = body; + return this; + } + + public CreateKnowledgeSkillRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateKnowledgeSkillReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateKnowledgeSkillReq getBody() { + return body; + } + + public void setBody(CreateKnowledgeSkillReq 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; + } + CreateKnowledgeSkillRequest that = (CreateKnowledgeSkillRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateKnowledgeSkillRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeSkillResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeSkillResponse.java new file mode 100644 index 0000000000..7416b3f022 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateKnowledgeSkillResponse.java @@ -0,0 +1,122 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class CreateKnowledgeSkillResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "skill_id") + + private String skillId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "identify") + + private String identify; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public CreateKnowledgeSkillResponse withSkillId(String skillId) { + this.skillId = skillId; + return this; + } + + /** + * 技能ID。 + * @return skillId + */ + public String getSkillId() { + return skillId; + } + + public void setSkillId(String skillId) { + this.skillId = skillId; + } + + public CreateKnowledgeSkillResponse withIdentify(String identify) { + this.identify = identify; + return this; + } + + /** + * 技能标识。 + * @return identify + */ + public String getIdentify() { + return identify; + } + + public void setIdentify(String identify) { + this.identify = identify; + } + + public CreateKnowledgeSkillResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateKnowledgeSkillResponse that = (CreateKnowledgeSkillResponse) obj; + return Objects.equals(this.skillId, that.skillId) && Objects.equals(this.identify, that.identify) + && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(skillId, identify, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateKnowledgeSkillResponse {\n"); + sb.append(" skillId: ").append(toIndentedString(skillId)).append("\n"); + sb.append(" identify: ").append(toIndentedString(identify)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateLargeFileRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateLargeFileRequest.java new file mode 100644 index 0000000000..6b5d712ac9 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateLargeFileRequest.java @@ -0,0 +1,156 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CreateLargeFileRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private LargeFilesCreateReq body; + + public CreateLargeFileRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public CreateLargeFileRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD'T'HHMMSS'Z')。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public CreateLargeFileRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public CreateLargeFileRequest withBody(LargeFilesCreateReq body) { + this.body = body; + return this; + } + + public CreateLargeFileRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new LargeFilesCreateReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public LargeFilesCreateReq getBody() { + return body; + } + + public void setBody(LargeFilesCreateReq 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; + } + CreateLargeFileRequest that = (CreateLargeFileRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xAppUserId, that.xAppUserId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xAppUserId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateLargeFileRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateLargeFileResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateLargeFileResponse.java new file mode 100644 index 0000000000..bbbb5d9583 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateLargeFileResponse.java @@ -0,0 +1,141 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class CreateLargeFileResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "file_id") + + private String fileId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "upload_urls") + + private List uploadUrls = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public CreateLargeFileResponse withFileId(String fileId) { + this.fileId = fileId; + return this; + } + + /** + * 文件ID。 + * @return fileId + */ + public String getFileId() { + return fileId; + } + + public void setFileId(String fileId) { + this.fileId = fileId; + } + + public CreateLargeFileResponse withUploadUrls(List uploadUrls) { + this.uploadUrls = uploadUrls; + return this; + } + + public CreateLargeFileResponse addUploadUrlsItem(String uploadUrlsItem) { + if (this.uploadUrls == null) { + this.uploadUrls = new ArrayList<>(); + } + this.uploadUrls.add(uploadUrlsItem); + return this; + } + + public CreateLargeFileResponse withUploadUrls(Consumer> uploadUrlsSetter) { + if (this.uploadUrls == null) { + this.uploadUrls = new ArrayList<>(); + } + uploadUrlsSetter.accept(this.uploadUrls); + return this; + } + + /** + * 文件分段上传URL。 + * @return uploadUrls + */ + public List getUploadUrls() { + return uploadUrls; + } + + public void setUploadUrls(List uploadUrls) { + this.uploadUrls = uploadUrls; + } + + public CreateLargeFileResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateLargeFileResponse that = (CreateLargeFileResponse) obj; + return Objects.equals(this.fileId, that.fileId) && Objects.equals(this.uploadUrls, that.uploadUrls) + && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(fileId, uploadUrls, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateLargeFileResponse {\n"); + sb.append(" fileId: ").append(toIndentedString(fileId)).append("\n"); + sb.append(" uploadUrls: ").append(toIndentedString(uploadUrls)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateRobotReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateRobotReq.java index cb804c3a8e..e6c2be39cd 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateRobotReq.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateRobotReq.java @@ -51,6 +51,11 @@ public class CreateRobotReq { private ThirdPartyModelConfig thirdPartyModelConfig; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "mobvoi_config") + + private MobvoiConfig mobvoiConfig; + public CreateRobotReq withName(String name) { this.name = name; return this; @@ -74,7 +79,7 @@ public CreateRobotReq withAppType(Integer appType) { } /** - * 对接第三方应用厂商类型。 > 0:科大讯飞AIUI;1:华为云CBS;2:科大讯飞星火交互认知大模型;5:第三方驱动;6:第三方语言模型 + * 对接第三方应用厂商类型。 > 0:科大讯飞AIUI;1:华为云CBS;2:科大讯飞星火交互认知大模型;5:第三方驱动;6:第三方语言模型;8:奇妙问 * minimum: 0 * maximum: 32 * @return appType @@ -225,6 +230,32 @@ public void setThirdPartyModelConfig(ThirdPartyModelConfig thirdPartyModelConfig this.thirdPartyModelConfig = thirdPartyModelConfig; } + public CreateRobotReq withMobvoiConfig(MobvoiConfig mobvoiConfig) { + this.mobvoiConfig = mobvoiConfig; + return this; + } + + public CreateRobotReq withMobvoiConfig(Consumer mobvoiConfigSetter) { + if (this.mobvoiConfig == null) { + this.mobvoiConfig = new MobvoiConfig(); + mobvoiConfigSetter.accept(this.mobvoiConfig); + } + + return this; + } + + /** + * Get mobvoiConfig + * @return mobvoiConfig + */ + public MobvoiConfig getMobvoiConfig() { + return mobvoiConfig; + } + + public void setMobvoiConfig(MobvoiConfig mobvoiConfig) { + this.mobvoiConfig = mobvoiConfig; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -239,13 +270,21 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.huaweiEiCbs, that.huaweiEiCbs) && Objects.equals(this.iflytekAiuiConfig, that.iflytekAiuiConfig) && Objects.equals(this.iflytekSpark, that.iflytekSpark) - && Objects.equals(this.thirdPartyModelConfig, that.thirdPartyModelConfig); + && Objects.equals(this.thirdPartyModelConfig, that.thirdPartyModelConfig) + && Objects.equals(this.mobvoiConfig, that.mobvoiConfig); } @Override public int hashCode() { - return Objects - .hash(name, appType, roomId, language, huaweiEiCbs, iflytekAiuiConfig, iflytekSpark, thirdPartyModelConfig); + return Objects.hash(name, + appType, + roomId, + language, + huaweiEiCbs, + iflytekAiuiConfig, + iflytekSpark, + thirdPartyModelConfig, + mobvoiConfig); } @Override @@ -260,6 +299,7 @@ public String toString() { sb.append(" iflytekAiuiConfig: ").append(toIndentedString(iflytekAiuiConfig)).append("\n"); sb.append(" iflytekSpark: ").append(toIndentedString(iflytekSpark)).append("\n"); sb.append(" thirdPartyModelConfig: ").append(toIndentedString(thirdPartyModelConfig)).append("\n"); + sb.append(" mobvoiConfig: ").append(toIndentedString(mobvoiConfig)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateTrainingJobReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateTrainingJobReq.java index 32cdc64df3..e30d967d55 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateTrainingJobReq.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateTrainingJobReq.java @@ -185,6 +185,11 @@ public int hashCode() { private CreateType createType; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "phone") + + private String phone; + public CreateTrainingJobReq withTag(JobTag tag) { this.tag = tag; return this; @@ -287,6 +292,23 @@ public void setCreateType(CreateType createType) { this.createType = createType; } + public CreateTrainingJobReq withPhone(String phone) { + this.phone = phone; + return this; + } + + /** + * 手机号 + * @return phone + */ + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -298,12 +320,13 @@ public boolean equals(java.lang.Object obj) { CreateTrainingJobReq that = (CreateTrainingJobReq) obj; return Objects.equals(this.tag, that.tag) && Objects.equals(this.description, that.description) && Objects.equals(this.sex, that.sex) && Objects.equals(this.voiceName, that.voiceName) - && Objects.equals(this.language, that.language) && Objects.equals(this.createType, that.createType); + && Objects.equals(this.language, that.language) && Objects.equals(this.createType, that.createType) + && Objects.equals(this.phone, that.phone); } @Override public int hashCode() { - return Objects.hash(tag, description, sex, voiceName, language, createType); + return Objects.hash(tag, description, sex, voiceName, language, createType, phone); } @Override @@ -316,6 +339,7 @@ public String toString() { sb.append(" voiceName: ").append(toIndentedString(voiceName)).append("\n"); sb.append(" language: ").append(toIndentedString(language)).append("\n"); sb.append(" createType: ").append(toIndentedString(createType)).append("\n"); + sb.append(" phone: ").append(toIndentedString(phone)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateTtsAuditionRequestBody.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateTtsAuditionRequestBody.java index 2615f8d373..f520e79d0e 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateTtsAuditionRequestBody.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateTtsAuditionRequestBody.java @@ -75,7 +75,7 @@ public CreateTtsAuditionRequestBody withSpeed(Integer speed) { } /** - * 语速。 + * 语速。 默认值100,最小值50,最大值200。 > * 当取值为“100”时,表示一个成年人正常的语速,约为250字/分钟。 > * 50表示0.5倍语速,100表示正常语速,200表示2倍语速。 * minimum: 50 * maximum: 200 * @return speed @@ -94,7 +94,7 @@ public CreateTtsAuditionRequestBody withPitch(Integer pitch) { } /** - * 音高。 + * 音高。 默认值100,最小值50,最大值200。 * minimum: 50 * maximum: 200 * @return pitch @@ -113,7 +113,7 @@ public CreateTtsAuditionRequestBody withVolume(Integer volume) { } /** - * 音量。 + * 音量。 默认值140,最小值90,最大值240。 * minimum: 90 * maximum: 240 * @return volume diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateWelcomeSpeechReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateWelcomeSpeechReq.java new file mode 100644 index 0000000000..2472d74633 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateWelcomeSpeechReq.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 创建欢迎词请求。 + */ +public class CreateWelcomeSpeechReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "robot_id") + + private String robotId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "welcome_speech") + + private String welcomeSpeech; + + public CreateWelcomeSpeechReq withRobotId(String robotId) { + this.robotId = robotId; + return this; + } + + /** + * 应用ID。 + * @return robotId + */ + public String getRobotId() { + return robotId; + } + + public void setRobotId(String robotId) { + this.robotId = robotId; + } + + public CreateWelcomeSpeechReq withWelcomeSpeech(String welcomeSpeech) { + this.welcomeSpeech = welcomeSpeech; + return this; + } + + /** + * 欢迎词。 + * @return welcomeSpeech + */ + public String getWelcomeSpeech() { + return welcomeSpeech; + } + + public void setWelcomeSpeech(String welcomeSpeech) { + this.welcomeSpeech = welcomeSpeech; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateWelcomeSpeechReq that = (CreateWelcomeSpeechReq) obj; + return Objects.equals(this.robotId, that.robotId) && Objects.equals(this.welcomeSpeech, that.welcomeSpeech); + } + + @Override + public int hashCode() { + return Objects.hash(robotId, welcomeSpeech); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateWelcomeSpeechReq {\n"); + sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); + sb.append(" welcomeSpeech: ").append(toIndentedString(welcomeSpeech)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/CreateWelcomeSpeechRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateWelcomeSpeechRequest.java new file mode 100644 index 0000000000..c8fe7340f9 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateWelcomeSpeechRequest.java @@ -0,0 +1,182 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CreateWelcomeSpeechRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateWelcomeSpeechReq body; + + public CreateWelcomeSpeechRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public CreateWelcomeSpeechRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public CreateWelcomeSpeechRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public CreateWelcomeSpeechRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public CreateWelcomeSpeechRequest withBody(CreateWelcomeSpeechReq body) { + this.body = body; + return this; + } + + public CreateWelcomeSpeechRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateWelcomeSpeechReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateWelcomeSpeechReq getBody() { + return body; + } + + public void setBody(CreateWelcomeSpeechReq 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; + } + CreateWelcomeSpeechRequest that = (CreateWelcomeSpeechRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateWelcomeSpeechRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateWelcomeSpeechResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateWelcomeSpeechResponse.java new file mode 100644 index 0000000000..7214c49100 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateWelcomeSpeechResponse.java @@ -0,0 +1,193 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class CreateWelcomeSpeechResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "welcome_speech_id") + + private String welcomeSpeechId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "welcome_speech") + + private String welcomeSpeech; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "robot_id") + + private String robotId; + + @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 = "X-Request-Id") + + private String xRequestId; + + public CreateWelcomeSpeechResponse withWelcomeSpeechId(String welcomeSpeechId) { + this.welcomeSpeechId = welcomeSpeechId; + return this; + } + + /** + * 欢迎词ID。 + * @return welcomeSpeechId + */ + public String getWelcomeSpeechId() { + return welcomeSpeechId; + } + + public void setWelcomeSpeechId(String welcomeSpeechId) { + this.welcomeSpeechId = welcomeSpeechId; + } + + public CreateWelcomeSpeechResponse withWelcomeSpeech(String welcomeSpeech) { + this.welcomeSpeech = welcomeSpeech; + return this; + } + + /** + * 欢迎词。 + * @return welcomeSpeech + */ + public String getWelcomeSpeech() { + return welcomeSpeech; + } + + public void setWelcomeSpeech(String welcomeSpeech) { + this.welcomeSpeech = welcomeSpeech; + } + + public CreateWelcomeSpeechResponse withRobotId(String robotId) { + this.robotId = robotId; + return this; + } + + /** + * 应用ID。 + * @return robotId + */ + public String getRobotId() { + return robotId; + } + + public void setRobotId(String robotId) { + this.robotId = robotId; + } + + public CreateWelcomeSpeechResponse withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public CreateWelcomeSpeechResponse withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + public CreateWelcomeSpeechResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateWelcomeSpeechResponse that = (CreateWelcomeSpeechResponse) obj; + return Objects.equals(this.welcomeSpeechId, that.welcomeSpeechId) + && Objects.equals(this.welcomeSpeech, that.welcomeSpeech) && Objects.equals(this.robotId, that.robotId) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(welcomeSpeechId, welcomeSpeech, robotId, createTime, updateTime, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateWelcomeSpeechResponse {\n"); + sb.append(" welcomeSpeechId: ").append(toIndentedString(welcomeSpeechId)).append("\n"); + sb.append(" welcomeSpeech: ").append(toIndentedString(welcomeSpeech)).append("\n"); + sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteHotQuestionRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteHotQuestionRequest.java new file mode 100644 index 0000000000..8e83aed847 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteHotQuestionRequest.java @@ -0,0 +1,191 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class DeleteHotQuestionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private List body = null; + + public DeleteHotQuestionRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public DeleteHotQuestionRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public DeleteHotQuestionRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public DeleteHotQuestionRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public DeleteHotQuestionRequest withBody(List body) { + this.body = body; + return this; + } + + public DeleteHotQuestionRequest addBodyItem(String bodyItem) { + if (this.body == null) { + this.body = new ArrayList<>(); + } + this.body.add(bodyItem); + return this; + } + + public DeleteHotQuestionRequest withBody(Consumer> bodySetter) { + if (this.body == null) { + this.body = new ArrayList<>(); + } + bodySetter.accept(this.body); + return this; + } + + /** + * Get body + * @return body + */ + public List getBody() { + return body; + } + + public void setBody(List body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteHotQuestionRequest that = (DeleteHotQuestionRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteHotQuestionRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteHotQuestionResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteHotQuestionResponse.java new file mode 100644 index 0000000000..dd1414f602 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteHotQuestionResponse.java @@ -0,0 +1,75 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeleteHotQuestionResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public DeleteHotQuestionResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteHotQuestionResponse that = (DeleteHotQuestionResponse) obj; + return Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteHotQuestionResponse {\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteKnowledgeIntentRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteKnowledgeIntentRequest.java new file mode 100644 index 0000000000..fd2acdce38 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteKnowledgeIntentRequest.java @@ -0,0 +1,191 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class DeleteKnowledgeIntentRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private List body = null; + + public DeleteKnowledgeIntentRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public DeleteKnowledgeIntentRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public DeleteKnowledgeIntentRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public DeleteKnowledgeIntentRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public DeleteKnowledgeIntentRequest withBody(List body) { + this.body = body; + return this; + } + + public DeleteKnowledgeIntentRequest addBodyItem(String bodyItem) { + if (this.body == null) { + this.body = new ArrayList<>(); + } + this.body.add(bodyItem); + return this; + } + + public DeleteKnowledgeIntentRequest withBody(Consumer> bodySetter) { + if (this.body == null) { + this.body = new ArrayList<>(); + } + bodySetter.accept(this.body); + return this; + } + + /** + * Get body + * @return body + */ + public List getBody() { + return body; + } + + public void setBody(List body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteKnowledgeIntentRequest that = (DeleteKnowledgeIntentRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteKnowledgeIntentRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteKnowledgeIntentResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteKnowledgeIntentResponse.java new file mode 100644 index 0000000000..7efdbaf07b --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteKnowledgeIntentResponse.java @@ -0,0 +1,75 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeleteKnowledgeIntentResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public DeleteKnowledgeIntentResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteKnowledgeIntentResponse that = (DeleteKnowledgeIntentResponse) obj; + return Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteKnowledgeIntentResponse {\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteKnowledgeQuestionRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteKnowledgeQuestionRequest.java new file mode 100644 index 0000000000..8449d0c259 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteKnowledgeQuestionRequest.java @@ -0,0 +1,191 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class DeleteKnowledgeQuestionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private List body = null; + + public DeleteKnowledgeQuestionRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public DeleteKnowledgeQuestionRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public DeleteKnowledgeQuestionRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public DeleteKnowledgeQuestionRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public DeleteKnowledgeQuestionRequest withBody(List body) { + this.body = body; + return this; + } + + public DeleteKnowledgeQuestionRequest addBodyItem(String bodyItem) { + if (this.body == null) { + this.body = new ArrayList<>(); + } + this.body.add(bodyItem); + return this; + } + + public DeleteKnowledgeQuestionRequest withBody(Consumer> bodySetter) { + if (this.body == null) { + this.body = new ArrayList<>(); + } + bodySetter.accept(this.body); + return this; + } + + /** + * Get body + * @return body + */ + public List getBody() { + return body; + } + + public void setBody(List body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteKnowledgeQuestionRequest that = (DeleteKnowledgeQuestionRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteKnowledgeQuestionRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteKnowledgeQuestionResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteKnowledgeQuestionResponse.java new file mode 100644 index 0000000000..f55008abd0 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteKnowledgeQuestionResponse.java @@ -0,0 +1,75 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeleteKnowledgeQuestionResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public DeleteKnowledgeQuestionResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteKnowledgeQuestionResponse that = (DeleteKnowledgeQuestionResponse) obj; + return Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteKnowledgeQuestionResponse {\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteKnowledgeSkillRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteKnowledgeSkillRequest.java new file mode 100644 index 0000000000..4b160569b0 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteKnowledgeSkillRequest.java @@ -0,0 +1,191 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class DeleteKnowledgeSkillRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private List body = null; + + public DeleteKnowledgeSkillRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public DeleteKnowledgeSkillRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public DeleteKnowledgeSkillRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public DeleteKnowledgeSkillRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public DeleteKnowledgeSkillRequest withBody(List body) { + this.body = body; + return this; + } + + public DeleteKnowledgeSkillRequest addBodyItem(String bodyItem) { + if (this.body == null) { + this.body = new ArrayList<>(); + } + this.body.add(bodyItem); + return this; + } + + public DeleteKnowledgeSkillRequest withBody(Consumer> bodySetter) { + if (this.body == null) { + this.body = new ArrayList<>(); + } + bodySetter.accept(this.body); + return this; + } + + /** + * Get body + * @return body + */ + public List getBody() { + return body; + } + + public void setBody(List body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteKnowledgeSkillRequest that = (DeleteKnowledgeSkillRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteKnowledgeSkillRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteKnowledgeSkillResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteKnowledgeSkillResponse.java new file mode 100644 index 0000000000..5728ad88b5 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteKnowledgeSkillResponse.java @@ -0,0 +1,75 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeleteKnowledgeSkillResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public DeleteKnowledgeSkillResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteKnowledgeSkillResponse that = (DeleteKnowledgeSkillResponse) obj; + return Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteKnowledgeSkillResponse {\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteWelcomeSpeechRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteWelcomeSpeechRequest.java new file mode 100644 index 0000000000..0e7d7b30cc --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteWelcomeSpeechRequest.java @@ -0,0 +1,191 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class DeleteWelcomeSpeechRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private List body = null; + + public DeleteWelcomeSpeechRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public DeleteWelcomeSpeechRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public DeleteWelcomeSpeechRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public DeleteWelcomeSpeechRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public DeleteWelcomeSpeechRequest withBody(List body) { + this.body = body; + return this; + } + + public DeleteWelcomeSpeechRequest addBodyItem(String bodyItem) { + if (this.body == null) { + this.body = new ArrayList<>(); + } + this.body.add(bodyItem); + return this; + } + + public DeleteWelcomeSpeechRequest withBody(Consumer> bodySetter) { + if (this.body == null) { + this.body = new ArrayList<>(); + } + bodySetter.accept(this.body); + return this; + } + + /** + * Get body + * @return body + */ + public List getBody() { + return body; + } + + public void setBody(List body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteWelcomeSpeechRequest that = (DeleteWelcomeSpeechRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteWelcomeSpeechRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteWelcomeSpeechResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteWelcomeSpeechResponse.java new file mode 100644 index 0000000000..6371b5389c --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteWelcomeSpeechResponse.java @@ -0,0 +1,75 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeleteWelcomeSpeechResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public DeleteWelcomeSpeechResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteWelcomeSpeechResponse that = (DeleteWelcomeSpeechResponse) obj; + return Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteWelcomeSpeechResponse {\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ExportKnowledgeSkillRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ExportKnowledgeSkillRequest.java new file mode 100644 index 0000000000..2310b0c4e5 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ExportKnowledgeSkillRequest.java @@ -0,0 +1,223 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.progress.ProgressListener; +import com.huaweicloud.sdk.core.progress.ProgressRequest; + +import java.util.Objects; + +/** + * Request Object + */ +public class ExportKnowledgeSkillRequest implements ProgressRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "skill_id") + + private String skillId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "export_type") + + private Integer exportType; + + 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 ExportKnowledgeSkillRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public ExportKnowledgeSkillRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public ExportKnowledgeSkillRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public ExportKnowledgeSkillRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public ExportKnowledgeSkillRequest withSkillId(String skillId) { + this.skillId = skillId; + return this; + } + + /** + * 技能ID。 + * @return skillId + */ + public String getSkillId() { + return skillId; + } + + public void setSkillId(String skillId) { + this.skillId = skillId; + } + + public ExportKnowledgeSkillRequest withExportType(Integer exportType) { + this.exportType = exportType; + return this; + } + + /** + * 导出格式类型。0:科大讯飞 + * minimum: 0 + * maximum: 64 + * @return exportType + */ + public Integer getExportType() { + return exportType; + } + + public void setExportType(Integer exportType) { + this.exportType = exportType; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ExportKnowledgeSkillRequest that = (ExportKnowledgeSkillRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.skillId, that.skillId) && Objects.equals(this.exportType, that.exportType); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, skillId, exportType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExportKnowledgeSkillRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" skillId: ").append(toIndentedString(skillId)).append("\n"); + sb.append(" exportType: ").append(toIndentedString(exportType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/ExportKnowledgeSkillResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ExportKnowledgeSkillResponse.java new file mode 100644 index 0000000000..fd9a9835c3 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ExportKnowledgeSkillResponse.java @@ -0,0 +1,75 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkStreamResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ExportKnowledgeSkillResponse extends SdkStreamResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public ExportKnowledgeSkillResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ExportKnowledgeSkillResponse that = (ExportKnowledgeSkillResponse) obj; + return Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExportKnowledgeSkillResponse {\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/HotQuestionInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/HotQuestionInfo.java new file mode 100644 index 0000000000..aa36a4d746 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/HotQuestionInfo.java @@ -0,0 +1,166 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 热点问题信息。 + */ +public class HotQuestionInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hot_question_id") + + private String hotQuestionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hot_question") + + private String hotQuestion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "robot_id") + + private String robotId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private String updateTime; + + public HotQuestionInfo withHotQuestionId(String hotQuestionId) { + this.hotQuestionId = hotQuestionId; + return this; + } + + /** + * 热点问题ID。 + * @return hotQuestionId + */ + public String getHotQuestionId() { + return hotQuestionId; + } + + public void setHotQuestionId(String hotQuestionId) { + this.hotQuestionId = hotQuestionId; + } + + public HotQuestionInfo withHotQuestion(String hotQuestion) { + this.hotQuestion = hotQuestion; + return this; + } + + /** + * 热点问题。 + * @return hotQuestion + */ + public String getHotQuestion() { + return hotQuestion; + } + + public void setHotQuestion(String hotQuestion) { + this.hotQuestion = hotQuestion; + } + + public HotQuestionInfo withRobotId(String robotId) { + this.robotId = robotId; + return this; + } + + /** + * 机器人ID。 + * @return robotId + */ + public String getRobotId() { + return robotId; + } + + public void setRobotId(String robotId) { + this.robotId = robotId; + } + + public HotQuestionInfo withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public HotQuestionInfo withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + HotQuestionInfo that = (HotQuestionInfo) obj; + return Objects.equals(this.hotQuestionId, that.hotQuestionId) + && Objects.equals(this.hotQuestion, that.hotQuestion) && Objects.equals(this.robotId, that.robotId) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime); + } + + @Override + public int hashCode() { + return Objects.hash(hotQuestionId, hotQuestion, robotId, createTime, updateTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HotQuestionInfo {\n"); + sb.append(" hotQuestionId: ").append(toIndentedString(hotQuestionId)).append("\n"); + sb.append(" hotQuestion: ").append(toIndentedString(hotQuestion)).append("\n"); + sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/JobType.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/JobType.java index d599613c0a..2bed495eea 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/JobType.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/JobType.java @@ -8,10 +8,20 @@ import java.util.Map; /** - * 训练类型。 * BASIC: 基础版(20句话) * MIDDLE: 进阶版(100句话) * ADVANCE: 高级版 + * 训练类型。 * LLM_MAJOR: 大模型中英文版 * LLM_MINOR: 大模型中小语种版 * BASIC: 基础版(20句话) * MIDDLE: 进阶版(100句话) * ADVANCE: 高级版 * THIRD_PARTY: 第三方训练版 */ public class JobType { + /** + * Enum LLM_MAJOR for value: "LLM_MAJOR" + */ + public static final JobType LLM_MAJOR = new JobType("LLM_MAJOR"); + + /** + * Enum LLM_MINOR for value: "LLM_MINOR" + */ + public static final JobType LLM_MINOR = new JobType("LLM_MINOR"); + /** * Enum BASIC for value: "BASIC" */ @@ -27,13 +37,21 @@ public class JobType { */ public static final JobType ADVANCE = new JobType("ADVANCE"); + /** + * Enum THIRD_PARTY for value: "THIRD_PARTY" + */ + public static final JobType THIRD_PARTY = new JobType("THIRD_PARTY"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { Map map = new HashMap<>(); + map.put("LLM_MAJOR", LLM_MAJOR); + map.put("LLM_MINOR", LLM_MINOR); map.put("BASIC", BASIC); map.put("MIDDLE", MIDDLE); map.put("ADVANCE", ADVANCE); + map.put("THIRD_PARTY", THIRD_PARTY); return Collections.unmodifiableMap(map); } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/KnowledgeIntentInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/KnowledgeIntentInfo.java new file mode 100644 index 0000000000..7b18bf0c43 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/KnowledgeIntentInfo.java @@ -0,0 +1,189 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 知识库意图基本信息。 + */ +public class KnowledgeIntentInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "intent_id") + + private String intentId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "identify") + + private String identify; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "answer") + + private String answer; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private String updateTime; + + public KnowledgeIntentInfo withIntentId(String intentId) { + this.intentId = intentId; + return this; + } + + /** + * 意图ID。 + * @return intentId + */ + public String getIntentId() { + return intentId; + } + + public void setIntentId(String intentId) { + this.intentId = intentId; + } + + public KnowledgeIntentInfo withName(String name) { + this.name = name; + return this; + } + + /** + * 你是谁。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public KnowledgeIntentInfo withIdentify(String identify) { + this.identify = identify; + return this; + } + + /** + * 意图标识。 + * @return identify + */ + public String getIdentify() { + return identify; + } + + public void setIdentify(String identify) { + this.identify = identify; + } + + public KnowledgeIntentInfo withAnswer(String answer) { + this.answer = answer; + return this; + } + + /** + * 问题答案。 + * @return answer + */ + public String getAnswer() { + return answer; + } + + public void setAnswer(String answer) { + this.answer = answer; + } + + public KnowledgeIntentInfo withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public KnowledgeIntentInfo withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + KnowledgeIntentInfo that = (KnowledgeIntentInfo) obj; + return Objects.equals(this.intentId, that.intentId) && Objects.equals(this.name, that.name) + && Objects.equals(this.identify, that.identify) && Objects.equals(this.answer, that.answer) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime); + } + + @Override + public int hashCode() { + return Objects.hash(intentId, name, identify, answer, createTime, updateTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class KnowledgeIntentInfo {\n"); + sb.append(" intentId: ").append(toIndentedString(intentId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" identify: ").append(toIndentedString(identify)).append("\n"); + sb.append(" answer: ").append(toIndentedString(answer)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/KnowledgeQuestionCreateInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/KnowledgeQuestionCreateInfo.java new file mode 100644 index 0000000000..11e23f3e24 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/KnowledgeQuestionCreateInfo.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 创建知识库问法请求。 + */ +public class KnowledgeQuestionCreateInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "question") + + private String question; + + public KnowledgeQuestionCreateInfo withQuestion(String question) { + this.question = question; + return this; + } + + /** + * 问法。 + * @return question + */ + public String getQuestion() { + return question; + } + + public void setQuestion(String question) { + this.question = question; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + KnowledgeQuestionCreateInfo that = (KnowledgeQuestionCreateInfo) obj; + return Objects.equals(this.question, that.question); + } + + @Override + public int hashCode() { + return Objects.hash(question); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class KnowledgeQuestionCreateInfo {\n"); + sb.append(" question: ").append(toIndentedString(question)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/KnowledgeQuestionInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/KnowledgeQuestionInfo.java new file mode 100644 index 0000000000..d29566de0d --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/KnowledgeQuestionInfo.java @@ -0,0 +1,166 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 知识库问法信息。 + */ +public class KnowledgeQuestionInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "question_id") + + private String questionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "question") + + private String question; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "intent_id") + + private String intentId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private String updateTime; + + public KnowledgeQuestionInfo withQuestionId(String questionId) { + this.questionId = questionId; + return this; + } + + /** + * 问法ID。 + * @return questionId + */ + public String getQuestionId() { + return questionId; + } + + public void setQuestionId(String questionId) { + this.questionId = questionId; + } + + public KnowledgeQuestionInfo withQuestion(String question) { + this.question = question; + return this; + } + + /** + * 问法。 + * @return question + */ + public String getQuestion() { + return question; + } + + public void setQuestion(String question) { + this.question = question; + } + + public KnowledgeQuestionInfo withIntentId(String intentId) { + this.intentId = intentId; + return this; + } + + /** + * 意图ID。 + * @return intentId + */ + public String getIntentId() { + return intentId; + } + + public void setIntentId(String intentId) { + this.intentId = intentId; + } + + public KnowledgeQuestionInfo withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public KnowledgeQuestionInfo withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + KnowledgeQuestionInfo that = (KnowledgeQuestionInfo) obj; + return Objects.equals(this.questionId, that.questionId) && Objects.equals(this.question, that.question) + && Objects.equals(this.intentId, that.intentId) && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.updateTime, that.updateTime); + } + + @Override + public int hashCode() { + return Objects.hash(questionId, question, intentId, createTime, updateTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class KnowledgeQuestionInfo {\n"); + sb.append(" questionId: ").append(toIndentedString(questionId)).append("\n"); + sb.append(" question: ").append(toIndentedString(question)).append("\n"); + sb.append(" intentId: ").append(toIndentedString(intentId)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/KnowledgeQuestionUpdateInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/KnowledgeQuestionUpdateInfo.java new file mode 100644 index 0000000000..d559a24d88 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/KnowledgeQuestionUpdateInfo.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 修改知识库问法请求。 + */ +public class KnowledgeQuestionUpdateInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "question_id") + + private String questionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "question") + + private String question; + + public KnowledgeQuestionUpdateInfo withQuestionId(String questionId) { + this.questionId = questionId; + return this; + } + + /** + * 问法ID。 + * @return questionId + */ + public String getQuestionId() { + return questionId; + } + + public void setQuestionId(String questionId) { + this.questionId = questionId; + } + + public KnowledgeQuestionUpdateInfo withQuestion(String question) { + this.question = question; + return this; + } + + /** + * 问法。 + * @return question + */ + public String getQuestion() { + return question; + } + + public void setQuestion(String question) { + this.question = question; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + KnowledgeQuestionUpdateInfo that = (KnowledgeQuestionUpdateInfo) obj; + return Objects.equals(this.questionId, that.questionId) && Objects.equals(this.question, that.question); + } + + @Override + public int hashCode() { + return Objects.hash(questionId, question); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class KnowledgeQuestionUpdateInfo {\n"); + sb.append(" questionId: ").append(toIndentedString(questionId)).append("\n"); + sb.append(" question: ").append(toIndentedString(question)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/KnowledgeSkillInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/KnowledgeSkillInfo.java new file mode 100644 index 0000000000..947b78f77f --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/KnowledgeSkillInfo.java @@ -0,0 +1,166 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 知识库技能基本信息。 + */ +public class KnowledgeSkillInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "skill_id") + + private String skillId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "identify") + + private String identify; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private String updateTime; + + public KnowledgeSkillInfo withSkillId(String skillId) { + this.skillId = skillId; + return this; + } + + /** + * 技能ID。 + * @return skillId + */ + public String getSkillId() { + return skillId; + } + + public void setSkillId(String skillId) { + this.skillId = skillId; + } + + public KnowledgeSkillInfo withName(String name) { + this.name = name; + return this; + } + + /** + * 技能名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public KnowledgeSkillInfo withIdentify(String identify) { + this.identify = identify; + return this; + } + + /** + * 技能标识。 + * @return identify + */ + public String getIdentify() { + return identify; + } + + public void setIdentify(String identify) { + this.identify = identify; + } + + public KnowledgeSkillInfo withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public KnowledgeSkillInfo withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + KnowledgeSkillInfo that = (KnowledgeSkillInfo) obj; + return Objects.equals(this.skillId, that.skillId) && Objects.equals(this.name, that.name) + && Objects.equals(this.identify, that.identify) && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.updateTime, that.updateTime); + } + + @Override + public int hashCode() { + return Objects.hash(skillId, name, identify, createTime, updateTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class KnowledgeSkillInfo {\n"); + sb.append(" skillId: ").append(toIndentedString(skillId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" identify: ").append(toIndentedString(identify)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/LargeFilesCreateReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/LargeFilesCreateReq.java new file mode 100644 index 0000000000..bd7c5b526a --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/LargeFilesCreateReq.java @@ -0,0 +1,194 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 创建大文件请求。 + */ +public class LargeFilesCreateReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "file_name") + + private String fileName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "file_size") + + private Long fileSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "file_type") + + private String fileType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "asset_id") + + private String assetId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "asset_file_category") + + private String assetFileCategory; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "file_multipart_count") + + private Integer fileMultipartCount; + + public LargeFilesCreateReq withFileName(String fileName) { + this.fileName = fileName; + return this; + } + + /** + * 文件名,不区分大小写,最大长度256,最小长度1。 + * @return fileName + */ + public String getFileName() { + return fileName; + } + + public void setFileName(String fileName) { + this.fileName = fileName; + } + + public LargeFilesCreateReq withFileSize(Long fileSize) { + this.fileSize = fileSize; + return this; + } + + /** + * 文件总的大小,最小1,最大5368709120。 + * minimum: 1 + * maximum: 5368709120 + * @return fileSize + */ + public Long getFileSize() { + return fileSize; + } + + public void setFileSize(Long fileSize) { + this.fileSize = fileSize; + } + + public LargeFilesCreateReq withFileType(String fileType) { + this.fileType = fileType; + return this; + } + + /** + * 文件类型(默认提取文件后缀)。 + * @return fileType + */ + public String getFileType() { + return fileType; + } + + public void setFileType(String fileType) { + this.fileType = fileType; + } + + public LargeFilesCreateReq withAssetId(String assetId) { + this.assetId = assetId; + return this; + } + + /** + * 资产ID。 + * @return assetId + */ + public String getAssetId() { + return assetId; + } + + public void setAssetId(String assetId) { + this.assetId = assetId; + } + + public LargeFilesCreateReq withAssetFileCategory(String assetFileCategory) { + this.assetFileCategory = assetFileCategory; + return this; + } + + /** + * 文件在资产中的分类。每种资产类型包含的文件分类不同。 * MAIN:主文件 * OTHER:其他文件 + * @return assetFileCategory + */ + public String getAssetFileCategory() { + return assetFileCategory; + } + + public void setAssetFileCategory(String assetFileCategory) { + this.assetFileCategory = assetFileCategory; + } + + public LargeFilesCreateReq withFileMultipartCount(Integer fileMultipartCount) { + this.fileMultipartCount = fileMultipartCount; + return this; + } + + /** + * ORI4K文件分段上传数量,默认值为1 + * minimum: 1 + * maximum: 100 + * @return fileMultipartCount + */ + public Integer getFileMultipartCount() { + return fileMultipartCount; + } + + public void setFileMultipartCount(Integer fileMultipartCount) { + this.fileMultipartCount = fileMultipartCount; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + LargeFilesCreateReq that = (LargeFilesCreateReq) obj; + return Objects.equals(this.fileName, that.fileName) && Objects.equals(this.fileSize, that.fileSize) + && Objects.equals(this.fileType, that.fileType) && Objects.equals(this.assetId, that.assetId) + && Objects.equals(this.assetFileCategory, that.assetFileCategory) + && Objects.equals(this.fileMultipartCount, that.fileMultipartCount); + } + + @Override + public int hashCode() { + return Objects.hash(fileName, fileSize, fileType, assetId, assetFileCategory, fileMultipartCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LargeFilesCreateReq {\n"); + sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); + sb.append(" fileSize: ").append(toIndentedString(fileSize)).append("\n"); + sb.append(" fileType: ").append(toIndentedString(fileType)).append("\n"); + sb.append(" assetId: ").append(toIndentedString(assetId)).append("\n"); + sb.append(" assetFileCategory: ").append(toIndentedString(assetFileCategory)).append("\n"); + sb.append(" fileMultipartCount: ").append(toIndentedString(fileMultipartCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/ListHotQuestionRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListHotQuestionRequest.java new file mode 100644 index 0000000000..ffed295a07 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListHotQuestionRequest.java @@ -0,0 +1,246 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListHotQuestionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sort_dir") + + private String sortDir; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "robot_id") + + private String robotId; + + public ListHotQuestionRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public ListHotQuestionRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public ListHotQuestionRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public ListHotQuestionRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public ListHotQuestionRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 偏移量,表示从此偏移量开始查询。 + * minimum: 0 + * maximum: 2147483647 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListHotQuestionRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 每页显示的条目数量。 + * minimum: 1 + * maximum: 100 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListHotQuestionRequest withSortDir(String sortDir) { + this.sortDir = sortDir; + return this; + } + + /** + * 排序方式。 * asc:升序 * desc:降序 默认asc升序。 + * @return sortDir + */ + public String getSortDir() { + return sortDir; + } + + public void setSortDir(String sortDir) { + this.sortDir = sortDir; + } + + public ListHotQuestionRequest withRobotId(String robotId) { + this.robotId = robotId; + return this; + } + + /** + * 机器人ID。 + * @return robotId + */ + public String getRobotId() { + return robotId; + } + + public void setRobotId(String robotId) { + this.robotId = robotId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListHotQuestionRequest that = (ListHotQuestionRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.sortDir, that.sortDir) && Objects.equals(this.robotId, that.robotId); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, offset, limit, sortDir, robotId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListHotQuestionRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" sortDir: ").append(toIndentedString(sortDir)).append("\n"); + sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/ListHotQuestionResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListHotQuestionResponse.java new file mode 100644 index 0000000000..49b9acfc64 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListHotQuestionResponse.java @@ -0,0 +1,194 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListHotQuestionResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "count") + + private Integer count; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data") + + private List data = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public ListHotQuestionResponse withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 与第一条数据的偏移量 + * minimum: 0 + * maximum: 2147483647 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListHotQuestionResponse withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 页面大小 + * minimum: 1 + * maximum: 1000 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListHotQuestionResponse withCount(Integer count) { + this.count = count; + return this; + } + + /** + * 总数量 + * minimum: 0 + * maximum: 2147483647 + * @return count + */ + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public ListHotQuestionResponse withData(List data) { + this.data = data; + return this; + } + + public ListHotQuestionResponse addDataItem(HotQuestionInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + public ListHotQuestionResponse withData(Consumer> dataSetter) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + dataSetter.accept(this.data); + return this; + } + + /** + * 热点问题信息 + * @return data + */ + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ListHotQuestionResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListHotQuestionResponse that = (ListHotQuestionResponse) obj; + return Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.count, that.count) && Objects.equals(this.data, that.data) + && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(offset, limit, count, data, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListHotQuestionResponse {\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListKnowledgeIntentRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListKnowledgeIntentRequest.java new file mode 100644 index 0000000000..9ff5edfc73 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListKnowledgeIntentRequest.java @@ -0,0 +1,223 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListKnowledgeIntentRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "skill_id") + + private String skillId; + + public ListKnowledgeIntentRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public ListKnowledgeIntentRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public ListKnowledgeIntentRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public ListKnowledgeIntentRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public ListKnowledgeIntentRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 偏移量,表示从此偏移量开始查询。 + * minimum: 0 + * maximum: 2147483647 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListKnowledgeIntentRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 每页显示的条目数量。 + * minimum: 1 + * maximum: 100 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListKnowledgeIntentRequest withSkillId(String skillId) { + this.skillId = skillId; + return this; + } + + /** + * 技能ID。 + * @return skillId + */ + public String getSkillId() { + return skillId; + } + + public void setSkillId(String skillId) { + this.skillId = skillId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListKnowledgeIntentRequest that = (ListKnowledgeIntentRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.skillId, that.skillId); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, offset, limit, skillId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListKnowledgeIntentRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" skillId: ").append(toIndentedString(skillId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/ListKnowledgeIntentResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListKnowledgeIntentResponse.java new file mode 100644 index 0000000000..dde0e2c059 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListKnowledgeIntentResponse.java @@ -0,0 +1,194 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListKnowledgeIntentResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "count") + + private Integer count; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data") + + private List data = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public ListKnowledgeIntentResponse withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 与第一条数据的偏移量 + * minimum: 0 + * maximum: 2147483647 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListKnowledgeIntentResponse withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 页面大小 + * minimum: 1 + * maximum: 1000 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListKnowledgeIntentResponse withCount(Integer count) { + this.count = count; + return this; + } + + /** + * 总数量 + * minimum: 0 + * maximum: 2147483647 + * @return count + */ + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public ListKnowledgeIntentResponse withData(List data) { + this.data = data; + return this; + } + + public ListKnowledgeIntentResponse addDataItem(KnowledgeIntentInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + public ListKnowledgeIntentResponse withData(Consumer> dataSetter) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + dataSetter.accept(this.data); + return this; + } + + /** + * 技能信息 + * @return data + */ + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ListKnowledgeIntentResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListKnowledgeIntentResponse that = (ListKnowledgeIntentResponse) obj; + return Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.count, that.count) && Objects.equals(this.data, that.data) + && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(offset, limit, count, data, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListKnowledgeIntentResponse {\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListKnowledgeQuestionRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListKnowledgeQuestionRequest.java new file mode 100644 index 0000000000..cb3c153922 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListKnowledgeQuestionRequest.java @@ -0,0 +1,223 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListKnowledgeQuestionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "intent_id") + + private String intentId; + + public ListKnowledgeQuestionRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public ListKnowledgeQuestionRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public ListKnowledgeQuestionRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public ListKnowledgeQuestionRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public ListKnowledgeQuestionRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 偏移量,表示从此偏移量开始查询。 + * minimum: 0 + * maximum: 2147483647 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListKnowledgeQuestionRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 每页显示的条目数量。 + * minimum: 1 + * maximum: 100 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListKnowledgeQuestionRequest withIntentId(String intentId) { + this.intentId = intentId; + return this; + } + + /** + * 意图ID。 + * @return intentId + */ + public String getIntentId() { + return intentId; + } + + public void setIntentId(String intentId) { + this.intentId = intentId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListKnowledgeQuestionRequest that = (ListKnowledgeQuestionRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.intentId, that.intentId); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, offset, limit, intentId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListKnowledgeQuestionRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" intentId: ").append(toIndentedString(intentId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/ListKnowledgeQuestionResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListKnowledgeQuestionResponse.java new file mode 100644 index 0000000000..6e74febad9 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListKnowledgeQuestionResponse.java @@ -0,0 +1,194 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListKnowledgeQuestionResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "count") + + private Integer count; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data") + + private List data = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public ListKnowledgeQuestionResponse withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 与第一条数据的偏移量 + * minimum: 0 + * maximum: 2147483647 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListKnowledgeQuestionResponse withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 页面大小 + * minimum: 1 + * maximum: 1000 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListKnowledgeQuestionResponse withCount(Integer count) { + this.count = count; + return this; + } + + /** + * 总数量 + * minimum: 0 + * maximum: 2147483647 + * @return count + */ + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public ListKnowledgeQuestionResponse withData(List data) { + this.data = data; + return this; + } + + public ListKnowledgeQuestionResponse addDataItem(KnowledgeQuestionInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + public ListKnowledgeQuestionResponse withData(Consumer> dataSetter) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + dataSetter.accept(this.data); + return this; + } + + /** + * 问法信息 + * @return data + */ + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ListKnowledgeQuestionResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListKnowledgeQuestionResponse that = (ListKnowledgeQuestionResponse) obj; + return Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.count, that.count) && Objects.equals(this.data, that.data) + && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(offset, limit, count, data, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListKnowledgeQuestionResponse {\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListKnowledgeSkillRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListKnowledgeSkillRequest.java new file mode 100644 index 0000000000..53b2797a1b --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListKnowledgeSkillRequest.java @@ -0,0 +1,199 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListKnowledgeSkillRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + public ListKnowledgeSkillRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public ListKnowledgeSkillRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public ListKnowledgeSkillRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public ListKnowledgeSkillRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public ListKnowledgeSkillRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 偏移量,表示从此偏移量开始查询。 + * minimum: 0 + * maximum: 2147483647 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListKnowledgeSkillRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 每页显示的条目数量。 + * minimum: 1 + * maximum: 100 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListKnowledgeSkillRequest that = (ListKnowledgeSkillRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, offset, limit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListKnowledgeSkillRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/ListKnowledgeSkillResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListKnowledgeSkillResponse.java new file mode 100644 index 0000000000..eef26337b3 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListKnowledgeSkillResponse.java @@ -0,0 +1,194 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListKnowledgeSkillResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "count") + + private Integer count; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data") + + private List data = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public ListKnowledgeSkillResponse withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 与第一条数据的偏移量 + * minimum: 0 + * maximum: 2147483647 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListKnowledgeSkillResponse withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 页面大小 + * minimum: 1 + * maximum: 1000 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListKnowledgeSkillResponse withCount(Integer count) { + this.count = count; + return this; + } + + /** + * 总数量 + * minimum: 0 + * maximum: 2147483647 + * @return count + */ + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public ListKnowledgeSkillResponse withData(List data) { + this.data = data; + return this; + } + + public ListKnowledgeSkillResponse addDataItem(KnowledgeSkillInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + public ListKnowledgeSkillResponse withData(Consumer> dataSetter) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + dataSetter.accept(this.data); + return this; + } + + /** + * 技能信息 + * @return data + */ + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ListKnowledgeSkillResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListKnowledgeSkillResponse that = (ListKnowledgeSkillResponse) obj; + return Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.count, that.count) && Objects.equals(this.data, that.data) + && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(offset, limit, count, data, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListKnowledgeSkillResponse {\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListWelcomeSpeechRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListWelcomeSpeechRequest.java new file mode 100644 index 0000000000..5748850959 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListWelcomeSpeechRequest.java @@ -0,0 +1,223 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListWelcomeSpeechRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "robot_id") + + private String robotId; + + public ListWelcomeSpeechRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public ListWelcomeSpeechRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public ListWelcomeSpeechRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public ListWelcomeSpeechRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public ListWelcomeSpeechRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 偏移量,表示从此偏移量开始查询。 + * minimum: 0 + * maximum: 2147483647 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListWelcomeSpeechRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 每页显示的条目数量。 + * minimum: 1 + * maximum: 100 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListWelcomeSpeechRequest withRobotId(String robotId) { + this.robotId = robotId; + return this; + } + + /** + * 应用ID。 + * @return robotId + */ + public String getRobotId() { + return robotId; + } + + public void setRobotId(String robotId) { + this.robotId = robotId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListWelcomeSpeechRequest that = (ListWelcomeSpeechRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.robotId, that.robotId); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, offset, limit, robotId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListWelcomeSpeechRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/ListWelcomeSpeechResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListWelcomeSpeechResponse.java new file mode 100644 index 0000000000..390e513c0f --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListWelcomeSpeechResponse.java @@ -0,0 +1,194 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListWelcomeSpeechResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "count") + + private Integer count; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data") + + private List data = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public ListWelcomeSpeechResponse withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 与第一条数据的偏移量 + * minimum: 0 + * maximum: 2147483647 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListWelcomeSpeechResponse withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 页面大小 + * minimum: 1 + * maximum: 1000 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListWelcomeSpeechResponse withCount(Integer count) { + this.count = count; + return this; + } + + /** + * 总数量 + * minimum: 0 + * maximum: 2147483647 + * @return count + */ + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public ListWelcomeSpeechResponse withData(List data) { + this.data = data; + return this; + } + + public ListWelcomeSpeechResponse addDataItem(WelcomeSpeechInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + public ListWelcomeSpeechResponse withData(Consumer> dataSetter) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + dataSetter.accept(this.data); + return this; + } + + /** + * 欢迎词信息 + * @return data + */ + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ListWelcomeSpeechResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListWelcomeSpeechResponse that = (ListWelcomeSpeechResponse) obj; + return Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.count, that.count) && Objects.equals(this.data, that.data) + && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(offset, limit, count, data, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListWelcomeSpeechResponse {\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/MobvoiConfig.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/MobvoiConfig.java new file mode 100644 index 0000000000..8d72b27e32 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/MobvoiConfig.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 奇妙问应用配置 + */ +public class MobvoiConfig { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_key") + + private String appKey; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_secret") + + private String appSecret; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "role_id") + + private String roleId; + + public MobvoiConfig withAppKey(String appKey) { + this.appKey = appKey; + return this; + } + + /** + * 奇妙问应用帐号。 + * @return appKey + */ + public String getAppKey() { + return appKey; + } + + public void setAppKey(String appKey) { + this.appKey = appKey; + } + + public MobvoiConfig withAppSecret(String appSecret) { + this.appSecret = appSecret; + return this; + } + + /** + * 奇妙问应用Secret。 + * @return appSecret + */ + public String getAppSecret() { + return appSecret; + } + + public void setAppSecret(String appSecret) { + this.appSecret = appSecret; + } + + public MobvoiConfig withRoleId(String roleId) { + this.roleId = roleId; + return this; + } + + /** + * 奇妙问角色ID。 + * @return roleId + */ + public String getRoleId() { + return roleId; + } + + public void setRoleId(String roleId) { + this.roleId = roleId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + MobvoiConfig that = (MobvoiConfig) obj; + return Objects.equals(this.appKey, that.appKey) && Objects.equals(this.appSecret, that.appSecret) + && Objects.equals(this.roleId, that.roleId); + } + + @Override + public int hashCode() { + return Objects.hash(appKey, appSecret, roleId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MobvoiConfig {\n"); + sb.append(" appKey: ").append(toIndentedString(appKey)).append("\n"); + sb.append(" appSecret: ").append(toIndentedString(appSecret)).append("\n"); + sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/RobotInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/RobotInfo.java index 6860a39dbf..fc77cec0c9 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/RobotInfo.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/RobotInfo.java @@ -35,6 +35,11 @@ public class RobotInfo { private Integer appType; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_key") + + private String appKey; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "language") @@ -75,6 +80,11 @@ public class RobotInfo { private Integer chatRounds; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "role_id") + + private String roleId; + public RobotInfo withRobotId(String robotId) { this.robotId = robotId; return this; @@ -149,7 +159,7 @@ public RobotInfo withAppType(Integer appType) { } /** - * 对接第三方应用厂商类型。 > 0:科大讯飞AIUI;1:华为云CBS;2:科大讯飞星火交互认知大模型;5:第三方驱动;6:第三方语言模型 + * 对接第三方应用厂商类型。 > 0:科大讯飞AIUI;1:华为云CBS;2:科大讯飞星火交互认知大模型;5:第三方驱动;6:第三方语言模型;8:奇妙问 * minimum: 0 * maximum: 32 * @return appType @@ -162,6 +172,23 @@ public void setAppType(Integer appType) { this.appType = appType; } + public RobotInfo withAppKey(String appKey) { + this.appKey = appKey; + return this; + } + + /** + * 应用的AccessKey或帐号。 + * @return appKey + */ + public String getAppKey() { + return appKey; + } + + public void setAppKey(String appKey) { + this.appKey = appKey; + } + public RobotInfo withLanguage(LanguageEnum language) { this.language = language; return this; @@ -302,6 +329,23 @@ public void setChatRounds(Integer chatRounds) { this.chatRounds = chatRounds; } + public RobotInfo withRoleId(String roleId) { + this.roleId = roleId; + return this; + } + + /** + * 奇妙问角色ID。 + * @return roleId + */ + public String getRoleId() { + return roleId; + } + + public void setRoleId(String roleId) { + this.roleId = roleId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -313,11 +357,12 @@ public boolean equals(java.lang.Object obj) { RobotInfo that = (RobotInfo) obj; return Objects.equals(this.robotId, that.robotId) && Objects.equals(this.name, that.name) && Objects.equals(this.roomId, that.roomId) && Objects.equals(this.appId, that.appId) - && Objects.equals(this.appType, that.appType) && Objects.equals(this.language, that.language) - && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) - && Objects.equals(this.region, that.region) && Objects.equals(this.cbsProjectId, that.cbsProjectId) - && Objects.equals(this.llmUrl, that.llmUrl) && Objects.equals(this.isStream, that.isStream) - && Objects.equals(this.chatRounds, that.chatRounds); + && Objects.equals(this.appType, that.appType) && Objects.equals(this.appKey, that.appKey) + && Objects.equals(this.language, that.language) && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.region, that.region) + && Objects.equals(this.cbsProjectId, that.cbsProjectId) && Objects.equals(this.llmUrl, that.llmUrl) + && Objects.equals(this.isStream, that.isStream) && Objects.equals(this.chatRounds, that.chatRounds) + && Objects.equals(this.roleId, that.roleId); } @Override @@ -327,6 +372,7 @@ public int hashCode() { roomId, appId, appType, + appKey, language, createTime, updateTime, @@ -334,7 +380,8 @@ public int hashCode() { cbsProjectId, llmUrl, isStream, - chatRounds); + chatRounds, + roleId); } @Override @@ -346,6 +393,7 @@ public String toString() { sb.append(" roomId: ").append(toIndentedString(roomId)).append("\n"); sb.append(" appId: ").append(toIndentedString(appId)).append("\n"); sb.append(" appType: ").append(toIndentedString(appType)).append("\n"); + sb.append(" appKey: ").append(toIndentedString(appKey)).append("\n"); sb.append(" language: ").append(toIndentedString(language)).append("\n"); sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); @@ -354,6 +402,7 @@ public String toString() { sb.append(" llmUrl: ").append(toIndentedString(llmUrl)).append("\n"); sb.append(" isStream: ").append(toIndentedString(isStream)).append("\n"); sb.append(" chatRounds: ").append(toIndentedString(chatRounds)).append("\n"); + sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowHotQuestionRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowHotQuestionRequest.java new file mode 100644 index 0000000000..4d10f6b6de --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowHotQuestionRequest.java @@ -0,0 +1,172 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowHotQuestionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hot_question_id") + + private String hotQuestionId; + + public ShowHotQuestionRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public ShowHotQuestionRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public ShowHotQuestionRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public ShowHotQuestionRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public ShowHotQuestionRequest withHotQuestionId(String hotQuestionId) { + this.hotQuestionId = hotQuestionId; + return this; + } + + /** + * 热点问题ID。 + * @return hotQuestionId + */ + public String getHotQuestionId() { + return hotQuestionId; + } + + public void setHotQuestionId(String hotQuestionId) { + this.hotQuestionId = hotQuestionId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowHotQuestionRequest that = (ShowHotQuestionRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.hotQuestionId, that.hotQuestionId); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, hotQuestionId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowHotQuestionRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" hotQuestionId: ").append(toIndentedString(hotQuestionId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/ShowHotQuestionResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowHotQuestionResponse.java new file mode 100644 index 0000000000..e78545e5b5 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowHotQuestionResponse.java @@ -0,0 +1,193 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ShowHotQuestionResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hot_question_id") + + private String hotQuestionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hot_question") + + private String hotQuestion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "robot_id") + + private String robotId; + + @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 = "X-Request-Id") + + private String xRequestId; + + public ShowHotQuestionResponse withHotQuestionId(String hotQuestionId) { + this.hotQuestionId = hotQuestionId; + return this; + } + + /** + * 热点问题ID。 + * @return hotQuestionId + */ + public String getHotQuestionId() { + return hotQuestionId; + } + + public void setHotQuestionId(String hotQuestionId) { + this.hotQuestionId = hotQuestionId; + } + + public ShowHotQuestionResponse withHotQuestion(String hotQuestion) { + this.hotQuestion = hotQuestion; + return this; + } + + /** + * 热点问题。 + * @return hotQuestion + */ + public String getHotQuestion() { + return hotQuestion; + } + + public void setHotQuestion(String hotQuestion) { + this.hotQuestion = hotQuestion; + } + + public ShowHotQuestionResponse withRobotId(String robotId) { + this.robotId = robotId; + return this; + } + + /** + * 机器人ID。 + * @return robotId + */ + public String getRobotId() { + return robotId; + } + + public void setRobotId(String robotId) { + this.robotId = robotId; + } + + public ShowHotQuestionResponse withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public ShowHotQuestionResponse withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + public ShowHotQuestionResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowHotQuestionResponse that = (ShowHotQuestionResponse) obj; + return Objects.equals(this.hotQuestionId, that.hotQuestionId) + && Objects.equals(this.hotQuestion, that.hotQuestion) && Objects.equals(this.robotId, that.robotId) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(hotQuestionId, hotQuestion, robotId, createTime, updateTime, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowHotQuestionResponse {\n"); + sb.append(" hotQuestionId: ").append(toIndentedString(hotQuestionId)).append("\n"); + sb.append(" hotQuestion: ").append(toIndentedString(hotQuestion)).append("\n"); + sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowKnowledgeIntentRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowKnowledgeIntentRequest.java new file mode 100644 index 0000000000..51f782e7c9 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowKnowledgeIntentRequest.java @@ -0,0 +1,172 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowKnowledgeIntentRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "intent_id") + + private String intentId; + + public ShowKnowledgeIntentRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public ShowKnowledgeIntentRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public ShowKnowledgeIntentRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public ShowKnowledgeIntentRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public ShowKnowledgeIntentRequest withIntentId(String intentId) { + this.intentId = intentId; + return this; + } + + /** + * 意图ID。 + * @return intentId + */ + public String getIntentId() { + return intentId; + } + + public void setIntentId(String intentId) { + this.intentId = intentId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowKnowledgeIntentRequest that = (ShowKnowledgeIntentRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.intentId, that.intentId); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, intentId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowKnowledgeIntentRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" intentId: ").append(toIndentedString(intentId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/ShowKnowledgeIntentResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowKnowledgeIntentResponse.java new file mode 100644 index 0000000000..7c906a4e91 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowKnowledgeIntentResponse.java @@ -0,0 +1,216 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ShowKnowledgeIntentResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "intent_id") + + private String intentId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "identify") + + private String identify; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "answer") + + private String answer; + + @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 = "X-Request-Id") + + private String xRequestId; + + public ShowKnowledgeIntentResponse withIntentId(String intentId) { + this.intentId = intentId; + return this; + } + + /** + * 意图ID。 + * @return intentId + */ + public String getIntentId() { + return intentId; + } + + public void setIntentId(String intentId) { + this.intentId = intentId; + } + + public ShowKnowledgeIntentResponse withName(String name) { + this.name = name; + return this; + } + + /** + * 你是谁。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ShowKnowledgeIntentResponse withIdentify(String identify) { + this.identify = identify; + return this; + } + + /** + * 意图标识。 + * @return identify + */ + public String getIdentify() { + return identify; + } + + public void setIdentify(String identify) { + this.identify = identify; + } + + public ShowKnowledgeIntentResponse withAnswer(String answer) { + this.answer = answer; + return this; + } + + /** + * 问题答案。 + * @return answer + */ + public String getAnswer() { + return answer; + } + + public void setAnswer(String answer) { + this.answer = answer; + } + + public ShowKnowledgeIntentResponse withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public ShowKnowledgeIntentResponse withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + public ShowKnowledgeIntentResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowKnowledgeIntentResponse that = (ShowKnowledgeIntentResponse) obj; + return Objects.equals(this.intentId, that.intentId) && Objects.equals(this.name, that.name) + && Objects.equals(this.identify, that.identify) && Objects.equals(this.answer, that.answer) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(intentId, name, identify, answer, createTime, updateTime, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowKnowledgeIntentResponse {\n"); + sb.append(" intentId: ").append(toIndentedString(intentId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" identify: ").append(toIndentedString(identify)).append("\n"); + sb.append(" answer: ").append(toIndentedString(answer)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowKnowledgeQuestionRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowKnowledgeQuestionRequest.java new file mode 100644 index 0000000000..6274653cb3 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowKnowledgeQuestionRequest.java @@ -0,0 +1,172 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowKnowledgeQuestionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "question_id") + + private String questionId; + + public ShowKnowledgeQuestionRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public ShowKnowledgeQuestionRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public ShowKnowledgeQuestionRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public ShowKnowledgeQuestionRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public ShowKnowledgeQuestionRequest withQuestionId(String questionId) { + this.questionId = questionId; + return this; + } + + /** + * 问法ID。 + * @return questionId + */ + public String getQuestionId() { + return questionId; + } + + public void setQuestionId(String questionId) { + this.questionId = questionId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowKnowledgeQuestionRequest that = (ShowKnowledgeQuestionRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.questionId, that.questionId); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, questionId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowKnowledgeQuestionRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" questionId: ").append(toIndentedString(questionId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/ShowKnowledgeQuestionResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowKnowledgeQuestionResponse.java new file mode 100644 index 0000000000..e09f75b479 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowKnowledgeQuestionResponse.java @@ -0,0 +1,192 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ShowKnowledgeQuestionResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "question_id") + + private String questionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "question") + + private String question; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "intent_id") + + private String intentId; + + @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 = "X-Request-Id") + + private String xRequestId; + + public ShowKnowledgeQuestionResponse withQuestionId(String questionId) { + this.questionId = questionId; + return this; + } + + /** + * 问法ID。 + * @return questionId + */ + public String getQuestionId() { + return questionId; + } + + public void setQuestionId(String questionId) { + this.questionId = questionId; + } + + public ShowKnowledgeQuestionResponse withQuestion(String question) { + this.question = question; + return this; + } + + /** + * 问法。 + * @return question + */ + public String getQuestion() { + return question; + } + + public void setQuestion(String question) { + this.question = question; + } + + public ShowKnowledgeQuestionResponse withIntentId(String intentId) { + this.intentId = intentId; + return this; + } + + /** + * 意图ID。 + * @return intentId + */ + public String getIntentId() { + return intentId; + } + + public void setIntentId(String intentId) { + this.intentId = intentId; + } + + public ShowKnowledgeQuestionResponse withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public ShowKnowledgeQuestionResponse withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + public ShowKnowledgeQuestionResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowKnowledgeQuestionResponse that = (ShowKnowledgeQuestionResponse) obj; + return Objects.equals(this.questionId, that.questionId) && Objects.equals(this.question, that.question) + && Objects.equals(this.intentId, that.intentId) && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(questionId, question, intentId, createTime, updateTime, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowKnowledgeQuestionResponse {\n"); + sb.append(" questionId: ").append(toIndentedString(questionId)).append("\n"); + sb.append(" question: ").append(toIndentedString(question)).append("\n"); + sb.append(" intentId: ").append(toIndentedString(intentId)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowKnowledgeSkillRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowKnowledgeSkillRequest.java new file mode 100644 index 0000000000..58151ec99b --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowKnowledgeSkillRequest.java @@ -0,0 +1,172 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowKnowledgeSkillRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "skill_id") + + private String skillId; + + public ShowKnowledgeSkillRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public ShowKnowledgeSkillRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public ShowKnowledgeSkillRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public ShowKnowledgeSkillRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public ShowKnowledgeSkillRequest withSkillId(String skillId) { + this.skillId = skillId; + return this; + } + + /** + * 技能ID。 + * @return skillId + */ + public String getSkillId() { + return skillId; + } + + public void setSkillId(String skillId) { + this.skillId = skillId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowKnowledgeSkillRequest that = (ShowKnowledgeSkillRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.skillId, that.skillId); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, skillId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowKnowledgeSkillRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" skillId: ").append(toIndentedString(skillId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/ShowKnowledgeSkillResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowKnowledgeSkillResponse.java new file mode 100644 index 0000000000..7eefa42118 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowKnowledgeSkillResponse.java @@ -0,0 +1,192 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ShowKnowledgeSkillResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "skill_id") + + private String skillId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "identify") + + private String identify; + + @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 = "X-Request-Id") + + private String xRequestId; + + public ShowKnowledgeSkillResponse withSkillId(String skillId) { + this.skillId = skillId; + return this; + } + + /** + * 技能ID。 + * @return skillId + */ + public String getSkillId() { + return skillId; + } + + public void setSkillId(String skillId) { + this.skillId = skillId; + } + + public ShowKnowledgeSkillResponse withName(String name) { + this.name = name; + return this; + } + + /** + * 技能名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ShowKnowledgeSkillResponse withIdentify(String identify) { + this.identify = identify; + return this; + } + + /** + * 技能标识。 + * @return identify + */ + public String getIdentify() { + return identify; + } + + public void setIdentify(String identify) { + this.identify = identify; + } + + public ShowKnowledgeSkillResponse withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public ShowKnowledgeSkillResponse withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + public ShowKnowledgeSkillResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowKnowledgeSkillResponse that = (ShowKnowledgeSkillResponse) obj; + return Objects.equals(this.skillId, that.skillId) && Objects.equals(this.name, that.name) + && Objects.equals(this.identify, that.identify) && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(skillId, name, identify, createTime, updateTime, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowKnowledgeSkillResponse {\n"); + sb.append(" skillId: ").append(toIndentedString(skillId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" identify: ").append(toIndentedString(identify)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowRobotResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowRobotResponse.java index c4142c8cce..e57ffbc280 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowRobotResponse.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowRobotResponse.java @@ -36,6 +36,11 @@ public class ShowRobotResponse extends SdkResponse { private Integer appType; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_key") + + private String appKey; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "language") @@ -76,6 +81,11 @@ public class ShowRobotResponse extends SdkResponse { private Integer chatRounds; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "role_id") + + private String roleId; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "X-Request-Id") @@ -155,7 +165,7 @@ public ShowRobotResponse withAppType(Integer appType) { } /** - * 对接第三方应用厂商类型。 > 0:科大讯飞AIUI;1:华为云CBS;2:科大讯飞星火交互认知大模型;5:第三方驱动;6:第三方语言模型 + * 对接第三方应用厂商类型。 > 0:科大讯飞AIUI;1:华为云CBS;2:科大讯飞星火交互认知大模型;5:第三方驱动;6:第三方语言模型;8:奇妙问 * minimum: 0 * maximum: 32 * @return appType @@ -168,6 +178,23 @@ public void setAppType(Integer appType) { this.appType = appType; } + public ShowRobotResponse withAppKey(String appKey) { + this.appKey = appKey; + return this; + } + + /** + * 应用的AccessKey或帐号。 + * @return appKey + */ + public String getAppKey() { + return appKey; + } + + public void setAppKey(String appKey) { + this.appKey = appKey; + } + public ShowRobotResponse withLanguage(LanguageEnum language) { this.language = language; return this; @@ -308,6 +335,23 @@ public void setChatRounds(Integer chatRounds) { this.chatRounds = chatRounds; } + public ShowRobotResponse withRoleId(String roleId) { + this.roleId = roleId; + return this; + } + + /** + * 奇妙问角色ID。 + * @return roleId + */ + public String getRoleId() { + return roleId; + } + + public void setRoleId(String roleId) { + this.roleId = roleId; + } + public ShowRobotResponse withXRequestId(String xRequestId) { this.xRequestId = xRequestId; return this; @@ -338,11 +382,12 @@ public boolean equals(java.lang.Object obj) { ShowRobotResponse that = (ShowRobotResponse) obj; return Objects.equals(this.robotId, that.robotId) && Objects.equals(this.name, that.name) && Objects.equals(this.roomId, that.roomId) && Objects.equals(this.appId, that.appId) - && Objects.equals(this.appType, that.appType) && Objects.equals(this.language, that.language) - && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) - && Objects.equals(this.region, that.region) && Objects.equals(this.cbsProjectId, that.cbsProjectId) - && Objects.equals(this.llmUrl, that.llmUrl) && Objects.equals(this.isStream, that.isStream) - && Objects.equals(this.chatRounds, that.chatRounds) && Objects.equals(this.xRequestId, that.xRequestId); + && Objects.equals(this.appType, that.appType) && Objects.equals(this.appKey, that.appKey) + && Objects.equals(this.language, that.language) && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.region, that.region) + && Objects.equals(this.cbsProjectId, that.cbsProjectId) && Objects.equals(this.llmUrl, that.llmUrl) + && Objects.equals(this.isStream, that.isStream) && Objects.equals(this.chatRounds, that.chatRounds) + && Objects.equals(this.roleId, that.roleId) && Objects.equals(this.xRequestId, that.xRequestId); } @Override @@ -352,6 +397,7 @@ public int hashCode() { roomId, appId, appType, + appKey, language, createTime, updateTime, @@ -360,6 +406,7 @@ public int hashCode() { llmUrl, isStream, chatRounds, + roleId, xRequestId); } @@ -372,6 +419,7 @@ public String toString() { sb.append(" roomId: ").append(toIndentedString(roomId)).append("\n"); sb.append(" appId: ").append(toIndentedString(appId)).append("\n"); sb.append(" appType: ").append(toIndentedString(appType)).append("\n"); + sb.append(" appKey: ").append(toIndentedString(appKey)).append("\n"); sb.append(" language: ").append(toIndentedString(language)).append("\n"); sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); @@ -380,6 +428,7 @@ public String toString() { sb.append(" llmUrl: ").append(toIndentedString(llmUrl)).append("\n"); sb.append(" isStream: ").append(toIndentedString(isStream)).append("\n"); sb.append(" chatRounds: ").append(toIndentedString(chatRounds)).append("\n"); + sb.append(" roleId: ").append(toIndentedString(roleId)).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/ShowVoiceTrainingJobResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowVoiceTrainingJobResponse.java index d56b4ca721..20d207c521 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowVoiceTrainingJobResponse.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowVoiceTrainingJobResponse.java @@ -91,6 +91,11 @@ public class ShowVoiceTrainingJobResponse extends SdkResponse { private JobTag tag; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "phone") + + private String phone; + public ShowVoiceTrainingJobResponse withJobType(JobType jobType) { this.jobType = jobType; return this; @@ -369,6 +374,23 @@ public void setTag(JobTag tag) { this.tag = tag; } + public ShowVoiceTrainingJobResponse withPhone(String phone) { + this.phone = phone; + return this; + } + + /** + * 手机号 + * @return phone + */ + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -387,7 +409,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.lastupdateTime, that.lastupdateTime) && Objects.equals(this.voiceAuthorizationUrl, that.voiceAuthorizationUrl) - && Objects.equals(this.createType, that.createType) && Objects.equals(this.tag, that.tag); + && Objects.equals(this.createType, that.createType) && Objects.equals(this.tag, that.tag) + && Objects.equals(this.phone, that.phone); } @Override @@ -407,7 +430,8 @@ public int hashCode() { lastupdateTime, voiceAuthorizationUrl, createType, - tag); + tag, + phone); } @Override @@ -430,6 +454,7 @@ public String toString() { sb.append(" voiceAuthorizationUrl: ").append(toIndentedString(voiceAuthorizationUrl)).append("\n"); sb.append(" createType: ").append(toIndentedString(createType)).append("\n"); sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); + sb.append(" phone: ").append(toIndentedString(phone)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowWelcomeSpeechRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowWelcomeSpeechRequest.java new file mode 100644 index 0000000000..0f6b0c3c5f --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowWelcomeSpeechRequest.java @@ -0,0 +1,172 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowWelcomeSpeechRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "welcome_speech_id") + + private String welcomeSpeechId; + + public ShowWelcomeSpeechRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public ShowWelcomeSpeechRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public ShowWelcomeSpeechRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public ShowWelcomeSpeechRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public ShowWelcomeSpeechRequest withWelcomeSpeechId(String welcomeSpeechId) { + this.welcomeSpeechId = welcomeSpeechId; + return this; + } + + /** + * 欢迎词ID。 + * @return welcomeSpeechId + */ + public String getWelcomeSpeechId() { + return welcomeSpeechId; + } + + public void setWelcomeSpeechId(String welcomeSpeechId) { + this.welcomeSpeechId = welcomeSpeechId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowWelcomeSpeechRequest that = (ShowWelcomeSpeechRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.welcomeSpeechId, that.welcomeSpeechId); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, welcomeSpeechId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowWelcomeSpeechRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" welcomeSpeechId: ").append(toIndentedString(welcomeSpeechId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/ShowWelcomeSpeechResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowWelcomeSpeechResponse.java new file mode 100644 index 0000000000..5fae99531d --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowWelcomeSpeechResponse.java @@ -0,0 +1,193 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ShowWelcomeSpeechResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "welcome_speech_id") + + private String welcomeSpeechId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "welcome_speech") + + private String welcomeSpeech; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "robot_id") + + private String robotId; + + @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 = "X-Request-Id") + + private String xRequestId; + + public ShowWelcomeSpeechResponse withWelcomeSpeechId(String welcomeSpeechId) { + this.welcomeSpeechId = welcomeSpeechId; + return this; + } + + /** + * 欢迎词ID。 + * @return welcomeSpeechId + */ + public String getWelcomeSpeechId() { + return welcomeSpeechId; + } + + public void setWelcomeSpeechId(String welcomeSpeechId) { + this.welcomeSpeechId = welcomeSpeechId; + } + + public ShowWelcomeSpeechResponse withWelcomeSpeech(String welcomeSpeech) { + this.welcomeSpeech = welcomeSpeech; + return this; + } + + /** + * 欢迎词。 + * @return welcomeSpeech + */ + public String getWelcomeSpeech() { + return welcomeSpeech; + } + + public void setWelcomeSpeech(String welcomeSpeech) { + this.welcomeSpeech = welcomeSpeech; + } + + public ShowWelcomeSpeechResponse withRobotId(String robotId) { + this.robotId = robotId; + return this; + } + + /** + * 应用ID。 + * @return robotId + */ + public String getRobotId() { + return robotId; + } + + public void setRobotId(String robotId) { + this.robotId = robotId; + } + + public ShowWelcomeSpeechResponse withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public ShowWelcomeSpeechResponse withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + public ShowWelcomeSpeechResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowWelcomeSpeechResponse that = (ShowWelcomeSpeechResponse) obj; + return Objects.equals(this.welcomeSpeechId, that.welcomeSpeechId) + && Objects.equals(this.welcomeSpeech, that.welcomeSpeech) && Objects.equals(this.robotId, that.robotId) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(welcomeSpeechId, welcomeSpeech, robotId, createTime, updateTime, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowWelcomeSpeechResponse {\n"); + sb.append(" welcomeSpeechId: ").append(toIndentedString(welcomeSpeechId)).append("\n"); + sb.append(" welcomeSpeech: ").append(toIndentedString(welcomeSpeech)).append("\n"); + sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowWelcomeSpeechSwitchRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowWelcomeSpeechSwitchRequest.java new file mode 100644 index 0000000000..716d6e9c23 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowWelcomeSpeechSwitchRequest.java @@ -0,0 +1,172 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowWelcomeSpeechSwitchRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "robot_id") + + private String robotId; + + public ShowWelcomeSpeechSwitchRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public ShowWelcomeSpeechSwitchRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public ShowWelcomeSpeechSwitchRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public ShowWelcomeSpeechSwitchRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public ShowWelcomeSpeechSwitchRequest withRobotId(String robotId) { + this.robotId = robotId; + return this; + } + + /** + * 应用ID。 + * @return robotId + */ + public String getRobotId() { + return robotId; + } + + public void setRobotId(String robotId) { + this.robotId = robotId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowWelcomeSpeechSwitchRequest that = (ShowWelcomeSpeechSwitchRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.robotId, that.robotId); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, robotId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowWelcomeSpeechSwitchRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/ShowWelcomeSpeechSwitchResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowWelcomeSpeechSwitchResponse.java new file mode 100644 index 0000000000..e2505c789f --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowWelcomeSpeechSwitchResponse.java @@ -0,0 +1,99 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ShowWelcomeSpeechSwitchResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enable_welcome_speech") + + private Boolean enableWelcomeSpeech; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public ShowWelcomeSpeechSwitchResponse withEnableWelcomeSpeech(Boolean enableWelcomeSpeech) { + this.enableWelcomeSpeech = enableWelcomeSpeech; + return this; + } + + /** + * 欢迎词功能开关。 + * @return enableWelcomeSpeech + */ + public Boolean getEnableWelcomeSpeech() { + return enableWelcomeSpeech; + } + + public void setEnableWelcomeSpeech(Boolean enableWelcomeSpeech) { + this.enableWelcomeSpeech = enableWelcomeSpeech; + } + + public ShowWelcomeSpeechSwitchResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowWelcomeSpeechSwitchResponse that = (ShowWelcomeSpeechSwitchResponse) obj; + return Objects.equals(this.enableWelcomeSpeech, that.enableWelcomeSpeech) + && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(enableWelcomeSpeech, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowWelcomeSpeechSwitchResponse {\n"); + sb.append(" enableWelcomeSpeech: ").append(toIndentedString(enableWelcomeSpeech)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/TrainingJobInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/TrainingJobInfo.java index f91772f80e..f247f5eb30 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/TrainingJobInfo.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/TrainingJobInfo.java @@ -90,6 +90,11 @@ public class TrainingJobInfo { private JobTag tag; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "phone") + + private String phone; + public TrainingJobInfo withJobType(JobType jobType) { this.jobType = jobType; return this; @@ -368,6 +373,23 @@ public void setTag(JobTag tag) { this.tag = tag; } + public TrainingJobInfo withPhone(String phone) { + this.phone = phone; + return this; + } + + /** + * 手机号 + * @return phone + */ + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -386,7 +408,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.lastupdateTime, that.lastupdateTime) && Objects.equals(this.voiceAuthorizationUrl, that.voiceAuthorizationUrl) - && Objects.equals(this.createType, that.createType) && Objects.equals(this.tag, that.tag); + && Objects.equals(this.createType, that.createType) && Objects.equals(this.tag, that.tag) + && Objects.equals(this.phone, that.phone); } @Override @@ -406,7 +429,8 @@ public int hashCode() { lastupdateTime, voiceAuthorizationUrl, createType, - tag); + tag, + phone); } @Override @@ -429,6 +453,7 @@ public String toString() { sb.append(" voiceAuthorizationUrl: ").append(toIndentedString(voiceAuthorizationUrl)).append("\n"); sb.append(" createType: ").append(toIndentedString(createType)).append("\n"); sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); + sb.append(" phone: ").append(toIndentedString(phone)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateBatchKnowledgeQuestionReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateBatchKnowledgeQuestionReq.java new file mode 100644 index 0000000000..f602015dad --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateBatchKnowledgeQuestionReq.java @@ -0,0 +1,92 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 批量修改知识库问法请求。 + */ +public class UpdateBatchKnowledgeQuestionReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "question_list") + + private List questionList = null; + + public UpdateBatchKnowledgeQuestionReq withQuestionList(List questionList) { + this.questionList = questionList; + return this; + } + + public UpdateBatchKnowledgeQuestionReq addQuestionListItem(KnowledgeQuestionUpdateInfo questionListItem) { + if (this.questionList == null) { + this.questionList = new ArrayList<>(); + } + this.questionList.add(questionListItem); + return this; + } + + public UpdateBatchKnowledgeQuestionReq withQuestionList( + Consumer> questionListSetter) { + if (this.questionList == null) { + this.questionList = new ArrayList<>(); + } + questionListSetter.accept(this.questionList); + return this; + } + + /** + * 问法列表 + * @return questionList + */ + public List getQuestionList() { + return questionList; + } + + public void setQuestionList(List questionList) { + this.questionList = questionList; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateBatchKnowledgeQuestionReq that = (UpdateBatchKnowledgeQuestionReq) obj; + return Objects.equals(this.questionList, that.questionList); + } + + @Override + public int hashCode() { + return Objects.hash(questionList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateBatchKnowledgeQuestionReq {\n"); + sb.append(" questionList: ").append(toIndentedString(questionList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/UpdateBatchKnowledgeQuestionRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateBatchKnowledgeQuestionRequest.java new file mode 100644 index 0000000000..43761f35a7 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateBatchKnowledgeQuestionRequest.java @@ -0,0 +1,182 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class UpdateBatchKnowledgeQuestionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdateBatchKnowledgeQuestionReq body; + + public UpdateBatchKnowledgeQuestionRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public UpdateBatchKnowledgeQuestionRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public UpdateBatchKnowledgeQuestionRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public UpdateBatchKnowledgeQuestionRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public UpdateBatchKnowledgeQuestionRequest withBody(UpdateBatchKnowledgeQuestionReq body) { + this.body = body; + return this; + } + + public UpdateBatchKnowledgeQuestionRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdateBatchKnowledgeQuestionReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdateBatchKnowledgeQuestionReq getBody() { + return body; + } + + public void setBody(UpdateBatchKnowledgeQuestionReq 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; + } + UpdateBatchKnowledgeQuestionRequest that = (UpdateBatchKnowledgeQuestionRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateBatchKnowledgeQuestionRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateBatchKnowledgeQuestionResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateBatchKnowledgeQuestionResponse.java new file mode 100644 index 0000000000..008e669c5b --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateBatchKnowledgeQuestionResponse.java @@ -0,0 +1,75 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class UpdateBatchKnowledgeQuestionResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public UpdateBatchKnowledgeQuestionResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateBatchKnowledgeQuestionResponse that = (UpdateBatchKnowledgeQuestionResponse) obj; + return Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateBatchKnowledgeQuestionResponse {\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateDigitalAssetRequestBody.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateDigitalAssetRequestBody.java index 98b77b41b2..bdfb991e94 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateDigitalAssetRequestBody.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateDigitalAssetRequestBody.java @@ -354,7 +354,7 @@ public UpdateDigitalAssetRequestBody withAssetOwner(String assetOwner) { } /** - * 项目ID。 > * 仅管理员帐号可设置此参数。 + * 项目ID。 > * 仅管理员账号可设置此参数。 * @return assetOwner */ public String getAssetOwner() { diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateHotQuestionReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateHotQuestionReq.java new file mode 100644 index 0000000000..1d94967c48 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateHotQuestionReq.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 修改热点问题请求。 + */ +public class UpdateHotQuestionReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hot_question") + + private String hotQuestion; + + public UpdateHotQuestionReq withHotQuestion(String hotQuestion) { + this.hotQuestion = hotQuestion; + return this; + } + + /** + * 热点问题。 + * @return hotQuestion + */ + public String getHotQuestion() { + return hotQuestion; + } + + public void setHotQuestion(String hotQuestion) { + this.hotQuestion = hotQuestion; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateHotQuestionReq that = (UpdateHotQuestionReq) obj; + return Objects.equals(this.hotQuestion, that.hotQuestion); + } + + @Override + public int hashCode() { + return Objects.hash(hotQuestion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateHotQuestionReq {\n"); + sb.append(" hotQuestion: ").append(toIndentedString(hotQuestion)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/UpdateHotQuestionRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateHotQuestionRequest.java new file mode 100644 index 0000000000..4827151657 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateHotQuestionRequest.java @@ -0,0 +1,205 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class UpdateHotQuestionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hot_question_id") + + private String hotQuestionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdateHotQuestionReq body; + + public UpdateHotQuestionRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public UpdateHotQuestionRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public UpdateHotQuestionRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public UpdateHotQuestionRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public UpdateHotQuestionRequest withHotQuestionId(String hotQuestionId) { + this.hotQuestionId = hotQuestionId; + return this; + } + + /** + * 热点问题ID。 + * @return hotQuestionId + */ + public String getHotQuestionId() { + return hotQuestionId; + } + + public void setHotQuestionId(String hotQuestionId) { + this.hotQuestionId = hotQuestionId; + } + + public UpdateHotQuestionRequest withBody(UpdateHotQuestionReq body) { + this.body = body; + return this; + } + + public UpdateHotQuestionRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdateHotQuestionReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdateHotQuestionReq getBody() { + return body; + } + + public void setBody(UpdateHotQuestionReq 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; + } + UpdateHotQuestionRequest that = (UpdateHotQuestionRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.hotQuestionId, that.hotQuestionId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, hotQuestionId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateHotQuestionRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" hotQuestionId: ").append(toIndentedString(hotQuestionId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateHotQuestionResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateHotQuestionResponse.java new file mode 100644 index 0000000000..e81ff15407 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateHotQuestionResponse.java @@ -0,0 +1,193 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class UpdateHotQuestionResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hot_question_id") + + private String hotQuestionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hot_question") + + private String hotQuestion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "robot_id") + + private String robotId; + + @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 = "X-Request-Id") + + private String xRequestId; + + public UpdateHotQuestionResponse withHotQuestionId(String hotQuestionId) { + this.hotQuestionId = hotQuestionId; + return this; + } + + /** + * 热点问题ID。 + * @return hotQuestionId + */ + public String getHotQuestionId() { + return hotQuestionId; + } + + public void setHotQuestionId(String hotQuestionId) { + this.hotQuestionId = hotQuestionId; + } + + public UpdateHotQuestionResponse withHotQuestion(String hotQuestion) { + this.hotQuestion = hotQuestion; + return this; + } + + /** + * 热点问题。 + * @return hotQuestion + */ + public String getHotQuestion() { + return hotQuestion; + } + + public void setHotQuestion(String hotQuestion) { + this.hotQuestion = hotQuestion; + } + + public UpdateHotQuestionResponse withRobotId(String robotId) { + this.robotId = robotId; + return this; + } + + /** + * 机器人ID。 + * @return robotId + */ + public String getRobotId() { + return robotId; + } + + public void setRobotId(String robotId) { + this.robotId = robotId; + } + + public UpdateHotQuestionResponse withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public UpdateHotQuestionResponse withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + public UpdateHotQuestionResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateHotQuestionResponse that = (UpdateHotQuestionResponse) obj; + return Objects.equals(this.hotQuestionId, that.hotQuestionId) + && Objects.equals(this.hotQuestion, that.hotQuestion) && Objects.equals(this.robotId, that.robotId) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(hotQuestionId, hotQuestion, robotId, createTime, updateTime, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateHotQuestionResponse {\n"); + sb.append(" hotQuestionId: ").append(toIndentedString(hotQuestionId)).append("\n"); + sb.append(" hotQuestion: ").append(toIndentedString(hotQuestion)).append("\n"); + sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeIntentReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeIntentReq.java new file mode 100644 index 0000000000..170104d039 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeIntentReq.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 修改知识库意图请求。 + */ +public class UpdateKnowledgeIntentReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "answer") + + private String answer; + + public UpdateKnowledgeIntentReq withName(String name) { + this.name = name; + return this; + } + + /** + * 意图名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public UpdateKnowledgeIntentReq withAnswer(String answer) { + this.answer = answer; + return this; + } + + /** + * 问题答案。 + * @return answer + */ + public String getAnswer() { + return answer; + } + + public void setAnswer(String answer) { + this.answer = answer; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateKnowledgeIntentReq that = (UpdateKnowledgeIntentReq) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.answer, that.answer); + } + + @Override + public int hashCode() { + return Objects.hash(name, answer); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateKnowledgeIntentReq {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" answer: ").append(toIndentedString(answer)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/UpdateKnowledgeIntentRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeIntentRequest.java new file mode 100644 index 0000000000..e60b89574b --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeIntentRequest.java @@ -0,0 +1,205 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class UpdateKnowledgeIntentRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "intent_id") + + private String intentId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdateKnowledgeIntentReq body; + + public UpdateKnowledgeIntentRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public UpdateKnowledgeIntentRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public UpdateKnowledgeIntentRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public UpdateKnowledgeIntentRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public UpdateKnowledgeIntentRequest withIntentId(String intentId) { + this.intentId = intentId; + return this; + } + + /** + * 意图ID。 + * @return intentId + */ + public String getIntentId() { + return intentId; + } + + public void setIntentId(String intentId) { + this.intentId = intentId; + } + + public UpdateKnowledgeIntentRequest withBody(UpdateKnowledgeIntentReq body) { + this.body = body; + return this; + } + + public UpdateKnowledgeIntentRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdateKnowledgeIntentReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdateKnowledgeIntentReq getBody() { + return body; + } + + public void setBody(UpdateKnowledgeIntentReq 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; + } + UpdateKnowledgeIntentRequest that = (UpdateKnowledgeIntentRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.intentId, that.intentId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, intentId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateKnowledgeIntentRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" intentId: ").append(toIndentedString(intentId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeIntentResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeIntentResponse.java new file mode 100644 index 0000000000..8721d224ce --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeIntentResponse.java @@ -0,0 +1,75 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class UpdateKnowledgeIntentResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public UpdateKnowledgeIntentResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateKnowledgeIntentResponse that = (UpdateKnowledgeIntentResponse) obj; + return Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateKnowledgeIntentResponse {\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeQuestionReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeQuestionReq.java new file mode 100644 index 0000000000..f4ce470623 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeQuestionReq.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 修改知识库问法请求。 + */ +public class UpdateKnowledgeQuestionReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "question") + + private String question; + + public UpdateKnowledgeQuestionReq withQuestion(String question) { + this.question = question; + return this; + } + + /** + * 问法。 + * @return question + */ + public String getQuestion() { + return question; + } + + public void setQuestion(String question) { + this.question = question; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateKnowledgeQuestionReq that = (UpdateKnowledgeQuestionReq) obj; + return Objects.equals(this.question, that.question); + } + + @Override + public int hashCode() { + return Objects.hash(question); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateKnowledgeQuestionReq {\n"); + sb.append(" question: ").append(toIndentedString(question)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/UpdateKnowledgeQuestionRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeQuestionRequest.java new file mode 100644 index 0000000000..dfe6ba1b4f --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeQuestionRequest.java @@ -0,0 +1,205 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class UpdateKnowledgeQuestionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "question_id") + + private String questionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdateKnowledgeQuestionReq body; + + public UpdateKnowledgeQuestionRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public UpdateKnowledgeQuestionRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public UpdateKnowledgeQuestionRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public UpdateKnowledgeQuestionRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public UpdateKnowledgeQuestionRequest withQuestionId(String questionId) { + this.questionId = questionId; + return this; + } + + /** + * 问法ID。 + * @return questionId + */ + public String getQuestionId() { + return questionId; + } + + public void setQuestionId(String questionId) { + this.questionId = questionId; + } + + public UpdateKnowledgeQuestionRequest withBody(UpdateKnowledgeQuestionReq body) { + this.body = body; + return this; + } + + public UpdateKnowledgeQuestionRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdateKnowledgeQuestionReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdateKnowledgeQuestionReq getBody() { + return body; + } + + public void setBody(UpdateKnowledgeQuestionReq 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; + } + UpdateKnowledgeQuestionRequest that = (UpdateKnowledgeQuestionRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.questionId, that.questionId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, questionId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateKnowledgeQuestionRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" questionId: ").append(toIndentedString(questionId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeQuestionResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeQuestionResponse.java new file mode 100644 index 0000000000..fd0fd0c933 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeQuestionResponse.java @@ -0,0 +1,75 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class UpdateKnowledgeQuestionResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public UpdateKnowledgeQuestionResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateKnowledgeQuestionResponse that = (UpdateKnowledgeQuestionResponse) obj; + return Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateKnowledgeQuestionResponse {\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeSkillReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeSkillReq.java new file mode 100644 index 0000000000..2fd32d78f6 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeSkillReq.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 修改知识库技能请求。 + */ +public class UpdateKnowledgeSkillReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "identify") + + private String identify; + + public UpdateKnowledgeSkillReq withName(String name) { + this.name = name; + return this; + } + + /** + * 技能名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public UpdateKnowledgeSkillReq withIdentify(String identify) { + this.identify = identify; + return this; + } + + /** + * 技能标识。 + * @return identify + */ + public String getIdentify() { + return identify; + } + + public void setIdentify(String identify) { + this.identify = identify; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateKnowledgeSkillReq that = (UpdateKnowledgeSkillReq) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.identify, that.identify); + } + + @Override + public int hashCode() { + return Objects.hash(name, identify); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateKnowledgeSkillReq {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" identify: ").append(toIndentedString(identify)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/UpdateKnowledgeSkillRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeSkillRequest.java new file mode 100644 index 0000000000..f6d4f5019b --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeSkillRequest.java @@ -0,0 +1,205 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class UpdateKnowledgeSkillRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "skill_id") + + private String skillId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdateKnowledgeSkillReq body; + + public UpdateKnowledgeSkillRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public UpdateKnowledgeSkillRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public UpdateKnowledgeSkillRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public UpdateKnowledgeSkillRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public UpdateKnowledgeSkillRequest withSkillId(String skillId) { + this.skillId = skillId; + return this; + } + + /** + * 技能ID。 + * @return skillId + */ + public String getSkillId() { + return skillId; + } + + public void setSkillId(String skillId) { + this.skillId = skillId; + } + + public UpdateKnowledgeSkillRequest withBody(UpdateKnowledgeSkillReq body) { + this.body = body; + return this; + } + + public UpdateKnowledgeSkillRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdateKnowledgeSkillReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdateKnowledgeSkillReq getBody() { + return body; + } + + public void setBody(UpdateKnowledgeSkillReq 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; + } + UpdateKnowledgeSkillRequest that = (UpdateKnowledgeSkillRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.skillId, that.skillId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, skillId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateKnowledgeSkillRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" skillId: ").append(toIndentedString(skillId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeSkillResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeSkillResponse.java new file mode 100644 index 0000000000..a9152e66f5 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateKnowledgeSkillResponse.java @@ -0,0 +1,75 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class UpdateKnowledgeSkillResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public UpdateKnowledgeSkillResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateKnowledgeSkillResponse that = (UpdateKnowledgeSkillResponse) obj; + return Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateKnowledgeSkillResponse {\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateRobotReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateRobotReq.java index af17405851..cc5d969c0b 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateRobotReq.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateRobotReq.java @@ -51,6 +51,11 @@ public class UpdateRobotReq { private ThirdPartyModelConfig thirdPartyModelConfig; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "mobvoi_config") + + private MobvoiConfig mobvoiConfig; + public UpdateRobotReq withName(String name) { this.name = name; return this; @@ -74,7 +79,7 @@ public UpdateRobotReq withAppType(Integer appType) { } /** - * 对接第三方应用厂商类型。 > 0:科大讯飞AIUI;1:华为云CBS;2:科大讯飞星火交互认知大模型;5:第三方驱动;6:第三方语言模型 + * 对接第三方应用厂商类型。 > 0:科大讯飞AIUI;1:华为云CBS;2:科大讯飞星火交互认知大模型;5:第三方驱动;6:第三方语言模型;8:奇妙问 * minimum: 0 * maximum: 32 * @return appType @@ -225,6 +230,32 @@ public void setThirdPartyModelConfig(ThirdPartyModelConfig thirdPartyModelConfig this.thirdPartyModelConfig = thirdPartyModelConfig; } + public UpdateRobotReq withMobvoiConfig(MobvoiConfig mobvoiConfig) { + this.mobvoiConfig = mobvoiConfig; + return this; + } + + public UpdateRobotReq withMobvoiConfig(Consumer mobvoiConfigSetter) { + if (this.mobvoiConfig == null) { + this.mobvoiConfig = new MobvoiConfig(); + mobvoiConfigSetter.accept(this.mobvoiConfig); + } + + return this; + } + + /** + * Get mobvoiConfig + * @return mobvoiConfig + */ + public MobvoiConfig getMobvoiConfig() { + return mobvoiConfig; + } + + public void setMobvoiConfig(MobvoiConfig mobvoiConfig) { + this.mobvoiConfig = mobvoiConfig; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -239,13 +270,21 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.huaweiEiCbs, that.huaweiEiCbs) && Objects.equals(this.iflytekAiuiConfig, that.iflytekAiuiConfig) && Objects.equals(this.iflytekSpark, that.iflytekSpark) - && Objects.equals(this.thirdPartyModelConfig, that.thirdPartyModelConfig); + && Objects.equals(this.thirdPartyModelConfig, that.thirdPartyModelConfig) + && Objects.equals(this.mobvoiConfig, that.mobvoiConfig); } @Override public int hashCode() { - return Objects - .hash(name, appType, roomId, language, huaweiEiCbs, iflytekAiuiConfig, iflytekSpark, thirdPartyModelConfig); + return Objects.hash(name, + appType, + roomId, + language, + huaweiEiCbs, + iflytekAiuiConfig, + iflytekSpark, + thirdPartyModelConfig, + mobvoiConfig); } @Override @@ -260,6 +299,7 @@ public String toString() { sb.append(" iflytekAiuiConfig: ").append(toIndentedString(iflytekAiuiConfig)).append("\n"); sb.append(" iflytekSpark: ").append(toIndentedString(iflytekSpark)).append("\n"); sb.append(" thirdPartyModelConfig: ").append(toIndentedString(thirdPartyModelConfig)).append("\n"); + sb.append(" mobvoiConfig: ").append(toIndentedString(mobvoiConfig)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateWelcomeSpeechReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateWelcomeSpeechReq.java new file mode 100644 index 0000000000..025f941015 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateWelcomeSpeechReq.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 修改欢迎词请求。 + */ +public class UpdateWelcomeSpeechReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "welcome_speech") + + private String welcomeSpeech; + + public UpdateWelcomeSpeechReq withWelcomeSpeech(String welcomeSpeech) { + this.welcomeSpeech = welcomeSpeech; + return this; + } + + /** + * 欢迎词。 + * @return welcomeSpeech + */ + public String getWelcomeSpeech() { + return welcomeSpeech; + } + + public void setWelcomeSpeech(String welcomeSpeech) { + this.welcomeSpeech = welcomeSpeech; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateWelcomeSpeechReq that = (UpdateWelcomeSpeechReq) obj; + return Objects.equals(this.welcomeSpeech, that.welcomeSpeech); + } + + @Override + public int hashCode() { + return Objects.hash(welcomeSpeech); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateWelcomeSpeechReq {\n"); + sb.append(" welcomeSpeech: ").append(toIndentedString(welcomeSpeech)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/UpdateWelcomeSpeechRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateWelcomeSpeechRequest.java new file mode 100644 index 0000000000..d097e851b0 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateWelcomeSpeechRequest.java @@ -0,0 +1,205 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class UpdateWelcomeSpeechRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "welcome_speech_id") + + private String welcomeSpeechId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdateWelcomeSpeechReq body; + + public UpdateWelcomeSpeechRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public UpdateWelcomeSpeechRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public UpdateWelcomeSpeechRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public UpdateWelcomeSpeechRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public UpdateWelcomeSpeechRequest withWelcomeSpeechId(String welcomeSpeechId) { + this.welcomeSpeechId = welcomeSpeechId; + return this; + } + + /** + * 欢迎词ID。 + * @return welcomeSpeechId + */ + public String getWelcomeSpeechId() { + return welcomeSpeechId; + } + + public void setWelcomeSpeechId(String welcomeSpeechId) { + this.welcomeSpeechId = welcomeSpeechId; + } + + public UpdateWelcomeSpeechRequest withBody(UpdateWelcomeSpeechReq body) { + this.body = body; + return this; + } + + public UpdateWelcomeSpeechRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdateWelcomeSpeechReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdateWelcomeSpeechReq getBody() { + return body; + } + + public void setBody(UpdateWelcomeSpeechReq 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; + } + UpdateWelcomeSpeechRequest that = (UpdateWelcomeSpeechRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.welcomeSpeechId, that.welcomeSpeechId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, welcomeSpeechId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateWelcomeSpeechRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" welcomeSpeechId: ").append(toIndentedString(welcomeSpeechId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateWelcomeSpeechResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateWelcomeSpeechResponse.java new file mode 100644 index 0000000000..ee2778a018 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateWelcomeSpeechResponse.java @@ -0,0 +1,193 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class UpdateWelcomeSpeechResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "welcome_speech_id") + + private String welcomeSpeechId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "welcome_speech") + + private String welcomeSpeech; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "robot_id") + + private String robotId; + + @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 = "X-Request-Id") + + private String xRequestId; + + public UpdateWelcomeSpeechResponse withWelcomeSpeechId(String welcomeSpeechId) { + this.welcomeSpeechId = welcomeSpeechId; + return this; + } + + /** + * 欢迎词ID。 + * @return welcomeSpeechId + */ + public String getWelcomeSpeechId() { + return welcomeSpeechId; + } + + public void setWelcomeSpeechId(String welcomeSpeechId) { + this.welcomeSpeechId = welcomeSpeechId; + } + + public UpdateWelcomeSpeechResponse withWelcomeSpeech(String welcomeSpeech) { + this.welcomeSpeech = welcomeSpeech; + return this; + } + + /** + * 欢迎词。 + * @return welcomeSpeech + */ + public String getWelcomeSpeech() { + return welcomeSpeech; + } + + public void setWelcomeSpeech(String welcomeSpeech) { + this.welcomeSpeech = welcomeSpeech; + } + + public UpdateWelcomeSpeechResponse withRobotId(String robotId) { + this.robotId = robotId; + return this; + } + + /** + * 应用ID。 + * @return robotId + */ + public String getRobotId() { + return robotId; + } + + public void setRobotId(String robotId) { + this.robotId = robotId; + } + + public UpdateWelcomeSpeechResponse withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public UpdateWelcomeSpeechResponse withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + public UpdateWelcomeSpeechResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateWelcomeSpeechResponse that = (UpdateWelcomeSpeechResponse) obj; + return Objects.equals(this.welcomeSpeechId, that.welcomeSpeechId) + && Objects.equals(this.welcomeSpeech, that.welcomeSpeech) && Objects.equals(this.robotId, that.robotId) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(welcomeSpeechId, welcomeSpeech, robotId, createTime, updateTime, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateWelcomeSpeechResponse {\n"); + sb.append(" welcomeSpeechId: ").append(toIndentedString(welcomeSpeechId)).append("\n"); + sb.append(" welcomeSpeech: ").append(toIndentedString(welcomeSpeech)).append("\n"); + sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateWelcomeSpeechSwitchReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateWelcomeSpeechSwitchReq.java new file mode 100644 index 0000000000..03ff270a28 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateWelcomeSpeechSwitchReq.java @@ -0,0 +1,96 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 修改欢迎词功能开关请求。 + */ +public class UpdateWelcomeSpeechSwitchReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "robot_id") + + private String robotId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enable_welcome_speech") + + private Boolean enableWelcomeSpeech; + + public UpdateWelcomeSpeechSwitchReq withRobotId(String robotId) { + this.robotId = robotId; + return this; + } + + /** + * 应用ID。 + * @return robotId + */ + public String getRobotId() { + return robotId; + } + + public void setRobotId(String robotId) { + this.robotId = robotId; + } + + public UpdateWelcomeSpeechSwitchReq withEnableWelcomeSpeech(Boolean enableWelcomeSpeech) { + this.enableWelcomeSpeech = enableWelcomeSpeech; + return this; + } + + /** + * 欢迎词功能开关。 + * @return enableWelcomeSpeech + */ + public Boolean getEnableWelcomeSpeech() { + return enableWelcomeSpeech; + } + + public void setEnableWelcomeSpeech(Boolean enableWelcomeSpeech) { + this.enableWelcomeSpeech = enableWelcomeSpeech; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateWelcomeSpeechSwitchReq that = (UpdateWelcomeSpeechSwitchReq) obj; + return Objects.equals(this.robotId, that.robotId) + && Objects.equals(this.enableWelcomeSpeech, that.enableWelcomeSpeech); + } + + @Override + public int hashCode() { + return Objects.hash(robotId, enableWelcomeSpeech); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateWelcomeSpeechSwitchReq {\n"); + sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); + sb.append(" enableWelcomeSpeech: ").append(toIndentedString(enableWelcomeSpeech)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the 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/UpdateWelcomeSpeechSwitchRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateWelcomeSpeechSwitchRequest.java new file mode 100644 index 0000000000..39e3c12f1e --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateWelcomeSpeechSwitchRequest.java @@ -0,0 +1,182 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class UpdateWelcomeSpeechSwitchRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdateWelcomeSpeechSwitchReq body; + + public UpdateWelcomeSpeechSwitchRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public UpdateWelcomeSpeechSwitchRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public UpdateWelcomeSpeechSwitchRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public UpdateWelcomeSpeechSwitchRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public UpdateWelcomeSpeechSwitchRequest withBody(UpdateWelcomeSpeechSwitchReq body) { + this.body = body; + return this; + } + + public UpdateWelcomeSpeechSwitchRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdateWelcomeSpeechSwitchReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdateWelcomeSpeechSwitchReq getBody() { + return body; + } + + public void setBody(UpdateWelcomeSpeechSwitchReq 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; + } + UpdateWelcomeSpeechSwitchRequest that = (UpdateWelcomeSpeechSwitchRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateWelcomeSpeechSwitchRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateWelcomeSpeechSwitchResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateWelcomeSpeechSwitchResponse.java new file mode 100644 index 0000000000..726e87d04c --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateWelcomeSpeechSwitchResponse.java @@ -0,0 +1,75 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class UpdateWelcomeSpeechSwitchResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public UpdateWelcomeSpeechSwitchResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateWelcomeSpeechSwitchResponse that = (UpdateWelcomeSpeechSwitchResponse) obj; + return Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateWelcomeSpeechSwitchResponse {\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/WelcomeSpeechInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/WelcomeSpeechInfo.java new file mode 100644 index 0000000000..ba6ba5de65 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/WelcomeSpeechInfo.java @@ -0,0 +1,166 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 欢迎词基本信息。 + */ +public class WelcomeSpeechInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "welcome_speech_id") + + private String welcomeSpeechId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "welcome_speech") + + private String welcomeSpeech; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "robot_id") + + private String robotId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private String updateTime; + + public WelcomeSpeechInfo withWelcomeSpeechId(String welcomeSpeechId) { + this.welcomeSpeechId = welcomeSpeechId; + return this; + } + + /** + * 欢迎词ID。 + * @return welcomeSpeechId + */ + public String getWelcomeSpeechId() { + return welcomeSpeechId; + } + + public void setWelcomeSpeechId(String welcomeSpeechId) { + this.welcomeSpeechId = welcomeSpeechId; + } + + public WelcomeSpeechInfo withWelcomeSpeech(String welcomeSpeech) { + this.welcomeSpeech = welcomeSpeech; + return this; + } + + /** + * 欢迎词。 + * @return welcomeSpeech + */ + public String getWelcomeSpeech() { + return welcomeSpeech; + } + + public void setWelcomeSpeech(String welcomeSpeech) { + this.welcomeSpeech = welcomeSpeech; + } + + public WelcomeSpeechInfo withRobotId(String robotId) { + this.robotId = robotId; + return this; + } + + /** + * 应用ID。 + * @return robotId + */ + public String getRobotId() { + return robotId; + } + + public void setRobotId(String robotId) { + this.robotId = robotId; + } + + public WelcomeSpeechInfo withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public WelcomeSpeechInfo withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + WelcomeSpeechInfo that = (WelcomeSpeechInfo) obj; + return Objects.equals(this.welcomeSpeechId, that.welcomeSpeechId) + && Objects.equals(this.welcomeSpeech, that.welcomeSpeech) && Objects.equals(this.robotId, that.robotId) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime); + } + + @Override + public int hashCode() { + return Objects.hash(welcomeSpeechId, welcomeSpeech, robotId, createTime, updateTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WelcomeSpeechInfo {\n"); + sb.append(" welcomeSpeechId: ").append(toIndentedString(welcomeSpeechId)).append("\n"); + sb.append(" welcomeSpeech: ").append(toIndentedString(welcomeSpeech)).append("\n"); + sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/moderation/pom.xml b/services/moderation/pom.xml index f4d6779c71..a398229bed 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-moderation - 3.1.95 + 3.1.96 Huawei Cloud SDK for MODERATION 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/mpc/pom.xml b/services/mpc/pom.xml index 2e63711969..efeecd8222 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-mpc - 3.1.95 + 3.1.96 Huawei Cloud SDK for MPC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/mrs/pom.xml b/services/mrs/pom.xml index 985cc62d5c..5c0c698edc 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-mrs - 3.1.95 + 3.1.96 Huawei Cloud SDK for MRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/msgsms/pom.xml b/services/msgsms/pom.xml index 52d223991a..64370cc187 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-msgsms - 3.1.95 + 3.1.96 Huawei Cloud SDK for MSGSMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/mssi/pom.xml b/services/mssi/pom.xml index 3590cd60ff..74318fc4d7 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-mssi - 3.1.95 + 3.1.96 Huawei Cloud SDK for MSSI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/nat/pom.xml b/services/nat/pom.xml index 2617c23b2b..2152a80e04 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-nat - 3.1.95 + 3.1.96 Huawei Cloud SDK for NAT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/nlp/pom.xml b/services/nlp/pom.xml index 4e4254bf44..5a9a149098 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-nlp - 3.1.95 + 3.1.96 Huawei Cloud SDK for NLP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/oa/pom.xml b/services/oa/pom.xml index a2ad0cedcf..a34394a8a4 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-oa - 3.1.95 + 3.1.96 Huawei Cloud SDK for OA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/obs/pom.xml b/services/obs/pom.xml index 9bed56e1bf..f8dc1f3764 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-obs - 3.1.95 + 3.1.96 Huawei Cloud SDK for OBS 4.0.0 @@ -17,12 +17,12 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 com.huaweicloud.sdk huaweicloud-sdk-core-xml - 3.1.95 + 3.1.96 diff --git a/services/ocr/pom.xml b/services/ocr/pom.xml index 2c86c565e7..30b5eb2b9f 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-ocr - 3.1.95 + 3.1.96 Huawei Cloud SDK for OCR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/OcrMeta.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/OcrMeta.java index b12fa04816..bac7330a5f 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/OcrMeta.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/OcrMeta.java @@ -188,6 +188,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeAcceptanceBillResponse::getXRequestId, + RecognizeAcceptanceBillResponse::setXRequestId)); return builder.build(); } @@ -221,6 +227,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeAutoClassificationResponse::getXRequestId, + RecognizeAutoClassificationResponse::setXRequestId)); return builder.build(); } @@ -250,6 +262,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeBankReceiptResponse::getXRequestId, + RecognizeBankReceiptResponse::setXRequestId)); return builder.build(); } @@ -279,6 +297,11 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeBankcardResponse::getXRequestId, RecognizeBankcardResponse::setXRequestId)); return builder.build(); } @@ -308,6 +331,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeBusinessCardResponse::getXRequestId, + RecognizeBusinessCardResponse::setXRequestId)); return builder.build(); } @@ -338,6 +367,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeBusinessLicenseResponse::getXRequestId, + RecognizeBusinessLicenseResponse::setXRequestId)); return builder.build(); } @@ -368,6 +403,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeCambodianIdCardResponse::getXRequestId, + RecognizeCambodianIdCardResponse::setXRequestId)); return builder.build(); } @@ -397,6 +438,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeChileIdCardResponse::getXRequestId, + RecognizeChileIdCardResponse::setXRequestId)); return builder.build(); } @@ -426,6 +473,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeColombiaIdCardResponse::getXRequestId, + RecognizeColombiaIdCardResponse::setXRequestId)); return builder.build(); } @@ -455,6 +508,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeDriverLicenseResponse::getXRequestId, + RecognizeDriverLicenseResponse::setXRequestId)); return builder.build(); } @@ -485,6 +544,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeExitEntryPermitResponse::getXRequestId, + RecognizeExitEntryPermitResponse::setXRequestId)); return builder.build(); } @@ -518,6 +583,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeFinancialStatementResponse::getXRequestId, + RecognizeFinancialStatementResponse::setXRequestId)); return builder.build(); } @@ -548,6 +619,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeFlightItineraryResponse::getXRequestId, + RecognizeFlightItineraryResponse::setXRequestId)); return builder.build(); } @@ -577,6 +654,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeGeneralTableResponse::getXRequestId, + RecognizeGeneralTableResponse::setXRequestId)); return builder.build(); } @@ -606,6 +689,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeGeneralTextResponse::getXRequestId, + RecognizeGeneralTextResponse::setXRequestId)); return builder.build(); } @@ -635,6 +724,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeHandwritingResponse::getXRequestId, + RecognizeHandwritingResponse::setXRequestId)); return builder.build(); } @@ -664,6 +759,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeHealthCodeResponse::getXRequestId, + RecognizeHealthCodeResponse::setXRequestId)); return builder.build(); } @@ -693,6 +794,11 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeHkIdCardResponse::getXRequestId, RecognizeHkIdCardResponse::setXRequestId)); return builder.build(); } @@ -726,6 +832,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeHouseholdRegisterResponse::getXRequestId, + RecognizeHouseholdRegisterResponse::setXRequestId)); return builder.build(); } @@ -755,6 +867,11 @@ private static HttpRequestDef g // response + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeIdCardResponse::getXRequestId, RecognizeIdCardResponse::setXRequestId)); return builder.build(); } @@ -784,6 +901,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeIdDocumentResponse::getXRequestId, + RecognizeIdDocumentResponse::setXRequestId)); return builder.build(); } @@ -814,6 +937,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeInsurancePolicyResponse::getXRequestId, + RecognizeInsurancePolicyResponse::setXRequestId)); return builder.build(); } @@ -847,6 +976,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeInvoiceVerificationResponse::getXRequestId, + RecognizeInvoiceVerificationResponse::setXRequestId)); return builder.build(); } @@ -876,6 +1011,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeLicensePlateResponse::getXRequestId, + RecognizeLicensePlateResponse::setXRequestId)); return builder.build(); } @@ -905,6 +1046,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeMacaoIdCardResponse::getXRequestId, + RecognizeMacaoIdCardResponse::setXRequestId)); return builder.build(); } @@ -938,6 +1085,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeMainlandTravelPermitResponse::getXRequestId, + RecognizeMainlandTravelPermitResponse::setXRequestId)); return builder.build(); } @@ -967,6 +1120,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeMvsInvoiceResponse::getXRequestId, + RecognizeMvsInvoiceResponse::setXRequestId)); return builder.build(); } @@ -1000,6 +1159,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeMyanmarDriverLicenseResponse::getXRequestId, + RecognizeMyanmarDriverLicenseResponse::setXRequestId)); return builder.build(); } @@ -1029,6 +1194,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeMyanmarIdcardResponse::getXRequestId, + RecognizeMyanmarIdcardResponse::setXRequestId)); return builder.build(); } @@ -1058,6 +1229,11 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizePassportResponse::getXRequestId, RecognizePassportResponse::setXRequestId)); return builder.build(); } @@ -1087,6 +1263,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizePcrTestRecordResponse::getXRequestId, + RecognizePcrTestRecordResponse::setXRequestId)); return builder.build(); } @@ -1116,6 +1298,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizePeruIdCardResponse::getXRequestId, + RecognizePeruIdCardResponse::setXRequestId)); return builder.build(); } @@ -1149,6 +1337,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeQualificationCertificateResponse::getXRequestId, + RecognizeQualificationCertificateResponse::setXRequestId)); return builder.build(); } @@ -1178,6 +1372,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeQuotaInvoiceResponse::getXRequestId, + RecognizeQuotaInvoiceResponse::setXRequestId)); return builder.build(); } @@ -1211,6 +1411,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeRealEstateCertificateResponse::getXRequestId, + RecognizeRealEstateCertificateResponse::setXRequestId)); return builder.build(); } @@ -1240,6 +1446,11 @@ private static HttpRequestDef genFo // response + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeSealResponse::getXRequestId, RecognizeSealResponse::setXRequestId)); return builder.build(); } @@ -1273,6 +1484,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeSmartDocumentRecognizerResponse::getXRequestId, + RecognizeSmartDocumentRecognizerResponse::setXRequestId)); return builder.build(); } @@ -1302,6 +1519,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeTaxiInvoiceResponse::getXRequestId, + RecognizeTaxiInvoiceResponse::setXRequestId)); return builder.build(); } @@ -1331,6 +1554,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeThailandIdcardResponse::getXRequestId, + RecognizeThailandIdcardResponse::setXRequestId)); return builder.build(); } @@ -1364,6 +1593,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeThailandLicensePlateResponse::getXRequestId, + RecognizeThailandLicensePlateResponse::setXRequestId)); return builder.build(); } @@ -1393,6 +1628,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeTollInvoiceResponse::getXRequestId, + RecognizeTollInvoiceResponse::setXRequestId)); return builder.build(); } @@ -1422,6 +1663,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeTrainTicketResponse::getXRequestId, + RecognizeTrainTicketResponse::setXRequestId)); return builder.build(); } @@ -1455,6 +1702,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeTransportationLicenseResponse::getXRequestId, + RecognizeTransportationLicenseResponse::setXRequestId)); return builder.build(); } @@ -1484,6 +1737,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeVatInvoiceResponse::getXRequestId, + RecognizeVatInvoiceResponse::setXRequestId)); return builder.build(); } @@ -1517,6 +1776,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeVehicleCertificateResponse::getXRequestId, + RecognizeVehicleCertificateResponse::setXRequestId)); return builder.build(); } @@ -1546,6 +1811,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeVehicleLicenseResponse::getXRequestId, + RecognizeVehicleLicenseResponse::setXRequestId)); return builder.build(); } @@ -1575,6 +1846,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeVietnamIdCardResponse::getXRequestId, + RecognizeVietnamIdCardResponse::setXRequestId)); return builder.build(); } @@ -1608,6 +1885,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeWaybillElectronicResponse::getXRequestId, + RecognizeWaybillElectronicResponse::setXRequestId)); return builder.build(); } @@ -1637,6 +1920,11 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeWebImageResponse::getXRequestId, RecognizeWebImageResponse::setXRequestId)); return builder.build(); } @@ -1666,6 +1954,12 @@ private static HttpRequestDefwithResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeCustomTemplateResponse::getXRequestId, + RecognizeCustomTemplateResponse::setXRequestId)); return builder.build(); } @@ -1694,6 +1988,11 @@ private static HttpRequestDef genForR // response + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(RecognizeVinResponse::getXRequestId, RecognizeVinResponse::setXRequestId)); return builder.build(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeAcceptanceBillResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeAcceptanceBillResponse.java index f6dcff7565..6cc2db9700 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeAcceptanceBillResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeAcceptanceBillResponse.java @@ -17,6 +17,11 @@ public class RecognizeAcceptanceBillResponse extends SdkResponse { private AcceptanceBillResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeAcceptanceBillResponse withResult(AcceptanceBillResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(AcceptanceBillResult result) { this.result = result; } + public RecognizeAcceptanceBillResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeAcceptanceBillResponse that = (RecognizeAcceptanceBillResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeAcceptanceBillResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeAutoClassificationResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeAutoClassificationResponse.java index 2fe68f747a..c3091ef605 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeAutoClassificationResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeAutoClassificationResponse.java @@ -19,6 +19,11 @@ public class RecognizeAutoClassificationResponse extends SdkResponse { private List result = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeAutoClassificationResponse withResult(List result) { this.result = result; return this; @@ -52,6 +57,25 @@ public void setResult(List result) { this.result = result; } + public RecognizeAutoClassificationResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -61,12 +85,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeAutoClassificationResponse that = (RecognizeAutoClassificationResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -74,6 +98,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeAutoClassificationResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeBankReceiptResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeBankReceiptResponse.java index 3492a1cf1e..9bb20c8026 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeBankReceiptResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeBankReceiptResponse.java @@ -17,6 +17,11 @@ public class RecognizeBankReceiptResponse extends SdkResponse { private BankReceiptResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeBankReceiptResponse withResult(BankReceiptResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(BankReceiptResult result) { this.result = result; } + public RecognizeBankReceiptResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeBankReceiptResponse that = (RecognizeBankReceiptResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeBankReceiptResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeBankcardResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeBankcardResponse.java index 8a84a7e63e..7baa8d1437 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeBankcardResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeBankcardResponse.java @@ -17,6 +17,11 @@ public class RecognizeBankcardResponse extends SdkResponse { private BankcardResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeBankcardResponse withResult(BankcardResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(BankcardResult result) { this.result = result; } + public RecognizeBankcardResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeBankcardResponse that = (RecognizeBankcardResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeBankcardResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeBusinessCardResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeBusinessCardResponse.java index f7a28d6e6c..49f40f207e 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeBusinessCardResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeBusinessCardResponse.java @@ -17,6 +17,11 @@ public class RecognizeBusinessCardResponse extends SdkResponse { private BusinessCardResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeBusinessCardResponse withResult(BusinessCardResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(BusinessCardResult result) { this.result = result; } + public RecognizeBusinessCardResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeBusinessCardResponse that = (RecognizeBusinessCardResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeBusinessCardResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeBusinessLicenseResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeBusinessLicenseResponse.java index 97390beeff..fbd9837997 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeBusinessLicenseResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeBusinessLicenseResponse.java @@ -17,6 +17,11 @@ public class RecognizeBusinessLicenseResponse extends SdkResponse { private BusinessLicenseResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeBusinessLicenseResponse withResult(BusinessLicenseResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(BusinessLicenseResult result) { this.result = result; } + public RecognizeBusinessLicenseResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeBusinessLicenseResponse that = (RecognizeBusinessLicenseResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeBusinessLicenseResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeCambodianIdCardResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeCambodianIdCardResponse.java index 28645a86e1..038db23f25 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeCambodianIdCardResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeCambodianIdCardResponse.java @@ -17,6 +17,11 @@ public class RecognizeCambodianIdCardResponse extends SdkResponse { private CambodianIdCardResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeCambodianIdCardResponse withResult(CambodianIdCardResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(CambodianIdCardResult result) { this.result = result; } + public RecognizeCambodianIdCardResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeCambodianIdCardResponse that = (RecognizeCambodianIdCardResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeCambodianIdCardResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeChileIdCardResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeChileIdCardResponse.java index f1a2f69a2f..ccb04543af 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeChileIdCardResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeChileIdCardResponse.java @@ -17,6 +17,11 @@ public class RecognizeChileIdCardResponse extends SdkResponse { private ChileIdCardResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeChileIdCardResponse withResult(ChileIdCardResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(ChileIdCardResult result) { this.result = result; } + public RecognizeChileIdCardResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeChileIdCardResponse that = (RecognizeChileIdCardResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeChileIdCardResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeColombiaIdCardResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeColombiaIdCardResponse.java index e36e068eb6..ed78fde909 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeColombiaIdCardResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeColombiaIdCardResponse.java @@ -17,6 +17,11 @@ public class RecognizeColombiaIdCardResponse extends SdkResponse { private ColombiaIdCardResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeColombiaIdCardResponse withResult(ColombiaIdCardResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(ColombiaIdCardResult result) { this.result = result; } + public RecognizeColombiaIdCardResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeColombiaIdCardResponse that = (RecognizeColombiaIdCardResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeColombiaIdCardResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeCustomTemplateResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeCustomTemplateResponse.java index 4b9d8c6145..68b7552d09 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeCustomTemplateResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeCustomTemplateResponse.java @@ -21,6 +21,11 @@ public class RecognizeCustomTemplateResponse extends SdkResponse { private String templateId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeCustomTemplateResponse withResult(Object result) { this.result = result; return this; @@ -55,6 +60,25 @@ public void setTemplateId(String templateId) { this.templateId = templateId; } + public RecognizeCustomTemplateResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -64,12 +88,13 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeCustomTemplateResponse that = (RecognizeCustomTemplateResponse) obj; - return Objects.equals(this.result, that.result) && Objects.equals(this.templateId, that.templateId); + return Objects.equals(this.result, that.result) && Objects.equals(this.templateId, that.templateId) + && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result, templateId); + return Objects.hash(result, templateId, xRequestId); } @Override @@ -78,6 +103,7 @@ public String toString() { sb.append("class RecognizeCustomTemplateResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append(" templateId: ").append(toIndentedString(templateId)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeDriverLicenseResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeDriverLicenseResponse.java index 83bfa34952..6d928072b0 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeDriverLicenseResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeDriverLicenseResponse.java @@ -17,6 +17,11 @@ public class RecognizeDriverLicenseResponse extends SdkResponse { private DriverLicenseResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeDriverLicenseResponse withResult(DriverLicenseResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(DriverLicenseResult result) { this.result = result; } + public RecognizeDriverLicenseResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeDriverLicenseResponse that = (RecognizeDriverLicenseResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeDriverLicenseResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeExitEntryPermitResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeExitEntryPermitResponse.java index 5df79f8e07..24b7496c0c 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeExitEntryPermitResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeExitEntryPermitResponse.java @@ -17,6 +17,11 @@ public class RecognizeExitEntryPermitResponse extends SdkResponse { private ExitEntryPermitResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeExitEntryPermitResponse withResult(ExitEntryPermitResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(ExitEntryPermitResult result) { this.result = result; } + public RecognizeExitEntryPermitResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeExitEntryPermitResponse that = (RecognizeExitEntryPermitResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeExitEntryPermitResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeFinancialStatementResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeFinancialStatementResponse.java index 89c9a71acf..1cc08c360f 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeFinancialStatementResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeFinancialStatementResponse.java @@ -17,6 +17,11 @@ public class RecognizeFinancialStatementResponse extends SdkResponse { private FinancialStatementResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeFinancialStatementResponse withResult(FinancialStatementResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(FinancialStatementResult result) { this.result = result; } + public RecognizeFinancialStatementResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeFinancialStatementResponse that = (RecognizeFinancialStatementResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeFinancialStatementResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeFlightItineraryResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeFlightItineraryResponse.java index bc165c6dcf..13e1d22b5a 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeFlightItineraryResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeFlightItineraryResponse.java @@ -17,6 +17,11 @@ public class RecognizeFlightItineraryResponse extends SdkResponse { private FlightItineraryResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeFlightItineraryResponse withResult(FlightItineraryResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(FlightItineraryResult result) { this.result = result; } + public RecognizeFlightItineraryResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeFlightItineraryResponse that = (RecognizeFlightItineraryResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeFlightItineraryResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeGeneralTableResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeGeneralTableResponse.java index 8ec89a9d67..2d8598bdd2 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeGeneralTableResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeGeneralTableResponse.java @@ -17,6 +17,11 @@ public class RecognizeGeneralTableResponse extends SdkResponse { private GeneralTableResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeGeneralTableResponse withResult(GeneralTableResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(GeneralTableResult result) { this.result = result; } + public RecognizeGeneralTableResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeGeneralTableResponse that = (RecognizeGeneralTableResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeGeneralTableResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeGeneralTextResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeGeneralTextResponse.java index ae653e5bea..c9ba7e5545 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeGeneralTextResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeGeneralTextResponse.java @@ -17,6 +17,11 @@ public class RecognizeGeneralTextResponse extends SdkResponse { private GeneralTextResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeGeneralTextResponse withResult(GeneralTextResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(GeneralTextResult result) { this.result = result; } + public RecognizeGeneralTextResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeGeneralTextResponse that = (RecognizeGeneralTextResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeGeneralTextResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeHandwritingResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeHandwritingResponse.java index 5f310aafd0..ad3361dab3 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeHandwritingResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeHandwritingResponse.java @@ -17,6 +17,11 @@ public class RecognizeHandwritingResponse extends SdkResponse { private HandwritingResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeHandwritingResponse withResult(HandwritingResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(HandwritingResult result) { this.result = result; } + public RecognizeHandwritingResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeHandwritingResponse that = (RecognizeHandwritingResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeHandwritingResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeHealthCodeResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeHealthCodeResponse.java index 8639473608..1e449e5b79 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeHealthCodeResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeHealthCodeResponse.java @@ -17,6 +17,11 @@ public class RecognizeHealthCodeResponse extends SdkResponse { private HealthCodeResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeHealthCodeResponse withResult(HealthCodeResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(HealthCodeResult result) { this.result = result; } + public RecognizeHealthCodeResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeHealthCodeResponse that = (RecognizeHealthCodeResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeHealthCodeResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeHkIdCardResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeHkIdCardResponse.java index c6da99ea41..df57aa5781 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeHkIdCardResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeHkIdCardResponse.java @@ -17,6 +17,11 @@ public class RecognizeHkIdCardResponse extends SdkResponse { private HkIdCardResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeHkIdCardResponse withResult(HkIdCardResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(HkIdCardResult result) { this.result = result; } + public RecognizeHkIdCardResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeHkIdCardResponse that = (RecognizeHkIdCardResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeHkIdCardResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeHouseholdRegisterResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeHouseholdRegisterResponse.java index 2911d2ed22..bf00882693 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeHouseholdRegisterResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeHouseholdRegisterResponse.java @@ -19,6 +19,11 @@ public class RecognizeHouseholdRegisterResponse extends SdkResponse { private List result = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeHouseholdRegisterResponse withResult(List result) { this.result = result; return this; @@ -52,6 +57,25 @@ public void setResult(List result) { this.result = result; } + public RecognizeHouseholdRegisterResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -61,12 +85,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeHouseholdRegisterResponse that = (RecognizeHouseholdRegisterResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -74,6 +98,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeHouseholdRegisterResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeIdCardResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeIdCardResponse.java index 63a83224fd..c71cf85859 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeIdCardResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeIdCardResponse.java @@ -17,6 +17,11 @@ public class RecognizeIdCardResponse extends SdkResponse { private IdCardResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeIdCardResponse withResult(IdCardResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(IdCardResult result) { this.result = result; } + public RecognizeIdCardResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeIdCardResponse that = (RecognizeIdCardResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeIdCardResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeIdDocumentResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeIdDocumentResponse.java index 68efeba87b..cbb99f295e 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeIdDocumentResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeIdDocumentResponse.java @@ -17,6 +17,11 @@ public class RecognizeIdDocumentResponse extends SdkResponse { private IdDocumentItem result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeIdDocumentResponse withResult(IdDocumentItem result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(IdDocumentItem result) { this.result = result; } + public RecognizeIdDocumentResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeIdDocumentResponse that = (RecognizeIdDocumentResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeIdDocumentResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeInsurancePolicyResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeInsurancePolicyResponse.java index b728feb6ca..ae24c30712 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeInsurancePolicyResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeInsurancePolicyResponse.java @@ -17,6 +17,11 @@ public class RecognizeInsurancePolicyResponse extends SdkResponse { private InsurancePolicyResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeInsurancePolicyResponse withResult(InsurancePolicyResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(InsurancePolicyResult result) { this.result = result; } + public RecognizeInsurancePolicyResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeInsurancePolicyResponse that = (RecognizeInsurancePolicyResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeInsurancePolicyResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeInvoiceVerificationResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeInvoiceVerificationResponse.java index ef915b03b5..0be51bd2dc 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeInvoiceVerificationResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeInvoiceVerificationResponse.java @@ -16,6 +16,11 @@ public class RecognizeInvoiceVerificationResponse extends SdkResponse { private Object result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeInvoiceVerificationResponse withResult(Object result) { this.result = result; return this; @@ -33,6 +38,25 @@ public void setResult(Object result) { this.result = result; } + public RecognizeInvoiceVerificationResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -42,12 +66,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeInvoiceVerificationResponse that = (RecognizeInvoiceVerificationResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -55,6 +79,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeInvoiceVerificationResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeLicensePlateResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeLicensePlateResponse.java index dea367530f..77bf2d38f8 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeLicensePlateResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeLicensePlateResponse.java @@ -19,6 +19,11 @@ public class RecognizeLicensePlateResponse extends SdkResponse { private List result = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeLicensePlateResponse withResult(List result) { this.result = result; return this; @@ -52,6 +57,25 @@ public void setResult(List result) { this.result = result; } + public RecognizeLicensePlateResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -61,12 +85,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeLicensePlateResponse that = (RecognizeLicensePlateResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -74,6 +98,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeLicensePlateResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeMacaoIdCardResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeMacaoIdCardResponse.java index a4879bc5e5..01fc19b0d1 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeMacaoIdCardResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeMacaoIdCardResponse.java @@ -17,6 +17,11 @@ public class RecognizeMacaoIdCardResponse extends SdkResponse { private MacaoIdCardResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeMacaoIdCardResponse withResult(MacaoIdCardResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(MacaoIdCardResult result) { this.result = result; } + public RecognizeMacaoIdCardResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeMacaoIdCardResponse that = (RecognizeMacaoIdCardResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeMacaoIdCardResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeMainlandTravelPermitResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeMainlandTravelPermitResponse.java index ca97451161..c310948445 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeMainlandTravelPermitResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeMainlandTravelPermitResponse.java @@ -17,6 +17,11 @@ public class RecognizeMainlandTravelPermitResponse extends SdkResponse { private MainlandTravelPermitResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeMainlandTravelPermitResponse withResult(MainlandTravelPermitResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(MainlandTravelPermitResult result) { this.result = result; } + public RecognizeMainlandTravelPermitResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeMainlandTravelPermitResponse that = (RecognizeMainlandTravelPermitResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeMainlandTravelPermitResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeMvsInvoiceResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeMvsInvoiceResponse.java index 8b8ff9917e..be0e07e477 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeMvsInvoiceResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeMvsInvoiceResponse.java @@ -17,6 +17,11 @@ public class RecognizeMvsInvoiceResponse extends SdkResponse { private MvsInvoiceResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeMvsInvoiceResponse withResult(MvsInvoiceResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(MvsInvoiceResult result) { this.result = result; } + public RecognizeMvsInvoiceResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeMvsInvoiceResponse that = (RecognizeMvsInvoiceResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeMvsInvoiceResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeMyanmarDriverLicenseResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeMyanmarDriverLicenseResponse.java index c6b41b22dc..fd7775966d 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeMyanmarDriverLicenseResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeMyanmarDriverLicenseResponse.java @@ -17,6 +17,11 @@ public class RecognizeMyanmarDriverLicenseResponse extends SdkResponse { private MyanmarDriverLicenseResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeMyanmarDriverLicenseResponse withResult(MyanmarDriverLicenseResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(MyanmarDriverLicenseResult result) { this.result = result; } + public RecognizeMyanmarDriverLicenseResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeMyanmarDriverLicenseResponse that = (RecognizeMyanmarDriverLicenseResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeMyanmarDriverLicenseResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeMyanmarIdcardResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeMyanmarIdcardResponse.java index 15b9de568e..8468224d19 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeMyanmarIdcardResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeMyanmarIdcardResponse.java @@ -17,6 +17,11 @@ public class RecognizeMyanmarIdcardResponse extends SdkResponse { private MyanmarIdcardResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeMyanmarIdcardResponse withResult(MyanmarIdcardResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(MyanmarIdcardResult result) { this.result = result; } + public RecognizeMyanmarIdcardResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeMyanmarIdcardResponse that = (RecognizeMyanmarIdcardResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeMyanmarIdcardResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizePassportResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizePassportResponse.java index 77cb685b71..f5179eac8a 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizePassportResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizePassportResponse.java @@ -17,6 +17,11 @@ public class RecognizePassportResponse extends SdkResponse { private PassportResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizePassportResponse withResult(PassportResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(PassportResult result) { this.result = result; } + public RecognizePassportResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizePassportResponse that = (RecognizePassportResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizePassportResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizePcrTestRecordResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizePcrTestRecordResponse.java index ee58ff4e05..5922dc6588 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizePcrTestRecordResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizePcrTestRecordResponse.java @@ -17,6 +17,11 @@ public class RecognizePcrTestRecordResponse extends SdkResponse { private PcrTestRecordResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizePcrTestRecordResponse withResult(PcrTestRecordResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(PcrTestRecordResult result) { this.result = result; } + public RecognizePcrTestRecordResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizePcrTestRecordResponse that = (RecognizePcrTestRecordResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizePcrTestRecordResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizePeruIdCardResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizePeruIdCardResponse.java index 6b4274a1d2..a779e02943 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizePeruIdCardResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizePeruIdCardResponse.java @@ -17,6 +17,11 @@ public class RecognizePeruIdCardResponse extends SdkResponse { private PeruIdCardResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizePeruIdCardResponse withResult(PeruIdCardResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(PeruIdCardResult result) { this.result = result; } + public RecognizePeruIdCardResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizePeruIdCardResponse that = (RecognizePeruIdCardResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizePeruIdCardResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeQualificationCertificateResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeQualificationCertificateResponse.java index 6c18a719e3..4e1f57ec55 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeQualificationCertificateResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeQualificationCertificateResponse.java @@ -17,6 +17,11 @@ public class RecognizeQualificationCertificateResponse extends SdkResponse { private QualificationCertificateResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeQualificationCertificateResponse withResult(QualificationCertificateResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(QualificationCertificateResult result) { this.result = result; } + public RecognizeQualificationCertificateResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeQualificationCertificateResponse that = (RecognizeQualificationCertificateResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeQualificationCertificateResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeQuotaInvoiceResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeQuotaInvoiceResponse.java index 6278baed66..907db2b3d7 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeQuotaInvoiceResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeQuotaInvoiceResponse.java @@ -17,6 +17,11 @@ public class RecognizeQuotaInvoiceResponse extends SdkResponse { private QuotaInvoiceResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeQuotaInvoiceResponse withResult(QuotaInvoiceResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(QuotaInvoiceResult result) { this.result = result; } + public RecognizeQuotaInvoiceResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeQuotaInvoiceResponse that = (RecognizeQuotaInvoiceResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeQuotaInvoiceResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeRealEstateCertificateResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeRealEstateCertificateResponse.java index af55df7a3f..d8924f2273 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeRealEstateCertificateResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeRealEstateCertificateResponse.java @@ -17,6 +17,11 @@ public class RecognizeRealEstateCertificateResponse extends SdkResponse { private RealEstateCertificateResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeRealEstateCertificateResponse withResult(RealEstateCertificateResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(RealEstateCertificateResult result) { this.result = result; } + public RecognizeRealEstateCertificateResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeRealEstateCertificateResponse that = (RecognizeRealEstateCertificateResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeRealEstateCertificateResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeSealResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeSealResponse.java index ced08d306d..ddd2346421 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeSealResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeSealResponse.java @@ -17,6 +17,11 @@ public class RecognizeSealResponse extends SdkResponse { private SealResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeSealResponse withResult(SealResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(SealResult result) { this.result = result; } + public RecognizeSealResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeSealResponse that = (RecognizeSealResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeSealResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeSmartDocumentRecognizerResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeSmartDocumentRecognizerResponse.java index 5a907ee065..9b1211fbcb 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeSmartDocumentRecognizerResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeSmartDocumentRecognizerResponse.java @@ -19,6 +19,11 @@ public class RecognizeSmartDocumentRecognizerResponse extends SdkResponse { private List result = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeSmartDocumentRecognizerResponse withResult(List result) { this.result = result; return this; @@ -53,6 +58,25 @@ public void setResult(List result) { this.result = result; } + public RecognizeSmartDocumentRecognizerResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -62,12 +86,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeSmartDocumentRecognizerResponse that = (RecognizeSmartDocumentRecognizerResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -75,6 +99,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeSmartDocumentRecognizerResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeTaxiInvoiceResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeTaxiInvoiceResponse.java index 6a9f36efe6..62a28ddfd6 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeTaxiInvoiceResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeTaxiInvoiceResponse.java @@ -17,6 +17,11 @@ public class RecognizeTaxiInvoiceResponse extends SdkResponse { private TaxiInvoiceResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeTaxiInvoiceResponse withResult(TaxiInvoiceResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(TaxiInvoiceResult result) { this.result = result; } + public RecognizeTaxiInvoiceResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeTaxiInvoiceResponse that = (RecognizeTaxiInvoiceResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeTaxiInvoiceResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeThailandIdcardResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeThailandIdcardResponse.java index a65c84ad27..0361d8ce5d 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeThailandIdcardResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeThailandIdcardResponse.java @@ -17,6 +17,11 @@ public class RecognizeThailandIdcardResponse extends SdkResponse { private ThailandIdcardResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeThailandIdcardResponse withResult(ThailandIdcardResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(ThailandIdcardResult result) { this.result = result; } + public RecognizeThailandIdcardResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeThailandIdcardResponse that = (RecognizeThailandIdcardResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeThailandIdcardResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeThailandLicensePlateResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeThailandLicensePlateResponse.java index 2d016f70e0..aee4577ae7 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeThailandLicensePlateResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeThailandLicensePlateResponse.java @@ -19,6 +19,11 @@ public class RecognizeThailandLicensePlateResponse extends SdkResponse { private List result = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeThailandLicensePlateResponse withResult(List result) { this.result = result; return this; @@ -52,6 +57,25 @@ public void setResult(List result) { this.result = result; } + public RecognizeThailandLicensePlateResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -61,12 +85,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeThailandLicensePlateResponse that = (RecognizeThailandLicensePlateResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -74,6 +98,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeThailandLicensePlateResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeTollInvoiceResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeTollInvoiceResponse.java index 0b4115b1c3..cd04927ff2 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeTollInvoiceResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeTollInvoiceResponse.java @@ -17,6 +17,11 @@ public class RecognizeTollInvoiceResponse extends SdkResponse { private TollInvoiceResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeTollInvoiceResponse withResult(TollInvoiceResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(TollInvoiceResult result) { this.result = result; } + public RecognizeTollInvoiceResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeTollInvoiceResponse that = (RecognizeTollInvoiceResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeTollInvoiceResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeTrainTicketResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeTrainTicketResponse.java index 999ab09899..34ce19b405 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeTrainTicketResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeTrainTicketResponse.java @@ -17,6 +17,11 @@ public class RecognizeTrainTicketResponse extends SdkResponse { private TrainTicketResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeTrainTicketResponse withResult(TrainTicketResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(TrainTicketResult result) { this.result = result; } + public RecognizeTrainTicketResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeTrainTicketResponse that = (RecognizeTrainTicketResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeTrainTicketResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeTransportationLicenseResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeTransportationLicenseResponse.java index 30fa63e802..9448ba7c5d 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeTransportationLicenseResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeTransportationLicenseResponse.java @@ -17,6 +17,11 @@ public class RecognizeTransportationLicenseResponse extends SdkResponse { private TransportationLicenseResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeTransportationLicenseResponse withResult(TransportationLicenseResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(TransportationLicenseResult result) { this.result = result; } + public RecognizeTransportationLicenseResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeTransportationLicenseResponse that = (RecognizeTransportationLicenseResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeTransportationLicenseResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeVatInvoiceResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeVatInvoiceResponse.java index b8e9903046..ae42961d24 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeVatInvoiceResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeVatInvoiceResponse.java @@ -17,6 +17,11 @@ public class RecognizeVatInvoiceResponse extends SdkResponse { private VatInvoiceResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeVatInvoiceResponse withResult(VatInvoiceResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(VatInvoiceResult result) { this.result = result; } + public RecognizeVatInvoiceResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeVatInvoiceResponse that = (RecognizeVatInvoiceResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeVatInvoiceResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeVehicleCertificateResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeVehicleCertificateResponse.java index 5f3dc435c0..a7297ba999 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeVehicleCertificateResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeVehicleCertificateResponse.java @@ -17,6 +17,11 @@ public class RecognizeVehicleCertificateResponse extends SdkResponse { private VehicleCertificateResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeVehicleCertificateResponse withResult(VehicleCertificateResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(VehicleCertificateResult result) { this.result = result; } + public RecognizeVehicleCertificateResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeVehicleCertificateResponse that = (RecognizeVehicleCertificateResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeVehicleCertificateResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeVehicleLicenseResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeVehicleLicenseResponse.java index 44a62a002f..52b0918dda 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeVehicleLicenseResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeVehicleLicenseResponse.java @@ -17,6 +17,11 @@ public class RecognizeVehicleLicenseResponse extends SdkResponse { private VehicleLicenseResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeVehicleLicenseResponse withResult(VehicleLicenseResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(VehicleLicenseResult result) { this.result = result; } + public RecognizeVehicleLicenseResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeVehicleLicenseResponse that = (RecognizeVehicleLicenseResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeVehicleLicenseResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeVietnamIdCardResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeVietnamIdCardResponse.java index c6ca022d76..db5ea96c43 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeVietnamIdCardResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeVietnamIdCardResponse.java @@ -17,6 +17,11 @@ public class RecognizeVietnamIdCardResponse extends SdkResponse { private VietnamIdCardResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeVietnamIdCardResponse withResult(VietnamIdCardResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(VietnamIdCardResult result) { this.result = result; } + public RecognizeVietnamIdCardResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeVietnamIdCardResponse that = (RecognizeVietnamIdCardResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeVietnamIdCardResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeVinResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeVinResponse.java index e07d21a1ef..a945e3d5b6 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeVinResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeVinResponse.java @@ -17,6 +17,11 @@ public class RecognizeVinResponse extends SdkResponse { private VINResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeVinResponse withResult(VINResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(VINResult result) { this.result = result; } + public RecognizeVinResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeVinResponse that = (RecognizeVinResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeVinResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeWaybillElectronicResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeWaybillElectronicResponse.java index b500de7d60..095b9b6cfa 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeWaybillElectronicResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeWaybillElectronicResponse.java @@ -17,6 +17,11 @@ public class RecognizeWaybillElectronicResponse extends SdkResponse { private WaybillElectronicResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeWaybillElectronicResponse withResult(WaybillElectronicResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(WaybillElectronicResult result) { this.result = result; } + public RecognizeWaybillElectronicResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeWaybillElectronicResponse that = (RecognizeWaybillElectronicResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeWaybillElectronicResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeWebImageResponse.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeWebImageResponse.java index 25874db83c..917eba974c 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeWebImageResponse.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/RecognizeWebImageResponse.java @@ -17,6 +17,11 @@ public class RecognizeWebImageResponse extends SdkResponse { private WebImageResult result; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + public RecognizeWebImageResponse withResult(WebImageResult result) { this.result = result; return this; @@ -43,6 +48,25 @@ public void setResult(WebImageResult result) { this.result = result; } + public RecognizeWebImageResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -52,12 +76,12 @@ public boolean equals(java.lang.Object obj) { return false; } RecognizeWebImageResponse that = (RecognizeWebImageResponse) obj; - return Objects.equals(this.result, that.result); + return Objects.equals(this.result, that.result) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, xRequestId); } @Override @@ -65,6 +89,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecognizeWebImageResponse {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/SmartDocumentRecognizerRequestBody.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/SmartDocumentRecognizerRequestBody.java index 9319a84f9e..57c85bed42 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/SmartDocumentRecognizerRequestBody.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/SmartDocumentRecognizerRequestBody.java @@ -55,6 +55,11 @@ public class SmartDocumentRecognizerRequestBody { private String kvMap; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pdf_page_number") + + private Integer pdfPageNumber; + public SmartDocumentRecognizerRequestBody withData(String data) { this.data = data; return this; @@ -208,6 +213,23 @@ public void setKvMap(String kvMap) { this.kvMap = kvMap; } + public SmartDocumentRecognizerRequestBody withPdfPageNumber(Integer pdfPageNumber) { + this.pdfPageNumber = pdfPageNumber; + return this; + } + + /** + * 指定PDF页码识别。传入该参数时,则识别指定页码的内容。如果不传该参数,则默认识别第1页。 + * @return pdfPageNumber + */ + public Integer getPdfPageNumber() { + return pdfPageNumber; + } + + public void setPdfPageNumber(Integer pdfPageNumber) { + this.pdfPageNumber = pdfPageNumber; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -221,12 +243,12 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.kv, that.kv) && Objects.equals(this.table, that.table) && Objects.equals(this.layout, that.layout) && Objects.equals(this.returnExcel, that.returnExcel) && Objects.equals(this.form, that.form) && Objects.equals(this.formula, that.formula) - && Objects.equals(this.kvMap, that.kvMap); + && Objects.equals(this.kvMap, that.kvMap) && Objects.equals(this.pdfPageNumber, that.pdfPageNumber); } @Override public int hashCode() { - return Objects.hash(data, url, kv, table, layout, returnExcel, form, formula, kvMap); + return Objects.hash(data, url, kv, table, layout, returnExcel, form, formula, kvMap, pdfPageNumber); } @Override @@ -242,6 +264,7 @@ public String toString() { sb.append(" form: ").append(toIndentedString(form)).append("\n"); sb.append(" formula: ").append(toIndentedString(formula)).append("\n"); sb.append(" kvMap: ").append(toIndentedString(kvMap)).append("\n"); + sb.append(" pdfPageNumber: ").append(toIndentedString(pdfPageNumber)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/oms/pom.xml b/services/oms/pom.xml index fb11dcec54..5789a645b9 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-oms - 3.1.95 + 3.1.96 Huawei Cloud SDK for OMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/optverse/pom.xml b/services/optverse/pom.xml index 7cae9c211f..4fb3cb77da 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-optverse - 3.1.95 + 3.1.96 Huawei Cloud SDK for OPTVERSE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/organizations/pom.xml b/services/organizations/pom.xml index 33a8fe417d..ce19745f0d 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-organizations - 3.1.95 + 3.1.96 Huawei Cloud SDK for ORGANIZATIONS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/orgid/pom.xml b/services/orgid/pom.xml index cf8319a943..8b254c4b79 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-orgid - 3.1.95 + 3.1.96 Huawei Cloud SDK for ORGID 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/oroas/pom.xml b/services/oroas/pom.xml index 9552cbc079..838882e96f 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-oroas - 3.1.95 + 3.1.96 Huawei Cloud SDK for OROAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/osm/pom.xml b/services/osm/pom.xml index 3b4b465e26..42ec88d528 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-osm - 3.1.95 + 3.1.96 Huawei Cloud SDK for OSM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/pangulargemodels/pom.xml b/services/pangulargemodels/pom.xml index d37ba3064d..eadf860a14 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-pangulargemodels - 3.1.95 + 3.1.96 Huawei Cloud SDK for PANGULARGEMODELS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 org.springframework.boot diff --git a/services/pom.xml b/services/pom.xml index e9a9770e38..b0e04669d0 100644 --- a/services/pom.xml +++ b/services/pom.xml @@ -6,187 +6,187 @@ com.huaweicloud.sdk - 3.1.95 + 3.1.96 huaweicloud-sdk com.huaweicloud.sdk huaweicloud-sdk-services - 3.1.95 + 3.1.96 pom Huawei Cloud SDK for Java Services Services code for Huawei Cloud SDK for Java https://github.com/huaweicloud/huaweicloud-sdk-java-v3 - codeartsinspector - dis - dcs - oroas - antiddos - ces - dgc - dataartsinsight - cse - dris - ief - eps - kms - live - kps - mapds - bssintl - rms + rabbitmq + ddm + dataartsstudio er - ecs cce - dlf - projectman - image - rds + cgs cpts - sms - as - dli - bcs + projectman + eg + oroas + expert + codecraft + classroom + cts + edgesec + iec + rgc + workspaceapp + mas vod + frs + dsc + cc + dis + cms + koophone + dli + cfw + cph + eds + bssintl + organizations + gaussdb + sdrs + cloudrtc + ec ocr - identitycenter + vas + nlp + devstar + waf + oa + ief + mssi + cloudtable secmaster - ga mrs + msgsms + cloudtest + aom + metastudio + cbh + apm + smn + dris + dgc + cdn + roma + sa + live gaussdbfornosql - dc - cdm - rocketmq - gaussdb - dds - nat - scm - aad - osm - sdrs - rgc - mas - devsecurity - organizations - classroom - sis - aos - cph - ccm - css - cfw + lakeformation + drs + pangulargemodels + bss + eip + vpcep + lts + dws + iotedge + kafka + codeartsbuild + iotda + idme + iotanalytics + res asm - meeting - tics + dwr oms - drs + vpc + sis + ram + gsl + apig + bcs + tics + ces cloudpond - functiongraph iamaccessanalyzer - hss - hilens - dwr - idmeclassicapi - mssi - kafka - codeartsartifact + kps + scm + rms + codeartscheck + dlf + functiongraph + obs + koomap + rocketmq + config + ccm + elb + csms + workspace orgid - geip - cms - gaussdbforopengauss - codeartsbuild - edgesec - cts - mpc - roma + codeartsinspector + codeartspipeline + sms + cdm + kms + dcs + cse + aad + ga + sfsturbo + sts dss - dsc - cbs - servicestage - optverse - bss - eg - cbh - iotedge - iec cbr - csms - ivs - idme - waf - workspace + hilens + dbss + geip + iam + moderation + eps + identitycenter + hss + kvs + codehub + cbs + campusgo ges - vpc - devstar + css ims - lts - deh + tms vcm - vpcep - codecraft - workspaceapp - metastudio - dbss - cc - eds - evs - sfsturbo - oa - koomessage - codeartsdeploy - res - frs - cloudtest - expert - dataartsstudio - gsl - rabbitmq - cgs - iam + dns + cae + osm imagesearch - lakeformation - ddm - sts - bms - cloudrtc - iotda - koophone - ec - campusgo - vas - koomap - pangulargemodels - cloudtable - eihealth + aos + ivs + deh + rds + idmeclassicapi + codeartsdeploy + swr + antiddos + devsecurity cloudide - smn - config - dws - vpn - codeartscheck ugo + dc + codeartsartifact + bms + mpc + mapds + vpn + as + image + ecs + eihealth + servicestage das - cae - moderation - cdn - tms - apm - iotanalytics - kvs - apig - swr - obs - ram - eip + dds identitycenterstore - nlp - msgsms - dns - codehub - aom - codeartspipeline - elb - sa + nat + gaussdbforopengauss + optverse + dataartsinsight + koomessage + meeting + evs diff --git a/services/projectman/pom.xml b/services/projectman/pom.xml index 82794ae74d..23b98b0e1b 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-projectman - 3.1.95 + 3.1.96 Huawei Cloud SDK for PROJECTMAN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/rabbitmq/pom.xml b/services/rabbitmq/pom.xml index c7f5c75739..2cb3a38439 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-rabbitmq - 3.1.95 + 3.1.96 Huawei Cloud SDK for RABBITMQ 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/rabbitmq/src/main/java/com/huaweicloud/sdk/rabbitmq/v2/model/CreateInstanceReq.java b/services/rabbitmq/src/main/java/com/huaweicloud/sdk/rabbitmq/v2/model/CreateInstanceReq.java index ab24d0e29f..bd8037ce56 100644 --- a/services/rabbitmq/src/main/java/com/huaweicloud/sdk/rabbitmq/v2/model/CreateInstanceReq.java +++ b/services/rabbitmq/src/main/java/com/huaweicloud/sdk/rabbitmq/v2/model/CreateInstanceReq.java @@ -319,7 +319,7 @@ public int hashCode() { private Boolean sslEnable; /** - * 存储IO规格。 取值范围: - dms.physical.storage.high.v2 - dms.physical.storage.ultra.v2 [- dms.physical.storage.high.dss.v2(专属云)](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,hk_tm) [- dms.physical.storage.ultra.dss.v2(专属云)](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,hk_tm) + * 存储IO规格。 [如何选择磁盘类型请参考[磁盘类型及性能介绍](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。](tag:hws) [如何选择磁盘类型请参考[磁盘类型及性能介绍](https://support.huaweicloud.com/intl/zh-cn/productdesc-evs/zh-cn_topic_0014580744.html)。](tag:hws_hk) [如何选择磁盘类型请参考[磁盘类型及性能介绍](https://support.huaweicloud.com/eu/productdesc-evs/en-us_topic_0014580744.html)。](tag:hws_eu) 取值范围: - dms.physical.storage.high.v2 - dms.physical.storage.ultra.v2 [- dms.physical.storage.high.dss.v2(专属云)](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,hk_tm) [- dms.physical.storage.ultra.dss.v2(专属云)](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,hk_tm) */ public static final class StorageSpecCodeEnum { @@ -752,7 +752,7 @@ public CreateInstanceReq withStorageSpecCode(StorageSpecCodeEnum storageSpecCode } /** - * 存储IO规格。 取值范围: - dms.physical.storage.high.v2 - dms.physical.storage.ultra.v2 [- dms.physical.storage.high.dss.v2(专属云)](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,hk_tm) [- dms.physical.storage.ultra.dss.v2(专属云)](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,hk_tm) + * 存储IO规格。 [如何选择磁盘类型请参考[磁盘类型及性能介绍](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。](tag:hws) [如何选择磁盘类型请参考[磁盘类型及性能介绍](https://support.huaweicloud.com/intl/zh-cn/productdesc-evs/zh-cn_topic_0014580744.html)。](tag:hws_hk) [如何选择磁盘类型请参考[磁盘类型及性能介绍](https://support.huaweicloud.com/eu/productdesc-evs/en-us_topic_0014580744.html)。](tag:hws_eu) 取值范围: - dms.physical.storage.high.v2 - dms.physical.storage.ultra.v2 [- dms.physical.storage.high.dss.v2(专属云)](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,hk_tm) [- dms.physical.storage.ultra.dss.v2(专属云)](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,hk_tm) * @return storageSpecCode */ public StorageSpecCodeEnum getStorageSpecCode() { diff --git a/services/ram/pom.xml b/services/ram/pom.xml index ec9e8d8fcc..2dc43e212a 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-ram - 3.1.95 + 3.1.96 Huawei Cloud SDK for RAM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/rds/pom.xml b/services/rds/pom.xml index 99754ea08a..72909c6091 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-rds - 3.1.95 + 3.1.96 Huawei Cloud SDK for RDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/res/pom.xml b/services/res/pom.xml index fe4a9d438e..896b10461d 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-res - 3.1.95 + 3.1.96 Huawei Cloud SDK for RES 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/rgc/pom.xml b/services/rgc/pom.xml index 7c601606a0..da5d8df94a 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-rgc - 3.1.95 + 3.1.96 Huawei Cloud SDK for RGC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/RgcAsyncClient.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/RgcAsyncClient.java index 7290467974..b5e1abb1fc 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/RgcAsyncClient.java +++ b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/RgcAsyncClient.java @@ -3,88 +3,14 @@ import com.huaweicloud.sdk.core.ClientBuilder; import com.huaweicloud.sdk.core.HcClient; import com.huaweicloud.sdk.core.invoker.AsyncInvoker; -import com.huaweicloud.sdk.rgc.v1.model.CheckLaunchRequest; -import com.huaweicloud.sdk.rgc.v1.model.CheckLaunchResponse; -import com.huaweicloud.sdk.rgc.v1.model.CreateAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.CreateAccountResponse; -import com.huaweicloud.sdk.rgc.v1.model.CreateTemplateRequest; -import com.huaweicloud.sdk.rgc.v1.model.CreateTemplateResponse; -import com.huaweicloud.sdk.rgc.v1.model.DeleteManagedOrganizationalUnitsRequest; -import com.huaweicloud.sdk.rgc.v1.model.DeleteManagedOrganizationalUnitsResponse; -import com.huaweicloud.sdk.rgc.v1.model.DeleteTemplateRequest; -import com.huaweicloud.sdk.rgc.v1.model.DeleteTemplateResponse; -import com.huaweicloud.sdk.rgc.v1.model.DeregisterOrganizationalUnitRequest; -import com.huaweicloud.sdk.rgc.v1.model.DeregisterOrganizationalUnitResponse; import com.huaweicloud.sdk.rgc.v1.model.DisableControlRequest; import com.huaweicloud.sdk.rgc.v1.model.DisableControlResponse; import com.huaweicloud.sdk.rgc.v1.model.EnableControlRequest; import com.huaweicloud.sdk.rgc.v1.model.EnableControlResponse; -import com.huaweicloud.sdk.rgc.v1.model.EnrollAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.EnrollAccountResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListConfigRuleComplianceRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListConfigRuleComplianceResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListControlViolationsRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListControlViolationsResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListControlsForAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListControlsForAccountResponse; import com.huaweicloud.sdk.rgc.v1.model.ListControlsForOrganizationUnitRequest; import com.huaweicloud.sdk.rgc.v1.model.ListControlsForOrganizationUnitResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListControlsRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListControlsResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListDriftDetailsRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListDriftDetailsResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListEnabledControlsRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListEnabledControlsResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListManagedAccountsForParentRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListManagedAccountsForParentResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListManagedAccountsRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListManagedAccountsResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListManagedOrganizationalUnitsRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListManagedOrganizationalUnitsResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListOperationRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListOperationResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListPredefinedTemplatesRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListPredefinedTemplatesResponse; -import com.huaweicloud.sdk.rgc.v1.model.ReRegisterOrganizationalUnitRequest; -import com.huaweicloud.sdk.rgc.v1.model.ReRegisterOrganizationalUnitResponse; -import com.huaweicloud.sdk.rgc.v1.model.RegisterOrganizationalUnitRequest; -import com.huaweicloud.sdk.rgc.v1.model.RegisterOrganizationalUnitResponse; -import com.huaweicloud.sdk.rgc.v1.model.SetupLandingZoneRequest; -import com.huaweicloud.sdk.rgc.v1.model.SetupLandingZoneResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowAvailableUpdatesRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowAvailableUpdatesResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowComplianceStatusForAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowComplianceStatusForAccountResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowComplianceStatusForOrganizationUnitRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowComplianceStatusForOrganizationUnitResponse; import com.huaweicloud.sdk.rgc.v1.model.ShowControlOperateRequest; import com.huaweicloud.sdk.rgc.v1.model.ShowControlOperateResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowControlRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowControlResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowControlsForOrganizationUnitRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowControlsForOrganizationUnitResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowHomeRegionRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowHomeRegionResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowLandingZoneConfigurationRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowLandingZoneConfigurationResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowLandingZoneIdentityCenterRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowLandingZoneIdentityCenterResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowLandingZoneStatusRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowLandingZoneStatusResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowManagedAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowManagedAccountResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowManagedCoreAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowManagedCoreAccountResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowManagedOrganizationalUnitRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowManagedOrganizationalUnitResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowOperationRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowOperationResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowTemplateDeployParamsRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowTemplateDeployParamsResponse; -import com.huaweicloud.sdk.rgc.v1.model.UnEnrollAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.UnEnrollAccountResponse; -import com.huaweicloud.sdk.rgc.v1.model.UpdateManagedAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.UpdateManagedAccountResponse; import java.util.concurrent.CompletableFuture; @@ -159,125 +85,6 @@ public AsyncInvoker enableControlAs return new AsyncInvoker<>(request, RgcMeta.enableControl, hcClient); } - /** - * 查询纳管账号的Config规则合规性信息 - * - * 查询纳管账号的Config规则合规性信息 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListConfigRuleComplianceRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture listConfigRuleComplianceAsync( - ListConfigRuleComplianceRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.listConfigRuleCompliance); - } - - /** - * 查询纳管账号的Config规则合规性信息 - * - * 查询纳管账号的Config规则合规性信息 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListConfigRuleComplianceRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker listConfigRuleComplianceAsyncInvoker( - ListConfigRuleComplianceRequest request) { - return new AsyncInvoker<>(request, RgcMeta.listConfigRuleCompliance, hcClient); - } - - /** - * 列出不合规信息 - * - * 列出组织里所有不合规的资源信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListControlViolationsRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture listControlViolationsAsync( - ListControlViolationsRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.listControlViolations); - } - - /** - * 列出不合规信息 - * - * 列出组织里所有不合规的资源信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListControlViolationsRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker listControlViolationsAsyncInvoker( - ListControlViolationsRequest request) { - return new AsyncInvoker<>(request, RgcMeta.listControlViolations, hcClient); - } - - /** - * 列出控制策略 - * - * 列出RGC服务里所有的预置控制策略。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListControlsRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture listControlsAsync(ListControlsRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.listControls); - } - - /** - * 列出控制策略 - * - * 列出RGC服务里所有的预置控制策略。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListControlsRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker listControlsAsyncInvoker( - ListControlsRequest request) { - return new AsyncInvoker<>(request, RgcMeta.listControls, hcClient); - } - - /** - * 列出纳管账号下开启的控制策略 - * - * 列出组织里某个纳管账号开启的所有控制策略信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListControlsForAccountRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture listControlsForAccountAsync( - ListControlsForAccountRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.listControlsForAccount); - } - - /** - * 列出纳管账号下开启的控制策略 - * - * 列出组织里某个纳管账号开启的所有控制策略信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListControlsForAccountRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker listControlsForAccountAsyncInvoker( - ListControlsForAccountRequest request) { - return new AsyncInvoker<>(request, RgcMeta.listControlsForAccount, hcClient); - } - /** * 列出注册OU下开启的控制策略 * @@ -308,152 +115,6 @@ public AsyncInvoker(request, RgcMeta.listControlsForOrganizationUnit, hcClient); } - /** - * 列出漂移信息 - * - * 列出Landing Zone的所有漂移详细信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListDriftDetailsRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture listDriftDetailsAsync(ListDriftDetailsRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.listDriftDetails); - } - - /** - * 列出漂移信息 - * - * 列出Landing Zone的所有漂移详细信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListDriftDetailsRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker listDriftDetailsAsyncInvoker( - ListDriftDetailsRequest request) { - return new AsyncInvoker<>(request, RgcMeta.listDriftDetails, hcClient); - } - - /** - * 列出开启的控制策略 - * - * 列出组织里开启的所有控制策略信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListEnabledControlsRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture listEnabledControlsAsync(ListEnabledControlsRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.listEnabledControls); - } - - /** - * 列出开启的控制策略 - * - * 列出组织里开启的所有控制策略信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListEnabledControlsRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker listEnabledControlsAsyncInvoker( - ListEnabledControlsRequest request) { - return new AsyncInvoker<>(request, RgcMeta.listEnabledControls, hcClient); - } - - /** - * 查询纳管账号的合规状态 - * - * 查询组织里某个纳管账号的资源合规状态。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowComplianceStatusForAccountRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture showComplianceStatusForAccountAsync( - ShowComplianceStatusForAccountRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.showComplianceStatusForAccount); - } - - /** - * 查询纳管账号的合规状态 - * - * 查询组织里某个纳管账号的资源合规状态。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowComplianceStatusForAccountRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker showComplianceStatusForAccountAsyncInvoker( - ShowComplianceStatusForAccountRequest request) { - return new AsyncInvoker<>(request, RgcMeta.showComplianceStatusForAccount, hcClient); - } - - /** - * 查询注册OU的合规状态 - * - * 查询组织里某个注册OU下所有纳管账号的资源合规状态。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowComplianceStatusForOrganizationUnitRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture showComplianceStatusForOrganizationUnitAsync( - ShowComplianceStatusForOrganizationUnitRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.showComplianceStatusForOrganizationUnit); - } - - /** - * 查询注册OU的合规状态 - * - * 查询组织里某个注册OU下所有纳管账号的资源合规状态。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowComplianceStatusForOrganizationUnitRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker showComplianceStatusForOrganizationUnitAsyncInvoker( - ShowComplianceStatusForOrganizationUnitRequest request) { - return new AsyncInvoker<>(request, RgcMeta.showComplianceStatusForOrganizationUnit, hcClient); - } - - /** - * 查询控制策略详细信息 - * - * 查询单个预置的控制策略详细信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowControlRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture showControlAsync(ShowControlRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.showControl); - } - - /** - * 查询控制策略详细信息 - * - * 查询单个预置的控制策略详细信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowControlRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker showControlAsyncInvoker(ShowControlRequest request) { - return new AsyncInvoker<>(request, RgcMeta.showControl, hcClient); - } - /** * 查询控制策略操作状态 * @@ -483,831 +144,4 @@ public AsyncInvoker showC return new AsyncInvoker<>(request, RgcMeta.showControlOperate, hcClient); } - /** - * 查询注册OU开启的控制策略 - * - * 查询组织里某个注册OU下开启的某个控制策略的详细信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowControlsForOrganizationUnitRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture showControlsForOrganizationUnitAsync( - ShowControlsForOrganizationUnitRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.showControlsForOrganizationUnit); - } - - /** - * 查询注册OU开启的控制策略 - * - * 查询组织里某个注册OU下开启的某个控制策略的详细信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowControlsForOrganizationUnitRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker showControlsForOrganizationUnitAsyncInvoker( - ShowControlsForOrganizationUnitRequest request) { - return new AsyncInvoker<>(request, RgcMeta.showControlsForOrganizationUnit, hcClient); - } - - /** - * 设置Landing Zone前检查 - * - * 在设置Landing Zone之前,检查当前区域是否可以设置Landing Zone。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request CheckLaunchRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture checkLaunchAsync(CheckLaunchRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.checkLaunch); - } - - /** - * 设置Landing Zone前检查 - * - * 在设置Landing Zone之前,检查当前区域是否可以设置Landing Zone。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request CheckLaunchRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker checkLaunchAsyncInvoker(CheckLaunchRequest request) { - return new AsyncInvoker<>(request, RgcMeta.checkLaunch, hcClient); - } - - /** - * 设置Landing Zone - * - * 在当前区域创建或者更新Landing Zone。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request SetupLandingZoneRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture setupLandingZoneAsync(SetupLandingZoneRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.setupLandingZone); - } - - /** - * 设置Landing Zone - * - * 在当前区域创建或者更新Landing Zone。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request SetupLandingZoneRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker setupLandingZoneAsyncInvoker( - SetupLandingZoneRequest request) { - return new AsyncInvoker<>(request, RgcMeta.setupLandingZone, hcClient); - } - - /** - * 查询Landing Zone可更新状态 - * - * 查询Landing Zone当前是否需要升级更新。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowAvailableUpdatesRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture showAvailableUpdatesAsync( - ShowAvailableUpdatesRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.showAvailableUpdates); - } - - /** - * 查询Landing Zone可更新状态 - * - * 查询Landing Zone当前是否需要升级更新。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowAvailableUpdatesRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker showAvailableUpdatesAsyncInvoker( - ShowAvailableUpdatesRequest request) { - return new AsyncInvoker<>(request, RgcMeta.showAvailableUpdates, hcClient); - } - - /** - * 查询主区域 - * - * 查询Landing Zone的主区域。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowHomeRegionRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture showHomeRegionAsync(ShowHomeRegionRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.showHomeRegion); - } - - /** - * 查询主区域 - * - * 查询Landing Zone的主区域。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowHomeRegionRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker showHomeRegionAsyncInvoker( - ShowHomeRegionRequest request) { - return new AsyncInvoker<>(request, RgcMeta.showHomeRegion, hcClient); - } - - /** - * 查询Landing Zone的配置 - * - * 查询当前客户的Landing Zone的所有配置。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowLandingZoneConfigurationRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture showLandingZoneConfigurationAsync( - ShowLandingZoneConfigurationRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.showLandingZoneConfiguration); - } - - /** - * 查询Landing Zone的配置 - * - * 查询当前客户的Landing Zone的所有配置。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowLandingZoneConfigurationRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker showLandingZoneConfigurationAsyncInvoker( - ShowLandingZoneConfigurationRequest request) { - return new AsyncInvoker<>(request, RgcMeta.showLandingZoneConfiguration, hcClient); - } - - /** - * 查询当前客户的Identity Center用户信息 - * - * 查询当前客户的Identity Center用户信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowLandingZoneIdentityCenterRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture showLandingZoneIdentityCenterAsync( - ShowLandingZoneIdentityCenterRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.showLandingZoneIdentityCenter); - } - - /** - * 查询当前客户的Identity Center用户信息 - * - * 查询当前客户的Identity Center用户信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowLandingZoneIdentityCenterRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker showLandingZoneIdentityCenterAsyncInvoker( - ShowLandingZoneIdentityCenterRequest request) { - return new AsyncInvoker<>(request, RgcMeta.showLandingZoneIdentityCenter, hcClient); - } - - /** - * 查询Landing Zone设置状态 - * - * 查询Landing Zone的设置状态。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowLandingZoneStatusRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture showLandingZoneStatusAsync( - ShowLandingZoneStatusRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.showLandingZoneStatus); - } - - /** - * 查询Landing Zone设置状态 - * - * 查询Landing Zone的设置状态。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowLandingZoneStatusRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker showLandingZoneStatusAsyncInvoker( - ShowLandingZoneStatusRequest request) { - return new AsyncInvoker<>(request, RgcMeta.showLandingZoneStatus, hcClient); - } - - /** - * 创建账号 - * - * 在组织里的某个注册OU下创建账号。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request CreateAccountRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture createAccountAsync(CreateAccountRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.createAccount); - } - - /** - * 创建账号 - * - * 在组织里的某个注册OU下创建账号。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request CreateAccountRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker createAccountAsyncInvoker( - CreateAccountRequest request) { - return new AsyncInvoker<>(request, RgcMeta.createAccount, hcClient); - } - - /** - * 删除注册OU - * - * 在组织里删除已注册OU。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request DeleteManagedOrganizationalUnitsRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture deleteManagedOrganizationalUnitsAsync( - DeleteManagedOrganizationalUnitsRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.deleteManagedOrganizationalUnits); - } - - /** - * 删除注册OU - * - * 在组织里删除已注册OU。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request DeleteManagedOrganizationalUnitsRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker deleteManagedOrganizationalUnitsAsyncInvoker( - DeleteManagedOrganizationalUnitsRequest request) { - return new AsyncInvoker<>(request, RgcMeta.deleteManagedOrganizationalUnits, hcClient); - } - - /** - * 取消注册OU - * - * 将组织里的某个OU从RGC服务里取消注册。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request DeregisterOrganizationalUnitRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture deregisterOrganizationalUnitAsync( - DeregisterOrganizationalUnitRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.deregisterOrganizationalUnit); - } - - /** - * 取消注册OU - * - * 将组织里的某个OU从RGC服务里取消注册。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request DeregisterOrganizationalUnitRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker deregisterOrganizationalUnitAsyncInvoker( - DeregisterOrganizationalUnitRequest request) { - return new AsyncInvoker<>(request, RgcMeta.deregisterOrganizationalUnit, hcClient); - } - - /** - * 纳管账号 - * - * 将组织里的某个账号纳管到RGC服务。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request EnrollAccountRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture enrollAccountAsync(EnrollAccountRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.enrollAccount); - } - - /** - * 纳管账号 - * - * 将组织里的某个账号纳管到RGC服务。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request EnrollAccountRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker enrollAccountAsyncInvoker( - EnrollAccountRequest request) { - return new AsyncInvoker<>(request, RgcMeta.enrollAccount, hcClient); - } - - /** - * 列举控制策略生效的纳管账号信息 - * - * 列举控制策略生效的纳管账号信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListManagedAccountsRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture listManagedAccountsAsync(ListManagedAccountsRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.listManagedAccounts); - } - - /** - * 列举控制策略生效的纳管账号信息 - * - * 列举控制策略生效的纳管账号信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListManagedAccountsRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker listManagedAccountsAsyncInvoker( - ListManagedAccountsRequest request) { - return new AsyncInvoker<>(request, RgcMeta.listManagedAccounts, hcClient); - } - - /** - * 列出注册OU下的纳管账号信息 - * - * 列出组织里某个注册OU下的所有纳管账号信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListManagedAccountsForParentRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture listManagedAccountsForParentAsync( - ListManagedAccountsForParentRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.listManagedAccountsForParent); - } - - /** - * 列出注册OU下的纳管账号信息 - * - * 列出组织里某个注册OU下的所有纳管账号信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListManagedAccountsForParentRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker listManagedAccountsForParentAsyncInvoker( - ListManagedAccountsForParentRequest request) { - return new AsyncInvoker<>(request, RgcMeta.listManagedAccountsForParent, hcClient); - } - - /** - * 列举控制策略生效的注册OU信息 - * - * 列举控制策略生效的注册OU信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListManagedOrganizationalUnitsRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture listManagedOrganizationalUnitsAsync( - ListManagedOrganizationalUnitsRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.listManagedOrganizationalUnits); - } - - /** - * 列举控制策略生效的注册OU信息 - * - * 列举控制策略生效的注册OU信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListManagedOrganizationalUnitsRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker listManagedOrganizationalUnitsAsyncInvoker( - ListManagedOrganizationalUnitsRequest request) { - return new AsyncInvoker<>(request, RgcMeta.listManagedOrganizationalUnits, hcClient); - } - - /** - * 查询已注册OU和纳管帐号操作过程信息列表 - * - * 查询在RGC服务里已注册OU和纳管帐号操作的过程信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListOperationRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture listOperationAsync(ListOperationRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.listOperation); - } - - /** - * 查询已注册OU和纳管帐号操作过程信息列表 - * - * 查询在RGC服务里已注册OU和纳管帐号操作的过程信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListOperationRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker listOperationAsyncInvoker( - ListOperationRequest request) { - return new AsyncInvoker<>(request, RgcMeta.listOperation, hcClient); - } - - /** - * 重新注册OU - * - * 重新注册组织里的某个OU到RGC服务。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ReRegisterOrganizationalUnitRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture reRegisterOrganizationalUnitAsync( - ReRegisterOrganizationalUnitRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.reRegisterOrganizationalUnit); - } - - /** - * 重新注册OU - * - * 重新注册组织里的某个OU到RGC服务。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ReRegisterOrganizationalUnitRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker reRegisterOrganizationalUnitAsyncInvoker( - ReRegisterOrganizationalUnitRequest request) { - return new AsyncInvoker<>(request, RgcMeta.reRegisterOrganizationalUnit, hcClient); - } - - /** - * 注册OU - * - * 将组织里的某个OU注册到RGC服务。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RegisterOrganizationalUnitRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture registerOrganizationalUnitAsync( - RegisterOrganizationalUnitRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.registerOrganizationalUnit); - } - - /** - * 注册OU - * - * 将组织里的某个OU注册到RGC服务。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RegisterOrganizationalUnitRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker registerOrganizationalUnitAsyncInvoker( - RegisterOrganizationalUnitRequest request) { - return new AsyncInvoker<>(request, RgcMeta.registerOrganizationalUnit, hcClient); - } - - /** - * 查询纳管账号信息 - * - * 查询组织里某个纳管账号信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowManagedAccountRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture showManagedAccountAsync(ShowManagedAccountRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.showManagedAccount); - } - - /** - * 查询纳管账号信息 - * - * 查询组织里某个纳管账号信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowManagedAccountRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker showManagedAccountAsyncInvoker( - ShowManagedAccountRequest request) { - return new AsyncInvoker<>(request, RgcMeta.showManagedAccount, hcClient); - } - - /** - * 列出核心纳管账号 - * - * 列出组织里的所有核心纳管账号信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowManagedCoreAccountRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture showManagedCoreAccountAsync( - ShowManagedCoreAccountRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.showManagedCoreAccount); - } - - /** - * 列出核心纳管账号 - * - * 列出组织里的所有核心纳管账号信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowManagedCoreAccountRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker showManagedCoreAccountAsyncInvoker( - ShowManagedCoreAccountRequest request) { - return new AsyncInvoker<>(request, RgcMeta.showManagedCoreAccount, hcClient); - } - - /** - * 查询已注册OU信息 - * - * 查询在RGC服务里的注册OU信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowManagedOrganizationalUnitRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture showManagedOrganizationalUnitAsync( - ShowManagedOrganizationalUnitRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.showManagedOrganizationalUnit); - } - - /** - * 查询已注册OU信息 - * - * 查询在RGC服务里的注册OU信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowManagedOrganizationalUnitRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker showManagedOrganizationalUnitAsyncInvoker( - ShowManagedOrganizationalUnitRequest request) { - return new AsyncInvoker<>(request, RgcMeta.showManagedOrganizationalUnit, hcClient); - } - - /** - * 查询注册过程信息 - * - * 查询在RGC服务里注册/取消注册的过程信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowOperationRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture showOperationAsync(ShowOperationRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.showOperation); - } - - /** - * 查询注册过程信息 - * - * 查询在RGC服务里注册/取消注册的过程信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowOperationRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker showOperationAsyncInvoker( - ShowOperationRequest request) { - return new AsyncInvoker<>(request, RgcMeta.showOperation, hcClient); - } - - /** - * 取消纳管账号 - * - * 将组织里的某个账号从RGC服务里取消纳管。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request UnEnrollAccountRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture unEnrollAccountAsync(UnEnrollAccountRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.unEnrollAccount); - } - - /** - * 取消纳管账号 - * - * 将组织里的某个账号从RGC服务里取消纳管。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request UnEnrollAccountRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker unEnrollAccountAsyncInvoker( - UnEnrollAccountRequest request) { - return new AsyncInvoker<>(request, RgcMeta.unEnrollAccount, hcClient); - } - - /** - * 更新纳管账号 - * - * 更新组织里某个已在RGC服务的纳管账号。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request UpdateManagedAccountRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture updateManagedAccountAsync( - UpdateManagedAccountRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.updateManagedAccount); - } - - /** - * 更新纳管账号 - * - * 更新组织里某个已在RGC服务的纳管账号。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request UpdateManagedAccountRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker updateManagedAccountAsyncInvoker( - UpdateManagedAccountRequest request) { - return new AsyncInvoker<>(request, RgcMeta.updateManagedAccount, hcClient); - } - - /** - * 创建模板。 - * - * 创建RFS模板。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request CreateTemplateRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture createTemplateAsync(CreateTemplateRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.createTemplate); - } - - /** - * 创建模板。 - * - * 创建RFS模板。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request CreateTemplateRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker createTemplateAsyncInvoker( - CreateTemplateRequest request) { - return new AsyncInvoker<>(request, RgcMeta.createTemplate, hcClient); - } - - /** - * 删除模板。 - * - * 删除RFS模板。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request DeleteTemplateRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture deleteTemplateAsync(DeleteTemplateRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.deleteTemplate); - } - - /** - * 删除模板。 - * - * 删除RFS模板。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request DeleteTemplateRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker deleteTemplateAsyncInvoker( - DeleteTemplateRequest request) { - return new AsyncInvoker<>(request, RgcMeta.deleteTemplate, hcClient); - } - - /** - * 查询预置模板列表 - * - * 查询预置模板列表。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListPredefinedTemplatesRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture listPredefinedTemplatesAsync( - ListPredefinedTemplatesRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.listPredefinedTemplates); - } - - /** - * 查询预置模板列表 - * - * 查询预置模板列表。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListPredefinedTemplatesRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker listPredefinedTemplatesAsyncInvoker( - ListPredefinedTemplatesRequest request) { - return new AsyncInvoker<>(request, RgcMeta.listPredefinedTemplates, hcClient); - } - - /** - * 查询模板的部署参数。 - * - * 查询模板的部署参数。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowTemplateDeployParamsRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture showTemplateDeployParamsAsync( - ShowTemplateDeployParamsRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.showTemplateDeployParams); - } - - /** - * 查询模板的部署参数。 - * - * 查询模板的部署参数。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowTemplateDeployParamsRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker showTemplateDeployParamsAsyncInvoker( - ShowTemplateDeployParamsRequest request) { - return new AsyncInvoker<>(request, RgcMeta.showTemplateDeployParams, hcClient); - } - } diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/RgcClient.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/RgcClient.java index 4b05108ae6..aa70053047 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/RgcClient.java +++ b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/RgcClient.java @@ -3,88 +3,14 @@ import com.huaweicloud.sdk.core.ClientBuilder; import com.huaweicloud.sdk.core.HcClient; import com.huaweicloud.sdk.core.invoker.SyncInvoker; -import com.huaweicloud.sdk.rgc.v1.model.CheckLaunchRequest; -import com.huaweicloud.sdk.rgc.v1.model.CheckLaunchResponse; -import com.huaweicloud.sdk.rgc.v1.model.CreateAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.CreateAccountResponse; -import com.huaweicloud.sdk.rgc.v1.model.CreateTemplateRequest; -import com.huaweicloud.sdk.rgc.v1.model.CreateTemplateResponse; -import com.huaweicloud.sdk.rgc.v1.model.DeleteManagedOrganizationalUnitsRequest; -import com.huaweicloud.sdk.rgc.v1.model.DeleteManagedOrganizationalUnitsResponse; -import com.huaweicloud.sdk.rgc.v1.model.DeleteTemplateRequest; -import com.huaweicloud.sdk.rgc.v1.model.DeleteTemplateResponse; -import com.huaweicloud.sdk.rgc.v1.model.DeregisterOrganizationalUnitRequest; -import com.huaweicloud.sdk.rgc.v1.model.DeregisterOrganizationalUnitResponse; import com.huaweicloud.sdk.rgc.v1.model.DisableControlRequest; import com.huaweicloud.sdk.rgc.v1.model.DisableControlResponse; import com.huaweicloud.sdk.rgc.v1.model.EnableControlRequest; import com.huaweicloud.sdk.rgc.v1.model.EnableControlResponse; -import com.huaweicloud.sdk.rgc.v1.model.EnrollAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.EnrollAccountResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListConfigRuleComplianceRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListConfigRuleComplianceResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListControlViolationsRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListControlViolationsResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListControlsForAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListControlsForAccountResponse; import com.huaweicloud.sdk.rgc.v1.model.ListControlsForOrganizationUnitRequest; import com.huaweicloud.sdk.rgc.v1.model.ListControlsForOrganizationUnitResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListControlsRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListControlsResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListDriftDetailsRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListDriftDetailsResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListEnabledControlsRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListEnabledControlsResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListManagedAccountsForParentRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListManagedAccountsForParentResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListManagedAccountsRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListManagedAccountsResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListManagedOrganizationalUnitsRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListManagedOrganizationalUnitsResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListOperationRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListOperationResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListPredefinedTemplatesRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListPredefinedTemplatesResponse; -import com.huaweicloud.sdk.rgc.v1.model.ReRegisterOrganizationalUnitRequest; -import com.huaweicloud.sdk.rgc.v1.model.ReRegisterOrganizationalUnitResponse; -import com.huaweicloud.sdk.rgc.v1.model.RegisterOrganizationalUnitRequest; -import com.huaweicloud.sdk.rgc.v1.model.RegisterOrganizationalUnitResponse; -import com.huaweicloud.sdk.rgc.v1.model.SetupLandingZoneRequest; -import com.huaweicloud.sdk.rgc.v1.model.SetupLandingZoneResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowAvailableUpdatesRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowAvailableUpdatesResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowComplianceStatusForAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowComplianceStatusForAccountResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowComplianceStatusForOrganizationUnitRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowComplianceStatusForOrganizationUnitResponse; import com.huaweicloud.sdk.rgc.v1.model.ShowControlOperateRequest; import com.huaweicloud.sdk.rgc.v1.model.ShowControlOperateResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowControlRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowControlResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowControlsForOrganizationUnitRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowControlsForOrganizationUnitResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowHomeRegionRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowHomeRegionResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowLandingZoneConfigurationRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowLandingZoneConfigurationResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowLandingZoneIdentityCenterRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowLandingZoneIdentityCenterResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowLandingZoneStatusRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowLandingZoneStatusResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowManagedAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowManagedAccountResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowManagedCoreAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowManagedCoreAccountResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowManagedOrganizationalUnitRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowManagedOrganizationalUnitResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowOperationRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowOperationResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowTemplateDeployParamsRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowTemplateDeployParamsResponse; -import com.huaweicloud.sdk.rgc.v1.model.UnEnrollAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.UnEnrollAccountResponse; -import com.huaweicloud.sdk.rgc.v1.model.UpdateManagedAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.UpdateManagedAccountResponse; public class RgcClient { @@ -156,121 +82,6 @@ public SyncInvoker enableControlInv return new SyncInvoker<>(request, RgcMeta.enableControl, hcClient); } - /** - * 查询纳管账号的Config规则合规性信息 - * - * 查询纳管账号的Config规则合规性信息 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListConfigRuleComplianceRequest 请求对象 - * @return ListConfigRuleComplianceResponse - */ - public ListConfigRuleComplianceResponse listConfigRuleCompliance(ListConfigRuleComplianceRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.listConfigRuleCompliance); - } - - /** - * 查询纳管账号的Config规则合规性信息 - * - * 查询纳管账号的Config规则合规性信息 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListConfigRuleComplianceRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker listConfigRuleComplianceInvoker( - ListConfigRuleComplianceRequest request) { - return new SyncInvoker<>(request, RgcMeta.listConfigRuleCompliance, hcClient); - } - - /** - * 列出不合规信息 - * - * 列出组织里所有不合规的资源信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListControlViolationsRequest 请求对象 - * @return ListControlViolationsResponse - */ - public ListControlViolationsResponse listControlViolations(ListControlViolationsRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.listControlViolations); - } - - /** - * 列出不合规信息 - * - * 列出组织里所有不合规的资源信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListControlViolationsRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker listControlViolationsInvoker( - ListControlViolationsRequest request) { - return new SyncInvoker<>(request, RgcMeta.listControlViolations, hcClient); - } - - /** - * 列出控制策略 - * - * 列出RGC服务里所有的预置控制策略。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListControlsRequest 请求对象 - * @return ListControlsResponse - */ - public ListControlsResponse listControls(ListControlsRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.listControls); - } - - /** - * 列出控制策略 - * - * 列出RGC服务里所有的预置控制策略。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListControlsRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker listControlsInvoker(ListControlsRequest request) { - return new SyncInvoker<>(request, RgcMeta.listControls, hcClient); - } - - /** - * 列出纳管账号下开启的控制策略 - * - * 列出组织里某个纳管账号开启的所有控制策略信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListControlsForAccountRequest 请求对象 - * @return ListControlsForAccountResponse - */ - public ListControlsForAccountResponse listControlsForAccount(ListControlsForAccountRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.listControlsForAccount); - } - - /** - * 列出纳管账号下开启的控制策略 - * - * 列出组织里某个纳管账号开启的所有控制策略信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListControlsForAccountRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker listControlsForAccountInvoker( - ListControlsForAccountRequest request) { - return new SyncInvoker<>(request, RgcMeta.listControlsForAccount, hcClient); - } - /** * 列出注册OU下开启的控制策略 * @@ -301,152 +112,6 @@ public SyncInvoker(request, RgcMeta.listControlsForOrganizationUnit, hcClient); } - /** - * 列出漂移信息 - * - * 列出Landing Zone的所有漂移详细信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListDriftDetailsRequest 请求对象 - * @return ListDriftDetailsResponse - */ - public ListDriftDetailsResponse listDriftDetails(ListDriftDetailsRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.listDriftDetails); - } - - /** - * 列出漂移信息 - * - * 列出Landing Zone的所有漂移详细信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListDriftDetailsRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker listDriftDetailsInvoker( - ListDriftDetailsRequest request) { - return new SyncInvoker<>(request, RgcMeta.listDriftDetails, hcClient); - } - - /** - * 列出开启的控制策略 - * - * 列出组织里开启的所有控制策略信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListEnabledControlsRequest 请求对象 - * @return ListEnabledControlsResponse - */ - public ListEnabledControlsResponse listEnabledControls(ListEnabledControlsRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.listEnabledControls); - } - - /** - * 列出开启的控制策略 - * - * 列出组织里开启的所有控制策略信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListEnabledControlsRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker listEnabledControlsInvoker( - ListEnabledControlsRequest request) { - return new SyncInvoker<>(request, RgcMeta.listEnabledControls, hcClient); - } - - /** - * 查询纳管账号的合规状态 - * - * 查询组织里某个纳管账号的资源合规状态。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowComplianceStatusForAccountRequest 请求对象 - * @return ShowComplianceStatusForAccountResponse - */ - public ShowComplianceStatusForAccountResponse showComplianceStatusForAccount( - ShowComplianceStatusForAccountRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.showComplianceStatusForAccount); - } - - /** - * 查询纳管账号的合规状态 - * - * 查询组织里某个纳管账号的资源合规状态。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowComplianceStatusForAccountRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker showComplianceStatusForAccountInvoker( - ShowComplianceStatusForAccountRequest request) { - return new SyncInvoker<>(request, RgcMeta.showComplianceStatusForAccount, hcClient); - } - - /** - * 查询注册OU的合规状态 - * - * 查询组织里某个注册OU下所有纳管账号的资源合规状态。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowComplianceStatusForOrganizationUnitRequest 请求对象 - * @return ShowComplianceStatusForOrganizationUnitResponse - */ - public ShowComplianceStatusForOrganizationUnitResponse showComplianceStatusForOrganizationUnit( - ShowComplianceStatusForOrganizationUnitRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.showComplianceStatusForOrganizationUnit); - } - - /** - * 查询注册OU的合规状态 - * - * 查询组织里某个注册OU下所有纳管账号的资源合规状态。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowComplianceStatusForOrganizationUnitRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker showComplianceStatusForOrganizationUnitInvoker( - ShowComplianceStatusForOrganizationUnitRequest request) { - return new SyncInvoker<>(request, RgcMeta.showComplianceStatusForOrganizationUnit, hcClient); - } - - /** - * 查询控制策略详细信息 - * - * 查询单个预置的控制策略详细信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowControlRequest 请求对象 - * @return ShowControlResponse - */ - public ShowControlResponse showControl(ShowControlRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.showControl); - } - - /** - * 查询控制策略详细信息 - * - * 查询单个预置的控制策略详细信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowControlRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker showControlInvoker(ShowControlRequest request) { - return new SyncInvoker<>(request, RgcMeta.showControl, hcClient); - } - /** * 查询控制策略操作状态 * @@ -476,820 +141,4 @@ public SyncInvoker showCo return new SyncInvoker<>(request, RgcMeta.showControlOperate, hcClient); } - /** - * 查询注册OU开启的控制策略 - * - * 查询组织里某个注册OU下开启的某个控制策略的详细信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowControlsForOrganizationUnitRequest 请求对象 - * @return ShowControlsForOrganizationUnitResponse - */ - public ShowControlsForOrganizationUnitResponse showControlsForOrganizationUnit( - ShowControlsForOrganizationUnitRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.showControlsForOrganizationUnit); - } - - /** - * 查询注册OU开启的控制策略 - * - * 查询组织里某个注册OU下开启的某个控制策略的详细信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowControlsForOrganizationUnitRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker showControlsForOrganizationUnitInvoker( - ShowControlsForOrganizationUnitRequest request) { - return new SyncInvoker<>(request, RgcMeta.showControlsForOrganizationUnit, hcClient); - } - - /** - * 设置Landing Zone前检查 - * - * 在设置Landing Zone之前,检查当前区域是否可以设置Landing Zone。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request CheckLaunchRequest 请求对象 - * @return CheckLaunchResponse - */ - public CheckLaunchResponse checkLaunch(CheckLaunchRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.checkLaunch); - } - - /** - * 设置Landing Zone前检查 - * - * 在设置Landing Zone之前,检查当前区域是否可以设置Landing Zone。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request CheckLaunchRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker checkLaunchInvoker(CheckLaunchRequest request) { - return new SyncInvoker<>(request, RgcMeta.checkLaunch, hcClient); - } - - /** - * 设置Landing Zone - * - * 在当前区域创建或者更新Landing Zone。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request SetupLandingZoneRequest 请求对象 - * @return SetupLandingZoneResponse - */ - public SetupLandingZoneResponse setupLandingZone(SetupLandingZoneRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.setupLandingZone); - } - - /** - * 设置Landing Zone - * - * 在当前区域创建或者更新Landing Zone。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request SetupLandingZoneRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker setupLandingZoneInvoker( - SetupLandingZoneRequest request) { - return new SyncInvoker<>(request, RgcMeta.setupLandingZone, hcClient); - } - - /** - * 查询Landing Zone可更新状态 - * - * 查询Landing Zone当前是否需要升级更新。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowAvailableUpdatesRequest 请求对象 - * @return ShowAvailableUpdatesResponse - */ - public ShowAvailableUpdatesResponse showAvailableUpdates(ShowAvailableUpdatesRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.showAvailableUpdates); - } - - /** - * 查询Landing Zone可更新状态 - * - * 查询Landing Zone当前是否需要升级更新。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowAvailableUpdatesRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker showAvailableUpdatesInvoker( - ShowAvailableUpdatesRequest request) { - return new SyncInvoker<>(request, RgcMeta.showAvailableUpdates, hcClient); - } - - /** - * 查询主区域 - * - * 查询Landing Zone的主区域。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowHomeRegionRequest 请求对象 - * @return ShowHomeRegionResponse - */ - public ShowHomeRegionResponse showHomeRegion(ShowHomeRegionRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.showHomeRegion); - } - - /** - * 查询主区域 - * - * 查询Landing Zone的主区域。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowHomeRegionRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker showHomeRegionInvoker( - ShowHomeRegionRequest request) { - return new SyncInvoker<>(request, RgcMeta.showHomeRegion, hcClient); - } - - /** - * 查询Landing Zone的配置 - * - * 查询当前客户的Landing Zone的所有配置。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowLandingZoneConfigurationRequest 请求对象 - * @return ShowLandingZoneConfigurationResponse - */ - public ShowLandingZoneConfigurationResponse showLandingZoneConfiguration( - ShowLandingZoneConfigurationRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.showLandingZoneConfiguration); - } - - /** - * 查询Landing Zone的配置 - * - * 查询当前客户的Landing Zone的所有配置。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowLandingZoneConfigurationRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker showLandingZoneConfigurationInvoker( - ShowLandingZoneConfigurationRequest request) { - return new SyncInvoker<>(request, RgcMeta.showLandingZoneConfiguration, hcClient); - } - - /** - * 查询当前客户的Identity Center用户信息 - * - * 查询当前客户的Identity Center用户信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowLandingZoneIdentityCenterRequest 请求对象 - * @return ShowLandingZoneIdentityCenterResponse - */ - public ShowLandingZoneIdentityCenterResponse showLandingZoneIdentityCenter( - ShowLandingZoneIdentityCenterRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.showLandingZoneIdentityCenter); - } - - /** - * 查询当前客户的Identity Center用户信息 - * - * 查询当前客户的Identity Center用户信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowLandingZoneIdentityCenterRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker showLandingZoneIdentityCenterInvoker( - ShowLandingZoneIdentityCenterRequest request) { - return new SyncInvoker<>(request, RgcMeta.showLandingZoneIdentityCenter, hcClient); - } - - /** - * 查询Landing Zone设置状态 - * - * 查询Landing Zone的设置状态。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowLandingZoneStatusRequest 请求对象 - * @return ShowLandingZoneStatusResponse - */ - public ShowLandingZoneStatusResponse showLandingZoneStatus(ShowLandingZoneStatusRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.showLandingZoneStatus); - } - - /** - * 查询Landing Zone设置状态 - * - * 查询Landing Zone的设置状态。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowLandingZoneStatusRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker showLandingZoneStatusInvoker( - ShowLandingZoneStatusRequest request) { - return new SyncInvoker<>(request, RgcMeta.showLandingZoneStatus, hcClient); - } - - /** - * 创建账号 - * - * 在组织里的某个注册OU下创建账号。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request CreateAccountRequest 请求对象 - * @return CreateAccountResponse - */ - public CreateAccountResponse createAccount(CreateAccountRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.createAccount); - } - - /** - * 创建账号 - * - * 在组织里的某个注册OU下创建账号。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request CreateAccountRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker createAccountInvoker(CreateAccountRequest request) { - return new SyncInvoker<>(request, RgcMeta.createAccount, hcClient); - } - - /** - * 删除注册OU - * - * 在组织里删除已注册OU。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request DeleteManagedOrganizationalUnitsRequest 请求对象 - * @return DeleteManagedOrganizationalUnitsResponse - */ - public DeleteManagedOrganizationalUnitsResponse deleteManagedOrganizationalUnits( - DeleteManagedOrganizationalUnitsRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.deleteManagedOrganizationalUnits); - } - - /** - * 删除注册OU - * - * 在组织里删除已注册OU。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request DeleteManagedOrganizationalUnitsRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker deleteManagedOrganizationalUnitsInvoker( - DeleteManagedOrganizationalUnitsRequest request) { - return new SyncInvoker<>(request, RgcMeta.deleteManagedOrganizationalUnits, hcClient); - } - - /** - * 取消注册OU - * - * 将组织里的某个OU从RGC服务里取消注册。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request DeregisterOrganizationalUnitRequest 请求对象 - * @return DeregisterOrganizationalUnitResponse - */ - public DeregisterOrganizationalUnitResponse deregisterOrganizationalUnit( - DeregisterOrganizationalUnitRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.deregisterOrganizationalUnit); - } - - /** - * 取消注册OU - * - * 将组织里的某个OU从RGC服务里取消注册。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request DeregisterOrganizationalUnitRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker deregisterOrganizationalUnitInvoker( - DeregisterOrganizationalUnitRequest request) { - return new SyncInvoker<>(request, RgcMeta.deregisterOrganizationalUnit, hcClient); - } - - /** - * 纳管账号 - * - * 将组织里的某个账号纳管到RGC服务。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request EnrollAccountRequest 请求对象 - * @return EnrollAccountResponse - */ - public EnrollAccountResponse enrollAccount(EnrollAccountRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.enrollAccount); - } - - /** - * 纳管账号 - * - * 将组织里的某个账号纳管到RGC服务。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request EnrollAccountRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker enrollAccountInvoker(EnrollAccountRequest request) { - return new SyncInvoker<>(request, RgcMeta.enrollAccount, hcClient); - } - - /** - * 列举控制策略生效的纳管账号信息 - * - * 列举控制策略生效的纳管账号信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListManagedAccountsRequest 请求对象 - * @return ListManagedAccountsResponse - */ - public ListManagedAccountsResponse listManagedAccounts(ListManagedAccountsRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.listManagedAccounts); - } - - /** - * 列举控制策略生效的纳管账号信息 - * - * 列举控制策略生效的纳管账号信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListManagedAccountsRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker listManagedAccountsInvoker( - ListManagedAccountsRequest request) { - return new SyncInvoker<>(request, RgcMeta.listManagedAccounts, hcClient); - } - - /** - * 列出注册OU下的纳管账号信息 - * - * 列出组织里某个注册OU下的所有纳管账号信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListManagedAccountsForParentRequest 请求对象 - * @return ListManagedAccountsForParentResponse - */ - public ListManagedAccountsForParentResponse listManagedAccountsForParent( - ListManagedAccountsForParentRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.listManagedAccountsForParent); - } - - /** - * 列出注册OU下的纳管账号信息 - * - * 列出组织里某个注册OU下的所有纳管账号信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListManagedAccountsForParentRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker listManagedAccountsForParentInvoker( - ListManagedAccountsForParentRequest request) { - return new SyncInvoker<>(request, RgcMeta.listManagedAccountsForParent, hcClient); - } - - /** - * 列举控制策略生效的注册OU信息 - * - * 列举控制策略生效的注册OU信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListManagedOrganizationalUnitsRequest 请求对象 - * @return ListManagedOrganizationalUnitsResponse - */ - public ListManagedOrganizationalUnitsResponse listManagedOrganizationalUnits( - ListManagedOrganizationalUnitsRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.listManagedOrganizationalUnits); - } - - /** - * 列举控制策略生效的注册OU信息 - * - * 列举控制策略生效的注册OU信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListManagedOrganizationalUnitsRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker listManagedOrganizationalUnitsInvoker( - ListManagedOrganizationalUnitsRequest request) { - return new SyncInvoker<>(request, RgcMeta.listManagedOrganizationalUnits, hcClient); - } - - /** - * 查询已注册OU和纳管帐号操作过程信息列表 - * - * 查询在RGC服务里已注册OU和纳管帐号操作的过程信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListOperationRequest 请求对象 - * @return ListOperationResponse - */ - public ListOperationResponse listOperation(ListOperationRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.listOperation); - } - - /** - * 查询已注册OU和纳管帐号操作过程信息列表 - * - * 查询在RGC服务里已注册OU和纳管帐号操作的过程信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListOperationRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker listOperationInvoker(ListOperationRequest request) { - return new SyncInvoker<>(request, RgcMeta.listOperation, hcClient); - } - - /** - * 重新注册OU - * - * 重新注册组织里的某个OU到RGC服务。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ReRegisterOrganizationalUnitRequest 请求对象 - * @return ReRegisterOrganizationalUnitResponse - */ - public ReRegisterOrganizationalUnitResponse reRegisterOrganizationalUnit( - ReRegisterOrganizationalUnitRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.reRegisterOrganizationalUnit); - } - - /** - * 重新注册OU - * - * 重新注册组织里的某个OU到RGC服务。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ReRegisterOrganizationalUnitRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker reRegisterOrganizationalUnitInvoker( - ReRegisterOrganizationalUnitRequest request) { - return new SyncInvoker<>(request, RgcMeta.reRegisterOrganizationalUnit, hcClient); - } - - /** - * 注册OU - * - * 将组织里的某个OU注册到RGC服务。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RegisterOrganizationalUnitRequest 请求对象 - * @return RegisterOrganizationalUnitResponse - */ - public RegisterOrganizationalUnitResponse registerOrganizationalUnit(RegisterOrganizationalUnitRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.registerOrganizationalUnit); - } - - /** - * 注册OU - * - * 将组织里的某个OU注册到RGC服务。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RegisterOrganizationalUnitRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker registerOrganizationalUnitInvoker( - RegisterOrganizationalUnitRequest request) { - return new SyncInvoker<>(request, RgcMeta.registerOrganizationalUnit, hcClient); - } - - /** - * 查询纳管账号信息 - * - * 查询组织里某个纳管账号信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowManagedAccountRequest 请求对象 - * @return ShowManagedAccountResponse - */ - public ShowManagedAccountResponse showManagedAccount(ShowManagedAccountRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.showManagedAccount); - } - - /** - * 查询纳管账号信息 - * - * 查询组织里某个纳管账号信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowManagedAccountRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker showManagedAccountInvoker( - ShowManagedAccountRequest request) { - return new SyncInvoker<>(request, RgcMeta.showManagedAccount, hcClient); - } - - /** - * 列出核心纳管账号 - * - * 列出组织里的所有核心纳管账号信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowManagedCoreAccountRequest 请求对象 - * @return ShowManagedCoreAccountResponse - */ - public ShowManagedCoreAccountResponse showManagedCoreAccount(ShowManagedCoreAccountRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.showManagedCoreAccount); - } - - /** - * 列出核心纳管账号 - * - * 列出组织里的所有核心纳管账号信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowManagedCoreAccountRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker showManagedCoreAccountInvoker( - ShowManagedCoreAccountRequest request) { - return new SyncInvoker<>(request, RgcMeta.showManagedCoreAccount, hcClient); - } - - /** - * 查询已注册OU信息 - * - * 查询在RGC服务里的注册OU信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowManagedOrganizationalUnitRequest 请求对象 - * @return ShowManagedOrganizationalUnitResponse - */ - public ShowManagedOrganizationalUnitResponse showManagedOrganizationalUnit( - ShowManagedOrganizationalUnitRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.showManagedOrganizationalUnit); - } - - /** - * 查询已注册OU信息 - * - * 查询在RGC服务里的注册OU信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowManagedOrganizationalUnitRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker showManagedOrganizationalUnitInvoker( - ShowManagedOrganizationalUnitRequest request) { - return new SyncInvoker<>(request, RgcMeta.showManagedOrganizationalUnit, hcClient); - } - - /** - * 查询注册过程信息 - * - * 查询在RGC服务里注册/取消注册的过程信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowOperationRequest 请求对象 - * @return ShowOperationResponse - */ - public ShowOperationResponse showOperation(ShowOperationRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.showOperation); - } - - /** - * 查询注册过程信息 - * - * 查询在RGC服务里注册/取消注册的过程信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowOperationRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker showOperationInvoker(ShowOperationRequest request) { - return new SyncInvoker<>(request, RgcMeta.showOperation, hcClient); - } - - /** - * 取消纳管账号 - * - * 将组织里的某个账号从RGC服务里取消纳管。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request UnEnrollAccountRequest 请求对象 - * @return UnEnrollAccountResponse - */ - public UnEnrollAccountResponse unEnrollAccount(UnEnrollAccountRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.unEnrollAccount); - } - - /** - * 取消纳管账号 - * - * 将组织里的某个账号从RGC服务里取消纳管。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request UnEnrollAccountRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker unEnrollAccountInvoker( - UnEnrollAccountRequest request) { - return new SyncInvoker<>(request, RgcMeta.unEnrollAccount, hcClient); - } - - /** - * 更新纳管账号 - * - * 更新组织里某个已在RGC服务的纳管账号。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request UpdateManagedAccountRequest 请求对象 - * @return UpdateManagedAccountResponse - */ - public UpdateManagedAccountResponse updateManagedAccount(UpdateManagedAccountRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.updateManagedAccount); - } - - /** - * 更新纳管账号 - * - * 更新组织里某个已在RGC服务的纳管账号。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request UpdateManagedAccountRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker updateManagedAccountInvoker( - UpdateManagedAccountRequest request) { - return new SyncInvoker<>(request, RgcMeta.updateManagedAccount, hcClient); - } - - /** - * 创建模板。 - * - * 创建RFS模板。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request CreateTemplateRequest 请求对象 - * @return CreateTemplateResponse - */ - public CreateTemplateResponse createTemplate(CreateTemplateRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.createTemplate); - } - - /** - * 创建模板。 - * - * 创建RFS模板。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request CreateTemplateRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker createTemplateInvoker( - CreateTemplateRequest request) { - return new SyncInvoker<>(request, RgcMeta.createTemplate, hcClient); - } - - /** - * 删除模板。 - * - * 删除RFS模板。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request DeleteTemplateRequest 请求对象 - * @return DeleteTemplateResponse - */ - public DeleteTemplateResponse deleteTemplate(DeleteTemplateRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.deleteTemplate); - } - - /** - * 删除模板。 - * - * 删除RFS模板。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request DeleteTemplateRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker deleteTemplateInvoker( - DeleteTemplateRequest request) { - return new SyncInvoker<>(request, RgcMeta.deleteTemplate, hcClient); - } - - /** - * 查询预置模板列表 - * - * 查询预置模板列表。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListPredefinedTemplatesRequest 请求对象 - * @return ListPredefinedTemplatesResponse - */ - public ListPredefinedTemplatesResponse listPredefinedTemplates(ListPredefinedTemplatesRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.listPredefinedTemplates); - } - - /** - * 查询预置模板列表 - * - * 查询预置模板列表。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListPredefinedTemplatesRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker listPredefinedTemplatesInvoker( - ListPredefinedTemplatesRequest request) { - return new SyncInvoker<>(request, RgcMeta.listPredefinedTemplates, hcClient); - } - - /** - * 查询模板的部署参数。 - * - * 查询模板的部署参数。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowTemplateDeployParamsRequest 请求对象 - * @return ShowTemplateDeployParamsResponse - */ - public ShowTemplateDeployParamsResponse showTemplateDeployParams(ShowTemplateDeployParamsRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.showTemplateDeployParams); - } - - /** - * 查询模板的部署参数。 - * - * 查询模板的部署参数。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowTemplateDeployParamsRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker showTemplateDeployParamsInvoker( - ShowTemplateDeployParamsRequest request) { - return new SyncInvoker<>(request, RgcMeta.showTemplateDeployParams, hcClient); - } - } diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/RgcMeta.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/RgcMeta.java index f8ffd8afc9..d79ef9f6bd 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/RgcMeta.java +++ b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/RgcMeta.java @@ -5,94 +5,15 @@ 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.rgc.v1.model.CheckLaunchRequest; -import com.huaweicloud.sdk.rgc.v1.model.CheckLaunchResponse; import com.huaweicloud.sdk.rgc.v1.model.ControlOperateReqBody; -import com.huaweicloud.sdk.rgc.v1.model.CreateAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.CreateAccountResponse; -import com.huaweicloud.sdk.rgc.v1.model.CreateManagedAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.CreateTemplateRequest; -import com.huaweicloud.sdk.rgc.v1.model.CreateTemplateRequestBody; -import com.huaweicloud.sdk.rgc.v1.model.CreateTemplateResponse; -import com.huaweicloud.sdk.rgc.v1.model.DeleteManagedOrganizationalUnitsRequest; -import com.huaweicloud.sdk.rgc.v1.model.DeleteManagedOrganizationalUnitsResponse; -import com.huaweicloud.sdk.rgc.v1.model.DeleteTemplateRequest; -import com.huaweicloud.sdk.rgc.v1.model.DeleteTemplateResponse; -import com.huaweicloud.sdk.rgc.v1.model.DeregisterOrganizationalUnitRequest; -import com.huaweicloud.sdk.rgc.v1.model.DeregisterOrganizationalUnitResponse; import com.huaweicloud.sdk.rgc.v1.model.DisableControlRequest; import com.huaweicloud.sdk.rgc.v1.model.DisableControlResponse; import com.huaweicloud.sdk.rgc.v1.model.EnableControlRequest; import com.huaweicloud.sdk.rgc.v1.model.EnableControlResponse; -import com.huaweicloud.sdk.rgc.v1.model.EnrollAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.EnrollAccountRequestBody; -import com.huaweicloud.sdk.rgc.v1.model.EnrollAccountResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListConfigRuleComplianceRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListConfigRuleComplianceResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListControlViolationsRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListControlViolationsResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListControlsForAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListControlsForAccountResponse; import com.huaweicloud.sdk.rgc.v1.model.ListControlsForOrganizationUnitRequest; import com.huaweicloud.sdk.rgc.v1.model.ListControlsForOrganizationUnitResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListControlsRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListControlsResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListDriftDetailsRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListDriftDetailsResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListEnabledControlsRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListEnabledControlsResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListManagedAccountsForParentRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListManagedAccountsForParentResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListManagedAccountsRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListManagedAccountsResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListManagedOrganizationalUnitsRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListManagedOrganizationalUnitsResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListOperationRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListOperationResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListPredefinedTemplatesRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListPredefinedTemplatesResponse; -import com.huaweicloud.sdk.rgc.v1.model.ReRegisterOrganizationalUnitRequest; -import com.huaweicloud.sdk.rgc.v1.model.ReRegisterOrganizationalUnitResponse; -import com.huaweicloud.sdk.rgc.v1.model.RegisterOrganizationalUnitRequest; -import com.huaweicloud.sdk.rgc.v1.model.RegisterOrganizationalUnitResponse; -import com.huaweicloud.sdk.rgc.v1.model.SetupLandingZoneReqBody; -import com.huaweicloud.sdk.rgc.v1.model.SetupLandingZoneRequest; -import com.huaweicloud.sdk.rgc.v1.model.SetupLandingZoneResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowAvailableUpdatesRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowAvailableUpdatesResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowComplianceStatusForAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowComplianceStatusForAccountResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowComplianceStatusForOrganizationUnitRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowComplianceStatusForOrganizationUnitResponse; import com.huaweicloud.sdk.rgc.v1.model.ShowControlOperateRequest; import com.huaweicloud.sdk.rgc.v1.model.ShowControlOperateResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowControlRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowControlResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowControlsForOrganizationUnitRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowControlsForOrganizationUnitResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowHomeRegionRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowHomeRegionResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowLandingZoneConfigurationRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowLandingZoneConfigurationResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowLandingZoneIdentityCenterRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowLandingZoneIdentityCenterResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowLandingZoneStatusRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowLandingZoneStatusResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowManagedAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowManagedAccountResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowManagedCoreAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowManagedCoreAccountResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowManagedOrganizationalUnitRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowManagedOrganizationalUnitResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowOperationRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowOperationResponse; -import com.huaweicloud.sdk.rgc.v1.model.ShowTemplateDeployParamsRequest; -import com.huaweicloud.sdk.rgc.v1.model.ShowTemplateDeployParamsResponse; -import com.huaweicloud.sdk.rgc.v1.model.UnEnrollAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.UnEnrollAccountResponse; -import com.huaweicloud.sdk.rgc.v1.model.UpdateManagedAccountRequest; -import com.huaweicloud.sdk.rgc.v1.model.UpdateManagedAccountRequestBody; -import com.huaweicloud.sdk.rgc.v1.model.UpdateManagedAccountResponse; @SuppressWarnings("unchecked") public class RgcMeta { @@ -143,122 +64,6 @@ private static HttpRequestDef genFo return builder.build(); } - public static final HttpRequestDef listConfigRuleCompliance = - genForListConfigRuleCompliance(); - - private static HttpRequestDef genForListConfigRuleCompliance() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef - .builder(HttpMethod.GET, ListConfigRuleComplianceRequest.class, ListConfigRuleComplianceResponse.class) - .withName("ListConfigRuleCompliance") - .withUri("/v1/governance/managed-accounts/{managed_account_id}/config-rule-compliances") - .withContentType("application/json"); - - // requests - builder.withRequestField("managed_account_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListConfigRuleComplianceRequest::getManagedAccountId, - ListConfigRuleComplianceRequest::setManagedAccountId)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef listControlViolations = - genForListControlViolations(); - - private static HttpRequestDef genForListControlViolations() { - // basic - HttpRequestDef.Builder builder = HttpRequestDef - .builder(HttpMethod.GET, ListControlViolationsRequest.class, ListControlViolationsResponse.class) - .withName("ListControlViolations") - .withUri("/v1/governance/control-violations") - .withContentType("application/json"); - - // requests - builder.withRequestField("account_id", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListControlViolationsRequest::getAccountId, - ListControlViolationsRequest::setAccountId)); - builder.withRequestField("organization_unit_id", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListControlViolationsRequest::getOrganizationUnitId, - ListControlViolationsRequest::setOrganizationUnitId)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef listControls = genForListControls(); - - private static HttpRequestDef genForListControls() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.GET, ListControlsRequest.class, ListControlsResponse.class) - .withName("ListControls") - .withUri("/v1/governance/controls") - .withContentType("application/json"); - - // requests - builder.withRequestField("limit", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Integer.class), - f -> f.withMarshaller(ListControlsRequest::getLimit, ListControlsRequest::setLimit)); - builder.withRequestField("marker", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListControlsRequest::getMarker, ListControlsRequest::setMarker)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef listControlsForAccount = - genForListControlsForAccount(); - - private static HttpRequestDef genForListControlsForAccount() { - // basic - HttpRequestDef.Builder builder = HttpRequestDef - .builder(HttpMethod.GET, ListControlsForAccountRequest.class, ListControlsForAccountResponse.class) - .withName("ListControlsForAccount") - .withUri("/v1/governance/managed-accounts/{managed_account_id}/controls") - .withContentType("application/json"); - - // requests - builder.withRequestField("managed_account_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListControlsForAccountRequest::getManagedAccountId, - ListControlsForAccountRequest::setManagedAccountId)); - builder.withRequestField("limit", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Integer.class), - f -> f.withMarshaller(ListControlsForAccountRequest::getLimit, ListControlsForAccountRequest::setLimit)); - builder.withRequestField("marker", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListControlsForAccountRequest::getMarker, ListControlsForAccountRequest::setMarker)); - - // response - - return builder.build(); - } - public static final HttpRequestDef listControlsForOrganizationUnit = genForListControlsForOrganizationUnit(); @@ -298,140 +103,6 @@ private static HttpRequestDef listDriftDetails = - genForListDriftDetails(); - - private static HttpRequestDef genForListDriftDetails() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.GET, ListDriftDetailsRequest.class, ListDriftDetailsResponse.class) - .withName("ListDriftDetails") - .withUri("/v1/governance/drift-details") - .withContentType("application/json"); - - // requests - - // response - - return builder.build(); - } - - public static final HttpRequestDef listEnabledControls = - genForListEnabledControls(); - - private static HttpRequestDef genForListEnabledControls() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.GET, ListEnabledControlsRequest.class, ListEnabledControlsResponse.class) - .withName("ListEnabledControls") - .withUri("/v1/governance/enabled-controls") - .withContentType("application/json"); - - // requests - builder.withRequestField("limit", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Integer.class), - f -> f.withMarshaller(ListEnabledControlsRequest::getLimit, ListEnabledControlsRequest::setLimit)); - builder.withRequestField("marker", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListEnabledControlsRequest::getMarker, ListEnabledControlsRequest::setMarker)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef showComplianceStatusForAccount = - genForShowComplianceStatusForAccount(); - - private static HttpRequestDef genForShowComplianceStatusForAccount() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef - .builder(HttpMethod.GET, - ShowComplianceStatusForAccountRequest.class, - ShowComplianceStatusForAccountResponse.class) - .withName("ShowComplianceStatusForAccount") - .withUri("/v1/governance/managed-accounts/{managed_account_id}/compliance-status") - .withContentType("application/json"); - - // requests - builder.withRequestField("managed_account_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ShowComplianceStatusForAccountRequest::getManagedAccountId, - ShowComplianceStatusForAccountRequest::setManagedAccountId)); - builder.withRequestField("control_id", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ShowComplianceStatusForAccountRequest::getControlId, - ShowComplianceStatusForAccountRequest::setControlId)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef showComplianceStatusForOrganizationUnit = - genForShowComplianceStatusForOrganizationUnit(); - - private static HttpRequestDef genForShowComplianceStatusForOrganizationUnit() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef - .builder(HttpMethod.GET, - ShowComplianceStatusForOrganizationUnitRequest.class, - ShowComplianceStatusForOrganizationUnitResponse.class) - .withName("ShowComplianceStatusForOrganizationUnit") - .withUri("/v1/governance/managed-organization-units/{managed_organization_unit_id}/compliance-status") - .withContentType("application/json"); - - // requests - builder.withRequestField("managed_organization_unit_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ShowComplianceStatusForOrganizationUnitRequest::getManagedOrganizationUnitId, - ShowComplianceStatusForOrganizationUnitRequest::setManagedOrganizationUnitId)); - builder.withRequestField("control_id", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ShowComplianceStatusForOrganizationUnitRequest::getControlId, - ShowComplianceStatusForOrganizationUnitRequest::setControlId)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef showControl = genForShowControl(); - - private static HttpRequestDef genForShowControl() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.GET, ShowControlRequest.class, ShowControlResponse.class) - .withName("ShowControl") - .withUri("/v1/governance/controls/{control_id}") - .withContentType("application/json"); - - // requests - builder.withRequestField("control_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ShowControlRequest::getControlId, ShowControlRequest::setControlId)); - - // response - - return builder.build(); - } - public static final HttpRequestDef showControlOperate = genForShowControlOperate(); @@ -456,722 +127,4 @@ private static HttpRequestDef showControlsForOrganizationUnit = - genForShowControlsForOrganizationUnit(); - - private static HttpRequestDef genForShowControlsForOrganizationUnit() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef - .builder(HttpMethod.GET, - ShowControlsForOrganizationUnitRequest.class, - ShowControlsForOrganizationUnitResponse.class) - .withName("ShowControlsForOrganizationUnit") - .withUri( - "/v1/governance/managed-organization-units/{managed_organization_unit_id}/controls/{control_id}") - .withContentType("application/json"); - - // requests - builder.withRequestField("managed_organization_unit_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ShowControlsForOrganizationUnitRequest::getManagedOrganizationUnitId, - ShowControlsForOrganizationUnitRequest::setManagedOrganizationUnitId)); - builder.withRequestField("control_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ShowControlsForOrganizationUnitRequest::getControlId, - ShowControlsForOrganizationUnitRequest::setControlId)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef checkLaunch = genForCheckLaunch(); - - private static HttpRequestDef genForCheckLaunch() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.POST, CheckLaunchRequest.class, CheckLaunchResponse.class) - .withName("CheckLaunch") - .withUri("/v1/landing-zone/pre-launch-check") - .withContentType("application/json"); - - // requests - - // response - - return builder.build(); - } - - public static final HttpRequestDef setupLandingZone = - genForSetupLandingZone(); - - private static HttpRequestDef genForSetupLandingZone() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.POST, SetupLandingZoneRequest.class, SetupLandingZoneResponse.class) - .withName("SetupLandingZone") - .withUri("/v1/landing-zone/setup") - .withContentType("application/json"); - - // requests - builder.withRequestField("body", - LocationType.Body, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(SetupLandingZoneReqBody.class), - f -> f.withMarshaller(SetupLandingZoneRequest::getBody, SetupLandingZoneRequest::setBody)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef showAvailableUpdates = - genForShowAvailableUpdates(); - - private static HttpRequestDef genForShowAvailableUpdates() { - // basic - HttpRequestDef.Builder builder = HttpRequestDef - .builder(HttpMethod.GET, ShowAvailableUpdatesRequest.class, ShowAvailableUpdatesResponse.class) - .withName("ShowAvailableUpdates") - .withUri("/v1/landing-zone/available-updates") - .withContentType("application/json"); - - // requests - - // response - - return builder.build(); - } - - public static final HttpRequestDef showHomeRegion = - genForShowHomeRegion(); - - private static HttpRequestDef genForShowHomeRegion() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.GET, ShowHomeRegionRequest.class, ShowHomeRegionResponse.class) - .withName("ShowHomeRegion") - .withUri("/v1/landing-zone/home-region") - .withContentType("application/json"); - - // requests - - // response - - return builder.build(); - } - - public static final HttpRequestDef showLandingZoneConfiguration = - genForShowLandingZoneConfiguration(); - - private static HttpRequestDef genForShowLandingZoneConfiguration() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef - .builder(HttpMethod.GET, - ShowLandingZoneConfigurationRequest.class, - ShowLandingZoneConfigurationResponse.class) - .withName("ShowLandingZoneConfiguration") - .withUri("/v1/landing-zone/configuration") - .withContentType("application/json"); - - // requests - - // response - - return builder.build(); - } - - public static final HttpRequestDef showLandingZoneIdentityCenter = - genForShowLandingZoneIdentityCenter(); - - private static HttpRequestDef genForShowLandingZoneIdentityCenter() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef - .builder(HttpMethod.GET, - ShowLandingZoneIdentityCenterRequest.class, - ShowLandingZoneIdentityCenterResponse.class) - .withName("ShowLandingZoneIdentityCenter") - .withUri("/v1/landing-zone/identity-center") - .withContentType("application/json"); - - // requests - - // response - - return builder.build(); - } - - public static final HttpRequestDef showLandingZoneStatus = - genForShowLandingZoneStatus(); - - private static HttpRequestDef genForShowLandingZoneStatus() { - // basic - HttpRequestDef.Builder builder = HttpRequestDef - .builder(HttpMethod.GET, ShowLandingZoneStatusRequest.class, ShowLandingZoneStatusResponse.class) - .withName("ShowLandingZoneStatus") - .withUri("/v1/landing-zone/status") - .withContentType("application/json"); - - // requests - - // response - - return builder.build(); - } - - public static final HttpRequestDef createAccount = - genForCreateAccount(); - - private static HttpRequestDef genForCreateAccount() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.POST, CreateAccountRequest.class, CreateAccountResponse.class) - .withName("CreateAccount") - .withUri("/v1/managed-organization/managed-accounts") - .withContentType("application/json"); - - // requests - builder.withRequestField("body", - LocationType.Body, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(CreateManagedAccountRequest.class), - f -> f.withMarshaller(CreateAccountRequest::getBody, CreateAccountRequest::setBody)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef deleteManagedOrganizationalUnits = - genForDeleteManagedOrganizationalUnits(); - - private static HttpRequestDef genForDeleteManagedOrganizationalUnits() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef - .builder(HttpMethod.DELETE, - DeleteManagedOrganizationalUnitsRequest.class, - DeleteManagedOrganizationalUnitsResponse.class) - .withName("DeleteManagedOrganizationalUnits") - .withUri("/v1/managed-organization/managed-organization-units/{managed_organization_unit_id}") - .withContentType("application/json"); - - // requests - builder.withRequestField("managed_organization_unit_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(DeleteManagedOrganizationalUnitsRequest::getManagedOrganizationUnitId, - DeleteManagedOrganizationalUnitsRequest::setManagedOrganizationUnitId)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef deregisterOrganizationalUnit = - genForDeregisterOrganizationalUnit(); - - private static HttpRequestDef genForDeregisterOrganizationalUnit() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef - .builder(HttpMethod.POST, - DeregisterOrganizationalUnitRequest.class, - DeregisterOrganizationalUnitResponse.class) - .withName("DeregisterOrganizationalUnit") - .withUri( - "/v1/managed-organization/managed-organization-units/{managed_organization_unit_id}/de-register") - .withContentType("application/json"); - - // requests - builder.withRequestField("managed_organization_unit_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(DeregisterOrganizationalUnitRequest::getManagedOrganizationUnitId, - DeregisterOrganizationalUnitRequest::setManagedOrganizationUnitId)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef enrollAccount = - genForEnrollAccount(); - - private static HttpRequestDef genForEnrollAccount() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.POST, EnrollAccountRequest.class, EnrollAccountResponse.class) - .withName("EnrollAccount") - .withUri("/v1/managed-organization/accounts/{managed_account_id}/enroll") - .withContentType("application/json"); - - // requests - builder.withRequestField("managed_account_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(EnrollAccountRequest::getManagedAccountId, - EnrollAccountRequest::setManagedAccountId)); - builder.withRequestField("body", - LocationType.Body, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(EnrollAccountRequestBody.class), - f -> f.withMarshaller(EnrollAccountRequest::getBody, EnrollAccountRequest::setBody)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef listManagedAccounts = - genForListManagedAccounts(); - - private static HttpRequestDef genForListManagedAccounts() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.GET, ListManagedAccountsRequest.class, ListManagedAccountsResponse.class) - .withName("ListManagedAccounts") - .withUri("/v1/managed-organization/managed-accounts") - .withContentType("application/json"); - - // requests - builder.withRequestField("control_id", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListManagedAccountsRequest::getControlId, ListManagedAccountsRequest::setControlId)); - builder.withRequestField("limit", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Integer.class), - f -> f.withMarshaller(ListManagedAccountsRequest::getLimit, ListManagedAccountsRequest::setLimit)); - builder.withRequestField("marker", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListManagedAccountsRequest::getMarker, ListManagedAccountsRequest::setMarker)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef listManagedAccountsForParent = - genForListManagedAccountsForParent(); - - private static HttpRequestDef genForListManagedAccountsForParent() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef - .builder(HttpMethod.GET, - ListManagedAccountsForParentRequest.class, - ListManagedAccountsForParentResponse.class) - .withName("ListManagedAccountsForParent") - .withUri( - "/v1/managed-organization/managed-organization-units/{managed_organization_unit_id}/managed-accounts") - .withContentType("application/json"); - - // requests - builder.withRequestField("managed_organization_unit_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListManagedAccountsForParentRequest::getManagedOrganizationUnitId, - ListManagedAccountsForParentRequest::setManagedOrganizationUnitId)); - builder.withRequestField("limit", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Integer.class), - f -> f.withMarshaller(ListManagedAccountsForParentRequest::getLimit, - ListManagedAccountsForParentRequest::setLimit)); - builder.withRequestField("marker", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListManagedAccountsForParentRequest::getMarker, - ListManagedAccountsForParentRequest::setMarker)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef listManagedOrganizationalUnits = - genForListManagedOrganizationalUnits(); - - private static HttpRequestDef genForListManagedOrganizationalUnits() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef - .builder(HttpMethod.GET, - ListManagedOrganizationalUnitsRequest.class, - ListManagedOrganizationalUnitsResponse.class) - .withName("ListManagedOrganizationalUnits") - .withUri("/v1/managed-organization/managed-organization-units") - .withContentType("application/json"); - - // requests - builder.withRequestField("control_id", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListManagedOrganizationalUnitsRequest::getControlId, - ListManagedOrganizationalUnitsRequest::setControlId)); - builder.withRequestField("limit", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Integer.class), - f -> f.withMarshaller(ListManagedOrganizationalUnitsRequest::getLimit, - ListManagedOrganizationalUnitsRequest::setLimit)); - builder.withRequestField("marker", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListManagedOrganizationalUnitsRequest::getMarker, - ListManagedOrganizationalUnitsRequest::setMarker)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef listOperation = - genForListOperation(); - - private static HttpRequestDef genForListOperation() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.GET, ListOperationRequest.class, ListOperationResponse.class) - .withName("ListOperation") - .withUri("/v1/managed-organization") - .withContentType("application/json"); - - // requests - builder.withRequestField("account_id", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListOperationRequest::getAccountId, ListOperationRequest::setAccountId)); - builder.withRequestField("organization_unit_id", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListOperationRequest::getOrganizationUnitId, - ListOperationRequest::setOrganizationUnitId)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef reRegisterOrganizationalUnit = - genForReRegisterOrganizationalUnit(); - - private static HttpRequestDef genForReRegisterOrganizationalUnit() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef - .builder(HttpMethod.POST, - ReRegisterOrganizationalUnitRequest.class, - ReRegisterOrganizationalUnitResponse.class) - .withName("ReRegisterOrganizationalUnit") - .withUri("/v1/managed-organization/organization-units/{organization_unit_id}/re-register") - .withContentType("application/json"); - - // requests - builder.withRequestField("organization_unit_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ReRegisterOrganizationalUnitRequest::getOrganizationUnitId, - ReRegisterOrganizationalUnitRequest::setOrganizationUnitId)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef registerOrganizationalUnit = - genForRegisterOrganizationalUnit(); - - private static HttpRequestDef genForRegisterOrganizationalUnit() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef - .builder(HttpMethod.POST, - RegisterOrganizationalUnitRequest.class, - RegisterOrganizationalUnitResponse.class) - .withName("RegisterOrganizationalUnit") - .withUri("/v1/managed-organization/organization-units/{organization_unit_id}/register") - .withContentType("application/json"); - - // requests - builder.withRequestField("organization_unit_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(RegisterOrganizationalUnitRequest::getOrganizationUnitId, - RegisterOrganizationalUnitRequest::setOrganizationUnitId)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef showManagedAccount = - genForShowManagedAccount(); - - private static HttpRequestDef genForShowManagedAccount() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.GET, ShowManagedAccountRequest.class, ShowManagedAccountResponse.class) - .withName("ShowManagedAccount") - .withUri("/v1/managed-organization/managed-accounts/{managed_account_id}") - .withContentType("application/json"); - - // requests - builder.withRequestField("managed_account_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ShowManagedAccountRequest::getManagedAccountId, - ShowManagedAccountRequest::setManagedAccountId)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef showManagedCoreAccount = - genForShowManagedCoreAccount(); - - private static HttpRequestDef genForShowManagedCoreAccount() { - // basic - HttpRequestDef.Builder builder = HttpRequestDef - .builder(HttpMethod.GET, ShowManagedCoreAccountRequest.class, ShowManagedCoreAccountResponse.class) - .withName("ShowManagedCoreAccount") - .withUri("/v1/managed-organization/managed-core-accounts") - .withContentType("application/json"); - - // requests - builder.withRequestField("account_type", - LocationType.Query, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(ShowManagedCoreAccountRequest.AccountTypeEnum.class), - f -> f.withMarshaller(ShowManagedCoreAccountRequest::getAccountType, - ShowManagedCoreAccountRequest::setAccountType)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef showManagedOrganizationalUnit = - genForShowManagedOrganizationalUnit(); - - private static HttpRequestDef genForShowManagedOrganizationalUnit() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef - .builder(HttpMethod.GET, - ShowManagedOrganizationalUnitRequest.class, - ShowManagedOrganizationalUnitResponse.class) - .withName("ShowManagedOrganizationalUnit") - .withUri("/v1/managed-organization/managed-organization-units/{managed_organization_unit_id}") - .withContentType("application/json"); - - // requests - builder.withRequestField("managed_organization_unit_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ShowManagedOrganizationalUnitRequest::getManagedOrganizationUnitId, - ShowManagedOrganizationalUnitRequest::setManagedOrganizationUnitId)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef showOperation = - genForShowOperation(); - - private static HttpRequestDef genForShowOperation() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.GET, ShowOperationRequest.class, ShowOperationResponse.class) - .withName("ShowOperation") - .withUri("/v1/managed-organization/{operation_id}") - .withContentType("application/json"); - - // requests - builder.withRequestField("operation_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ShowOperationRequest::getOperationId, ShowOperationRequest::setOperationId)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef unEnrollAccount = - genForUnEnrollAccount(); - - private static HttpRequestDef genForUnEnrollAccount() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.POST, UnEnrollAccountRequest.class, UnEnrollAccountResponse.class) - .withName("UnEnrollAccount") - .withUri("/v1/managed-organization/managed-accounts/{managed_account_id}/un-enroll") - .withContentType("application/json"); - - // requests - builder.withRequestField("managed_account_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(UnEnrollAccountRequest::getManagedAccountId, - UnEnrollAccountRequest::setManagedAccountId)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef updateManagedAccount = - genForUpdateManagedAccount(); - - private static HttpRequestDef genForUpdateManagedAccount() { - // basic - HttpRequestDef.Builder builder = HttpRequestDef - .builder(HttpMethod.POST, UpdateManagedAccountRequest.class, UpdateManagedAccountResponse.class) - .withName("UpdateManagedAccount") - .withUri("/v1/managed-organization/managed-accounts/{managed_account_id}/update") - .withContentType("application/json"); - - // requests - builder.withRequestField("managed_account_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(UpdateManagedAccountRequest::getManagedAccountId, - UpdateManagedAccountRequest::setManagedAccountId)); - builder.withRequestField("body", - LocationType.Body, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(UpdateManagedAccountRequestBody.class), - f -> f.withMarshaller(UpdateManagedAccountRequest::getBody, UpdateManagedAccountRequest::setBody)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef createTemplate = - genForCreateTemplate(); - - private static HttpRequestDef genForCreateTemplate() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.POST, CreateTemplateRequest.class, CreateTemplateResponse.class) - .withName("CreateTemplate") - .withUri("/v1/rgc/templates") - .withContentType("application/json"); - - // requests - builder.withRequestField("body", - LocationType.Body, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(CreateTemplateRequestBody.class), - f -> f.withMarshaller(CreateTemplateRequest::getBody, CreateTemplateRequest::setBody)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef deleteTemplate = - genForDeleteTemplate(); - - private static HttpRequestDef genForDeleteTemplate() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.DELETE, DeleteTemplateRequest.class, DeleteTemplateResponse.class) - .withName("DeleteTemplate") - .withUri("/v1/rgc/templates/{template_name}") - .withContentType("application/json"); - - // requests - builder.withRequestField("template_name", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(DeleteTemplateRequest::getTemplateName, DeleteTemplateRequest::setTemplateName)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef listPredefinedTemplates = - genForListPredefinedTemplates(); - - private static HttpRequestDef genForListPredefinedTemplates() { - // basic - HttpRequestDef.Builder builder = HttpRequestDef - .builder(HttpMethod.GET, ListPredefinedTemplatesRequest.class, ListPredefinedTemplatesResponse.class) - .withName("ListPredefinedTemplates") - .withUri("/v1/rgc/predefined-templates") - .withContentType("application/json"); - - // requests - - // response - - return builder.build(); - } - - public static final HttpRequestDef showTemplateDeployParams = - genForShowTemplateDeployParams(); - - private static HttpRequestDef genForShowTemplateDeployParams() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef - .builder(HttpMethod.GET, ShowTemplateDeployParamsRequest.class, ShowTemplateDeployParamsResponse.class) - .withName("ShowTemplateDeployParams") - .withUri("/v1/rgc/templates/{template_name}/deploy-params") - .withContentType("application/json"); - - // requests - builder.withRequestField("template_name", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ShowTemplateDeployParamsRequest::getTemplateName, - ShowTemplateDeployParamsRequest::setTemplateName)); - builder.withRequestField("version", - LocationType.Query, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ShowTemplateDeployParamsRequest::getVersion, - ShowTemplateDeployParamsRequest::setVersion)); - - // response - - return builder.build(); - } - } diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/AccessLoggingBucketBaseline.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/AccessLoggingBucketBaseline.java deleted file mode 100644 index b9701f038b..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/AccessLoggingBucketBaseline.java +++ /dev/null @@ -1,74 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * 访问日志基础设置。 - */ -public class AccessLoggingBucketBaseline { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "retention_days") - - private Integer retentionDays; - - public AccessLoggingBucketBaseline withRetentionDays(Integer retentionDays) { - this.retentionDays = retentionDays; - return this; - } - - /** - * 桶保留天数。 - * minimum: 1 - * maximum: 5475 - * @return retentionDays - */ - public Integer getRetentionDays() { - return retentionDays; - } - - public void setRetentionDays(Integer retentionDays) { - this.retentionDays = retentionDays; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - AccessLoggingBucketBaseline that = (AccessLoggingBucketBaseline) obj; - return Objects.equals(this.retentionDays, that.retentionDays); - } - - @Override - public int hashCode() { - return Objects.hash(retentionDays); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AccessLoggingBucketBaseline {\n"); - sb.append(" retentionDays: ").append(toIndentedString(retentionDays)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/AccountBaseline.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/AccountBaseline.java deleted file mode 100644 index ec6f5f1512..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/AccountBaseline.java +++ /dev/null @@ -1,247 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 AccountBaseline { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "account_name") - - private String accountName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "account_id") - - private String accountId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "phone") - - private String phone; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "account_email") - - private String accountEmail; - - /** - * 纳管账号类型。类型包括LOGGING,SECURITY和CUSTOM。 - */ - public static final class AccountTypeEnum { - - /** - * Enum LOGGING for value: "LOGGING" - */ - public static final AccountTypeEnum LOGGING = new AccountTypeEnum("LOGGING"); - - /** - * Enum SECURITY for value: "SECURITY" - */ - public static final AccountTypeEnum SECURITY = new AccountTypeEnum("SECURITY"); - - /** - * Enum CUSTOM for value: "CUSTOM" - */ - public static final AccountTypeEnum CUSTOM = new AccountTypeEnum("CUSTOM"); - - private static final Map STATIC_FIELDS = createStaticFields(); - - private static Map createStaticFields() { - Map map = new HashMap<>(); - map.put("LOGGING", LOGGING); - map.put("SECURITY", SECURITY); - map.put("CUSTOM", CUSTOM); - return Collections.unmodifiableMap(map); - } - - private String value; - - AccountTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AccountTypeEnum fromValue(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new AccountTypeEnum(value)); - } - - public static AccountTypeEnum 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 AccountTypeEnum) { - return this.value.equals(((AccountTypeEnum) obj).value); - } - return false; - } - - @Override - public int hashCode() { - return this.value.hashCode(); - } - } - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "account_type") - - private AccountTypeEnum accountType; - - public AccountBaseline withAccountName(String accountName) { - this.accountName = accountName; - return this; - } - - /** - * 纳管账号名称。 - * @return accountName - */ - public String getAccountName() { - return accountName; - } - - public void setAccountName(String accountName) { - this.accountName = accountName; - } - - public AccountBaseline withAccountId(String accountId) { - this.accountId = accountId; - return this; - } - - /** - * 纳管帐号的唯一标识符(ID)。 - * @return accountId - */ - public String getAccountId() { - return accountId; - } - - public void setAccountId(String accountId) { - this.accountId = accountId; - } - - public AccountBaseline withPhone(String phone) { - this.phone = phone; - return this; - } - - /** - * 手机号码。 - * @return phone - */ - public String getPhone() { - return phone; - } - - public void setPhone(String phone) { - this.phone = phone; - } - - public AccountBaseline withAccountEmail(String accountEmail) { - this.accountEmail = accountEmail; - return this; - } - - /** - * 纳管账号邮箱。 - * @return accountEmail - */ - public String getAccountEmail() { - return accountEmail; - } - - public void setAccountEmail(String accountEmail) { - this.accountEmail = accountEmail; - } - - public AccountBaseline withAccountType(AccountTypeEnum accountType) { - this.accountType = accountType; - return this; - } - - /** - * 纳管账号类型。类型包括LOGGING,SECURITY和CUSTOM。 - * @return accountType - */ - public AccountTypeEnum getAccountType() { - return accountType; - } - - public void setAccountType(AccountTypeEnum accountType) { - this.accountType = accountType; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - AccountBaseline that = (AccountBaseline) obj; - return Objects.equals(this.accountName, that.accountName) && Objects.equals(this.accountId, that.accountId) - && Objects.equals(this.phone, that.phone) && Objects.equals(this.accountEmail, that.accountEmail) - && Objects.equals(this.accountType, that.accountType); - } - - @Override - public int hashCode() { - return Objects.hash(accountName, accountId, phone, accountEmail, accountType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AccountBaseline {\n"); - sb.append(" accountName: ").append(toIndentedString(accountName)).append("\n"); - sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); - sb.append(" phone: ").append(toIndentedString(phone)).append("\n"); - sb.append(" accountEmail: ").append(toIndentedString(accountEmail)).append("\n"); - sb.append(" accountType: ").append(toIndentedString(accountType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/AccountBaselineRsp.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/AccountBaselineRsp.java deleted file mode 100644 index b09bc0c1f9..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/AccountBaselineRsp.java +++ /dev/null @@ -1,224 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 AccountBaselineRsp { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "account_name") - - private String accountName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "account_id") - - private String accountId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "account_email") - - private String accountEmail; - - /** - * 纳管账号类型。类型包括LOGGING,SECURITY和CUSTOM。 - */ - public static final class AccountTypeEnum { - - /** - * Enum LOGGING for value: "LOGGING" - */ - public static final AccountTypeEnum LOGGING = new AccountTypeEnum("LOGGING"); - - /** - * Enum SECURITY for value: "SECURITY" - */ - public static final AccountTypeEnum SECURITY = new AccountTypeEnum("SECURITY"); - - /** - * Enum CUSTOM for value: "CUSTOM" - */ - public static final AccountTypeEnum CUSTOM = new AccountTypeEnum("CUSTOM"); - - private static final Map STATIC_FIELDS = createStaticFields(); - - private static Map createStaticFields() { - Map map = new HashMap<>(); - map.put("LOGGING", LOGGING); - map.put("SECURITY", SECURITY); - map.put("CUSTOM", CUSTOM); - return Collections.unmodifiableMap(map); - } - - private String value; - - AccountTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AccountTypeEnum fromValue(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new AccountTypeEnum(value)); - } - - public static AccountTypeEnum 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 AccountTypeEnum) { - return this.value.equals(((AccountTypeEnum) obj).value); - } - return false; - } - - @Override - public int hashCode() { - return this.value.hashCode(); - } - } - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "account_type") - - private AccountTypeEnum accountType; - - public AccountBaselineRsp withAccountName(String accountName) { - this.accountName = accountName; - return this; - } - - /** - * 纳管账号名称。 - * @return accountName - */ - public String getAccountName() { - return accountName; - } - - public void setAccountName(String accountName) { - this.accountName = accountName; - } - - public AccountBaselineRsp withAccountId(String accountId) { - this.accountId = accountId; - return this; - } - - /** - * 纳管帐号的唯一标识符(ID)。 - * @return accountId - */ - public String getAccountId() { - return accountId; - } - - public void setAccountId(String accountId) { - this.accountId = accountId; - } - - public AccountBaselineRsp withAccountEmail(String accountEmail) { - this.accountEmail = accountEmail; - return this; - } - - /** - * 纳管账号邮箱。 - * @return accountEmail - */ - public String getAccountEmail() { - return accountEmail; - } - - public void setAccountEmail(String accountEmail) { - this.accountEmail = accountEmail; - } - - public AccountBaselineRsp withAccountType(AccountTypeEnum accountType) { - this.accountType = accountType; - return this; - } - - /** - * 纳管账号类型。类型包括LOGGING,SECURITY和CUSTOM。 - * @return accountType - */ - public AccountTypeEnum getAccountType() { - return accountType; - } - - public void setAccountType(AccountTypeEnum accountType) { - this.accountType = accountType; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - AccountBaselineRsp that = (AccountBaselineRsp) obj; - return Objects.equals(this.accountName, that.accountName) && Objects.equals(this.accountId, that.accountId) - && Objects.equals(this.accountEmail, that.accountEmail) - && Objects.equals(this.accountType, that.accountType); - } - - @Override - public int hashCode() { - return Objects.hash(accountName, accountId, accountEmail, accountType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AccountBaselineRsp {\n"); - sb.append(" accountName: ").append(toIndentedString(accountName)).append("\n"); - sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); - sb.append(" accountEmail: ").append(toIndentedString(accountEmail)).append("\n"); - sb.append(" accountType: ").append(toIndentedString(accountType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/Blueprint.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/Blueprint.java deleted file mode 100644 index 8d61d6cafc..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/Blueprint.java +++ /dev/null @@ -1,146 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * 模板。 - */ -public class Blueprint { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "blueprint_product_id") - - private String blueprintProductId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "blueprint_product_version") - - private String blueprintProductVersion; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "variables") - - private String variables; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "is_blueprint_has_multi_account_resource") - - private Boolean isBlueprintHasMultiAccountResource; - - public Blueprint withBlueprintProductId(String blueprintProductId) { - this.blueprintProductId = blueprintProductId; - return this; - } - - /** - * 模板ID。 - * @return blueprintProductId - */ - public String getBlueprintProductId() { - return blueprintProductId; - } - - public void setBlueprintProductId(String blueprintProductId) { - this.blueprintProductId = blueprintProductId; - } - - public Blueprint withBlueprintProductVersion(String blueprintProductVersion) { - this.blueprintProductVersion = blueprintProductVersion; - return this; - } - - /** - * 模板版本。 - * @return blueprintProductVersion - */ - public String getBlueprintProductVersion() { - return blueprintProductVersion; - } - - public void setBlueprintProductVersion(String blueprintProductVersion) { - this.blueprintProductVersion = blueprintProductVersion; - } - - public Blueprint withVariables(String variables) { - this.variables = variables; - return this; - } - - /** - * 模板部署参数。 - * @return variables - */ - public String getVariables() { - return variables; - } - - public void setVariables(String variables) { - this.variables = variables; - } - - public Blueprint withIsBlueprintHasMultiAccountResource(Boolean isBlueprintHasMultiAccountResource) { - this.isBlueprintHasMultiAccountResource = isBlueprintHasMultiAccountResource; - return this; - } - - /** - * 模板是否包含多账号资源。 - * @return isBlueprintHasMultiAccountResource - */ - public Boolean getIsBlueprintHasMultiAccountResource() { - return isBlueprintHasMultiAccountResource; - } - - public void setIsBlueprintHasMultiAccountResource(Boolean isBlueprintHasMultiAccountResource) { - this.isBlueprintHasMultiAccountResource = isBlueprintHasMultiAccountResource; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - Blueprint that = (Blueprint) obj; - return Objects.equals(this.blueprintProductId, that.blueprintProductId) - && Objects.equals(this.blueprintProductVersion, that.blueprintProductVersion) - && Objects.equals(this.variables, that.variables) - && Objects.equals(this.isBlueprintHasMultiAccountResource, that.isBlueprintHasMultiAccountResource); - } - - @Override - public int hashCode() { - return Objects.hash(blueprintProductId, blueprintProductVersion, variables, isBlueprintHasMultiAccountResource); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Blueprint {\n"); - sb.append(" blueprintProductId: ").append(toIndentedString(blueprintProductId)).append("\n"); - sb.append(" blueprintProductVersion: ").append(toIndentedString(blueprintProductVersion)).append("\n"); - sb.append(" variables: ").append(toIndentedString(variables)).append("\n"); - sb.append(" isBlueprintHasMultiAccountResource: ") - .append(toIndentedString(isBlueprintHasMultiAccountResource)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CheckLaunchRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CheckLaunchRequest.java deleted file mode 100644 index 052b5962b0..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CheckLaunchRequest.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import java.util.Objects; - -/** - * Request Object - */ -public class CheckLaunchRequest { - - @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 CheckLaunchRequest {\n"); - sb.append("}"); - return sb.toString(); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CommonConfiguration.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CommonConfiguration.java deleted file mode 100644 index 758c486cf6..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CommonConfiguration.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * Landing Zone配置信息。 - */ -public class CommonConfiguration { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "home_region") - - private String homeRegion; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "cloud_trail_type") - - private Boolean cloudTrailType; - - public CommonConfiguration withHomeRegion(String homeRegion) { - this.homeRegion = homeRegion; - return this; - } - - /** - * 主区域名。 - * @return homeRegion - */ - public String getHomeRegion() { - return homeRegion; - } - - public void setHomeRegion(String homeRegion) { - this.homeRegion = homeRegion; - } - - public CommonConfiguration withCloudTrailType(Boolean cloudTrailType) { - this.cloudTrailType = cloudTrailType; - return this; - } - - /** - * CTS配置状态。 - * @return cloudTrailType - */ - public Boolean getCloudTrailType() { - return cloudTrailType; - } - - public void setCloudTrailType(Boolean cloudTrailType) { - this.cloudTrailType = cloudTrailType; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - CommonConfiguration that = (CommonConfiguration) obj; - return Objects.equals(this.homeRegion, that.homeRegion) - && Objects.equals(this.cloudTrailType, that.cloudTrailType); - } - - @Override - public int hashCode() { - return Objects.hash(homeRegion, cloudTrailType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CommonConfiguration {\n"); - sb.append(" homeRegion: ").append(toIndentedString(homeRegion)).append("\n"); - sb.append(" cloudTrailType: ").append(toIndentedString(cloudTrailType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ConfigRuleCompliance.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ConfigRuleCompliance.java deleted file mode 100644 index 9712ccf6c0..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ConfigRuleCompliance.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * ConfigRuleCompliance - */ -public class ConfigRuleCompliance { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "rule_name") - - private String ruleName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "status") - - private String status; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "region") - - private String region; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "control_id") - - private String controlId; - - public ConfigRuleCompliance withRuleName(String ruleName) { - this.ruleName = ruleName; - return this; - } - - /** - * 合规规则。 - * @return ruleName - */ - public String getRuleName() { - return ruleName; - } - - public void setRuleName(String ruleName) { - this.ruleName = ruleName; - } - - public ConfigRuleCompliance withStatus(String status) { - this.status = status; - return this; - } - - /** - * 合规状态。 - * @return status - */ - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public ConfigRuleCompliance withRegion(String region) { - this.region = region; - return this; - } - - /** - * 区域信息。 - * @return region - */ - public String getRegion() { - return region; - } - - public void setRegion(String region) { - this.region = region; - } - - public ConfigRuleCompliance withControlId(String controlId) { - this.controlId = controlId; - return this; - } - - /** - * 控制策略ID。 - * @return controlId - */ - public String getControlId() { - return controlId; - } - - public void setControlId(String controlId) { - this.controlId = controlId; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ConfigRuleCompliance that = (ConfigRuleCompliance) obj; - return Objects.equals(this.ruleName, that.ruleName) && Objects.equals(this.status, that.status) - && Objects.equals(this.region, that.region) && Objects.equals(this.controlId, that.controlId); - } - - @Override - public int hashCode() { - return Objects.hash(ruleName, status, region, controlId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ConfigRuleCompliance {\n"); - sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" region: ").append(toIndentedString(region)).append("\n"); - sb.append(" controlId: ").append(toIndentedString(controlId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/Control.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/Control.java deleted file mode 100644 index dd8cb711a6..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/Control.java +++ /dev/null @@ -1,427 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * 控制策略。 - */ -public class Control { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "identifier") - - private String identifier; - - @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 = "guidance") - - private String guidance; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "resource") - - private List resource = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "framework") - - private List framework = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "service") - - private String service; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "implementation") - - private String implementation; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "behavior") - - private String behavior; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "owner") - - private String owner; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "severity") - - private String severity; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "control_objective") - - private String controlObjective; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "version") - - private String version; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "release_date") - - private OffsetDateTime releaseDate; - - public Control withIdentifier(String identifier) { - this.identifier = identifier; - return this; - } - - /** - * 控制策略ID。 - * @return identifier - */ - public String getIdentifier() { - return identifier; - } - - public void setIdentifier(String identifier) { - this.identifier = identifier; - } - - public Control withName(String name) { - this.name = name; - return this; - } - - /** - * 控制策略名称。 - * @return name - */ - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Control withDescription(String description) { - this.description = description; - return this; - } - - /** - * 控制策略描述。 - * @return description - */ - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Control withGuidance(String guidance) { - this.guidance = guidance; - return this; - } - - /** - * 控制策略必须性。 - * @return guidance - */ - public String getGuidance() { - return guidance; - } - - public void setGuidance(String guidance) { - this.guidance = guidance; - } - - public Control withResource(List resource) { - this.resource = resource; - return this; - } - - public Control addResourceItem(String resourceItem) { - if (this.resource == null) { - this.resource = new ArrayList<>(); - } - this.resource.add(resourceItem); - return this; - } - - public Control withResource(Consumer> resourceSetter) { - if (this.resource == null) { - this.resource = new ArrayList<>(); - } - resourceSetter.accept(this.resource); - return this; - } - - /** - * 治理资源。 - * @return resource - */ - public List getResource() { - return resource; - } - - public void setResource(List resource) { - this.resource = resource; - } - - public Control withFramework(List framework) { - this.framework = framework; - return this; - } - - public Control addFrameworkItem(String frameworkItem) { - if (this.framework == null) { - this.framework = new ArrayList<>(); - } - this.framework.add(frameworkItem); - return this; - } - - public Control withFramework(Consumer> frameworkSetter) { - if (this.framework == null) { - this.framework = new ArrayList<>(); - } - frameworkSetter.accept(this.framework); - return this; - } - - /** - * 治理策略来自的框架。 - * @return framework - */ - public List getFramework() { - return framework; - } - - public void setFramework(List framework) { - this.framework = framework; - } - - public Control withService(String service) { - this.service = service; - return this; - } - - /** - * 控制策略所属服务。 - * @return service - */ - public String getService() { - return service; - } - - public void setService(String service) { - this.service = service; - } - - public Control withImplementation(String implementation) { - this.implementation = implementation; - return this; - } - - /** - * 服务控制策略(SCP),配置规则。 - * @return implementation - */ - public String getImplementation() { - return implementation; - } - - public void setImplementation(String implementation) { - this.implementation = implementation; - } - - public Control withBehavior(String behavior) { - this.behavior = behavior; - return this; - } - - /** - * 控制策略类型。包括主动性控制策略Proactive、检测性控制策略Detective、预防性控制策略Preventive。 - * @return behavior - */ - public String getBehavior() { - return behavior; - } - - public void setBehavior(String behavior) { - this.behavior = behavior; - } - - public Control withOwner(String owner) { - this.owner = owner; - return this; - } - - /** - * 纳管账号的创建来源,包括CUSTOM和RGC。 - * @return owner - */ - public String getOwner() { - return owner; - } - - public void setOwner(String owner) { - this.owner = owner; - } - - public Control withSeverity(String severity) { - this.severity = severity; - return this; - } - - /** - * 控制策略严重性。 - * @return severity - */ - public String getSeverity() { - return severity; - } - - public void setSeverity(String severity) { - this.severity = severity; - } - - public Control withControlObjective(String controlObjective) { - this.controlObjective = controlObjective; - return this; - } - - /** - * 控制策略目标。 - * @return controlObjective - */ - public String getControlObjective() { - return controlObjective; - } - - public void setControlObjective(String controlObjective) { - this.controlObjective = controlObjective; - } - - public Control withVersion(String version) { - this.version = version; - return this; - } - - /** - * 控制策略版本。 - * @return version - */ - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - public Control withReleaseDate(OffsetDateTime releaseDate) { - this.releaseDate = releaseDate; - return this; - } - - /** - * 控制策略发布时间。 - * @return releaseDate - */ - public OffsetDateTime getReleaseDate() { - return releaseDate; - } - - public void setReleaseDate(OffsetDateTime releaseDate) { - this.releaseDate = releaseDate; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - Control that = (Control) obj; - return Objects.equals(this.identifier, that.identifier) && Objects.equals(this.name, that.name) - && Objects.equals(this.description, that.description) && Objects.equals(this.guidance, that.guidance) - && Objects.equals(this.resource, that.resource) && Objects.equals(this.framework, that.framework) - && Objects.equals(this.service, that.service) && Objects.equals(this.implementation, that.implementation) - && Objects.equals(this.behavior, that.behavior) && Objects.equals(this.owner, that.owner) - && Objects.equals(this.severity, that.severity) - && Objects.equals(this.controlObjective, that.controlObjective) - && Objects.equals(this.version, that.version) && Objects.equals(this.releaseDate, that.releaseDate); - } - - @Override - public int hashCode() { - return Objects.hash(identifier, - name, - description, - guidance, - resource, - framework, - service, - implementation, - behavior, - owner, - severity, - controlObjective, - version, - releaseDate); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Control {\n"); - sb.append(" identifier: ").append(toIndentedString(identifier)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" guidance: ").append(toIndentedString(guidance)).append("\n"); - sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); - sb.append(" framework: ").append(toIndentedString(framework)).append("\n"); - sb.append(" service: ").append(toIndentedString(service)).append("\n"); - sb.append(" implementation: ").append(toIndentedString(implementation)).append("\n"); - sb.append(" behavior: ").append(toIndentedString(behavior)).append("\n"); - sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); - sb.append(" severity: ").append(toIndentedString(severity)).append("\n"); - sb.append(" controlObjective: ").append(toIndentedString(controlObjective)).append("\n"); - sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append(" releaseDate: ").append(toIndentedString(releaseDate)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ControlViolation.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ControlViolation.java deleted file mode 100644 index 590eff48be..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ControlViolation.java +++ /dev/null @@ -1,318 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * 控制策略合规性。 - */ -public class ControlViolation { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "account_id") - - private String accountId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "account_name") - - private String accountName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "display_name") - - private String displayName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "name") - - private String name; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "control_id") - - private String controlId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "parent_organization_unit_id") - - private String parentOrganizationUnitId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "parent_organization_unit_name") - - private String parentOrganizationUnitName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "region") - - private String region; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "resource") - - private String resource; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "resource_type") - - private String resourceType; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "service") - - private String service; - - public ControlViolation withAccountId(String accountId) { - this.accountId = accountId; - return this; - } - - /** - * 控制策略纳管账号ID。 - * @return accountId - */ - public String getAccountId() { - return accountId; - } - - public void setAccountId(String accountId) { - this.accountId = accountId; - } - - public ControlViolation withAccountName(String accountName) { - this.accountName = accountName; - return this; - } - - /** - * 控制策略纳管账号名称。 - * @return accountName - */ - public String getAccountName() { - return accountName; - } - - public void setAccountName(String accountName) { - this.accountName = accountName; - } - - public ControlViolation withDisplayName(String displayName) { - this.displayName = displayName; - return this; - } - - /** - * 控制策略显示名称。 - * @return displayName - */ - public String getDisplayName() { - return displayName; - } - - public void setDisplayName(String displayName) { - this.displayName = displayName; - } - - public ControlViolation withName(String name) { - this.name = name; - return this; - } - - /** - * 控制策略名称。 - * @return name - */ - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public ControlViolation withControlId(String controlId) { - this.controlId = controlId; - return this; - } - - /** - * 控制策略ID。 - * @return controlId - */ - public String getControlId() { - return controlId; - } - - public void setControlId(String controlId) { - this.controlId = controlId; - } - - public ControlViolation withParentOrganizationUnitId(String parentOrganizationUnitId) { - this.parentOrganizationUnitId = parentOrganizationUnitId; - return this; - } - - /** - * 父注册OU ID。 - * @return parentOrganizationUnitId - */ - public String getParentOrganizationUnitId() { - return parentOrganizationUnitId; - } - - public void setParentOrganizationUnitId(String parentOrganizationUnitId) { - this.parentOrganizationUnitId = parentOrganizationUnitId; - } - - public ControlViolation withParentOrganizationUnitName(String parentOrganizationUnitName) { - this.parentOrganizationUnitName = parentOrganizationUnitName; - return this; - } - - /** - * 父注册OU名称。 - * @return parentOrganizationUnitName - */ - public String getParentOrganizationUnitName() { - return parentOrganizationUnitName; - } - - public void setParentOrganizationUnitName(String parentOrganizationUnitName) { - this.parentOrganizationUnitName = parentOrganizationUnitName; - } - - public ControlViolation withRegion(String region) { - this.region = region; - return this; - } - - /** - * 区域名称。 - * @return region - */ - public String getRegion() { - return region; - } - - public void setRegion(String region) { - this.region = region; - } - - public ControlViolation withResource(String resource) { - this.resource = resource; - return this; - } - - /** - * 控制策略不合规资源。 - * @return resource - */ - public String getResource() { - return resource; - } - - public void setResource(String resource) { - this.resource = resource; - } - - public ControlViolation withResourceType(String resourceType) { - this.resourceType = resourceType; - return this; - } - - /** - * 控制策略不合规资源类型。 - * @return resourceType - */ - public String getResourceType() { - return resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } - - public ControlViolation withService(String service) { - this.service = service; - return this; - } - - /** - * 云服务名称。 - * @return service - */ - public String getService() { - return service; - } - - public void setService(String service) { - this.service = service; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ControlViolation that = (ControlViolation) obj; - return Objects.equals(this.accountId, that.accountId) && Objects.equals(this.accountName, that.accountName) - && Objects.equals(this.displayName, that.displayName) && Objects.equals(this.name, that.name) - && Objects.equals(this.controlId, that.controlId) - && Objects.equals(this.parentOrganizationUnitId, that.parentOrganizationUnitId) - && Objects.equals(this.parentOrganizationUnitName, that.parentOrganizationUnitName) - && Objects.equals(this.region, that.region) && Objects.equals(this.resource, that.resource) - && Objects.equals(this.resourceType, that.resourceType) && Objects.equals(this.service, that.service); - } - - @Override - public int hashCode() { - return Objects.hash(accountId, - accountName, - displayName, - name, - controlId, - parentOrganizationUnitId, - parentOrganizationUnitName, - region, - resource, - resourceType, - service); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ControlViolation {\n"); - sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); - sb.append(" accountName: ").append(toIndentedString(accountName)).append("\n"); - sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" controlId: ").append(toIndentedString(controlId)).append("\n"); - sb.append(" parentOrganizationUnitId: ").append(toIndentedString(parentOrganizationUnitId)).append("\n"); - sb.append(" parentOrganizationUnitName: ").append(toIndentedString(parentOrganizationUnitName)).append("\n"); - sb.append(" region: ").append(toIndentedString(region)).append("\n"); - sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); - sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n"); - sb.append(" service: ").append(toIndentedString(service)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateManagedAccountRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateManagedAccountRequest.java deleted file mode 100644 index 96a63be47f..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateManagedAccountRequest.java +++ /dev/null @@ -1,256 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 CreateManagedAccountRequest { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "account_name") - - private String accountName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "account_email") - - private String accountEmail; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "phone") - - private String phone; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "identity_store_user_name") - - private String identityStoreUserName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "identity_store_email") - - private String identityStoreEmail; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "parent_organization_unit_id") - - private String parentOrganizationUnitId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "parent_organization_unit_name") - - private String parentOrganizationUnitName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "blueprint") - - private Blueprint blueprint; - - public CreateManagedAccountRequest withAccountName(String accountName) { - this.accountName = accountName; - return this; - } - - /** - * 纳管账号名。 - * @return accountName - */ - public String getAccountName() { - return accountName; - } - - public void setAccountName(String accountName) { - this.accountName = accountName; - } - - public CreateManagedAccountRequest withAccountEmail(String accountEmail) { - this.accountEmail = accountEmail; - return this; - } - - /** - * 纳管账号邮箱。 - * @return accountEmail - */ - public String getAccountEmail() { - return accountEmail; - } - - public void setAccountEmail(String accountEmail) { - this.accountEmail = accountEmail; - } - - public CreateManagedAccountRequest withPhone(String phone) { - this.phone = phone; - return this; - } - - /** - * 手机号码。 - * @return phone - */ - public String getPhone() { - return phone; - } - - public void setPhone(String phone) { - this.phone = phone; - } - - public CreateManagedAccountRequest withIdentityStoreUserName(String identityStoreUserName) { - this.identityStoreUserName = identityStoreUserName; - return this; - } - - /** - * Identity Center用户名。 - * @return identityStoreUserName - */ - public String getIdentityStoreUserName() { - return identityStoreUserName; - } - - public void setIdentityStoreUserName(String identityStoreUserName) { - this.identityStoreUserName = identityStoreUserName; - } - - public CreateManagedAccountRequest withIdentityStoreEmail(String identityStoreEmail) { - this.identityStoreEmail = identityStoreEmail; - return this; - } - - /** - * Identity Center邮箱。 - * @return identityStoreEmail - */ - public String getIdentityStoreEmail() { - return identityStoreEmail; - } - - public void setIdentityStoreEmail(String identityStoreEmail) { - this.identityStoreEmail = identityStoreEmail; - } - - public CreateManagedAccountRequest withParentOrganizationUnitId(String parentOrganizationUnitId) { - this.parentOrganizationUnitId = parentOrganizationUnitId; - return this; - } - - /** - * 父注册OU ID。 - * @return parentOrganizationUnitId - */ - public String getParentOrganizationUnitId() { - return parentOrganizationUnitId; - } - - public void setParentOrganizationUnitId(String parentOrganizationUnitId) { - this.parentOrganizationUnitId = parentOrganizationUnitId; - } - - public CreateManagedAccountRequest withParentOrganizationUnitName(String parentOrganizationUnitName) { - this.parentOrganizationUnitName = parentOrganizationUnitName; - return this; - } - - /** - * 父注册OU名称。 - * @return parentOrganizationUnitName - */ - public String getParentOrganizationUnitName() { - return parentOrganizationUnitName; - } - - public void setParentOrganizationUnitName(String parentOrganizationUnitName) { - this.parentOrganizationUnitName = parentOrganizationUnitName; - } - - public CreateManagedAccountRequest withBlueprint(Blueprint blueprint) { - this.blueprint = blueprint; - return this; - } - - public CreateManagedAccountRequest withBlueprint(Consumer blueprintSetter) { - if (this.blueprint == null) { - this.blueprint = new Blueprint(); - blueprintSetter.accept(this.blueprint); - } - - return this; - } - - /** - * Get blueprint - * @return blueprint - */ - public Blueprint getBlueprint() { - return blueprint; - } - - public void setBlueprint(Blueprint blueprint) { - this.blueprint = blueprint; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - CreateManagedAccountRequest that = (CreateManagedAccountRequest) obj; - return Objects.equals(this.accountName, that.accountName) - && Objects.equals(this.accountEmail, that.accountEmail) && Objects.equals(this.phone, that.phone) - && Objects.equals(this.identityStoreUserName, that.identityStoreUserName) - && Objects.equals(this.identityStoreEmail, that.identityStoreEmail) - && Objects.equals(this.parentOrganizationUnitId, that.parentOrganizationUnitId) - && Objects.equals(this.parentOrganizationUnitName, that.parentOrganizationUnitName) - && Objects.equals(this.blueprint, that.blueprint); - } - - @Override - public int hashCode() { - return Objects.hash(accountName, - accountEmail, - phone, - identityStoreUserName, - identityStoreEmail, - parentOrganizationUnitId, - parentOrganizationUnitName, - blueprint); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CreateManagedAccountRequest {\n"); - sb.append(" accountName: ").append(toIndentedString(accountName)).append("\n"); - sb.append(" accountEmail: ").append(toIndentedString(accountEmail)).append("\n"); - sb.append(" phone: ").append(toIndentedString(phone)).append("\n"); - sb.append(" identityStoreUserName: ").append(toIndentedString(identityStoreUserName)).append("\n"); - sb.append(" identityStoreEmail: ").append(toIndentedString(identityStoreEmail)).append("\n"); - sb.append(" parentOrganizationUnitId: ").append(toIndentedString(parentOrganizationUnitId)).append("\n"); - sb.append(" parentOrganizationUnitName: ").append(toIndentedString(parentOrganizationUnitName)).append("\n"); - sb.append(" blueprint: ").append(toIndentedString(blueprint)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateOrganizationUnit.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateOrganizationUnit.java deleted file mode 100644 index 1f59532ba4..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateOrganizationUnit.java +++ /dev/null @@ -1,273 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.time.OffsetDateTime; -import java.util.Objects; - -/** - * 注册OU的基本信息。 - */ -public class CreateOrganizationUnit { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "manage_account_id") - - private String manageAccountId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organization_unit_id") - - private String organizationUnitId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organization_unit_name") - - private String organizationUnitName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organization_unit_status") - - private String organizationUnitStatus; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organization_unit_type") - - private OrganizationalUnitType organizationUnitType; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "parent_organization_unit_id") - - private String parentOrganizationUnitId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "parent_organization_unit_name") - - private String parentOrganizationUnitName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "created_at") - - private OffsetDateTime createdAt; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "landing_zone_version") - - private String landingZoneVersion; - - public CreateOrganizationUnit withManageAccountId(String manageAccountId) { - this.manageAccountId = manageAccountId; - return this; - } - - /** - * 管理纳管账号ID。 - * @return manageAccountId - */ - public String getManageAccountId() { - return manageAccountId; - } - - public void setManageAccountId(String manageAccountId) { - this.manageAccountId = manageAccountId; - } - - public CreateOrganizationUnit withOrganizationUnitId(String organizationUnitId) { - this.organizationUnitId = organizationUnitId; - return this; - } - - /** - * 注册OU ID。 - * @return organizationUnitId - */ - public String getOrganizationUnitId() { - return organizationUnitId; - } - - public void setOrganizationUnitId(String organizationUnitId) { - this.organizationUnitId = organizationUnitId; - } - - public CreateOrganizationUnit withOrganizationUnitName(String organizationUnitName) { - this.organizationUnitName = organizationUnitName; - return this; - } - - /** - * 注册OU名称。 - * @return organizationUnitName - */ - public String getOrganizationUnitName() { - return organizationUnitName; - } - - public void setOrganizationUnitName(String organizationUnitName) { - this.organizationUnitName = organizationUnitName; - } - - public CreateOrganizationUnit withOrganizationUnitStatus(String organizationUnitStatus) { - this.organizationUnitStatus = organizationUnitStatus; - return this; - } - - /** - * 注册OU状态。 - * @return organizationUnitStatus - */ - public String getOrganizationUnitStatus() { - return organizationUnitStatus; - } - - public void setOrganizationUnitStatus(String organizationUnitStatus) { - this.organizationUnitStatus = organizationUnitStatus; - } - - public CreateOrganizationUnit withOrganizationUnitType(OrganizationalUnitType organizationUnitType) { - this.organizationUnitType = organizationUnitType; - return this; - } - - /** - * Get organizationUnitType - * @return organizationUnitType - */ - public OrganizationalUnitType getOrganizationUnitType() { - return organizationUnitType; - } - - public void setOrganizationUnitType(OrganizationalUnitType organizationUnitType) { - this.organizationUnitType = organizationUnitType; - } - - public CreateOrganizationUnit withParentOrganizationUnitId(String parentOrganizationUnitId) { - this.parentOrganizationUnitId = parentOrganizationUnitId; - return this; - } - - /** - * 父注册OU ID。 - * @return parentOrganizationUnitId - */ - public String getParentOrganizationUnitId() { - return parentOrganizationUnitId; - } - - public void setParentOrganizationUnitId(String parentOrganizationUnitId) { - this.parentOrganizationUnitId = parentOrganizationUnitId; - } - - public CreateOrganizationUnit withParentOrganizationUnitName(String parentOrganizationUnitName) { - this.parentOrganizationUnitName = parentOrganizationUnitName; - return this; - } - - /** - * 父注册OU名称。 - * @return parentOrganizationUnitName - */ - public String getParentOrganizationUnitName() { - return parentOrganizationUnitName; - } - - public void setParentOrganizationUnitName(String parentOrganizationUnitName) { - this.parentOrganizationUnitName = parentOrganizationUnitName; - } - - public CreateOrganizationUnit withCreatedAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; - return this; - } - - /** - * 组织里某个注册OU下的纳管账号被创建的时间。 - * @return createdAt - */ - public OffsetDateTime getCreatedAt() { - return createdAt; - } - - public void setCreatedAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; - } - - public CreateOrganizationUnit withLandingZoneVersion(String landingZoneVersion) { - this.landingZoneVersion = landingZoneVersion; - return this; - } - - /** - * Landing Zone版本。 - * @return landingZoneVersion - */ - public String getLandingZoneVersion() { - return landingZoneVersion; - } - - public void setLandingZoneVersion(String landingZoneVersion) { - this.landingZoneVersion = landingZoneVersion; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - CreateOrganizationUnit that = (CreateOrganizationUnit) obj; - return Objects.equals(this.manageAccountId, that.manageAccountId) - && Objects.equals(this.organizationUnitId, that.organizationUnitId) - && Objects.equals(this.organizationUnitName, that.organizationUnitName) - && Objects.equals(this.organizationUnitStatus, that.organizationUnitStatus) - && Objects.equals(this.organizationUnitType, that.organizationUnitType) - && Objects.equals(this.parentOrganizationUnitId, that.parentOrganizationUnitId) - && Objects.equals(this.parentOrganizationUnitName, that.parentOrganizationUnitName) - && Objects.equals(this.createdAt, that.createdAt) - && Objects.equals(this.landingZoneVersion, that.landingZoneVersion); - } - - @Override - public int hashCode() { - return Objects.hash(manageAccountId, - organizationUnitId, - organizationUnitName, - organizationUnitStatus, - organizationUnitType, - parentOrganizationUnitId, - parentOrganizationUnitName, - createdAt, - landingZoneVersion); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CreateOrganizationUnit {\n"); - sb.append(" manageAccountId: ").append(toIndentedString(manageAccountId)).append("\n"); - sb.append(" organizationUnitId: ").append(toIndentedString(organizationUnitId)).append("\n"); - sb.append(" organizationUnitName: ").append(toIndentedString(organizationUnitName)).append("\n"); - sb.append(" organizationUnitStatus: ").append(toIndentedString(organizationUnitStatus)).append("\n"); - sb.append(" organizationUnitType: ").append(toIndentedString(organizationUnitType)).append("\n"); - sb.append(" parentOrganizationUnitId: ").append(toIndentedString(parentOrganizationUnitId)).append("\n"); - sb.append(" parentOrganizationUnitName: ").append(toIndentedString(parentOrganizationUnitName)).append("\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append(" landingZoneVersion: ").append(toIndentedString(landingZoneVersion)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateTemplateRequestBody.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateTemplateRequestBody.java deleted file mode 100644 index 642d9bb18e..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateTemplateRequestBody.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 CreateTemplateRequestBody { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "template_name") - - private String templateName; - - /** - * 模板类型,包括预置和自定义。 - */ - public static final class TemplateTypeEnum { - - /** - * Enum PREDEFINED for value: "predefined" - */ - public static final TemplateTypeEnum PREDEFINED = new TemplateTypeEnum("predefined"); - - /** - * Enum CUSTOMIZED for value: "customized" - */ - public static final TemplateTypeEnum CUSTOMIZED = new TemplateTypeEnum("customized"); - - private static final Map STATIC_FIELDS = createStaticFields(); - - private static Map createStaticFields() { - Map map = new HashMap<>(); - map.put("predefined", PREDEFINED); - map.put("customized", CUSTOMIZED); - return Collections.unmodifiableMap(map); - } - - private String value; - - TemplateTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TemplateTypeEnum fromValue(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new TemplateTypeEnum(value)); - } - - public static TemplateTypeEnum 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 TemplateTypeEnum) { - return this.value.equals(((TemplateTypeEnum) obj).value); - } - return false; - } - - @Override - public int hashCode() { - return this.value.hashCode(); - } - } - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "template_type") - - private TemplateTypeEnum templateType; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "template_description") - - private String templateDescription; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "template_body") - - private String templateBody; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "template_file_name") - - private String templateFileName; - - public CreateTemplateRequestBody withTemplateName(String templateName) { - this.templateName = templateName; - return this; - } - - /** - * 模板名称。 - * @return templateName - */ - public String getTemplateName() { - return templateName; - } - - public void setTemplateName(String templateName) { - this.templateName = templateName; - } - - public CreateTemplateRequestBody withTemplateType(TemplateTypeEnum templateType) { - this.templateType = templateType; - return this; - } - - /** - * 模板类型,包括预置和自定义。 - * @return templateType - */ - public TemplateTypeEnum getTemplateType() { - return templateType; - } - - public void setTemplateType(TemplateTypeEnum templateType) { - this.templateType = templateType; - } - - public CreateTemplateRequestBody withTemplateDescription(String templateDescription) { - this.templateDescription = templateDescription; - return this; - } - - /** - * 模板描述。 - * @return templateDescription - */ - public String getTemplateDescription() { - return templateDescription; - } - - public void setTemplateDescription(String templateDescription) { - this.templateDescription = templateDescription; - } - - public CreateTemplateRequestBody withTemplateBody(String templateBody) { - this.templateBody = templateBody; - return this; - } - - /** - * 模板内容。 - * @return templateBody - */ - public String getTemplateBody() { - return templateBody; - } - - public void setTemplateBody(String templateBody) { - this.templateBody = templateBody; - } - - public CreateTemplateRequestBody withTemplateFileName(String templateFileName) { - this.templateFileName = templateFileName; - return this; - } - - /** - * 模板文件名。 - * @return templateFileName - */ - public String getTemplateFileName() { - return templateFileName; - } - - public void setTemplateFileName(String templateFileName) { - this.templateFileName = templateFileName; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - CreateTemplateRequestBody that = (CreateTemplateRequestBody) obj; - return Objects.equals(this.templateName, that.templateName) - && Objects.equals(this.templateType, that.templateType) - && Objects.equals(this.templateDescription, that.templateDescription) - && Objects.equals(this.templateBody, that.templateBody) - && Objects.equals(this.templateFileName, that.templateFileName); - } - - @Override - public int hashCode() { - return Objects.hash(templateName, templateType, templateDescription, templateBody, templateFileName); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CreateTemplateRequestBody {\n"); - sb.append(" templateName: ").append(toIndentedString(templateName)).append("\n"); - sb.append(" templateType: ").append(toIndentedString(templateType)).append("\n"); - sb.append(" templateDescription: ").append(toIndentedString(templateDescription)).append("\n"); - sb.append(" templateBody: ").append(toIndentedString(templateBody)).append("\n"); - sb.append(" templateFileName: ").append(toIndentedString(templateFileName)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateTemplateResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateTemplateResponse.java deleted file mode 100644 index 8a091eedf4..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/CreateTemplateResponse.java +++ /dev/null @@ -1,121 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 CreateTemplateResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "template_id") - - private String templateId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "template_version") - - private String templateVersion; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "template_name") - - private String templateName; - - public CreateTemplateResponse withTemplateId(String templateId) { - this.templateId = templateId; - return this; - } - - /** - * 模板ID。 - * @return templateId - */ - public String getTemplateId() { - return templateId; - } - - public void setTemplateId(String templateId) { - this.templateId = templateId; - } - - public CreateTemplateResponse withTemplateVersion(String templateVersion) { - this.templateVersion = templateVersion; - return this; - } - - /** - * 模板版本。 - * @return templateVersion - */ - public String getTemplateVersion() { - return templateVersion; - } - - public void setTemplateVersion(String templateVersion) { - this.templateVersion = templateVersion; - } - - public CreateTemplateResponse withTemplateName(String templateName) { - this.templateName = templateName; - return this; - } - - /** - * 模板名称。 - * @return templateName - */ - public String getTemplateName() { - return templateName; - } - - public void setTemplateName(String templateName) { - this.templateName = templateName; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - CreateTemplateResponse that = (CreateTemplateResponse) obj; - return Objects.equals(this.templateId, that.templateId) - && Objects.equals(this.templateVersion, that.templateVersion) - && Objects.equals(this.templateName, that.templateName); - } - - @Override - public int hashCode() { - return Objects.hash(templateId, templateVersion, templateName); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CreateTemplateResponse {\n"); - sb.append(" templateId: ").append(toIndentedString(templateId)).append("\n"); - sb.append(" templateVersion: ").append(toIndentedString(templateVersion)).append("\n"); - sb.append(" templateName: ").append(toIndentedString(templateName)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DeleteManagedOrganizationalUnitsRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DeleteManagedOrganizationalUnitsRequest.java deleted file mode 100644 index 1b7a1164d7..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DeleteManagedOrganizationalUnitsRequest.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * Request Object - */ -public class DeleteManagedOrganizationalUnitsRequest { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "managed_organization_unit_id") - - private String managedOrganizationUnitId; - - public DeleteManagedOrganizationalUnitsRequest withManagedOrganizationUnitId(String managedOrganizationUnitId) { - this.managedOrganizationUnitId = managedOrganizationUnitId; - return this; - } - - /** - * 注册OU ID。 - * @return managedOrganizationUnitId - */ - public String getManagedOrganizationUnitId() { - return managedOrganizationUnitId; - } - - public void setManagedOrganizationUnitId(String managedOrganizationUnitId) { - this.managedOrganizationUnitId = managedOrganizationUnitId; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - DeleteManagedOrganizationalUnitsRequest that = (DeleteManagedOrganizationalUnitsRequest) obj; - return Objects.equals(this.managedOrganizationUnitId, that.managedOrganizationUnitId); - } - - @Override - public int hashCode() { - return Objects.hash(managedOrganizationUnitId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DeleteManagedOrganizationalUnitsRequest {\n"); - sb.append(" managedOrganizationUnitId: ").append(toIndentedString(managedOrganizationUnitId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DeregisterOrganizationalUnitRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DeregisterOrganizationalUnitRequest.java deleted file mode 100644 index c5246a6c31..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DeregisterOrganizationalUnitRequest.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * Request Object - */ -public class DeregisterOrganizationalUnitRequest { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "managed_organization_unit_id") - - private String managedOrganizationUnitId; - - public DeregisterOrganizationalUnitRequest withManagedOrganizationUnitId(String managedOrganizationUnitId) { - this.managedOrganizationUnitId = managedOrganizationUnitId; - return this; - } - - /** - * 注册OU ID。 - * @return managedOrganizationUnitId - */ - public String getManagedOrganizationUnitId() { - return managedOrganizationUnitId; - } - - public void setManagedOrganizationUnitId(String managedOrganizationUnitId) { - this.managedOrganizationUnitId = managedOrganizationUnitId; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - DeregisterOrganizationalUnitRequest that = (DeregisterOrganizationalUnitRequest) obj; - return Objects.equals(this.managedOrganizationUnitId, that.managedOrganizationUnitId); - } - - @Override - public int hashCode() { - return Objects.hash(managedOrganizationUnitId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DeregisterOrganizationalUnitRequest {\n"); - sb.append(" managedOrganizationUnitId: ").append(toIndentedString(managedOrganizationUnitId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DeregisterOrganizationalUnitResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DeregisterOrganizationalUnitResponse.java deleted file mode 100644 index e91f7029b4..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DeregisterOrganizationalUnitResponse.java +++ /dev/null @@ -1,76 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 DeregisterOrganizationalUnitResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organizational_unit_operation_id") - - private String organizationalUnitOperationId; - - public DeregisterOrganizationalUnitResponse withOrganizationalUnitOperationId( - String organizationalUnitOperationId) { - this.organizationalUnitOperationId = organizationalUnitOperationId; - return this; - } - - /** - * 异步接口的操作ID。 - * @return organizationalUnitOperationId - */ - public String getOrganizationalUnitOperationId() { - return organizationalUnitOperationId; - } - - public void setOrganizationalUnitOperationId(String organizationalUnitOperationId) { - this.organizationalUnitOperationId = organizationalUnitOperationId; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - DeregisterOrganizationalUnitResponse that = (DeregisterOrganizationalUnitResponse) obj; - return Objects.equals(this.organizationalUnitOperationId, that.organizationalUnitOperationId); - } - - @Override - public int hashCode() { - return Objects.hash(organizationalUnitOperationId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DeregisterOrganizationalUnitResponse {\n"); - sb.append(" organizationalUnitOperationId: ") - .append(toIndentedString(organizationalUnitOperationId)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DriftDetail.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DriftDetail.java deleted file mode 100644 index 2bf941e8a1..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DriftDetail.java +++ /dev/null @@ -1,192 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * 漂移详细信息。 - */ -public class DriftDetail { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "manage_account_id") - - private String manageAccountId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "drift_type") - - private String driftType; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "drift_target_id") - - private String driftTargetId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "drift_target_type") - - private String driftTargetType; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "drift_message") - - private String driftMessage; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "parent_organization_unit_id") - - private String parentOrganizationUnitId; - - public DriftDetail withManageAccountId(String manageAccountId) { - this.manageAccountId = manageAccountId; - return this; - } - - /** - * 管理纳管账号ID。 - * @return manageAccountId - */ - public String getManageAccountId() { - return manageAccountId; - } - - public void setManageAccountId(String manageAccountId) { - this.manageAccountId = manageAccountId; - } - - public DriftDetail withDriftType(String driftType) { - this.driftType = driftType; - return this; - } - - /** - * 漂移类型。 - * @return driftType - */ - public String getDriftType() { - return driftType; - } - - public void setDriftType(String driftType) { - this.driftType = driftType; - } - - public DriftDetail withDriftTargetId(String driftTargetId) { - this.driftTargetId = driftTargetId; - return this; - } - - /** - * 漂移发生的纳管账号ID或注册OU ID。 - * @return driftTargetId - */ - public String getDriftTargetId() { - return driftTargetId; - } - - public void setDriftTargetId(String driftTargetId) { - this.driftTargetId = driftTargetId; - } - - public DriftDetail withDriftTargetType(String driftTargetType) { - this.driftTargetType = driftTargetType; - return this; - } - - /** - * 漂移目标类型,类型有accountId和policyId。 - * @return driftTargetType - */ - public String getDriftTargetType() { - return driftTargetType; - } - - public void setDriftTargetType(String driftTargetType) { - this.driftTargetType = driftTargetType; - } - - public DriftDetail withDriftMessage(String driftMessage) { - this.driftMessage = driftMessage; - return this; - } - - /** - * 漂移信息。 - * @return driftMessage - */ - public String getDriftMessage() { - return driftMessage; - } - - public void setDriftMessage(String driftMessage) { - this.driftMessage = driftMessage; - } - - public DriftDetail withParentOrganizationUnitId(String parentOrganizationUnitId) { - this.parentOrganizationUnitId = parentOrganizationUnitId; - return this; - } - - /** - * 父注册OU ID。 - * @return parentOrganizationUnitId - */ - public String getParentOrganizationUnitId() { - return parentOrganizationUnitId; - } - - public void setParentOrganizationUnitId(String parentOrganizationUnitId) { - this.parentOrganizationUnitId = parentOrganizationUnitId; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - DriftDetail that = (DriftDetail) obj; - return Objects.equals(this.manageAccountId, that.manageAccountId) - && Objects.equals(this.driftType, that.driftType) && Objects.equals(this.driftTargetId, that.driftTargetId) - && Objects.equals(this.driftTargetType, that.driftTargetType) - && Objects.equals(this.driftMessage, that.driftMessage) - && Objects.equals(this.parentOrganizationUnitId, that.parentOrganizationUnitId); - } - - @Override - public int hashCode() { - return Objects - .hash(manageAccountId, driftType, driftTargetId, driftTargetType, driftMessage, parentOrganizationUnitId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DriftDetail {\n"); - sb.append(" manageAccountId: ").append(toIndentedString(manageAccountId)).append("\n"); - sb.append(" driftType: ").append(toIndentedString(driftType)).append("\n"); - sb.append(" driftTargetId: ").append(toIndentedString(driftTargetId)).append("\n"); - sb.append(" driftTargetType: ").append(toIndentedString(driftTargetType)).append("\n"); - sb.append(" driftMessage: ").append(toIndentedString(driftMessage)).append("\n"); - sb.append(" parentOrganizationUnitId: ").append(toIndentedString(parentOrganizationUnitId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/EnabledControl.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/EnabledControl.java deleted file mode 100644 index 38072f83b4..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/EnabledControl.java +++ /dev/null @@ -1,245 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * 开启控制策略信息。 - */ -public class EnabledControl { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "manage_account_id") - - private String manageAccountId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "control_identifier") - - private String controlIdentifier; - - @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 = "control_objective") - - private String controlObjective; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "behavior") - - private String behavior; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "owner") - - private String owner; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "regional_preference") - - private String regionalPreference; - - public EnabledControl withManageAccountId(String manageAccountId) { - this.manageAccountId = manageAccountId; - return this; - } - - /** - * 管理纳管账号ID。 - * @return manageAccountId - */ - public String getManageAccountId() { - return manageAccountId; - } - - public void setManageAccountId(String manageAccountId) { - this.manageAccountId = manageAccountId; - } - - public EnabledControl withControlIdentifier(String controlIdentifier) { - this.controlIdentifier = controlIdentifier; - return this; - } - - /** - * 控制策略标识。 - * @return controlIdentifier - */ - public String getControlIdentifier() { - return controlIdentifier; - } - - public void setControlIdentifier(String controlIdentifier) { - this.controlIdentifier = controlIdentifier; - } - - public EnabledControl withName(String name) { - this.name = name; - return this; - } - - /** - * 控制策略名称。 - * @return name - */ - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public EnabledControl withDescription(String description) { - this.description = description; - return this; - } - - /** - * 控制策略描述。 - * @return description - */ - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public EnabledControl withControlObjective(String controlObjective) { - this.controlObjective = controlObjective; - return this; - } - - /** - * 控制策略目标。 - * @return controlObjective - */ - public String getControlObjective() { - return controlObjective; - } - - public void setControlObjective(String controlObjective) { - this.controlObjective = controlObjective; - } - - public EnabledControl withBehavior(String behavior) { - this.behavior = behavior; - return this; - } - - /** - * 控制策略类型。包括主动性控制策略Proactive、检测性控制策略Detective、预防性控制策略Preventive。 - * @return behavior - */ - public String getBehavior() { - return behavior; - } - - public void setBehavior(String behavior) { - this.behavior = behavior; - } - - public EnabledControl withOwner(String owner) { - this.owner = owner; - return this; - } - - /** - * 纳管账号的创建来源,包括CUSTOM和RGC。 - * @return owner - */ - public String getOwner() { - return owner; - } - - public void setOwner(String owner) { - this.owner = owner; - } - - public EnabledControl withRegionalPreference(String regionalPreference) { - this.regionalPreference = regionalPreference; - return this; - } - - /** - * 区域选项,取值有两种分别是:区域的regional和全局的global。 - * @return regionalPreference - */ - public String getRegionalPreference() { - return regionalPreference; - } - - public void setRegionalPreference(String regionalPreference) { - this.regionalPreference = regionalPreference; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - EnabledControl that = (EnabledControl) obj; - return Objects.equals(this.manageAccountId, that.manageAccountId) - && Objects.equals(this.controlIdentifier, that.controlIdentifier) && Objects.equals(this.name, that.name) - && Objects.equals(this.description, that.description) - && Objects.equals(this.controlObjective, that.controlObjective) - && Objects.equals(this.behavior, that.behavior) && Objects.equals(this.owner, that.owner) - && Objects.equals(this.regionalPreference, that.regionalPreference); - } - - @Override - public int hashCode() { - return Objects.hash(manageAccountId, - controlIdentifier, - name, - description, - controlObjective, - behavior, - owner, - regionalPreference); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EnabledControl {\n"); - sb.append(" manageAccountId: ").append(toIndentedString(manageAccountId)).append("\n"); - sb.append(" controlIdentifier: ").append(toIndentedString(controlIdentifier)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" controlObjective: ").append(toIndentedString(controlObjective)).append("\n"); - sb.append(" behavior: ").append(toIndentedString(behavior)).append("\n"); - sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); - sb.append(" regionalPreference: ").append(toIndentedString(regionalPreference)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/EnrollAccountRequestBody.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/EnrollAccountRequestBody.java deleted file mode 100644 index 8a28774ee4..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/EnrollAccountRequestBody.java +++ /dev/null @@ -1,106 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 EnrollAccountRequestBody { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "parent_organization_unit_id") - - private String parentOrganizationUnitId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "blueprint") - - private Blueprint blueprint; - - public EnrollAccountRequestBody withParentOrganizationUnitId(String parentOrganizationUnitId) { - this.parentOrganizationUnitId = parentOrganizationUnitId; - return this; - } - - /** - * 注册OU 标识。 - * @return parentOrganizationUnitId - */ - public String getParentOrganizationUnitId() { - return parentOrganizationUnitId; - } - - public void setParentOrganizationUnitId(String parentOrganizationUnitId) { - this.parentOrganizationUnitId = parentOrganizationUnitId; - } - - public EnrollAccountRequestBody withBlueprint(Blueprint blueprint) { - this.blueprint = blueprint; - return this; - } - - public EnrollAccountRequestBody withBlueprint(Consumer blueprintSetter) { - if (this.blueprint == null) { - this.blueprint = new Blueprint(); - blueprintSetter.accept(this.blueprint); - } - - return this; - } - - /** - * Get blueprint - * @return blueprint - */ - public Blueprint getBlueprint() { - return blueprint; - } - - public void setBlueprint(Blueprint blueprint) { - this.blueprint = blueprint; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - EnrollAccountRequestBody that = (EnrollAccountRequestBody) obj; - return Objects.equals(this.parentOrganizationUnitId, that.parentOrganizationUnitId) - && Objects.equals(this.blueprint, that.blueprint); - } - - @Override - public int hashCode() { - return Objects.hash(parentOrganizationUnitId, blueprint); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EnrollAccountRequestBody {\n"); - sb.append(" parentOrganizationUnitId: ").append(toIndentedString(parentOrganizationUnitId)).append("\n"); - sb.append(" blueprint: ").append(toIndentedString(blueprint)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/LandingZoneErrorMessage.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/LandingZoneErrorMessage.java deleted file mode 100644 index 3a1e26b9e2..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/LandingZoneErrorMessage.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * Landing Zone错误信息。 - */ -public class LandingZoneErrorMessage { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "level") - - private String level; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "message") - - private String message; - - public LandingZoneErrorMessage withLevel(String level) { - this.level = level; - return this; - } - - /** - * Landing Zone的错误级别。 - * @return level - */ - public String getLevel() { - return level; - } - - public void setLevel(String level) { - this.level = level; - } - - public LandingZoneErrorMessage withMessage(String message) { - this.message = message; - return this; - } - - /** - * Landing Zone详细的错误信息。 - * @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; - } - LandingZoneErrorMessage that = (LandingZoneErrorMessage) obj; - return Objects.equals(this.level, that.level) && Objects.equals(this.message, that.message); - } - - @Override - public int hashCode() { - return Objects.hash(level, message); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LandingZoneErrorMessage {\n"); - sb.append(" level: ").append(toIndentedString(level)).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/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListConfigRuleComplianceRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListConfigRuleComplianceRequest.java deleted file mode 100644 index 65967a186b..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListConfigRuleComplianceRequest.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * Request Object - */ -public class ListConfigRuleComplianceRequest { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "managed_account_id") - - private String managedAccountId; - - public ListConfigRuleComplianceRequest withManagedAccountId(String managedAccountId) { - this.managedAccountId = managedAccountId; - return this; - } - - /** - * 纳管账号ID。 - * @return managedAccountId - */ - public String getManagedAccountId() { - return managedAccountId; - } - - public void setManagedAccountId(String managedAccountId) { - this.managedAccountId = managedAccountId; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ListConfigRuleComplianceRequest that = (ListConfigRuleComplianceRequest) obj; - return Objects.equals(this.managedAccountId, that.managedAccountId); - } - - @Override - public int hashCode() { - return Objects.hash(managedAccountId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListConfigRuleComplianceRequest {\n"); - sb.append(" managedAccountId: ").append(toIndentedString(managedAccountId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListConfigRuleComplianceResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListConfigRuleComplianceResponse.java deleted file mode 100644 index 8b99f640cd..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListConfigRuleComplianceResponse.java +++ /dev/null @@ -1,119 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 ListConfigRuleComplianceResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "account_id") - - private String accountId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "config_rule_compliances") - - private List configRuleCompliances = null; - - public ListConfigRuleComplianceResponse withAccountId(String accountId) { - this.accountId = accountId; - return this; - } - - /** - * 纳管账号ID - * @return accountId - */ - public String getAccountId() { - return accountId; - } - - public void setAccountId(String accountId) { - this.accountId = accountId; - } - - public ListConfigRuleComplianceResponse withConfigRuleCompliances( - List configRuleCompliances) { - this.configRuleCompliances = configRuleCompliances; - return this; - } - - public ListConfigRuleComplianceResponse addConfigRuleCompliancesItem( - ConfigRuleCompliance configRuleCompliancesItem) { - if (this.configRuleCompliances == null) { - this.configRuleCompliances = new ArrayList<>(); - } - this.configRuleCompliances.add(configRuleCompliancesItem); - return this; - } - - public ListConfigRuleComplianceResponse withConfigRuleCompliances( - Consumer> configRuleCompliancesSetter) { - if (this.configRuleCompliances == null) { - this.configRuleCompliances = new ArrayList<>(); - } - configRuleCompliancesSetter.accept(this.configRuleCompliances); - return this; - } - - /** - * Config规则合规性信息 - * @return configRuleCompliances - */ - public List getConfigRuleCompliances() { - return configRuleCompliances; - } - - public void setConfigRuleCompliances(List configRuleCompliances) { - this.configRuleCompliances = configRuleCompliances; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ListConfigRuleComplianceResponse that = (ListConfigRuleComplianceResponse) obj; - return Objects.equals(this.accountId, that.accountId) - && Objects.equals(this.configRuleCompliances, that.configRuleCompliances); - } - - @Override - public int hashCode() { - return Objects.hash(accountId, configRuleCompliances); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListConfigRuleComplianceResponse {\n"); - sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); - sb.append(" configRuleCompliances: ").append(toIndentedString(configRuleCompliances)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlViolationsRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlViolationsRequest.java deleted file mode 100644 index 9f16b12b61..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlViolationsRequest.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * Request Object - */ -public class ListControlViolationsRequest { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "account_id") - - private String accountId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organization_unit_id") - - private String organizationUnitId; - - public ListControlViolationsRequest withAccountId(String accountId) { - this.accountId = accountId; - return this; - } - - /** - * 账户ID。 - * @return accountId - */ - public String getAccountId() { - return accountId; - } - - public void setAccountId(String accountId) { - this.accountId = accountId; - } - - public ListControlViolationsRequest withOrganizationUnitId(String organizationUnitId) { - this.organizationUnitId = organizationUnitId; - return this; - } - - /** - * 注册OU ID。 - * @return organizationUnitId - */ - public String getOrganizationUnitId() { - return organizationUnitId; - } - - public void setOrganizationUnitId(String organizationUnitId) { - this.organizationUnitId = organizationUnitId; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ListControlViolationsRequest that = (ListControlViolationsRequest) obj; - return Objects.equals(this.accountId, that.accountId) - && Objects.equals(this.organizationUnitId, that.organizationUnitId); - } - - @Override - public int hashCode() { - return Objects.hash(accountId, organizationUnitId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListControlViolationsRequest {\n"); - sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); - sb.append(" organizationUnitId: ").append(toIndentedString(organizationUnitId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlViolationsResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlViolationsResponse.java deleted file mode 100644 index e7f013163f..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlViolationsResponse.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 ListControlViolationsResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "control_violations") - - private List controlViolations = null; - - public ListControlViolationsResponse withControlViolations(List controlViolations) { - this.controlViolations = controlViolations; - return this; - } - - public ListControlViolationsResponse addControlViolationsItem(ControlViolation controlViolationsItem) { - if (this.controlViolations == null) { - this.controlViolations = new ArrayList<>(); - } - this.controlViolations.add(controlViolationsItem); - return this; - } - - public ListControlViolationsResponse withControlViolations( - Consumer> controlViolationsSetter) { - if (this.controlViolations == null) { - this.controlViolations = new ArrayList<>(); - } - controlViolationsSetter.accept(this.controlViolations); - return this; - } - - /** - * 控制策略合规性。 - * @return controlViolations - */ - public List getControlViolations() { - return controlViolations; - } - - public void setControlViolations(List controlViolations) { - this.controlViolations = controlViolations; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ListControlViolationsResponse that = (ListControlViolationsResponse) obj; - return Objects.equals(this.controlViolations, that.controlViolations); - } - - @Override - public int hashCode() { - return Objects.hash(controlViolations); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListControlViolationsResponse {\n"); - sb.append(" controlViolations: ").append(toIndentedString(controlViolations)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsForAccountRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsForAccountRequest.java deleted file mode 100644 index 1bdcb6bf89..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsForAccountRequest.java +++ /dev/null @@ -1,121 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * Request Object - */ -public class ListControlsForAccountRequest { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "managed_account_id") - - private String managedAccountId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "limit") - - private Integer limit; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "marker") - - private String marker; - - public ListControlsForAccountRequest withManagedAccountId(String managedAccountId) { - this.managedAccountId = managedAccountId; - return this; - } - - /** - * 纳管账号ID。 - * @return managedAccountId - */ - public String getManagedAccountId() { - return managedAccountId; - } - - public void setManagedAccountId(String managedAccountId) { - this.managedAccountId = managedAccountId; - } - - public ListControlsForAccountRequest 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 ListControlsForAccountRequest withMarker(String marker) { - this.marker = marker; - return this; - } - - /** - * 页面标记。 - * @return marker - */ - public String getMarker() { - return marker; - } - - public void setMarker(String marker) { - this.marker = marker; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ListControlsForAccountRequest that = (ListControlsForAccountRequest) obj; - return Objects.equals(this.managedAccountId, that.managedAccountId) && Objects.equals(this.limit, that.limit) - && Objects.equals(this.marker, that.marker); - } - - @Override - public int hashCode() { - return Objects.hash(managedAccountId, limit, marker); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListControlsForAccountRequest {\n"); - sb.append(" managedAccountId: ").append(toIndentedString(managedAccountId)).append("\n"); - sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); - sb.append(" marker: ").append(toIndentedString(marker)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsForAccountResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsForAccountResponse.java deleted file mode 100644 index dfe2792c4a..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsForAccountResponse.java +++ /dev/null @@ -1,148 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 ListControlsForAccountResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "control_summaries") - - private List controlSummaries = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "state") - - private String state; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "page_info") - - private PageInfoDto pageInfo; - - public ListControlsForAccountResponse withControlSummaries(List controlSummaries) { - this.controlSummaries = controlSummaries; - return this; - } - - public ListControlsForAccountResponse addControlSummariesItem(TargetControl controlSummariesItem) { - if (this.controlSummaries == null) { - this.controlSummaries = new ArrayList<>(); - } - this.controlSummaries.add(controlSummariesItem); - return this; - } - - public ListControlsForAccountResponse withControlSummaries(Consumer> controlSummariesSetter) { - if (this.controlSummaries == null) { - this.controlSummaries = new ArrayList<>(); - } - controlSummariesSetter.accept(this.controlSummaries); - return this; - } - - /** - * 治理策略概要。 - * @return controlSummaries - */ - public List getControlSummaries() { - return controlSummaries; - } - - public void setControlSummaries(List controlSummaries) { - this.controlSummaries = controlSummaries; - } - - public ListControlsForAccountResponse withState(String state) { - this.state = state; - return this; - } - - /** - * 控制策略启用状态。 - * @return state - */ - public String getState() { - return state; - } - - public void setState(String state) { - this.state = state; - } - - public ListControlsForAccountResponse withPageInfo(PageInfoDto pageInfo) { - this.pageInfo = pageInfo; - return this; - } - - public ListControlsForAccountResponse withPageInfo(Consumer pageInfoSetter) { - if (this.pageInfo == null) { - this.pageInfo = new PageInfoDto(); - pageInfoSetter.accept(this.pageInfo); - } - - return this; - } - - /** - * Get pageInfo - * @return pageInfo - */ - public PageInfoDto getPageInfo() { - return pageInfo; - } - - public void setPageInfo(PageInfoDto 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; - } - ListControlsForAccountResponse that = (ListControlsForAccountResponse) obj; - return Objects.equals(this.controlSummaries, that.controlSummaries) && Objects.equals(this.state, that.state) - && Objects.equals(this.pageInfo, that.pageInfo); - } - - @Override - public int hashCode() { - return Objects.hash(controlSummaries, state, pageInfo); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListControlsForAccountResponse {\n"); - sb.append(" controlSummaries: ").append(toIndentedString(controlSummaries)).append("\n"); - sb.append(" state: ").append(toIndentedString(state)).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/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsRequest.java deleted file mode 100644 index 83f06cfa34..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsRequest.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * Request Object - */ -public class ListControlsRequest { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "limit") - - private Integer limit; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "marker") - - private String marker; - - public ListControlsRequest 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 ListControlsRequest withMarker(String marker) { - this.marker = marker; - return this; - } - - /** - * 页面标记。 - * @return marker - */ - public String getMarker() { - return marker; - } - - public void setMarker(String marker) { - this.marker = marker; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ListControlsRequest that = (ListControlsRequest) obj; - return Objects.equals(this.limit, that.limit) && Objects.equals(this.marker, that.marker); - } - - @Override - public int hashCode() { - return Objects.hash(limit, marker); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListControlsRequest {\n"); - sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); - sb.append(" marker: ").append(toIndentedString(marker)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsResponse.java deleted file mode 100644 index 18af503440..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsResponse.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 ListControlsResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "controls") - - private List controls = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "page_info") - - private PageInfoDto pageInfo; - - public ListControlsResponse withControls(List controls) { - this.controls = controls; - return this; - } - - public ListControlsResponse addControlsItem(Control controlsItem) { - if (this.controls == null) { - this.controls = new ArrayList<>(); - } - this.controls.add(controlsItem); - return this; - } - - public ListControlsResponse withControls(Consumer> controlsSetter) { - if (this.controls == null) { - this.controls = new ArrayList<>(); - } - controlsSetter.accept(this.controls); - return this; - } - - /** - * 控制策略信息。 - * @return controls - */ - public List getControls() { - return controls; - } - - public void setControls(List controls) { - this.controls = controls; - } - - public ListControlsResponse withPageInfo(PageInfoDto pageInfo) { - this.pageInfo = pageInfo; - return this; - } - - public ListControlsResponse withPageInfo(Consumer pageInfoSetter) { - if (this.pageInfo == null) { - this.pageInfo = new PageInfoDto(); - pageInfoSetter.accept(this.pageInfo); - } - - return this; - } - - /** - * Get pageInfo - * @return pageInfo - */ - public PageInfoDto getPageInfo() { - return pageInfo; - } - - public void setPageInfo(PageInfoDto 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; - } - ListControlsResponse that = (ListControlsResponse) obj; - return Objects.equals(this.controls, that.controls) && Objects.equals(this.pageInfo, that.pageInfo); - } - - @Override - public int hashCode() { - return Objects.hash(controls, pageInfo); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListControlsResponse {\n"); - sb.append(" controls: ").append(toIndentedString(controls)).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/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListDriftDetailsRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListDriftDetailsRequest.java deleted file mode 100644 index 965569c4f0..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListDriftDetailsRequest.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import java.util.Objects; - -/** - * Request Object - */ -public class ListDriftDetailsRequest { - - @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 ListDriftDetailsRequest {\n"); - sb.append("}"); - return sb.toString(); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListDriftDetailsResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListDriftDetailsResponse.java deleted file mode 100644 index e728c0dfa6..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListDriftDetailsResponse.java +++ /dev/null @@ -1,92 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 ListDriftDetailsResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "drift_details") - - private List driftDetails = null; - - public ListDriftDetailsResponse withDriftDetails(List driftDetails) { - this.driftDetails = driftDetails; - return this; - } - - public ListDriftDetailsResponse addDriftDetailsItem(DriftDetail driftDetailsItem) { - if (this.driftDetails == null) { - this.driftDetails = new ArrayList<>(); - } - this.driftDetails.add(driftDetailsItem); - return this; - } - - public ListDriftDetailsResponse withDriftDetails(Consumer> driftDetailsSetter) { - if (this.driftDetails == null) { - this.driftDetails = new ArrayList<>(); - } - driftDetailsSetter.accept(this.driftDetails); - return this; - } - - /** - * 漂移详细信息。 - * @return driftDetails - */ - public List getDriftDetails() { - return driftDetails; - } - - public void setDriftDetails(List driftDetails) { - this.driftDetails = driftDetails; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ListDriftDetailsResponse that = (ListDriftDetailsResponse) obj; - return Objects.equals(this.driftDetails, that.driftDetails); - } - - @Override - public int hashCode() { - return Objects.hash(driftDetails); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListDriftDetailsResponse {\n"); - sb.append(" driftDetails: ").append(toIndentedString(driftDetails)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListEnabledControlsResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListEnabledControlsResponse.java deleted file mode 100644 index 71bc17fdcd..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListEnabledControlsResponse.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 ListEnabledControlsResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "enabled_controls") - - private List enabledControls = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "page_info") - - private PageInfoDto pageInfo; - - public ListEnabledControlsResponse withEnabledControls(List enabledControls) { - this.enabledControls = enabledControls; - return this; - } - - public ListEnabledControlsResponse addEnabledControlsItem(EnabledControl enabledControlsItem) { - if (this.enabledControls == null) { - this.enabledControls = new ArrayList<>(); - } - this.enabledControls.add(enabledControlsItem); - return this; - } - - public ListEnabledControlsResponse withEnabledControls(Consumer> enabledControlsSetter) { - if (this.enabledControls == null) { - this.enabledControls = new ArrayList<>(); - } - enabledControlsSetter.accept(this.enabledControls); - return this; - } - - /** - * 开启控制策略信息。 - * @return enabledControls - */ - public List getEnabledControls() { - return enabledControls; - } - - public void setEnabledControls(List enabledControls) { - this.enabledControls = enabledControls; - } - - public ListEnabledControlsResponse withPageInfo(PageInfoDto pageInfo) { - this.pageInfo = pageInfo; - return this; - } - - public ListEnabledControlsResponse withPageInfo(Consumer pageInfoSetter) { - if (this.pageInfo == null) { - this.pageInfo = new PageInfoDto(); - pageInfoSetter.accept(this.pageInfo); - } - - return this; - } - - /** - * Get pageInfo - * @return pageInfo - */ - public PageInfoDto getPageInfo() { - return pageInfo; - } - - public void setPageInfo(PageInfoDto 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; - } - ListEnabledControlsResponse that = (ListEnabledControlsResponse) obj; - return Objects.equals(this.enabledControls, that.enabledControls) - && Objects.equals(this.pageInfo, that.pageInfo); - } - - @Override - public int hashCode() { - return Objects.hash(enabledControls, pageInfo); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListEnabledControlsResponse {\n"); - sb.append(" enabledControls: ").append(toIndentedString(enabledControls)).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/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListManagedAccountsForParentRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListManagedAccountsForParentRequest.java deleted file mode 100644 index f691ac6c84..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListManagedAccountsForParentRequest.java +++ /dev/null @@ -1,121 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * Request Object - */ -public class ListManagedAccountsForParentRequest { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "managed_organization_unit_id") - - private String managedOrganizationUnitId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "limit") - - private Integer limit; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "marker") - - private String marker; - - public ListManagedAccountsForParentRequest withManagedOrganizationUnitId(String managedOrganizationUnitId) { - this.managedOrganizationUnitId = managedOrganizationUnitId; - return this; - } - - /** - * 注册OU ID。 - * @return managedOrganizationUnitId - */ - public String getManagedOrganizationUnitId() { - return managedOrganizationUnitId; - } - - public void setManagedOrganizationUnitId(String managedOrganizationUnitId) { - this.managedOrganizationUnitId = managedOrganizationUnitId; - } - - public ListManagedAccountsForParentRequest 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 ListManagedAccountsForParentRequest withMarker(String marker) { - this.marker = marker; - return this; - } - - /** - * 页面标记。 - * @return marker - */ - public String getMarker() { - return marker; - } - - public void setMarker(String marker) { - this.marker = marker; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ListManagedAccountsForParentRequest that = (ListManagedAccountsForParentRequest) obj; - return Objects.equals(this.managedOrganizationUnitId, that.managedOrganizationUnitId) - && Objects.equals(this.limit, that.limit) && Objects.equals(this.marker, that.marker); - } - - @Override - public int hashCode() { - return Objects.hash(managedOrganizationUnitId, limit, marker); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListManagedAccountsForParentRequest {\n"); - sb.append(" managedOrganizationUnitId: ").append(toIndentedString(managedOrganizationUnitId)).append("\n"); - sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); - sb.append(" marker: ").append(toIndentedString(marker)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListManagedAccountsForParentResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListManagedAccountsForParentResponse.java deleted file mode 100644 index 8920079c19..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListManagedAccountsForParentResponse.java +++ /dev/null @@ -1,126 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 ListManagedAccountsForParentResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "managed_accounts") - - private List managedAccounts = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "page_info") - - private PageInfoDto pageInfo; - - public ListManagedAccountsForParentResponse withManagedAccounts(List managedAccounts) { - this.managedAccounts = managedAccounts; - return this; - } - - public ListManagedAccountsForParentResponse addManagedAccountsItem(ManagedAccount managedAccountsItem) { - if (this.managedAccounts == null) { - this.managedAccounts = new ArrayList<>(); - } - this.managedAccounts.add(managedAccountsItem); - return this; - } - - public ListManagedAccountsForParentResponse withManagedAccounts( - Consumer> managedAccountsSetter) { - if (this.managedAccounts == null) { - this.managedAccounts = new ArrayList<>(); - } - managedAccountsSetter.accept(this.managedAccounts); - return this; - } - - /** - * 纳管的账号信息。 - * @return managedAccounts - */ - public List getManagedAccounts() { - return managedAccounts; - } - - public void setManagedAccounts(List managedAccounts) { - this.managedAccounts = managedAccounts; - } - - public ListManagedAccountsForParentResponse withPageInfo(PageInfoDto pageInfo) { - this.pageInfo = pageInfo; - return this; - } - - public ListManagedAccountsForParentResponse withPageInfo(Consumer pageInfoSetter) { - if (this.pageInfo == null) { - this.pageInfo = new PageInfoDto(); - pageInfoSetter.accept(this.pageInfo); - } - - return this; - } - - /** - * Get pageInfo - * @return pageInfo - */ - public PageInfoDto getPageInfo() { - return pageInfo; - } - - public void setPageInfo(PageInfoDto 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; - } - ListManagedAccountsForParentResponse that = (ListManagedAccountsForParentResponse) obj; - return Objects.equals(this.managedAccounts, that.managedAccounts) - && Objects.equals(this.pageInfo, that.pageInfo); - } - - @Override - public int hashCode() { - return Objects.hash(managedAccounts, pageInfo); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListManagedAccountsForParentResponse {\n"); - sb.append(" managedAccounts: ").append(toIndentedString(managedAccounts)).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/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListManagedAccountsResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListManagedAccountsResponse.java deleted file mode 100644 index 053f413c17..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListManagedAccountsResponse.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 ListManagedAccountsResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "managed_accounts") - - private List managedAccounts = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "page_info") - - private PageInfoDto pageInfo; - - public ListManagedAccountsResponse withManagedAccounts(List managedAccounts) { - this.managedAccounts = managedAccounts; - return this; - } - - public ListManagedAccountsResponse addManagedAccountsItem(ManagedAccount managedAccountsItem) { - if (this.managedAccounts == null) { - this.managedAccounts = new ArrayList<>(); - } - this.managedAccounts.add(managedAccountsItem); - return this; - } - - public ListManagedAccountsResponse withManagedAccounts(Consumer> managedAccountsSetter) { - if (this.managedAccounts == null) { - this.managedAccounts = new ArrayList<>(); - } - managedAccountsSetter.accept(this.managedAccounts); - return this; - } - - /** - * 纳管的账号信息。 - * @return managedAccounts - */ - public List getManagedAccounts() { - return managedAccounts; - } - - public void setManagedAccounts(List managedAccounts) { - this.managedAccounts = managedAccounts; - } - - public ListManagedAccountsResponse withPageInfo(PageInfoDto pageInfo) { - this.pageInfo = pageInfo; - return this; - } - - public ListManagedAccountsResponse withPageInfo(Consumer pageInfoSetter) { - if (this.pageInfo == null) { - this.pageInfo = new PageInfoDto(); - pageInfoSetter.accept(this.pageInfo); - } - - return this; - } - - /** - * Get pageInfo - * @return pageInfo - */ - public PageInfoDto getPageInfo() { - return pageInfo; - } - - public void setPageInfo(PageInfoDto 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; - } - ListManagedAccountsResponse that = (ListManagedAccountsResponse) obj; - return Objects.equals(this.managedAccounts, that.managedAccounts) - && Objects.equals(this.pageInfo, that.pageInfo); - } - - @Override - public int hashCode() { - return Objects.hash(managedAccounts, pageInfo); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListManagedAccountsResponse {\n"); - sb.append(" managedAccounts: ").append(toIndentedString(managedAccounts)).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/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListManagedOrganizationalUnitsRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListManagedOrganizationalUnitsRequest.java deleted file mode 100644 index 7993793db4..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListManagedOrganizationalUnitsRequest.java +++ /dev/null @@ -1,121 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * Request Object - */ -public class ListManagedOrganizationalUnitsRequest { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "control_id") - - private String controlId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "limit") - - private Integer limit; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "marker") - - private String marker; - - public ListManagedOrganizationalUnitsRequest withControlId(String controlId) { - this.controlId = controlId; - return this; - } - - /** - * 启用的控制策略信息。 - * @return controlId - */ - public String getControlId() { - return controlId; - } - - public void setControlId(String controlId) { - this.controlId = controlId; - } - - public ListManagedOrganizationalUnitsRequest 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 ListManagedOrganizationalUnitsRequest withMarker(String marker) { - this.marker = marker; - return this; - } - - /** - * 页面标记。 - * @return marker - */ - public String getMarker() { - return marker; - } - - public void setMarker(String marker) { - this.marker = marker; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ListManagedOrganizationalUnitsRequest that = (ListManagedOrganizationalUnitsRequest) obj; - return Objects.equals(this.controlId, that.controlId) && Objects.equals(this.limit, that.limit) - && Objects.equals(this.marker, that.marker); - } - - @Override - public int hashCode() { - return Objects.hash(controlId, limit, marker); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListManagedOrganizationalUnitsRequest {\n"); - sb.append(" controlId: ").append(toIndentedString(controlId)).append("\n"); - sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); - sb.append(" marker: ").append(toIndentedString(marker)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListManagedOrganizationalUnitsResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListManagedOrganizationalUnitsResponse.java deleted file mode 100644 index 0617c2f0c1..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListManagedOrganizationalUnitsResponse.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 ListManagedOrganizationalUnitsResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "managed_organization_units") - - private List managedOrganizationUnits = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "page_info") - - private PageInfoDto pageInfo; - - public ListManagedOrganizationalUnitsResponse withManagedOrganizationUnits( - List managedOrganizationUnits) { - this.managedOrganizationUnits = managedOrganizationUnits; - return this; - } - - public ListManagedOrganizationalUnitsResponse addManagedOrganizationUnitsItem( - ManagedOrganizationUnit managedOrganizationUnitsItem) { - if (this.managedOrganizationUnits == null) { - this.managedOrganizationUnits = new ArrayList<>(); - } - this.managedOrganizationUnits.add(managedOrganizationUnitsItem); - return this; - } - - public ListManagedOrganizationalUnitsResponse withManagedOrganizationUnits( - Consumer> managedOrganizationUnitsSetter) { - if (this.managedOrganizationUnits == null) { - this.managedOrganizationUnits = new ArrayList<>(); - } - managedOrganizationUnitsSetter.accept(this.managedOrganizationUnits); - return this; - } - - /** - * 注册OU信息。 - * @return managedOrganizationUnits - */ - public List getManagedOrganizationUnits() { - return managedOrganizationUnits; - } - - public void setManagedOrganizationUnits(List managedOrganizationUnits) { - this.managedOrganizationUnits = managedOrganizationUnits; - } - - public ListManagedOrganizationalUnitsResponse withPageInfo(PageInfoDto pageInfo) { - this.pageInfo = pageInfo; - return this; - } - - public ListManagedOrganizationalUnitsResponse withPageInfo(Consumer pageInfoSetter) { - if (this.pageInfo == null) { - this.pageInfo = new PageInfoDto(); - pageInfoSetter.accept(this.pageInfo); - } - - return this; - } - - /** - * Get pageInfo - * @return pageInfo - */ - public PageInfoDto getPageInfo() { - return pageInfo; - } - - public void setPageInfo(PageInfoDto 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; - } - ListManagedOrganizationalUnitsResponse that = (ListManagedOrganizationalUnitsResponse) obj; - return Objects.equals(this.managedOrganizationUnits, that.managedOrganizationUnits) - && Objects.equals(this.pageInfo, that.pageInfo); - } - - @Override - public int hashCode() { - return Objects.hash(managedOrganizationUnits, pageInfo); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListManagedOrganizationalUnitsResponse {\n"); - sb.append(" managedOrganizationUnits: ").append(toIndentedString(managedOrganizationUnits)).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/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListOperationRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListOperationRequest.java deleted file mode 100644 index 3a39d6848b..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListOperationRequest.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * Request Object - */ -public class ListOperationRequest { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "account_id") - - private String accountId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organization_unit_id") - - private String organizationUnitId; - - public ListOperationRequest withAccountId(String accountId) { - this.accountId = accountId; - return this; - } - - /** - * 账户ID。 - * @return accountId - */ - public String getAccountId() { - return accountId; - } - - public void setAccountId(String accountId) { - this.accountId = accountId; - } - - public ListOperationRequest withOrganizationUnitId(String organizationUnitId) { - this.organizationUnitId = organizationUnitId; - return this; - } - - /** - * 注册OU ID。 - * @return organizationUnitId - */ - public String getOrganizationUnitId() { - return organizationUnitId; - } - - public void setOrganizationUnitId(String organizationUnitId) { - this.organizationUnitId = organizationUnitId; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ListOperationRequest that = (ListOperationRequest) obj; - return Objects.equals(this.accountId, that.accountId) - && Objects.equals(this.organizationUnitId, that.organizationUnitId); - } - - @Override - public int hashCode() { - return Objects.hash(accountId, organizationUnitId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListOperationRequest {\n"); - sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); - sb.append(" organizationUnitId: ").append(toIndentedString(organizationUnitId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListOperationResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListOperationResponse.java deleted file mode 100644 index 7f8cb3e958..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListOperationResponse.java +++ /dev/null @@ -1,189 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 ListOperationResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "operation_id") - - private String operationId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "percentage_complete") - - private Integer percentageComplete; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "status") - - private String status; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "percentage_details") - - private List percentageDetails = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "message") - - private String message; - - public ListOperationResponse withOperationId(String operationId) { - this.operationId = operationId; - return this; - } - - /** - * 操作ID。 - * @return operationId - */ - public String getOperationId() { - return operationId; - } - - public void setOperationId(String operationId) { - this.operationId = operationId; - } - - public ListOperationResponse withPercentageComplete(Integer percentageComplete) { - this.percentageComplete = percentageComplete; - return this; - } - - /** - * 完成进度百分比。 - * @return percentageComplete - */ - public Integer getPercentageComplete() { - return percentageComplete; - } - - public void setPercentageComplete(Integer percentageComplete) { - this.percentageComplete = percentageComplete; - } - - public ListOperationResponse withStatus(String status) { - this.status = status; - return this; - } - - /** - * 状态。 - * @return status - */ - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public ListOperationResponse withPercentageDetails(List percentageDetails) { - this.percentageDetails = percentageDetails; - return this; - } - - public ListOperationResponse addPercentageDetailsItem(OrganizationalPercentageDetail percentageDetailsItem) { - if (this.percentageDetails == null) { - this.percentageDetails = new ArrayList<>(); - } - this.percentageDetails.add(percentageDetailsItem); - return this; - } - - public ListOperationResponse withPercentageDetails( - Consumer> percentageDetailsSetter) { - if (this.percentageDetails == null) { - this.percentageDetails = new ArrayList<>(); - } - percentageDetailsSetter.accept(this.percentageDetails); - return this; - } - - /** - * 创建账号、纳管注册OU、纳管账号的详细进度信息。 - * @return percentageDetails - */ - public List getPercentageDetails() { - return percentageDetails; - } - - public void setPercentageDetails(List percentageDetails) { - this.percentageDetails = percentageDetails; - } - - public ListOperationResponse withMessage(String message) { - this.message = message; - return this; - } - - /** - * 创建账号、纳管注册OU、纳管账号的错误信息描述。 - * @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; - } - ListOperationResponse that = (ListOperationResponse) obj; - return Objects.equals(this.operationId, that.operationId) - && Objects.equals(this.percentageComplete, that.percentageComplete) - && Objects.equals(this.status, that.status) - && Objects.equals(this.percentageDetails, that.percentageDetails) - && Objects.equals(this.message, that.message); - } - - @Override - public int hashCode() { - return Objects.hash(operationId, percentageComplete, status, percentageDetails, message); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListOperationResponse {\n"); - sb.append(" operationId: ").append(toIndentedString(operationId)).append("\n"); - sb.append(" percentageComplete: ").append(toIndentedString(percentageComplete)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" percentageDetails: ").append(toIndentedString(percentageDetails)).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/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListPredefinedTemplatesRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListPredefinedTemplatesRequest.java deleted file mode 100644 index a948317964..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListPredefinedTemplatesRequest.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import java.util.Objects; - -/** - * Request Object - */ -public class ListPredefinedTemplatesRequest { - - @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 ListPredefinedTemplatesRequest {\n"); - sb.append("}"); - return sb.toString(); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListPredefinedTemplatesResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListPredefinedTemplatesResponse.java deleted file mode 100644 index 2aaa1b7b05..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListPredefinedTemplatesResponse.java +++ /dev/null @@ -1,92 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 ListPredefinedTemplatesResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "templates") - - private List templates = null; - - public ListPredefinedTemplatesResponse withTemplates(List templates) { - this.templates = templates; - return this; - } - - public ListPredefinedTemplatesResponse addTemplatesItem(PredefinedTemplate templatesItem) { - if (this.templates == null) { - this.templates = new ArrayList<>(); - } - this.templates.add(templatesItem); - return this; - } - - public ListPredefinedTemplatesResponse withTemplates(Consumer> templatesSetter) { - if (this.templates == null) { - this.templates = new ArrayList<>(); - } - templatesSetter.accept(this.templates); - return this; - } - - /** - * Get templates - * @return templates - */ - public List getTemplates() { - return templates; - } - - public void setTemplates(List templates) { - this.templates = templates; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ListPredefinedTemplatesResponse that = (ListPredefinedTemplatesResponse) obj; - return Objects.equals(this.templates, that.templates); - } - - @Override - public int hashCode() { - return Objects.hash(templates); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListPredefinedTemplatesResponse {\n"); - sb.append(" templates: ").append(toIndentedString(templates)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/LoggingBucketBaseline.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/LoggingBucketBaseline.java deleted file mode 100644 index c2ae099c33..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/LoggingBucketBaseline.java +++ /dev/null @@ -1,74 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * 日志基础设置。 - */ -public class LoggingBucketBaseline { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "retention_days") - - private Integer retentionDays; - - public LoggingBucketBaseline withRetentionDays(Integer retentionDays) { - this.retentionDays = retentionDays; - return this; - } - - /** - * 桶保留天数。 - * minimum: 1 - * maximum: 5475 - * @return retentionDays - */ - public Integer getRetentionDays() { - return retentionDays; - } - - public void setRetentionDays(Integer retentionDays) { - this.retentionDays = retentionDays; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - LoggingBucketBaseline that = (LoggingBucketBaseline) obj; - return Objects.equals(this.retentionDays, that.retentionDays); - } - - @Override - public int hashCode() { - return Objects.hash(retentionDays); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LoggingBucketBaseline {\n"); - sb.append(" retentionDays: ").append(toIndentedString(retentionDays)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/LoggingConfiguration.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/LoggingConfiguration.java deleted file mode 100644 index e5b260fe03..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/LoggingConfiguration.java +++ /dev/null @@ -1,116 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; -import java.util.function.Consumer; - -/** - * Landing Zone日志配置。 - */ -public class LoggingConfiguration { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "access_logging_bucket") - - private AccessLoggingBucketBaseline accessLoggingBucket; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "logging_bucket") - - private LoggingBucketBaseline loggingBucket; - - public LoggingConfiguration withAccessLoggingBucket(AccessLoggingBucketBaseline accessLoggingBucket) { - this.accessLoggingBucket = accessLoggingBucket; - return this; - } - - public LoggingConfiguration withAccessLoggingBucket( - Consumer accessLoggingBucketSetter) { - if (this.accessLoggingBucket == null) { - this.accessLoggingBucket = new AccessLoggingBucketBaseline(); - accessLoggingBucketSetter.accept(this.accessLoggingBucket); - } - - return this; - } - - /** - * Get accessLoggingBucket - * @return accessLoggingBucket - */ - public AccessLoggingBucketBaseline getAccessLoggingBucket() { - return accessLoggingBucket; - } - - public void setAccessLoggingBucket(AccessLoggingBucketBaseline accessLoggingBucket) { - this.accessLoggingBucket = accessLoggingBucket; - } - - public LoggingConfiguration withLoggingBucket(LoggingBucketBaseline loggingBucket) { - this.loggingBucket = loggingBucket; - return this; - } - - public LoggingConfiguration withLoggingBucket(Consumer loggingBucketSetter) { - if (this.loggingBucket == null) { - this.loggingBucket = new LoggingBucketBaseline(); - loggingBucketSetter.accept(this.loggingBucket); - } - - return this; - } - - /** - * Get loggingBucket - * @return loggingBucket - */ - public LoggingBucketBaseline getLoggingBucket() { - return loggingBucket; - } - - public void setLoggingBucket(LoggingBucketBaseline loggingBucket) { - this.loggingBucket = loggingBucket; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - LoggingConfiguration that = (LoggingConfiguration) obj; - return Objects.equals(this.accessLoggingBucket, that.accessLoggingBucket) - && Objects.equals(this.loggingBucket, that.loggingBucket); - } - - @Override - public int hashCode() { - return Objects.hash(accessLoggingBucket, loggingBucket); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LoggingConfiguration {\n"); - sb.append(" accessLoggingBucket: ").append(toIndentedString(accessLoggingBucket)).append("\n"); - sb.append(" loggingBucket: ").append(toIndentedString(loggingBucket)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ManagedAccount.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ManagedAccount.java deleted file mode 100644 index 62f0244bab..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ManagedAccount.java +++ /dev/null @@ -1,515 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * 注册OU信息。 - */ -public class ManagedAccount { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "landing_zone_version") - - private String landingZoneVersion; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "manage_account_id") - - private String manageAccountId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "account_id") - - private String accountId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "account_name") - - private String accountName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "account_type") - - private String accountType; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "owner") - - private String owner; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "state") - - private String state; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "message") - - private String message; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "parent_organization_unit_id") - - private String parentOrganizationUnitId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "parent_organization_unit_name") - - private String parentOrganizationUnitName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "identity_store_user_name") - - private String identityStoreUserName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "blueprint_product_id") - - private String blueprintProductId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "blueprint_product_version") - - private String blueprintProductVersion; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "blueprint_status") - - private String blueprintStatus; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "is_blueprint_has_multi_account_resource") - - private Boolean isBlueprintHasMultiAccountResource; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "regions") - - private List regions = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "created_at") - - private OffsetDateTime createdAt; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "updated_at") - - private OffsetDateTime updatedAt; - - public ManagedAccount withLandingZoneVersion(String landingZoneVersion) { - this.landingZoneVersion = landingZoneVersion; - return this; - } - - /** - * Landing Zone版本。 - * @return landingZoneVersion - */ - public String getLandingZoneVersion() { - return landingZoneVersion; - } - - public void setLandingZoneVersion(String landingZoneVersion) { - this.landingZoneVersion = landingZoneVersion; - } - - public ManagedAccount withManageAccountId(String manageAccountId) { - this.manageAccountId = manageAccountId; - return this; - } - - /** - * 管理纳管账号ID。 - * @return manageAccountId - */ - public String getManageAccountId() { - return manageAccountId; - } - - public void setManageAccountId(String manageAccountId) { - this.manageAccountId = manageAccountId; - } - - public ManagedAccount withAccountId(String accountId) { - this.accountId = accountId; - return this; - } - - /** - * 纳管账号ID。 - * @return accountId - */ - public String getAccountId() { - return accountId; - } - - public void setAccountId(String accountId) { - this.accountId = accountId; - } - - public ManagedAccount withAccountName(String accountName) { - this.accountName = accountName; - return this; - } - - /** - * 纳管账号名称。 - * @return accountName - */ - public String getAccountName() { - return accountName; - } - - public void setAccountName(String accountName) { - this.accountName = accountName; - } - - public ManagedAccount withAccountType(String accountType) { - this.accountType = accountType; - return this; - } - - /** - * 纳管账号类型。 - * @return accountType - */ - public String getAccountType() { - return accountType; - } - - public void setAccountType(String accountType) { - this.accountType = accountType; - } - - public ManagedAccount withOwner(String owner) { - this.owner = owner; - return this; - } - - /** - * 纳管账号的创建来源,包括CUSTOM和RGC。 - * @return owner - */ - public String getOwner() { - return owner; - } - - public void setOwner(String owner) { - this.owner = owner; - } - - public ManagedAccount withState(String state) { - this.state = state; - return this; - } - - /** - * 纳管账号状态。 - * @return state - */ - public String getState() { - return state; - } - - public void setState(String state) { - this.state = state; - } - - public ManagedAccount withMessage(String message) { - this.message = message; - return this; - } - - /** - * 错误状态描述信息。 - * @return message - */ - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public ManagedAccount withParentOrganizationUnitId(String parentOrganizationUnitId) { - this.parentOrganizationUnitId = parentOrganizationUnitId; - return this; - } - - /** - * 父注册OU ID。 - * @return parentOrganizationUnitId - */ - public String getParentOrganizationUnitId() { - return parentOrganizationUnitId; - } - - public void setParentOrganizationUnitId(String parentOrganizationUnitId) { - this.parentOrganizationUnitId = parentOrganizationUnitId; - } - - public ManagedAccount withParentOrganizationUnitName(String parentOrganizationUnitName) { - this.parentOrganizationUnitName = parentOrganizationUnitName; - return this; - } - - /** - * 父注册OU名称。 - * @return parentOrganizationUnitName - */ - public String getParentOrganizationUnitName() { - return parentOrganizationUnitName; - } - - public void setParentOrganizationUnitName(String parentOrganizationUnitName) { - this.parentOrganizationUnitName = parentOrganizationUnitName; - } - - public ManagedAccount withIdentityStoreUserName(String identityStoreUserName) { - this.identityStoreUserName = identityStoreUserName; - return this; - } - - /** - * Identity Center用户名。 - * @return identityStoreUserName - */ - public String getIdentityStoreUserName() { - return identityStoreUserName; - } - - public void setIdentityStoreUserName(String identityStoreUserName) { - this.identityStoreUserName = identityStoreUserName; - } - - public ManagedAccount withBlueprintProductId(String blueprintProductId) { - this.blueprintProductId = blueprintProductId; - return this; - } - - /** - * 模板ID。 - * @return blueprintProductId - */ - public String getBlueprintProductId() { - return blueprintProductId; - } - - public void setBlueprintProductId(String blueprintProductId) { - this.blueprintProductId = blueprintProductId; - } - - public ManagedAccount withBlueprintProductVersion(String blueprintProductVersion) { - this.blueprintProductVersion = blueprintProductVersion; - return this; - } - - /** - * 模板版本。 - * @return blueprintProductVersion - */ - public String getBlueprintProductVersion() { - return blueprintProductVersion; - } - - public void setBlueprintProductVersion(String blueprintProductVersion) { - this.blueprintProductVersion = blueprintProductVersion; - } - - public ManagedAccount withBlueprintStatus(String blueprintStatus) { - this.blueprintStatus = blueprintStatus; - return this; - } - - /** - * 模板部署状态,包括失败, 完成, 进行中。 - * @return blueprintStatus - */ - public String getBlueprintStatus() { - return blueprintStatus; - } - - public void setBlueprintStatus(String blueprintStatus) { - this.blueprintStatus = blueprintStatus; - } - - public ManagedAccount withIsBlueprintHasMultiAccountResource(Boolean isBlueprintHasMultiAccountResource) { - this.isBlueprintHasMultiAccountResource = isBlueprintHasMultiAccountResource; - return this; - } - - /** - * 模板是否包含多账号资源。 - * @return isBlueprintHasMultiAccountResource - */ - public Boolean getIsBlueprintHasMultiAccountResource() { - return isBlueprintHasMultiAccountResource; - } - - public void setIsBlueprintHasMultiAccountResource(Boolean isBlueprintHasMultiAccountResource) { - this.isBlueprintHasMultiAccountResource = isBlueprintHasMultiAccountResource; - } - - public ManagedAccount withRegions(List regions) { - this.regions = regions; - return this; - } - - public ManagedAccount addRegionsItem(RegionManagedList regionsItem) { - if (this.regions == null) { - this.regions = new ArrayList<>(); - } - this.regions.add(regionsItem); - return this; - } - - public ManagedAccount withRegions(Consumer> regionsSetter) { - if (this.regions == null) { - this.regions = new ArrayList<>(); - } - regionsSetter.accept(this.regions); - return this; - } - - /** - * 区域信息。 - * @return regions - */ - public List getRegions() { - return regions; - } - - public void setRegions(List regions) { - this.regions = regions; - } - - public ManagedAccount withCreatedAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; - return this; - } - - /** - * 组织里某个注册OU下的纳管账号被创建的时间。 - * @return createdAt - */ - public OffsetDateTime getCreatedAt() { - return createdAt; - } - - public void setCreatedAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; - } - - public ManagedAccount withUpdatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; - return this; - } - - /** - * 组织里某个注册OU下的纳管账号最后一次更新的时间。 - * @return updatedAt - */ - public OffsetDateTime getUpdatedAt() { - return updatedAt; - } - - public void setUpdatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ManagedAccount that = (ManagedAccount) obj; - return Objects.equals(this.landingZoneVersion, that.landingZoneVersion) - && Objects.equals(this.manageAccountId, that.manageAccountId) - && Objects.equals(this.accountId, that.accountId) && Objects.equals(this.accountName, that.accountName) - && Objects.equals(this.accountType, that.accountType) && Objects.equals(this.owner, that.owner) - && Objects.equals(this.state, that.state) && Objects.equals(this.message, that.message) - && Objects.equals(this.parentOrganizationUnitId, that.parentOrganizationUnitId) - && Objects.equals(this.parentOrganizationUnitName, that.parentOrganizationUnitName) - && Objects.equals(this.identityStoreUserName, that.identityStoreUserName) - && Objects.equals(this.blueprintProductId, that.blueprintProductId) - && Objects.equals(this.blueprintProductVersion, that.blueprintProductVersion) - && Objects.equals(this.blueprintStatus, that.blueprintStatus) - && Objects.equals(this.isBlueprintHasMultiAccountResource, that.isBlueprintHasMultiAccountResource) - && Objects.equals(this.regions, that.regions) && Objects.equals(this.createdAt, that.createdAt) - && Objects.equals(this.updatedAt, that.updatedAt); - } - - @Override - public int hashCode() { - return Objects.hash(landingZoneVersion, - manageAccountId, - accountId, - accountName, - accountType, - owner, - state, - message, - parentOrganizationUnitId, - parentOrganizationUnitName, - identityStoreUserName, - blueprintProductId, - blueprintProductVersion, - blueprintStatus, - isBlueprintHasMultiAccountResource, - regions, - createdAt, - updatedAt); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ManagedAccount {\n"); - sb.append(" landingZoneVersion: ").append(toIndentedString(landingZoneVersion)).append("\n"); - sb.append(" manageAccountId: ").append(toIndentedString(manageAccountId)).append("\n"); - sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); - sb.append(" accountName: ").append(toIndentedString(accountName)).append("\n"); - sb.append(" accountType: ").append(toIndentedString(accountType)).append("\n"); - sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); - sb.append(" state: ").append(toIndentedString(state)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" parentOrganizationUnitId: ").append(toIndentedString(parentOrganizationUnitId)).append("\n"); - sb.append(" parentOrganizationUnitName: ").append(toIndentedString(parentOrganizationUnitName)).append("\n"); - sb.append(" identityStoreUserName: ").append(toIndentedString(identityStoreUserName)).append("\n"); - sb.append(" blueprintProductId: ").append(toIndentedString(blueprintProductId)).append("\n"); - sb.append(" blueprintProductVersion: ").append(toIndentedString(blueprintProductVersion)).append("\n"); - sb.append(" blueprintStatus: ").append(toIndentedString(blueprintStatus)).append("\n"); - sb.append(" isBlueprintHasMultiAccountResource: ") - .append(toIndentedString(isBlueprintHasMultiAccountResource)) - .append("\n"); - sb.append(" regions: ").append(toIndentedString(regions)).append("\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ManagedOrganizationUnit.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ManagedOrganizationUnit.java deleted file mode 100644 index a4564149a7..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ManagedOrganizationUnit.java +++ /dev/null @@ -1,322 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.time.OffsetDateTime; -import java.util.Objects; - -/** - * ManagedOrganizationUnit - */ -public class ManagedOrganizationUnit { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "manage_account_id") - - private String manageAccountId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organization_unit_id") - - private String organizationUnitId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organization_unit_name") - - private String organizationUnitName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organization_unit_status") - - private String organizationUnitStatus; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organization_unit_type") - - private OrganizationalUnitType organizationUnitType; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "parent_organization_unit_id") - - private String parentOrganizationUnitId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "parent_organization_unit_name") - - private String parentOrganizationUnitName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "created_at") - - private OffsetDateTime createdAt; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "landing_zone_version") - - private String landingZoneVersion; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "updated_at") - - private OffsetDateTime updatedAt; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "message") - - private String message; - - public ManagedOrganizationUnit withManageAccountId(String manageAccountId) { - this.manageAccountId = manageAccountId; - return this; - } - - /** - * 管理纳管账号ID。 - * @return manageAccountId - */ - public String getManageAccountId() { - return manageAccountId; - } - - public void setManageAccountId(String manageAccountId) { - this.manageAccountId = manageAccountId; - } - - public ManagedOrganizationUnit withOrganizationUnitId(String organizationUnitId) { - this.organizationUnitId = organizationUnitId; - return this; - } - - /** - * 注册OU ID。 - * @return organizationUnitId - */ - public String getOrganizationUnitId() { - return organizationUnitId; - } - - public void setOrganizationUnitId(String organizationUnitId) { - this.organizationUnitId = organizationUnitId; - } - - public ManagedOrganizationUnit withOrganizationUnitName(String organizationUnitName) { - this.organizationUnitName = organizationUnitName; - return this; - } - - /** - * 注册OU名称。 - * @return organizationUnitName - */ - public String getOrganizationUnitName() { - return organizationUnitName; - } - - public void setOrganizationUnitName(String organizationUnitName) { - this.organizationUnitName = organizationUnitName; - } - - public ManagedOrganizationUnit withOrganizationUnitStatus(String organizationUnitStatus) { - this.organizationUnitStatus = organizationUnitStatus; - return this; - } - - /** - * 注册OU状态。 - * @return organizationUnitStatus - */ - public String getOrganizationUnitStatus() { - return organizationUnitStatus; - } - - public void setOrganizationUnitStatus(String organizationUnitStatus) { - this.organizationUnitStatus = organizationUnitStatus; - } - - public ManagedOrganizationUnit withOrganizationUnitType(OrganizationalUnitType organizationUnitType) { - this.organizationUnitType = organizationUnitType; - return this; - } - - /** - * Get organizationUnitType - * @return organizationUnitType - */ - public OrganizationalUnitType getOrganizationUnitType() { - return organizationUnitType; - } - - public void setOrganizationUnitType(OrganizationalUnitType organizationUnitType) { - this.organizationUnitType = organizationUnitType; - } - - public ManagedOrganizationUnit withParentOrganizationUnitId(String parentOrganizationUnitId) { - this.parentOrganizationUnitId = parentOrganizationUnitId; - return this; - } - - /** - * 父注册OU ID。 - * @return parentOrganizationUnitId - */ - public String getParentOrganizationUnitId() { - return parentOrganizationUnitId; - } - - public void setParentOrganizationUnitId(String parentOrganizationUnitId) { - this.parentOrganizationUnitId = parentOrganizationUnitId; - } - - public ManagedOrganizationUnit withParentOrganizationUnitName(String parentOrganizationUnitName) { - this.parentOrganizationUnitName = parentOrganizationUnitName; - return this; - } - - /** - * 父注册OU名称。 - * @return parentOrganizationUnitName - */ - public String getParentOrganizationUnitName() { - return parentOrganizationUnitName; - } - - public void setParentOrganizationUnitName(String parentOrganizationUnitName) { - this.parentOrganizationUnitName = parentOrganizationUnitName; - } - - public ManagedOrganizationUnit withCreatedAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; - return this; - } - - /** - * 组织里某个注册OU下的纳管账号被创建的时间。 - * @return createdAt - */ - public OffsetDateTime getCreatedAt() { - return createdAt; - } - - public void setCreatedAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; - } - - public ManagedOrganizationUnit withLandingZoneVersion(String landingZoneVersion) { - this.landingZoneVersion = landingZoneVersion; - return this; - } - - /** - * Landing Zone版本。 - * @return landingZoneVersion - */ - public String getLandingZoneVersion() { - return landingZoneVersion; - } - - public void setLandingZoneVersion(String landingZoneVersion) { - this.landingZoneVersion = landingZoneVersion; - } - - public ManagedOrganizationUnit withUpdatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; - return this; - } - - /** - * 组织里某个注册OU下的纳管账号最后一次更新的时间。 - * @return updatedAt - */ - public OffsetDateTime getUpdatedAt() { - return updatedAt; - } - - public void setUpdatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; - } - - public ManagedOrganizationUnit 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; - } - ManagedOrganizationUnit that = (ManagedOrganizationUnit) obj; - return Objects.equals(this.manageAccountId, that.manageAccountId) - && Objects.equals(this.organizationUnitId, that.organizationUnitId) - && Objects.equals(this.organizationUnitName, that.organizationUnitName) - && Objects.equals(this.organizationUnitStatus, that.organizationUnitStatus) - && Objects.equals(this.organizationUnitType, that.organizationUnitType) - && Objects.equals(this.parentOrganizationUnitId, that.parentOrganizationUnitId) - && Objects.equals(this.parentOrganizationUnitName, that.parentOrganizationUnitName) - && Objects.equals(this.createdAt, that.createdAt) - && Objects.equals(this.landingZoneVersion, that.landingZoneVersion) - && Objects.equals(this.updatedAt, that.updatedAt) && Objects.equals(this.message, that.message); - } - - @Override - public int hashCode() { - return Objects.hash(manageAccountId, - organizationUnitId, - organizationUnitName, - organizationUnitStatus, - organizationUnitType, - parentOrganizationUnitId, - parentOrganizationUnitName, - createdAt, - landingZoneVersion, - updatedAt, - message); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ManagedOrganizationUnit {\n"); - sb.append(" manageAccountId: ").append(toIndentedString(manageAccountId)).append("\n"); - sb.append(" organizationUnitId: ").append(toIndentedString(organizationUnitId)).append("\n"); - sb.append(" organizationUnitName: ").append(toIndentedString(organizationUnitName)).append("\n"); - sb.append(" organizationUnitStatus: ").append(toIndentedString(organizationUnitStatus)).append("\n"); - sb.append(" organizationUnitType: ").append(toIndentedString(organizationUnitType)).append("\n"); - sb.append(" parentOrganizationUnitId: ").append(toIndentedString(parentOrganizationUnitId)).append("\n"); - sb.append(" parentOrganizationUnitName: ").append(toIndentedString(parentOrganizationUnitName)).append("\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append(" landingZoneVersion: ").append(toIndentedString(landingZoneVersion)).append("\n"); - sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).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/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/OrganizationStructureBaseLine.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/OrganizationStructureBaseLine.java deleted file mode 100644 index 28f01e9860..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/OrganizationStructureBaseLine.java +++ /dev/null @@ -1,140 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 OrganizationStructureBaseLine { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organizational_unit_name") - - private String organizationalUnitName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organizational_unit_type") - - private OrganizationalUnitTypeForSetup organizationalUnitType; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "accounts") - - private List accounts = null; - - public OrganizationStructureBaseLine withOrganizationalUnitName(String organizationalUnitName) { - this.organizationalUnitName = organizationalUnitName; - return this; - } - - /** - * 注册OU名称。 - * @return organizationalUnitName - */ - public String getOrganizationalUnitName() { - return organizationalUnitName; - } - - public void setOrganizationalUnitName(String organizationalUnitName) { - this.organizationalUnitName = organizationalUnitName; - } - - public OrganizationStructureBaseLine withOrganizationalUnitType( - OrganizationalUnitTypeForSetup organizationalUnitType) { - this.organizationalUnitType = organizationalUnitType; - return this; - } - - /** - * Get organizationalUnitType - * @return organizationalUnitType - */ - public OrganizationalUnitTypeForSetup getOrganizationalUnitType() { - return organizationalUnitType; - } - - public void setOrganizationalUnitType(OrganizationalUnitTypeForSetup organizationalUnitType) { - this.organizationalUnitType = organizationalUnitType; - } - - public OrganizationStructureBaseLine withAccounts(List accounts) { - this.accounts = accounts; - return this; - } - - public OrganizationStructureBaseLine addAccountsItem(AccountBaseline accountsItem) { - if (this.accounts == null) { - this.accounts = new ArrayList<>(); - } - this.accounts.add(accountsItem); - return this; - } - - public OrganizationStructureBaseLine withAccounts(Consumer> accountsSetter) { - if (this.accounts == null) { - this.accounts = new ArrayList<>(); - } - accountsSetter.accept(this.accounts); - return this; - } - - /** - * 纳管账号基本信息。 - * @return accounts - */ - public List getAccounts() { - return accounts; - } - - public void setAccounts(List accounts) { - this.accounts = accounts; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - OrganizationStructureBaseLine that = (OrganizationStructureBaseLine) obj; - return Objects.equals(this.organizationalUnitName, that.organizationalUnitName) - && Objects.equals(this.organizationalUnitType, that.organizationalUnitType) - && Objects.equals(this.accounts, that.accounts); - } - - @Override - public int hashCode() { - return Objects.hash(organizationalUnitName, organizationalUnitType, accounts); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OrganizationStructureBaseLine {\n"); - sb.append(" organizationalUnitName: ").append(toIndentedString(organizationalUnitName)).append("\n"); - sb.append(" organizationalUnitType: ").append(toIndentedString(organizationalUnitType)).append("\n"); - sb.append(" accounts: ").append(toIndentedString(accounts)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/OrganizationStructureBaseLineRsp.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/OrganizationStructureBaseLineRsp.java deleted file mode 100644 index 175c72f64e..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/OrganizationStructureBaseLineRsp.java +++ /dev/null @@ -1,140 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 OrganizationStructureBaseLineRsp { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organizational_unit_name") - - private String organizationalUnitName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organizational_unit_type") - - private OrganizationalUnitTypeForSetup organizationalUnitType; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "accounts") - - private List accounts = null; - - public OrganizationStructureBaseLineRsp withOrganizationalUnitName(String organizationalUnitName) { - this.organizationalUnitName = organizationalUnitName; - return this; - } - - /** - * 注册OU名称。 - * @return organizationalUnitName - */ - public String getOrganizationalUnitName() { - return organizationalUnitName; - } - - public void setOrganizationalUnitName(String organizationalUnitName) { - this.organizationalUnitName = organizationalUnitName; - } - - public OrganizationStructureBaseLineRsp withOrganizationalUnitType( - OrganizationalUnitTypeForSetup organizationalUnitType) { - this.organizationalUnitType = organizationalUnitType; - return this; - } - - /** - * Get organizationalUnitType - * @return organizationalUnitType - */ - public OrganizationalUnitTypeForSetup getOrganizationalUnitType() { - return organizationalUnitType; - } - - public void setOrganizationalUnitType(OrganizationalUnitTypeForSetup organizationalUnitType) { - this.organizationalUnitType = organizationalUnitType; - } - - public OrganizationStructureBaseLineRsp withAccounts(List accounts) { - this.accounts = accounts; - return this; - } - - public OrganizationStructureBaseLineRsp addAccountsItem(AccountBaselineRsp accountsItem) { - if (this.accounts == null) { - this.accounts = new ArrayList<>(); - } - this.accounts.add(accountsItem); - return this; - } - - public OrganizationStructureBaseLineRsp withAccounts(Consumer> accountsSetter) { - if (this.accounts == null) { - this.accounts = new ArrayList<>(); - } - accountsSetter.accept(this.accounts); - return this; - } - - /** - * 纳管账号基本信息。 - * @return accounts - */ - public List getAccounts() { - return accounts; - } - - public void setAccounts(List accounts) { - this.accounts = accounts; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - OrganizationStructureBaseLineRsp that = (OrganizationStructureBaseLineRsp) obj; - return Objects.equals(this.organizationalUnitName, that.organizationalUnitName) - && Objects.equals(this.organizationalUnitType, that.organizationalUnitType) - && Objects.equals(this.accounts, that.accounts); - } - - @Override - public int hashCode() { - return Objects.hash(organizationalUnitName, organizationalUnitType, accounts); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OrganizationStructureBaseLineRsp {\n"); - sb.append(" organizationalUnitName: ").append(toIndentedString(organizationalUnitName)).append("\n"); - sb.append(" organizationalUnitType: ").append(toIndentedString(organizationalUnitType)).append("\n"); - sb.append(" accounts: ").append(toIndentedString(accounts)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/OrganizationalPercentageDetail.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/OrganizationalPercentageDetail.java deleted file mode 100644 index 0e896888e8..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/OrganizationalPercentageDetail.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * 创建账号、纳管注册OU、纳管账号状态信息。 - */ -public class OrganizationalPercentageDetail { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "percentage_name") - - private String percentageName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "percentage_status") - - private String percentageStatus; - - public OrganizationalPercentageDetail withPercentageName(String percentageName) { - this.percentageName = percentageName; - return this; - } - - /** - * 进度名称。 - * @return percentageName - */ - public String getPercentageName() { - return percentageName; - } - - public void setPercentageName(String percentageName) { - this.percentageName = percentageName; - } - - public OrganizationalPercentageDetail withPercentageStatus(String percentageStatus) { - this.percentageStatus = percentageStatus; - return this; - } - - /** - * 创建账号、注册OU、纳管账号的进度完成状态。 - * @return percentageStatus - */ - public String getPercentageStatus() { - return percentageStatus; - } - - public void setPercentageStatus(String percentageStatus) { - this.percentageStatus = percentageStatus; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - OrganizationalPercentageDetail that = (OrganizationalPercentageDetail) obj; - return Objects.equals(this.percentageName, that.percentageName) - && Objects.equals(this.percentageStatus, that.percentageStatus); - } - - @Override - public int hashCode() { - return Objects.hash(percentageName, percentageStatus); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OrganizationalPercentageDetail {\n"); - sb.append(" percentageName: ").append(toIndentedString(percentageName)).append("\n"); - sb.append(" percentageStatus: ").append(toIndentedString(percentageStatus)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/OrganizationalUnitType.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/OrganizationalUnitType.java deleted file mode 100644 index 99e54f19c0..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/OrganizationalUnitType.java +++ /dev/null @@ -1,84 +0,0 @@ -package com.huaweicloud.sdk.rgc.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; - -/** - * 组织单元类型。 * CORE - 基础组织单元 * CUSTOM - 组织单元 * ROOT - ROOT - */ -public class OrganizationalUnitType { - - /** - * Enum CORE for value: "CORE" - */ - public static final OrganizationalUnitType CORE = new OrganizationalUnitType("CORE"); - - /** - * Enum CUSTOM for value: "CUSTOM" - */ - public static final OrganizationalUnitType CUSTOM = new OrganizationalUnitType("CUSTOM"); - - /** - * Enum ROOT for value: "ROOT" - */ - public static final OrganizationalUnitType ROOT = new OrganizationalUnitType("ROOT"); - - private static final Map STATIC_FIELDS = createStaticFields(); - - private static Map createStaticFields() { - Map map = new HashMap<>(); - map.put("CORE", CORE); - map.put("CUSTOM", CUSTOM); - map.put("ROOT", ROOT); - return Collections.unmodifiableMap(map); - } - - private String value; - - OrganizationalUnitType(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static OrganizationalUnitType fromValue(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new OrganizationalUnitType(value)); - } - - public static OrganizationalUnitType 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 OrganizationalUnitType) { - return this.value.equals(((OrganizationalUnitType) obj).value); - } - return false; - } - - @Override - public int hashCode() { - return this.value.hashCode(); - } -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/OrganizationalUnitTypeForSetup.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/OrganizationalUnitTypeForSetup.java deleted file mode 100644 index 28e77b843a..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/OrganizationalUnitTypeForSetup.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.huaweicloud.sdk.rgc.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; - -/** - * 可设置的注册OU类型。包括核心注册OU和自定义注册OU。 - */ -public class OrganizationalUnitTypeForSetup { - - /** - * Enum CORE for value: "CORE" - */ - public static final OrganizationalUnitTypeForSetup CORE = new OrganizationalUnitTypeForSetup("CORE"); - - /** - * Enum CUSTOM for value: "CUSTOM" - */ - public static final OrganizationalUnitTypeForSetup CUSTOM = new OrganizationalUnitTypeForSetup("CUSTOM"); - - private static final Map STATIC_FIELDS = createStaticFields(); - - private static Map createStaticFields() { - Map map = new HashMap<>(); - map.put("CORE", CORE); - map.put("CUSTOM", CUSTOM); - return Collections.unmodifiableMap(map); - } - - private String value; - - OrganizationalUnitTypeForSetup(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static OrganizationalUnitTypeForSetup fromValue(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) - .orElse(new OrganizationalUnitTypeForSetup(value)); - } - - public static OrganizationalUnitTypeForSetup 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 OrganizationalUnitTypeForSetup) { - return this.value.equals(((OrganizationalUnitTypeForSetup) obj).value); - } - return false; - } - - @Override - public int hashCode() { - return this.value.hashCode(); - } -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/PercentageDetail.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/PercentageDetail.java deleted file mode 100644 index 4e67b7bec0..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/PercentageDetail.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * Landing Zone设置的进度信息。 - */ -public class PercentageDetail { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "percentage_name") - - private String percentageName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "percentage_status") - - private String percentageStatus; - - public PercentageDetail withPercentageName(String percentageName) { - this.percentageName = percentageName; - return this; - } - - /** - * 进度名称。 - * @return percentageName - */ - public String getPercentageName() { - return percentageName; - } - - public void setPercentageName(String percentageName) { - this.percentageName = percentageName; - } - - public PercentageDetail withPercentageStatus(String percentageStatus) { - this.percentageStatus = percentageStatus; - return this; - } - - /** - * 进度状态。 - * @return percentageStatus - */ - public String getPercentageStatus() { - return percentageStatus; - } - - public void setPercentageStatus(String percentageStatus) { - this.percentageStatus = percentageStatus; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - PercentageDetail that = (PercentageDetail) obj; - return Objects.equals(this.percentageName, that.percentageName) - && Objects.equals(this.percentageStatus, that.percentageStatus); - } - - @Override - public int hashCode() { - return Objects.hash(percentageName, percentageStatus); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PercentageDetail {\n"); - sb.append(" percentageName: ").append(toIndentedString(percentageName)).append("\n"); - sb.append(" percentageStatus: ").append(toIndentedString(percentageStatus)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/PermissionSet.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/PermissionSet.java deleted file mode 100644 index 3a1b91e4fd..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/PermissionSet.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * IAM身份中心的权限集相关信息。 - */ -public class PermissionSet { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "permission_set_id") - - private String permissionSetId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "permission_set_name") - - private String permissionSetName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "description") - - private String description; - - public PermissionSet withPermissionSetId(String permissionSetId) { - this.permissionSetId = permissionSetId; - return this; - } - - /** - * 权限集ID。 - * @return permissionSetId - */ - public String getPermissionSetId() { - return permissionSetId; - } - - public void setPermissionSetId(String permissionSetId) { - this.permissionSetId = permissionSetId; - } - - public PermissionSet withPermissionSetName(String permissionSetName) { - this.permissionSetName = permissionSetName; - return this; - } - - /** - * 权限集名称。 - * @return permissionSetName - */ - public String getPermissionSetName() { - return permissionSetName; - } - - public void setPermissionSetName(String permissionSetName) { - this.permissionSetName = permissionSetName; - } - - public PermissionSet 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; - } - PermissionSet that = (PermissionSet) obj; - return Objects.equals(this.permissionSetId, that.permissionSetId) - && Objects.equals(this.permissionSetName, that.permissionSetName) - && Objects.equals(this.description, that.description); - } - - @Override - public int hashCode() { - return Objects.hash(permissionSetId, permissionSetName, description); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PermissionSet {\n"); - sb.append(" permissionSetId: ").append(toIndentedString(permissionSetId)).append("\n"); - sb.append(" permissionSetName: ").append(toIndentedString(permissionSetName)).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/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/PredefinedTemplate.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/PredefinedTemplate.java deleted file mode 100644 index 9b46495b5f..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/PredefinedTemplate.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * 预置模板信息。 - */ -public class PredefinedTemplate { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "template_name") - - private String templateName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "template_description") - - private String templateDescription; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "template_file_name") - - private String templateFileName; - - public PredefinedTemplate withTemplateName(String templateName) { - this.templateName = templateName; - return this; - } - - /** - * 模板名称。 - * @return templateName - */ - public String getTemplateName() { - return templateName; - } - - public void setTemplateName(String templateName) { - this.templateName = templateName; - } - - public PredefinedTemplate withTemplateDescription(String templateDescription) { - this.templateDescription = templateDescription; - return this; - } - - /** - * 模板描述。 - * @return templateDescription - */ - public String getTemplateDescription() { - return templateDescription; - } - - public void setTemplateDescription(String templateDescription) { - this.templateDescription = templateDescription; - } - - public PredefinedTemplate withTemplateFileName(String templateFileName) { - this.templateFileName = templateFileName; - return this; - } - - /** - * 模板文件名称。 - * @return templateFileName - */ - public String getTemplateFileName() { - return templateFileName; - } - - public void setTemplateFileName(String templateFileName) { - this.templateFileName = templateFileName; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - PredefinedTemplate that = (PredefinedTemplate) obj; - return Objects.equals(this.templateName, that.templateName) - && Objects.equals(this.templateDescription, that.templateDescription) - && Objects.equals(this.templateFileName, that.templateFileName); - } - - @Override - public int hashCode() { - return Objects.hash(templateName, templateDescription, templateFileName); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PredefinedTemplate {\n"); - sb.append(" templateName: ").append(toIndentedString(templateName)).append("\n"); - sb.append(" templateDescription: ").append(toIndentedString(templateDescription)).append("\n"); - sb.append(" templateFileName: ").append(toIndentedString(templateFileName)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ReRegisterOrganizationalUnitRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ReRegisterOrganizationalUnitRequest.java deleted file mode 100644 index 8f71637ee2..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ReRegisterOrganizationalUnitRequest.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * Request Object - */ -public class ReRegisterOrganizationalUnitRequest { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organization_unit_id") - - private String organizationUnitId; - - public ReRegisterOrganizationalUnitRequest withOrganizationUnitId(String organizationUnitId) { - this.organizationUnitId = organizationUnitId; - return this; - } - - /** - * 注册OU ID。 - * @return organizationUnitId - */ - public String getOrganizationUnitId() { - return organizationUnitId; - } - - public void setOrganizationUnitId(String organizationUnitId) { - this.organizationUnitId = organizationUnitId; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ReRegisterOrganizationalUnitRequest that = (ReRegisterOrganizationalUnitRequest) obj; - return Objects.equals(this.organizationUnitId, that.organizationUnitId); - } - - @Override - public int hashCode() { - return Objects.hash(organizationUnitId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ReRegisterOrganizationalUnitRequest {\n"); - sb.append(" organizationUnitId: ").append(toIndentedString(organizationUnitId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ReRegisterOrganizationalUnitResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ReRegisterOrganizationalUnitResponse.java deleted file mode 100644 index b221994001..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ReRegisterOrganizationalUnitResponse.java +++ /dev/null @@ -1,76 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 ReRegisterOrganizationalUnitResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organizational_unit_operation_id") - - private String organizationalUnitOperationId; - - public ReRegisterOrganizationalUnitResponse withOrganizationalUnitOperationId( - String organizationalUnitOperationId) { - this.organizationalUnitOperationId = organizationalUnitOperationId; - return this; - } - - /** - * 异步接口的操作ID。 - * @return organizationalUnitOperationId - */ - public String getOrganizationalUnitOperationId() { - return organizationalUnitOperationId; - } - - public void setOrganizationalUnitOperationId(String organizationalUnitOperationId) { - this.organizationalUnitOperationId = organizationalUnitOperationId; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ReRegisterOrganizationalUnitResponse that = (ReRegisterOrganizationalUnitResponse) obj; - return Objects.equals(this.organizationalUnitOperationId, that.organizationalUnitOperationId); - } - - @Override - public int hashCode() { - return Objects.hash(organizationalUnitOperationId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ReRegisterOrganizationalUnitResponse {\n"); - sb.append(" organizationalUnitOperationId: ") - .append(toIndentedString(organizationalUnitOperationId)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/RegionConfigurationList.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/RegionConfigurationList.java deleted file mode 100644 index 77547386ec..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/RegionConfigurationList.java +++ /dev/null @@ -1,173 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 RegionConfigurationList { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "region") - - private String region; - - /** - * 纳管账号类型LOGGING,SECURITY。 - */ - public static final class RegionConfigurationStatusEnum { - - /** - * Enum ENABLED for value: "ENABLED" - */ - public static final RegionConfigurationStatusEnum ENABLED = new RegionConfigurationStatusEnum("ENABLED"); - - /** - * Enum DISABLED for value: "DISABLED" - */ - public static final RegionConfigurationStatusEnum DISABLED = new RegionConfigurationStatusEnum("DISABLED"); - - private static final Map STATIC_FIELDS = createStaticFields(); - - private static Map createStaticFields() { - Map map = new HashMap<>(); - map.put("ENABLED", ENABLED); - map.put("DISABLED", DISABLED); - return Collections.unmodifiableMap(map); - } - - private String value; - - RegionConfigurationStatusEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static RegionConfigurationStatusEnum fromValue(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) - .orElse(new RegionConfigurationStatusEnum(value)); - } - - public static RegionConfigurationStatusEnum 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 RegionConfigurationStatusEnum) { - return this.value.equals(((RegionConfigurationStatusEnum) obj).value); - } - return false; - } - - @Override - public int hashCode() { - return this.value.hashCode(); - } - } - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "region_configuration_status") - - private RegionConfigurationStatusEnum regionConfigurationStatus; - - public RegionConfigurationList withRegion(String region) { - this.region = region; - return this; - } - - /** - * 区域名字。 - * @return region - */ - public String getRegion() { - return region; - } - - public void setRegion(String region) { - this.region = region; - } - - public RegionConfigurationList withRegionConfigurationStatus( - RegionConfigurationStatusEnum regionConfigurationStatus) { - this.regionConfigurationStatus = regionConfigurationStatus; - return this; - } - - /** - * 纳管账号类型LOGGING,SECURITY。 - * @return regionConfigurationStatus - */ - public RegionConfigurationStatusEnum getRegionConfigurationStatus() { - return regionConfigurationStatus; - } - - public void setRegionConfigurationStatus(RegionConfigurationStatusEnum regionConfigurationStatus) { - this.regionConfigurationStatus = regionConfigurationStatus; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - RegionConfigurationList that = (RegionConfigurationList) obj; - return Objects.equals(this.region, that.region) - && Objects.equals(this.regionConfigurationStatus, that.regionConfigurationStatus); - } - - @Override - public int hashCode() { - return Objects.hash(region, regionConfigurationStatus); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RegionConfigurationList {\n"); - sb.append(" region: ").append(toIndentedString(region)).append("\n"); - sb.append(" regionConfigurationStatus: ").append(toIndentedString(regionConfigurationStatus)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/RegisterOrganizationalUnitRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/RegisterOrganizationalUnitRequest.java deleted file mode 100644 index 4fac04b093..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/RegisterOrganizationalUnitRequest.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * Request Object - */ -public class RegisterOrganizationalUnitRequest { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organization_unit_id") - - private String organizationUnitId; - - public RegisterOrganizationalUnitRequest withOrganizationUnitId(String organizationUnitId) { - this.organizationUnitId = organizationUnitId; - return this; - } - - /** - * 注册OU ID。 - * @return organizationUnitId - */ - public String getOrganizationUnitId() { - return organizationUnitId; - } - - public void setOrganizationUnitId(String organizationUnitId) { - this.organizationUnitId = organizationUnitId; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - RegisterOrganizationalUnitRequest that = (RegisterOrganizationalUnitRequest) obj; - return Objects.equals(this.organizationUnitId, that.organizationUnitId); - } - - @Override - public int hashCode() { - return Objects.hash(organizationUnitId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RegisterOrganizationalUnitRequest {\n"); - sb.append(" organizationUnitId: ").append(toIndentedString(organizationUnitId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/RegisterOrganizationalUnitResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/RegisterOrganizationalUnitResponse.java deleted file mode 100644 index 00fcd780b9..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/RegisterOrganizationalUnitResponse.java +++ /dev/null @@ -1,75 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 RegisterOrganizationalUnitResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organizational_unit_operation_id") - - private String organizationalUnitOperationId; - - public RegisterOrganizationalUnitResponse withOrganizationalUnitOperationId(String organizationalUnitOperationId) { - this.organizationalUnitOperationId = organizationalUnitOperationId; - return this; - } - - /** - * 异步接口的操作ID。 - * @return organizationalUnitOperationId - */ - public String getOrganizationalUnitOperationId() { - return organizationalUnitOperationId; - } - - public void setOrganizationalUnitOperationId(String organizationalUnitOperationId) { - this.organizationalUnitOperationId = organizationalUnitOperationId; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - RegisterOrganizationalUnitResponse that = (RegisterOrganizationalUnitResponse) obj; - return Objects.equals(this.organizationalUnitOperationId, that.organizationalUnitOperationId); - } - - @Override - public int hashCode() { - return Objects.hash(organizationalUnitOperationId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RegisterOrganizationalUnitResponse {\n"); - sb.append(" organizationalUnitOperationId: ") - .append(toIndentedString(organizationalUnitOperationId)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/SetupLandingZoneReqBody.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/SetupLandingZoneReqBody.java deleted file mode 100644 index 431c6e1306..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/SetupLandingZoneReqBody.java +++ /dev/null @@ -1,321 +0,0 @@ -package com.huaweicloud.sdk.rgc.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; - -/** - * The request body of the CreateResourceShare operation. - */ -public class SetupLandingZoneReqBody { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "identity_store_email") - - private String identityStoreEmail; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "home_region") - - private String homeRegion; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "setup_landing_zone_action_type") - - private String setupLandingZoneActionType; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "region_configuration_list") - - private List regionConfigurationList = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organization_structure") - - private List organizationStructure = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "deny_ungoverned_regions") - - private Boolean denyUngovernedRegions; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "cloud_trail_type") - - private Boolean cloudTrailType; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "kms_key_id") - - private String kmsKeyId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "logging_configuration") - - private SetupLandingZoneReqBodyLoggingConfiguration loggingConfiguration; - - public SetupLandingZoneReqBody withIdentityStoreEmail(String identityStoreEmail) { - this.identityStoreEmail = identityStoreEmail; - return this; - } - - /** - * 管理员纳管账号创建Identity Center用户所用邮箱。 - * @return identityStoreEmail - */ - public String getIdentityStoreEmail() { - return identityStoreEmail; - } - - public void setIdentityStoreEmail(String identityStoreEmail) { - this.identityStoreEmail = identityStoreEmail; - } - - public SetupLandingZoneReqBody withHomeRegion(String homeRegion) { - this.homeRegion = homeRegion; - return this; - } - - /** - * 主区域。 - * @return homeRegion - */ - public String getHomeRegion() { - return homeRegion; - } - - public void setHomeRegion(String homeRegion) { - this.homeRegion = homeRegion; - } - - public SetupLandingZoneReqBody withSetupLandingZoneActionType(String setupLandingZoneActionType) { - this.setupLandingZoneActionType = setupLandingZoneActionType; - return this; - } - - /** - * 设置Landing Zone的类型。包括CREATE、REPAIR以及UPDATE。 - * @return setupLandingZoneActionType - */ - public String getSetupLandingZoneActionType() { - return setupLandingZoneActionType; - } - - public void setSetupLandingZoneActionType(String setupLandingZoneActionType) { - this.setupLandingZoneActionType = setupLandingZoneActionType; - } - - public SetupLandingZoneReqBody withRegionConfigurationList(List regionConfigurationList) { - this.regionConfigurationList = regionConfigurationList; - return this; - } - - public SetupLandingZoneReqBody addRegionConfigurationListItem(RegionConfigurationList regionConfigurationListItem) { - if (this.regionConfigurationList == null) { - this.regionConfigurationList = new ArrayList<>(); - } - this.regionConfigurationList.add(regionConfigurationListItem); - return this; - } - - public SetupLandingZoneReqBody withRegionConfigurationList( - Consumer> regionConfigurationListSetter) { - if (this.regionConfigurationList == null) { - this.regionConfigurationList = new ArrayList<>(); - } - regionConfigurationListSetter.accept(this.regionConfigurationList); - return this; - } - - /** - * 当前纳管账号纳管的区域。 - * @return regionConfigurationList - */ - public List getRegionConfigurationList() { - return regionConfigurationList; - } - - public void setRegionConfigurationList(List regionConfigurationList) { - this.regionConfigurationList = regionConfigurationList; - } - - public SetupLandingZoneReqBody withOrganizationStructure( - List organizationStructure) { - this.organizationStructure = organizationStructure; - return this; - } - - public SetupLandingZoneReqBody addOrganizationStructureItem( - OrganizationStructureBaseLine organizationStructureItem) { - if (this.organizationStructure == null) { - this.organizationStructure = new ArrayList<>(); - } - this.organizationStructure.add(organizationStructureItem); - return this; - } - - public SetupLandingZoneReqBody withOrganizationStructure( - Consumer> organizationStructureSetter) { - if (this.organizationStructure == null) { - this.organizationStructure = new ArrayList<>(); - } - organizationStructureSetter.accept(this.organizationStructure); - return this; - } - - /** - * 基础环境的纳管账号体系。 - * @return organizationStructure - */ - public List getOrganizationStructure() { - return organizationStructure; - } - - public void setOrganizationStructure(List organizationStructure) { - this.organizationStructure = organizationStructure; - } - - public SetupLandingZoneReqBody withDenyUngovernedRegions(Boolean denyUngovernedRegions) { - this.denyUngovernedRegions = denyUngovernedRegions; - return this; - } - - /** - * 是否允许区域拒绝,默认false。 - * @return denyUngovernedRegions - */ - public Boolean getDenyUngovernedRegions() { - return denyUngovernedRegions; - } - - public void setDenyUngovernedRegions(Boolean denyUngovernedRegions) { - this.denyUngovernedRegions = denyUngovernedRegions; - } - - public SetupLandingZoneReqBody withCloudTrailType(Boolean cloudTrailType) { - this.cloudTrailType = cloudTrailType; - return this; - } - - /** - * 是否允许设置组织汇聚。 - * @return cloudTrailType - */ - public Boolean getCloudTrailType() { - return cloudTrailType; - } - - public void setCloudTrailType(Boolean cloudTrailType) { - this.cloudTrailType = cloudTrailType; - } - - public SetupLandingZoneReqBody withKmsKeyId(String kmsKeyId) { - this.kmsKeyId = kmsKeyId; - return this; - } - - /** - * 加密字段。 - * @return kmsKeyId - */ - public String getKmsKeyId() { - return kmsKeyId; - } - - public void setKmsKeyId(String kmsKeyId) { - this.kmsKeyId = kmsKeyId; - } - - public SetupLandingZoneReqBody withLoggingConfiguration( - SetupLandingZoneReqBodyLoggingConfiguration loggingConfiguration) { - this.loggingConfiguration = loggingConfiguration; - return this; - } - - public SetupLandingZoneReqBody withLoggingConfiguration( - Consumer loggingConfigurationSetter) { - if (this.loggingConfiguration == null) { - this.loggingConfiguration = new SetupLandingZoneReqBodyLoggingConfiguration(); - loggingConfigurationSetter.accept(this.loggingConfiguration); - } - - return this; - } - - /** - * Get loggingConfiguration - * @return loggingConfiguration - */ - public SetupLandingZoneReqBodyLoggingConfiguration getLoggingConfiguration() { - return loggingConfiguration; - } - - public void setLoggingConfiguration(SetupLandingZoneReqBodyLoggingConfiguration loggingConfiguration) { - this.loggingConfiguration = loggingConfiguration; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - SetupLandingZoneReqBody that = (SetupLandingZoneReqBody) obj; - return Objects.equals(this.identityStoreEmail, that.identityStoreEmail) - && Objects.equals(this.homeRegion, that.homeRegion) - && Objects.equals(this.setupLandingZoneActionType, that.setupLandingZoneActionType) - && Objects.equals(this.regionConfigurationList, that.regionConfigurationList) - && Objects.equals(this.organizationStructure, that.organizationStructure) - && Objects.equals(this.denyUngovernedRegions, that.denyUngovernedRegions) - && Objects.equals(this.cloudTrailType, that.cloudTrailType) && Objects.equals(this.kmsKeyId, that.kmsKeyId) - && Objects.equals(this.loggingConfiguration, that.loggingConfiguration); - } - - @Override - public int hashCode() { - return Objects.hash(identityStoreEmail, - homeRegion, - setupLandingZoneActionType, - regionConfigurationList, - organizationStructure, - denyUngovernedRegions, - cloudTrailType, - kmsKeyId, - loggingConfiguration); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SetupLandingZoneReqBody {\n"); - sb.append(" identityStoreEmail: ").append(toIndentedString(identityStoreEmail)).append("\n"); - sb.append(" homeRegion: ").append(toIndentedString(homeRegion)).append("\n"); - sb.append(" setupLandingZoneActionType: ").append(toIndentedString(setupLandingZoneActionType)).append("\n"); - sb.append(" regionConfigurationList: ").append(toIndentedString(regionConfigurationList)).append("\n"); - sb.append(" organizationStructure: ").append(toIndentedString(organizationStructure)).append("\n"); - sb.append(" denyUngovernedRegions: ").append(toIndentedString(denyUngovernedRegions)).append("\n"); - sb.append(" cloudTrailType: ").append(toIndentedString(cloudTrailType)).append("\n"); - sb.append(" kmsKeyId: ").append(toIndentedString(kmsKeyId)).append("\n"); - sb.append(" loggingConfiguration: ").append(toIndentedString(loggingConfiguration)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/SetupLandingZoneReqBodyLoggingConfiguration.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/SetupLandingZoneReqBodyLoggingConfiguration.java deleted file mode 100644 index bf199b577b..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/SetupLandingZoneReqBodyLoggingConfiguration.java +++ /dev/null @@ -1,118 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 SetupLandingZoneReqBodyLoggingConfiguration { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "logging_bucket") - - private LoggingBucketBaseline loggingBucket; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "access_logging_bucket") - - private AccessLoggingBucketBaseline accessLoggingBucket; - - public SetupLandingZoneReqBodyLoggingConfiguration withLoggingBucket(LoggingBucketBaseline loggingBucket) { - this.loggingBucket = loggingBucket; - return this; - } - - public SetupLandingZoneReqBodyLoggingConfiguration withLoggingBucket( - Consumer loggingBucketSetter) { - if (this.loggingBucket == null) { - this.loggingBucket = new LoggingBucketBaseline(); - loggingBucketSetter.accept(this.loggingBucket); - } - - return this; - } - - /** - * Get loggingBucket - * @return loggingBucket - */ - public LoggingBucketBaseline getLoggingBucket() { - return loggingBucket; - } - - public void setLoggingBucket(LoggingBucketBaseline loggingBucket) { - this.loggingBucket = loggingBucket; - } - - public SetupLandingZoneReqBodyLoggingConfiguration withAccessLoggingBucket( - AccessLoggingBucketBaseline accessLoggingBucket) { - this.accessLoggingBucket = accessLoggingBucket; - return this; - } - - public SetupLandingZoneReqBodyLoggingConfiguration withAccessLoggingBucket( - Consumer accessLoggingBucketSetter) { - if (this.accessLoggingBucket == null) { - this.accessLoggingBucket = new AccessLoggingBucketBaseline(); - accessLoggingBucketSetter.accept(this.accessLoggingBucket); - } - - return this; - } - - /** - * Get accessLoggingBucket - * @return accessLoggingBucket - */ - public AccessLoggingBucketBaseline getAccessLoggingBucket() { - return accessLoggingBucket; - } - - public void setAccessLoggingBucket(AccessLoggingBucketBaseline accessLoggingBucket) { - this.accessLoggingBucket = accessLoggingBucket; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - SetupLandingZoneReqBodyLoggingConfiguration that = (SetupLandingZoneReqBodyLoggingConfiguration) obj; - return Objects.equals(this.loggingBucket, that.loggingBucket) - && Objects.equals(this.accessLoggingBucket, that.accessLoggingBucket); - } - - @Override - public int hashCode() { - return Objects.hash(loggingBucket, accessLoggingBucket); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SetupLandingZoneReqBodyLoggingConfiguration {\n"); - sb.append(" loggingBucket: ").append(toIndentedString(loggingBucket)).append("\n"); - sb.append(" accessLoggingBucket: ").append(toIndentedString(accessLoggingBucket)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowAvailableUpdatesRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowAvailableUpdatesRequest.java deleted file mode 100644 index 44612423f0..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowAvailableUpdatesRequest.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import java.util.Objects; - -/** - * Request Object - */ -public class ShowAvailableUpdatesRequest { - - @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 ShowAvailableUpdatesRequest {\n"); - sb.append("}"); - return sb.toString(); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowAvailableUpdatesResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowAvailableUpdatesResponse.java deleted file mode 100644 index afe84e7bfd..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowAvailableUpdatesResponse.java +++ /dev/null @@ -1,173 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 ShowAvailableUpdatesResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "baseline_update_available") - - private Boolean baselineUpdateAvailable; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "control_update_available") - - private Boolean controlUpdateAvailable; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "landing_zone_update_available") - - private Boolean landingZoneUpdateAvailable; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "service_landing_zone_version") - - private String serviceLandingZoneVersion; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "user_landing_zone_version") - - private String userLandingZoneVersion; - - public ShowAvailableUpdatesResponse withBaselineUpdateAvailable(Boolean baselineUpdateAvailable) { - this.baselineUpdateAvailable = baselineUpdateAvailable; - return this; - } - - /** - * Landing Zone基础配置是否可用。 - * @return baselineUpdateAvailable - */ - public Boolean getBaselineUpdateAvailable() { - return baselineUpdateAvailable; - } - - public void setBaselineUpdateAvailable(Boolean baselineUpdateAvailable) { - this.baselineUpdateAvailable = baselineUpdateAvailable; - } - - public ShowAvailableUpdatesResponse withControlUpdateAvailable(Boolean controlUpdateAvailable) { - this.controlUpdateAvailable = controlUpdateAvailable; - return this; - } - - /** - * 当前账号下是否有新的控制策略。 - * @return controlUpdateAvailable - */ - public Boolean getControlUpdateAvailable() { - return controlUpdateAvailable; - } - - public void setControlUpdateAvailable(Boolean controlUpdateAvailable) { - this.controlUpdateAvailable = controlUpdateAvailable; - } - - public ShowAvailableUpdatesResponse withLandingZoneUpdateAvailable(Boolean landingZoneUpdateAvailable) { - this.landingZoneUpdateAvailable = landingZoneUpdateAvailable; - return this; - } - - /** - * Landing Zone是否可更新。 - * @return landingZoneUpdateAvailable - */ - public Boolean getLandingZoneUpdateAvailable() { - return landingZoneUpdateAvailable; - } - - public void setLandingZoneUpdateAvailable(Boolean landingZoneUpdateAvailable) { - this.landingZoneUpdateAvailable = landingZoneUpdateAvailable; - } - - public ShowAvailableUpdatesResponse withServiceLandingZoneVersion(String serviceLandingZoneVersion) { - this.serviceLandingZoneVersion = serviceLandingZoneVersion; - return this; - } - - /** - * Landing Zone当前最新的版本号。 - * @return serviceLandingZoneVersion - */ - public String getServiceLandingZoneVersion() { - return serviceLandingZoneVersion; - } - - public void setServiceLandingZoneVersion(String serviceLandingZoneVersion) { - this.serviceLandingZoneVersion = serviceLandingZoneVersion; - } - - public ShowAvailableUpdatesResponse withUserLandingZoneVersion(String userLandingZoneVersion) { - this.userLandingZoneVersion = userLandingZoneVersion; - return this; - } - - /** - * 用户当前的Landing Zone版本。 - * @return userLandingZoneVersion - */ - public String getUserLandingZoneVersion() { - return userLandingZoneVersion; - } - - public void setUserLandingZoneVersion(String userLandingZoneVersion) { - this.userLandingZoneVersion = userLandingZoneVersion; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ShowAvailableUpdatesResponse that = (ShowAvailableUpdatesResponse) obj; - return Objects.equals(this.baselineUpdateAvailable, that.baselineUpdateAvailable) - && Objects.equals(this.controlUpdateAvailable, that.controlUpdateAvailable) - && Objects.equals(this.landingZoneUpdateAvailable, that.landingZoneUpdateAvailable) - && Objects.equals(this.serviceLandingZoneVersion, that.serviceLandingZoneVersion) - && Objects.equals(this.userLandingZoneVersion, that.userLandingZoneVersion); - } - - @Override - public int hashCode() { - return Objects.hash(baselineUpdateAvailable, - controlUpdateAvailable, - landingZoneUpdateAvailable, - serviceLandingZoneVersion, - userLandingZoneVersion); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ShowAvailableUpdatesResponse {\n"); - sb.append(" baselineUpdateAvailable: ").append(toIndentedString(baselineUpdateAvailable)).append("\n"); - sb.append(" controlUpdateAvailable: ").append(toIndentedString(controlUpdateAvailable)).append("\n"); - sb.append(" landingZoneUpdateAvailable: ").append(toIndentedString(landingZoneUpdateAvailable)).append("\n"); - sb.append(" serviceLandingZoneVersion: ").append(toIndentedString(serviceLandingZoneVersion)).append("\n"); - sb.append(" userLandingZoneVersion: ").append(toIndentedString(userLandingZoneVersion)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowComplianceStatusForAccountRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowComplianceStatusForAccountRequest.java deleted file mode 100644 index 7d24724a10..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowComplianceStatusForAccountRequest.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * Request Object - */ -public class ShowComplianceStatusForAccountRequest { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "managed_account_id") - - private String managedAccountId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "control_id") - - private String controlId; - - public ShowComplianceStatusForAccountRequest withManagedAccountId(String managedAccountId) { - this.managedAccountId = managedAccountId; - return this; - } - - /** - * 纳管账号ID。 - * @return managedAccountId - */ - public String getManagedAccountId() { - return managedAccountId; - } - - public void setManagedAccountId(String managedAccountId) { - this.managedAccountId = managedAccountId; - } - - public ShowComplianceStatusForAccountRequest withControlId(String controlId) { - this.controlId = controlId; - return this; - } - - /** - * 启用的控制策略信息。 - * @return controlId - */ - public String getControlId() { - return controlId; - } - - public void setControlId(String controlId) { - this.controlId = controlId; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ShowComplianceStatusForAccountRequest that = (ShowComplianceStatusForAccountRequest) obj; - return Objects.equals(this.managedAccountId, that.managedAccountId) - && Objects.equals(this.controlId, that.controlId); - } - - @Override - public int hashCode() { - return Objects.hash(managedAccountId, controlId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ShowComplianceStatusForAccountRequest {\n"); - sb.append(" managedAccountId: ").append(toIndentedString(managedAccountId)).append("\n"); - sb.append(" controlId: ").append(toIndentedString(controlId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowComplianceStatusForAccountResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowComplianceStatusForAccountResponse.java deleted file mode 100644 index 4b6d6b1713..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowComplianceStatusForAccountResponse.java +++ /dev/null @@ -1,73 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 ShowComplianceStatusForAccountResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "compliance_status") - - private String complianceStatus; - - public ShowComplianceStatusForAccountResponse withComplianceStatus(String complianceStatus) { - this.complianceStatus = complianceStatus; - return this; - } - - /** - * 合规状态。 - * @return complianceStatus - */ - public String getComplianceStatus() { - return complianceStatus; - } - - public void setComplianceStatus(String complianceStatus) { - this.complianceStatus = complianceStatus; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ShowComplianceStatusForAccountResponse that = (ShowComplianceStatusForAccountResponse) obj; - return Objects.equals(this.complianceStatus, that.complianceStatus); - } - - @Override - public int hashCode() { - return Objects.hash(complianceStatus); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ShowComplianceStatusForAccountResponse {\n"); - sb.append(" complianceStatus: ").append(toIndentedString(complianceStatus)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowComplianceStatusForOrganizationUnitRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowComplianceStatusForOrganizationUnitRequest.java deleted file mode 100644 index b0b353a805..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowComplianceStatusForOrganizationUnitRequest.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * Request Object - */ -public class ShowComplianceStatusForOrganizationUnitRequest { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "managed_organization_unit_id") - - private String managedOrganizationUnitId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "control_id") - - private String controlId; - - public ShowComplianceStatusForOrganizationUnitRequest withManagedOrganizationUnitId( - String managedOrganizationUnitId) { - this.managedOrganizationUnitId = managedOrganizationUnitId; - return this; - } - - /** - * 注册OU ID。 - * @return managedOrganizationUnitId - */ - public String getManagedOrganizationUnitId() { - return managedOrganizationUnitId; - } - - public void setManagedOrganizationUnitId(String managedOrganizationUnitId) { - this.managedOrganizationUnitId = managedOrganizationUnitId; - } - - public ShowComplianceStatusForOrganizationUnitRequest withControlId(String controlId) { - this.controlId = controlId; - return this; - } - - /** - * 启用的控制策略信息。 - * @return controlId - */ - public String getControlId() { - return controlId; - } - - public void setControlId(String controlId) { - this.controlId = controlId; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ShowComplianceStatusForOrganizationUnitRequest that = (ShowComplianceStatusForOrganizationUnitRequest) obj; - return Objects.equals(this.managedOrganizationUnitId, that.managedOrganizationUnitId) - && Objects.equals(this.controlId, that.controlId); - } - - @Override - public int hashCode() { - return Objects.hash(managedOrganizationUnitId, controlId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ShowComplianceStatusForOrganizationUnitRequest {\n"); - sb.append(" managedOrganizationUnitId: ").append(toIndentedString(managedOrganizationUnitId)).append("\n"); - sb.append(" controlId: ").append(toIndentedString(controlId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowComplianceStatusForOrganizationUnitResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowComplianceStatusForOrganizationUnitResponse.java deleted file mode 100644 index 2a323b1a67..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowComplianceStatusForOrganizationUnitResponse.java +++ /dev/null @@ -1,73 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 ShowComplianceStatusForOrganizationUnitResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "compliance_status") - - private String complianceStatus; - - public ShowComplianceStatusForOrganizationUnitResponse withComplianceStatus(String complianceStatus) { - this.complianceStatus = complianceStatus; - return this; - } - - /** - * 合规状态。 - * @return complianceStatus - */ - public String getComplianceStatus() { - return complianceStatus; - } - - public void setComplianceStatus(String complianceStatus) { - this.complianceStatus = complianceStatus; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ShowComplianceStatusForOrganizationUnitResponse that = (ShowComplianceStatusForOrganizationUnitResponse) obj; - return Objects.equals(this.complianceStatus, that.complianceStatus); - } - - @Override - public int hashCode() { - return Objects.hash(complianceStatus); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ShowComplianceStatusForOrganizationUnitResponse {\n"); - sb.append(" complianceStatus: ").append(toIndentedString(complianceStatus)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowControlResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowControlResponse.java deleted file mode 100644 index 602ee1914b..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowControlResponse.java +++ /dev/null @@ -1,461 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.huaweicloud.sdk.core.SdkResponse; - -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * Response Object - */ -public class ShowControlResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "identifier") - - private String identifier; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "implementation") - - private String implementation; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "guidance") - - private String guidance; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "resource") - - private List resource = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "service") - - private String service; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "behavior") - - private String behavior; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "control_objective") - - private String controlObjective; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "framework") - - private List framework = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "artifacts") - - private List artifacts = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "aliases") - - private List aliases = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "owner") - - private String owner; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "severity") - - private String severity; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "version") - - private String version; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "release_date") - - private OffsetDateTime releaseDate; - - public ShowControlResponse withIdentifier(String identifier) { - this.identifier = identifier; - return this; - } - - /** - * 控制策略ID。 - * @return identifier - */ - public String getIdentifier() { - return identifier; - } - - public void setIdentifier(String identifier) { - this.identifier = identifier; - } - - public ShowControlResponse withImplementation(String implementation) { - this.implementation = implementation; - return this; - } - - /** - * 服务控制策略(SCP),配置规则。 - * @return implementation - */ - public String getImplementation() { - return implementation; - } - - public void setImplementation(String implementation) { - this.implementation = implementation; - } - - public ShowControlResponse withGuidance(String guidance) { - this.guidance = guidance; - return this; - } - - /** - * 控制策略必须性。 - * @return guidance - */ - public String getGuidance() { - return guidance; - } - - public void setGuidance(String guidance) { - this.guidance = guidance; - } - - public ShowControlResponse withResource(List resource) { - this.resource = resource; - return this; - } - - public ShowControlResponse addResourceItem(String resourceItem) { - if (this.resource == null) { - this.resource = new ArrayList<>(); - } - this.resource.add(resourceItem); - return this; - } - - public ShowControlResponse withResource(Consumer> resourceSetter) { - if (this.resource == null) { - this.resource = new ArrayList<>(); - } - resourceSetter.accept(this.resource); - return this; - } - - /** - * 治理资源。 - * @return resource - */ - public List getResource() { - return resource; - } - - public void setResource(List resource) { - this.resource = resource; - } - - public ShowControlResponse withService(String service) { - this.service = service; - return this; - } - - /** - * 控制策略所属服务。 - * @return service - */ - public String getService() { - return service; - } - - public void setService(String service) { - this.service = service; - } - - public ShowControlResponse withBehavior(String behavior) { - this.behavior = behavior; - return this; - } - - /** - * 控制策略类型。包括主动性控制策略Proactive、检测性控制策略Detective、预防性控制策略Preventive。 - * @return behavior - */ - public String getBehavior() { - return behavior; - } - - public void setBehavior(String behavior) { - this.behavior = behavior; - } - - public ShowControlResponse withControlObjective(String controlObjective) { - this.controlObjective = controlObjective; - return this; - } - - /** - * 控制策略目标。 - * @return controlObjective - */ - public String getControlObjective() { - return controlObjective; - } - - public void setControlObjective(String controlObjective) { - this.controlObjective = controlObjective; - } - - public ShowControlResponse withFramework(List framework) { - this.framework = framework; - return this; - } - - public ShowControlResponse addFrameworkItem(String frameworkItem) { - if (this.framework == null) { - this.framework = new ArrayList<>(); - } - this.framework.add(frameworkItem); - return this; - } - - public ShowControlResponse withFramework(Consumer> frameworkSetter) { - if (this.framework == null) { - this.framework = new ArrayList<>(); - } - frameworkSetter.accept(this.framework); - return this; - } - - /** - * 治理策略来自的框架。 - * @return framework - */ - public List getFramework() { - return framework; - } - - public void setFramework(List framework) { - this.framework = framework; - } - - public ShowControlResponse withArtifacts(List artifacts) { - this.artifacts = artifacts; - return this; - } - - public ShowControlResponse addArtifactsItem(Artifact artifactsItem) { - if (this.artifacts == null) { - this.artifacts = new ArrayList<>(); - } - this.artifacts.add(artifactsItem); - return this; - } - - public ShowControlResponse withArtifacts(Consumer> artifactsSetter) { - if (this.artifacts == null) { - this.artifacts = new ArrayList<>(); - } - artifactsSetter.accept(this.artifacts); - return this; - } - - /** - * 控制策略内容。 - * @return artifacts - */ - public List getArtifacts() { - return artifacts; - } - - public void setArtifacts(List artifacts) { - this.artifacts = artifacts; - } - - public ShowControlResponse withAliases(List aliases) { - this.aliases = aliases; - return this; - } - - public ShowControlResponse addAliasesItem(String aliasesItem) { - if (this.aliases == null) { - this.aliases = new ArrayList<>(); - } - this.aliases.add(aliasesItem); - return this; - } - - public ShowControlResponse withAliases(Consumer> aliasesSetter) { - if (this.aliases == null) { - this.aliases = new ArrayList<>(); - } - aliasesSetter.accept(this.aliases); - return this; - } - - /** - * 控制策略别名。 - * @return aliases - */ - public List getAliases() { - return aliases; - } - - public void setAliases(List aliases) { - this.aliases = aliases; - } - - public ShowControlResponse withOwner(String owner) { - this.owner = owner; - return this; - } - - /** - * 纳管账号的创建来源,包括CUSTOM和RGC。 - * @return owner - */ - public String getOwner() { - return owner; - } - - public void setOwner(String owner) { - this.owner = owner; - } - - public ShowControlResponse withSeverity(String severity) { - this.severity = severity; - return this; - } - - /** - * 控制策略严重性。 - * @return severity - */ - public String getSeverity() { - return severity; - } - - public void setSeverity(String severity) { - this.severity = severity; - } - - public ShowControlResponse withVersion(String version) { - this.version = version; - return this; - } - - /** - * 控制策略版本。 - * @return version - */ - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - public ShowControlResponse withReleaseDate(OffsetDateTime releaseDate) { - this.releaseDate = releaseDate; - return this; - } - - /** - * 控制策略发布时间。 - * @return releaseDate - */ - public OffsetDateTime getReleaseDate() { - return releaseDate; - } - - public void setReleaseDate(OffsetDateTime releaseDate) { - this.releaseDate = releaseDate; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ShowControlResponse that = (ShowControlResponse) obj; - return Objects.equals(this.identifier, that.identifier) - && Objects.equals(this.implementation, that.implementation) && Objects.equals(this.guidance, that.guidance) - && Objects.equals(this.resource, that.resource) && Objects.equals(this.service, that.service) - && Objects.equals(this.behavior, that.behavior) - && Objects.equals(this.controlObjective, that.controlObjective) - && Objects.equals(this.framework, that.framework) && Objects.equals(this.artifacts, that.artifacts) - && Objects.equals(this.aliases, that.aliases) && Objects.equals(this.owner, that.owner) - && Objects.equals(this.severity, that.severity) && Objects.equals(this.version, that.version) - && Objects.equals(this.releaseDate, that.releaseDate); - } - - @Override - public int hashCode() { - return Objects.hash(identifier, - implementation, - guidance, - resource, - service, - behavior, - controlObjective, - framework, - artifacts, - aliases, - owner, - severity, - version, - releaseDate); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ShowControlResponse {\n"); - sb.append(" identifier: ").append(toIndentedString(identifier)).append("\n"); - sb.append(" implementation: ").append(toIndentedString(implementation)).append("\n"); - sb.append(" guidance: ").append(toIndentedString(guidance)).append("\n"); - sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); - sb.append(" service: ").append(toIndentedString(service)).append("\n"); - sb.append(" behavior: ").append(toIndentedString(behavior)).append("\n"); - sb.append(" controlObjective: ").append(toIndentedString(controlObjective)).append("\n"); - sb.append(" framework: ").append(toIndentedString(framework)).append("\n"); - sb.append(" artifacts: ").append(toIndentedString(artifacts)).append("\n"); - sb.append(" aliases: ").append(toIndentedString(aliases)).append("\n"); - sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); - sb.append(" severity: ").append(toIndentedString(severity)).append("\n"); - sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append(" releaseDate: ").append(toIndentedString(releaseDate)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowControlsForOrganizationUnitRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowControlsForOrganizationUnitRequest.java deleted file mode 100644 index cee81df651..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowControlsForOrganizationUnitRequest.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * Request Object - */ -public class ShowControlsForOrganizationUnitRequest { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "managed_organization_unit_id") - - private String managedOrganizationUnitId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "control_id") - - private String controlId; - - public ShowControlsForOrganizationUnitRequest withManagedOrganizationUnitId(String managedOrganizationUnitId) { - this.managedOrganizationUnitId = managedOrganizationUnitId; - return this; - } - - /** - * 注册OU ID。 - * @return managedOrganizationUnitId - */ - public String getManagedOrganizationUnitId() { - return managedOrganizationUnitId; - } - - public void setManagedOrganizationUnitId(String managedOrganizationUnitId) { - this.managedOrganizationUnitId = managedOrganizationUnitId; - } - - public ShowControlsForOrganizationUnitRequest withControlId(String controlId) { - this.controlId = controlId; - return this; - } - - /** - * 控制策略ID。 - * @return controlId - */ - public String getControlId() { - return controlId; - } - - public void setControlId(String controlId) { - this.controlId = controlId; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ShowControlsForOrganizationUnitRequest that = (ShowControlsForOrganizationUnitRequest) obj; - return Objects.equals(this.managedOrganizationUnitId, that.managedOrganizationUnitId) - && Objects.equals(this.controlId, that.controlId); - } - - @Override - public int hashCode() { - return Objects.hash(managedOrganizationUnitId, controlId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ShowControlsForOrganizationUnitRequest {\n"); - sb.append(" managedOrganizationUnitId: ").append(toIndentedString(managedOrganizationUnitId)).append("\n"); - sb.append(" controlId: ").append(toIndentedString(controlId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowControlsForOrganizationUnitResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowControlsForOrganizationUnitResponse.java deleted file mode 100644 index b3a965e17c..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowControlsForOrganizationUnitResponse.java +++ /dev/null @@ -1,195 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 ShowControlsForOrganizationUnitResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "control") - - private EnabledControl control; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "regions") - - private List regions = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "state") - - private String state; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "state_message") - - private String stateMessage; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "version") - - private String version; - - public ShowControlsForOrganizationUnitResponse withControl(EnabledControl control) { - this.control = control; - return this; - } - - public ShowControlsForOrganizationUnitResponse withControl(Consumer controlSetter) { - if (this.control == null) { - this.control = new EnabledControl(); - controlSetter.accept(this.control); - } - - return this; - } - - /** - * Get control - * @return control - */ - public EnabledControl getControl() { - return control; - } - - public void setControl(EnabledControl control) { - this.control = control; - } - - public ShowControlsForOrganizationUnitResponse withRegions(List regions) { - this.regions = regions; - return this; - } - - public ShowControlsForOrganizationUnitResponse addRegionsItem(String regionsItem) { - if (this.regions == null) { - this.regions = new ArrayList<>(); - } - this.regions.add(regionsItem); - return this; - } - - public ShowControlsForOrganizationUnitResponse withRegions(Consumer> regionsSetter) { - if (this.regions == null) { - this.regions = new ArrayList<>(); - } - regionsSetter.accept(this.regions); - return this; - } - - /** - * 开启的区域。 - * @return regions - */ - public List getRegions() { - return regions; - } - - public void setRegions(List regions) { - this.regions = regions; - } - - public ShowControlsForOrganizationUnitResponse withState(String state) { - this.state = state; - return this; - } - - /** - * 是否允许启用控制策略。 - * @return state - */ - public String getState() { - return state; - } - - public void setState(String state) { - this.state = state; - } - - public ShowControlsForOrganizationUnitResponse withStateMessage(String stateMessage) { - this.stateMessage = stateMessage; - return this; - } - - /** - * 状态说明。 - * @return stateMessage - */ - public String getStateMessage() { - return stateMessage; - } - - public void setStateMessage(String stateMessage) { - this.stateMessage = stateMessage; - } - - public ShowControlsForOrganizationUnitResponse withVersion(String version) { - this.version = version; - return this; - } - - /** - * 控制策略当前版本。 - * @return version - */ - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ShowControlsForOrganizationUnitResponse that = (ShowControlsForOrganizationUnitResponse) obj; - return Objects.equals(this.control, that.control) && Objects.equals(this.regions, that.regions) - && Objects.equals(this.state, that.state) && Objects.equals(this.stateMessage, that.stateMessage) - && Objects.equals(this.version, that.version); - } - - @Override - public int hashCode() { - return Objects.hash(control, regions, state, stateMessage, version); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ShowControlsForOrganizationUnitResponse {\n"); - sb.append(" control: ").append(toIndentedString(control)).append("\n"); - sb.append(" regions: ").append(toIndentedString(regions)).append("\n"); - sb.append(" state: ").append(toIndentedString(state)).append("\n"); - sb.append(" stateMessage: ").append(toIndentedString(stateMessage)).append("\n"); - sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowHomeRegionRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowHomeRegionRequest.java deleted file mode 100644 index b2b62308fd..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowHomeRegionRequest.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import java.util.Objects; - -/** - * Request Object - */ -public class ShowHomeRegionRequest { - - @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 ShowHomeRegionRequest {\n"); - sb.append("}"); - return sb.toString(); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowLandingZoneConfigurationRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowLandingZoneConfigurationRequest.java deleted file mode 100644 index b980d0c9da..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowLandingZoneConfigurationRequest.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import java.util.Objects; - -/** - * Request Object - */ -public class ShowLandingZoneConfigurationRequest { - - @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 ShowLandingZoneConfigurationRequest {\n"); - sb.append("}"); - return sb.toString(); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowLandingZoneConfigurationResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowLandingZoneConfigurationResponse.java deleted file mode 100644 index 97210187e5..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowLandingZoneConfigurationResponse.java +++ /dev/null @@ -1,203 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 ShowLandingZoneConfigurationResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "common_configuration") - - private CommonConfiguration commonConfiguration; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "logging_configuration") - - private LoggingConfiguration loggingConfiguration; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organization_structure") - - private List organizationStructure = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "regions") - - private List regions = null; - - public ShowLandingZoneConfigurationResponse withCommonConfiguration(CommonConfiguration commonConfiguration) { - this.commonConfiguration = commonConfiguration; - return this; - } - - public ShowLandingZoneConfigurationResponse withCommonConfiguration( - Consumer commonConfigurationSetter) { - if (this.commonConfiguration == null) { - this.commonConfiguration = new CommonConfiguration(); - commonConfigurationSetter.accept(this.commonConfiguration); - } - - return this; - } - - /** - * Get commonConfiguration - * @return commonConfiguration - */ - public CommonConfiguration getCommonConfiguration() { - return commonConfiguration; - } - - public void setCommonConfiguration(CommonConfiguration commonConfiguration) { - this.commonConfiguration = commonConfiguration; - } - - public ShowLandingZoneConfigurationResponse withLoggingConfiguration(LoggingConfiguration loggingConfiguration) { - this.loggingConfiguration = loggingConfiguration; - return this; - } - - public ShowLandingZoneConfigurationResponse withLoggingConfiguration( - Consumer loggingConfigurationSetter) { - if (this.loggingConfiguration == null) { - this.loggingConfiguration = new LoggingConfiguration(); - loggingConfigurationSetter.accept(this.loggingConfiguration); - } - - return this; - } - - /** - * Get loggingConfiguration - * @return loggingConfiguration - */ - public LoggingConfiguration getLoggingConfiguration() { - return loggingConfiguration; - } - - public void setLoggingConfiguration(LoggingConfiguration loggingConfiguration) { - this.loggingConfiguration = loggingConfiguration; - } - - public ShowLandingZoneConfigurationResponse withOrganizationStructure( - List organizationStructure) { - this.organizationStructure = organizationStructure; - return this; - } - - public ShowLandingZoneConfigurationResponse addOrganizationStructureItem( - OrganizationStructureBaseLineRsp organizationStructureItem) { - if (this.organizationStructure == null) { - this.organizationStructure = new ArrayList<>(); - } - this.organizationStructure.add(organizationStructureItem); - return this; - } - - public ShowLandingZoneConfigurationResponse withOrganizationStructure( - Consumer> organizationStructureSetter) { - if (this.organizationStructure == null) { - this.organizationStructure = new ArrayList<>(); - } - organizationStructureSetter.accept(this.organizationStructure); - return this; - } - - /** - * Get organizationStructure - * @return organizationStructure - */ - public List getOrganizationStructure() { - return organizationStructure; - } - - public void setOrganizationStructure(List organizationStructure) { - this.organizationStructure = organizationStructure; - } - - public ShowLandingZoneConfigurationResponse withRegions(List regions) { - this.regions = regions; - return this; - } - - public ShowLandingZoneConfigurationResponse addRegionsItem(RegionConfigurationList regionsItem) { - if (this.regions == null) { - this.regions = new ArrayList<>(); - } - this.regions.add(regionsItem); - return this; - } - - public ShowLandingZoneConfigurationResponse withRegions(Consumer> regionsSetter) { - if (this.regions == null) { - this.regions = new ArrayList<>(); - } - regionsSetter.accept(this.regions); - return this; - } - - /** - * 纳管的区域信息。 - * @return regions - */ - public List getRegions() { - return regions; - } - - public void setRegions(List regions) { - this.regions = regions; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ShowLandingZoneConfigurationResponse that = (ShowLandingZoneConfigurationResponse) obj; - return Objects.equals(this.commonConfiguration, that.commonConfiguration) - && Objects.equals(this.loggingConfiguration, that.loggingConfiguration) - && Objects.equals(this.organizationStructure, that.organizationStructure) - && Objects.equals(this.regions, that.regions); - } - - @Override - public int hashCode() { - return Objects.hash(commonConfiguration, loggingConfiguration, organizationStructure, regions); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ShowLandingZoneConfigurationResponse {\n"); - sb.append(" commonConfiguration: ").append(toIndentedString(commonConfiguration)).append("\n"); - sb.append(" loggingConfiguration: ").append(toIndentedString(loggingConfiguration)).append("\n"); - sb.append(" organizationStructure: ").append(toIndentedString(organizationStructure)).append("\n"); - sb.append(" regions: ").append(toIndentedString(regions)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowLandingZoneIdentityCenterRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowLandingZoneIdentityCenterRequest.java deleted file mode 100644 index 28487a14a4..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowLandingZoneIdentityCenterRequest.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import java.util.Objects; - -/** - * Request Object - */ -public class ShowLandingZoneIdentityCenterRequest { - - @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 ShowLandingZoneIdentityCenterRequest {\n"); - sb.append("}"); - return sb.toString(); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowLandingZoneIdentityCenterResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowLandingZoneIdentityCenterResponse.java deleted file mode 100644 index 3ef37af024..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowLandingZoneIdentityCenterResponse.java +++ /dev/null @@ -1,180 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 ShowLandingZoneIdentityCenterResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "identity_store_id") - - private String identityStoreId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "user_portal_url") - - private String userPortalUrl; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "permission_sets") - - private List permissionSets = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "groups") - - private List groups = null; - - public ShowLandingZoneIdentityCenterResponse withIdentityStoreId(String identityStoreId) { - this.identityStoreId = identityStoreId; - return this; - } - - /** - * Identity Center目录ID。 - * @return identityStoreId - */ - public String getIdentityStoreId() { - return identityStoreId; - } - - public void setIdentityStoreId(String identityStoreId) { - this.identityStoreId = identityStoreId; - } - - public ShowLandingZoneIdentityCenterResponse withUserPortalUrl(String userPortalUrl) { - this.userPortalUrl = userPortalUrl; - return this; - } - - /** - * Identity Center登录URL。 - * @return userPortalUrl - */ - public String getUserPortalUrl() { - return userPortalUrl; - } - - public void setUserPortalUrl(String userPortalUrl) { - this.userPortalUrl = userPortalUrl; - } - - public ShowLandingZoneIdentityCenterResponse withPermissionSets(List permissionSets) { - this.permissionSets = permissionSets; - return this; - } - - public ShowLandingZoneIdentityCenterResponse addPermissionSetsItem(PermissionSet permissionSetsItem) { - if (this.permissionSets == null) { - this.permissionSets = new ArrayList<>(); - } - this.permissionSets.add(permissionSetsItem); - return this; - } - - public ShowLandingZoneIdentityCenterResponse withPermissionSets( - Consumer> permissionSetsSetter) { - if (this.permissionSets == null) { - this.permissionSets = new ArrayList<>(); - } - permissionSetsSetter.accept(this.permissionSets); - return this; - } - - /** - * Get permissionSets - * @return permissionSets - */ - public List getPermissionSets() { - return permissionSets; - } - - public void setPermissionSets(List permissionSets) { - this.permissionSets = permissionSets; - } - - public ShowLandingZoneIdentityCenterResponse withGroups(List groups) { - this.groups = groups; - return this; - } - - public ShowLandingZoneIdentityCenterResponse addGroupsItem(IdentityCenterGroup groupsItem) { - if (this.groups == null) { - this.groups = new ArrayList<>(); - } - this.groups.add(groupsItem); - return this; - } - - public ShowLandingZoneIdentityCenterResponse withGroups(Consumer> groupsSetter) { - if (this.groups == null) { - this.groups = new ArrayList<>(); - } - groupsSetter.accept(this.groups); - return this; - } - - /** - * Get groups - * @return groups - */ - public List getGroups() { - return groups; - } - - public void setGroups(List groups) { - this.groups = groups; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ShowLandingZoneIdentityCenterResponse that = (ShowLandingZoneIdentityCenterResponse) obj; - return Objects.equals(this.identityStoreId, that.identityStoreId) - && Objects.equals(this.userPortalUrl, that.userPortalUrl) - && Objects.equals(this.permissionSets, that.permissionSets) && Objects.equals(this.groups, that.groups); - } - - @Override - public int hashCode() { - return Objects.hash(identityStoreId, userPortalUrl, permissionSets, groups); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ShowLandingZoneIdentityCenterResponse {\n"); - sb.append(" identityStoreId: ").append(toIndentedString(identityStoreId)).append("\n"); - sb.append(" userPortalUrl: ").append(toIndentedString(userPortalUrl)).append("\n"); - sb.append(" permissionSets: ").append(toIndentedString(permissionSets)).append("\n"); - sb.append(" groups: ").append(toIndentedString(groups)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowLandingZoneStatusRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowLandingZoneStatusRequest.java deleted file mode 100644 index b4588e947e..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowLandingZoneStatusRequest.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import java.util.Objects; - -/** - * Request Object - */ -public class ShowLandingZoneStatusRequest { - - @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 ShowLandingZoneStatusRequest {\n"); - sb.append("}"); - return sb.toString(); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowLandingZoneStatusResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowLandingZoneStatusResponse.java deleted file mode 100644 index 3d87ddf884..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowLandingZoneStatusResponse.java +++ /dev/null @@ -1,276 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 ShowLandingZoneStatusResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "deployed_version") - - private String deployedVersion; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "landing_zone_status") - - private String landingZoneStatus; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "percentage_complete") - - private Integer percentageComplete; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "percentage_details") - - private List percentageDetails = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "landing_zone_action_type") - - private String landingZoneActionType; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "message") - - private List message = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "regions") - - private List regions = null; - - public ShowLandingZoneStatusResponse withDeployedVersion(String deployedVersion) { - this.deployedVersion = deployedVersion; - return this; - } - - /** - * 部署的Landing Zone版本。 - * @return deployedVersion - */ - public String getDeployedVersion() { - return deployedVersion; - } - - public void setDeployedVersion(String deployedVersion) { - this.deployedVersion = deployedVersion; - } - - public ShowLandingZoneStatusResponse withLandingZoneStatus(String landingZoneStatus) { - this.landingZoneStatus = landingZoneStatus; - return this; - } - - /** - * Landing Zone的设置状态,包括进行中,已完成。 - * @return landingZoneStatus - */ - public String getLandingZoneStatus() { - return landingZoneStatus; - } - - public void setLandingZoneStatus(String landingZoneStatus) { - this.landingZoneStatus = landingZoneStatus; - } - - public ShowLandingZoneStatusResponse withPercentageComplete(Integer percentageComplete) { - this.percentageComplete = percentageComplete; - return this; - } - - /** - * Landing Zone的完成进度。 - * minimum: 1 - * maximum: 100 - * @return percentageComplete - */ - public Integer getPercentageComplete() { - return percentageComplete; - } - - public void setPercentageComplete(Integer percentageComplete) { - this.percentageComplete = percentageComplete; - } - - public ShowLandingZoneStatusResponse withPercentageDetails(List percentageDetails) { - this.percentageDetails = percentageDetails; - return this; - } - - public ShowLandingZoneStatusResponse addPercentageDetailsItem(PercentageDetail percentageDetailsItem) { - if (this.percentageDetails == null) { - this.percentageDetails = new ArrayList<>(); - } - this.percentageDetails.add(percentageDetailsItem); - return this; - } - - public ShowLandingZoneStatusResponse withPercentageDetails( - Consumer> percentageDetailsSetter) { - if (this.percentageDetails == null) { - this.percentageDetails = new ArrayList<>(); - } - percentageDetailsSetter.accept(this.percentageDetails); - return this; - } - - /** - * Landing Zone设置的详细进度信息。 - * @return percentageDetails - */ - public List getPercentageDetails() { - return percentageDetails; - } - - public void setPercentageDetails(List percentageDetails) { - this.percentageDetails = percentageDetails; - } - - public ShowLandingZoneStatusResponse withLandingZoneActionType(String landingZoneActionType) { - this.landingZoneActionType = landingZoneActionType; - return this; - } - - /** - * Landing Zone当前需要执行的动作。 - * @return landingZoneActionType - */ - public String getLandingZoneActionType() { - return landingZoneActionType; - } - - public void setLandingZoneActionType(String landingZoneActionType) { - this.landingZoneActionType = landingZoneActionType; - } - - public ShowLandingZoneStatusResponse withMessage(List message) { - this.message = message; - return this; - } - - public ShowLandingZoneStatusResponse addMessageItem(LandingZoneErrorMessage messageItem) { - if (this.message == null) { - this.message = new ArrayList<>(); - } - this.message.add(messageItem); - return this; - } - - public ShowLandingZoneStatusResponse withMessage(Consumer> messageSetter) { - if (this.message == null) { - this.message = new ArrayList<>(); - } - messageSetter.accept(this.message); - return this; - } - - /** - * Landing Zone错误消息。 - * @return message - */ - public List getMessage() { - return message; - } - - public void setMessage(List message) { - this.message = message; - } - - public ShowLandingZoneStatusResponse withRegions(List regions) { - this.regions = regions; - return this; - } - - public ShowLandingZoneStatusResponse addRegionsItem(RegionConfigurationList regionsItem) { - if (this.regions == null) { - this.regions = new ArrayList<>(); - } - this.regions.add(regionsItem); - return this; - } - - public ShowLandingZoneStatusResponse withRegions(Consumer> regionsSetter) { - if (this.regions == null) { - this.regions = new ArrayList<>(); - } - regionsSetter.accept(this.regions); - return this; - } - - /** - * 纳管的区域信息。 - * @return regions - */ - public List getRegions() { - return regions; - } - - public void setRegions(List regions) { - this.regions = regions; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ShowLandingZoneStatusResponse that = (ShowLandingZoneStatusResponse) obj; - return Objects.equals(this.deployedVersion, that.deployedVersion) - && Objects.equals(this.landingZoneStatus, that.landingZoneStatus) - && Objects.equals(this.percentageComplete, that.percentageComplete) - && Objects.equals(this.percentageDetails, that.percentageDetails) - && Objects.equals(this.landingZoneActionType, that.landingZoneActionType) - && Objects.equals(this.message, that.message) && Objects.equals(this.regions, that.regions); - } - - @Override - public int hashCode() { - return Objects.hash(deployedVersion, - landingZoneStatus, - percentageComplete, - percentageDetails, - landingZoneActionType, - message, - regions); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ShowLandingZoneStatusResponse {\n"); - sb.append(" deployedVersion: ").append(toIndentedString(deployedVersion)).append("\n"); - sb.append(" landingZoneStatus: ").append(toIndentedString(landingZoneStatus)).append("\n"); - sb.append(" percentageComplete: ").append(toIndentedString(percentageComplete)).append("\n"); - sb.append(" percentageDetails: ").append(toIndentedString(percentageDetails)).append("\n"); - sb.append(" landingZoneActionType: ").append(toIndentedString(landingZoneActionType)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" regions: ").append(toIndentedString(regions)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowManagedAccountRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowManagedAccountRequest.java deleted file mode 100644 index 721fe78ef8..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowManagedAccountRequest.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * Request Object - */ -public class ShowManagedAccountRequest { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "managed_account_id") - - private String managedAccountId; - - public ShowManagedAccountRequest withManagedAccountId(String managedAccountId) { - this.managedAccountId = managedAccountId; - return this; - } - - /** - * 纳管账号ID。 - * @return managedAccountId - */ - public String getManagedAccountId() { - return managedAccountId; - } - - public void setManagedAccountId(String managedAccountId) { - this.managedAccountId = managedAccountId; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ShowManagedAccountRequest that = (ShowManagedAccountRequest) obj; - return Objects.equals(this.managedAccountId, that.managedAccountId); - } - - @Override - public int hashCode() { - return Objects.hash(managedAccountId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ShowManagedAccountRequest {\n"); - sb.append(" managedAccountId: ").append(toIndentedString(managedAccountId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowManagedAccountResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowManagedAccountResponse.java deleted file mode 100644 index b0da49f1a3..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowManagedAccountResponse.java +++ /dev/null @@ -1,517 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.huaweicloud.sdk.core.SdkResponse; - -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * Response Object - */ -public class ShowManagedAccountResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "landing_zone_version") - - private String landingZoneVersion; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "manage_account_id") - - private String manageAccountId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "account_id") - - private String accountId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "account_name") - - private String accountName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "account_type") - - private String accountType; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "owner") - - private String owner; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "state") - - private String state; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "message") - - private String message; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "parent_organization_unit_id") - - private String parentOrganizationUnitId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "parent_organization_unit_name") - - private String parentOrganizationUnitName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "identity_store_user_name") - - private String identityStoreUserName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "blueprint_product_id") - - private String blueprintProductId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "blueprint_product_version") - - private String blueprintProductVersion; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "blueprint_status") - - private String blueprintStatus; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "is_blueprint_has_multi_account_resource") - - private Boolean isBlueprintHasMultiAccountResource; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "regions") - - private List regions = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "created_at") - - private OffsetDateTime createdAt; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "updated_at") - - private OffsetDateTime updatedAt; - - public ShowManagedAccountResponse withLandingZoneVersion(String landingZoneVersion) { - this.landingZoneVersion = landingZoneVersion; - return this; - } - - /** - * Landing Zone版本。 - * @return landingZoneVersion - */ - public String getLandingZoneVersion() { - return landingZoneVersion; - } - - public void setLandingZoneVersion(String landingZoneVersion) { - this.landingZoneVersion = landingZoneVersion; - } - - public ShowManagedAccountResponse withManageAccountId(String manageAccountId) { - this.manageAccountId = manageAccountId; - return this; - } - - /** - * 管理纳管账号ID。 - * @return manageAccountId - */ - public String getManageAccountId() { - return manageAccountId; - } - - public void setManageAccountId(String manageAccountId) { - this.manageAccountId = manageAccountId; - } - - public ShowManagedAccountResponse withAccountId(String accountId) { - this.accountId = accountId; - return this; - } - - /** - * 纳管账号ID。 - * @return accountId - */ - public String getAccountId() { - return accountId; - } - - public void setAccountId(String accountId) { - this.accountId = accountId; - } - - public ShowManagedAccountResponse withAccountName(String accountName) { - this.accountName = accountName; - return this; - } - - /** - * 纳管账号名称。 - * @return accountName - */ - public String getAccountName() { - return accountName; - } - - public void setAccountName(String accountName) { - this.accountName = accountName; - } - - public ShowManagedAccountResponse withAccountType(String accountType) { - this.accountType = accountType; - return this; - } - - /** - * 纳管账号类型。 - * @return accountType - */ - public String getAccountType() { - return accountType; - } - - public void setAccountType(String accountType) { - this.accountType = accountType; - } - - public ShowManagedAccountResponse withOwner(String owner) { - this.owner = owner; - return this; - } - - /** - * 纳管账号的创建来源,包括CUSTOM和RGC。 - * @return owner - */ - public String getOwner() { - return owner; - } - - public void setOwner(String owner) { - this.owner = owner; - } - - public ShowManagedAccountResponse withState(String state) { - this.state = state; - return this; - } - - /** - * 纳管账号状态。 - * @return state - */ - public String getState() { - return state; - } - - public void setState(String state) { - this.state = state; - } - - public ShowManagedAccountResponse withMessage(String message) { - this.message = message; - return this; - } - - /** - * 错误状态描述信息。 - * @return message - */ - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public ShowManagedAccountResponse withParentOrganizationUnitId(String parentOrganizationUnitId) { - this.parentOrganizationUnitId = parentOrganizationUnitId; - return this; - } - - /** - * 父注册OU ID。 - * @return parentOrganizationUnitId - */ - public String getParentOrganizationUnitId() { - return parentOrganizationUnitId; - } - - public void setParentOrganizationUnitId(String parentOrganizationUnitId) { - this.parentOrganizationUnitId = parentOrganizationUnitId; - } - - public ShowManagedAccountResponse withParentOrganizationUnitName(String parentOrganizationUnitName) { - this.parentOrganizationUnitName = parentOrganizationUnitName; - return this; - } - - /** - * 父注册OU名称。 - * @return parentOrganizationUnitName - */ - public String getParentOrganizationUnitName() { - return parentOrganizationUnitName; - } - - public void setParentOrganizationUnitName(String parentOrganizationUnitName) { - this.parentOrganizationUnitName = parentOrganizationUnitName; - } - - public ShowManagedAccountResponse withIdentityStoreUserName(String identityStoreUserName) { - this.identityStoreUserName = identityStoreUserName; - return this; - } - - /** - * Identity Center用户名。 - * @return identityStoreUserName - */ - public String getIdentityStoreUserName() { - return identityStoreUserName; - } - - public void setIdentityStoreUserName(String identityStoreUserName) { - this.identityStoreUserName = identityStoreUserName; - } - - public ShowManagedAccountResponse withBlueprintProductId(String blueprintProductId) { - this.blueprintProductId = blueprintProductId; - return this; - } - - /** - * 模板ID。 - * @return blueprintProductId - */ - public String getBlueprintProductId() { - return blueprintProductId; - } - - public void setBlueprintProductId(String blueprintProductId) { - this.blueprintProductId = blueprintProductId; - } - - public ShowManagedAccountResponse withBlueprintProductVersion(String blueprintProductVersion) { - this.blueprintProductVersion = blueprintProductVersion; - return this; - } - - /** - * 模板版本。 - * @return blueprintProductVersion - */ - public String getBlueprintProductVersion() { - return blueprintProductVersion; - } - - public void setBlueprintProductVersion(String blueprintProductVersion) { - this.blueprintProductVersion = blueprintProductVersion; - } - - public ShowManagedAccountResponse withBlueprintStatus(String blueprintStatus) { - this.blueprintStatus = blueprintStatus; - return this; - } - - /** - * 模板部署状态,包括失败, 完成, 进行中。 - * @return blueprintStatus - */ - public String getBlueprintStatus() { - return blueprintStatus; - } - - public void setBlueprintStatus(String blueprintStatus) { - this.blueprintStatus = blueprintStatus; - } - - public ShowManagedAccountResponse withIsBlueprintHasMultiAccountResource( - Boolean isBlueprintHasMultiAccountResource) { - this.isBlueprintHasMultiAccountResource = isBlueprintHasMultiAccountResource; - return this; - } - - /** - * 模板是否包含多账号资源。 - * @return isBlueprintHasMultiAccountResource - */ - public Boolean getIsBlueprintHasMultiAccountResource() { - return isBlueprintHasMultiAccountResource; - } - - public void setIsBlueprintHasMultiAccountResource(Boolean isBlueprintHasMultiAccountResource) { - this.isBlueprintHasMultiAccountResource = isBlueprintHasMultiAccountResource; - } - - public ShowManagedAccountResponse withRegions(List regions) { - this.regions = regions; - return this; - } - - public ShowManagedAccountResponse addRegionsItem(RegionManagedList regionsItem) { - if (this.regions == null) { - this.regions = new ArrayList<>(); - } - this.regions.add(regionsItem); - return this; - } - - public ShowManagedAccountResponse withRegions(Consumer> regionsSetter) { - if (this.regions == null) { - this.regions = new ArrayList<>(); - } - regionsSetter.accept(this.regions); - return this; - } - - /** - * 区域信息。 - * @return regions - */ - public List getRegions() { - return regions; - } - - public void setRegions(List regions) { - this.regions = regions; - } - - public ShowManagedAccountResponse withCreatedAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; - return this; - } - - /** - * 组织里某个注册OU下的纳管账号被创建的时间。 - * @return createdAt - */ - public OffsetDateTime getCreatedAt() { - return createdAt; - } - - public void setCreatedAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; - } - - public ShowManagedAccountResponse withUpdatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; - return this; - } - - /** - * 组织里某个注册OU下的纳管账号最后一次更新的时间。 - * @return updatedAt - */ - public OffsetDateTime getUpdatedAt() { - return updatedAt; - } - - public void setUpdatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ShowManagedAccountResponse that = (ShowManagedAccountResponse) obj; - return Objects.equals(this.landingZoneVersion, that.landingZoneVersion) - && Objects.equals(this.manageAccountId, that.manageAccountId) - && Objects.equals(this.accountId, that.accountId) && Objects.equals(this.accountName, that.accountName) - && Objects.equals(this.accountType, that.accountType) && Objects.equals(this.owner, that.owner) - && Objects.equals(this.state, that.state) && Objects.equals(this.message, that.message) - && Objects.equals(this.parentOrganizationUnitId, that.parentOrganizationUnitId) - && Objects.equals(this.parentOrganizationUnitName, that.parentOrganizationUnitName) - && Objects.equals(this.identityStoreUserName, that.identityStoreUserName) - && Objects.equals(this.blueprintProductId, that.blueprintProductId) - && Objects.equals(this.blueprintProductVersion, that.blueprintProductVersion) - && Objects.equals(this.blueprintStatus, that.blueprintStatus) - && Objects.equals(this.isBlueprintHasMultiAccountResource, that.isBlueprintHasMultiAccountResource) - && Objects.equals(this.regions, that.regions) && Objects.equals(this.createdAt, that.createdAt) - && Objects.equals(this.updatedAt, that.updatedAt); - } - - @Override - public int hashCode() { - return Objects.hash(landingZoneVersion, - manageAccountId, - accountId, - accountName, - accountType, - owner, - state, - message, - parentOrganizationUnitId, - parentOrganizationUnitName, - identityStoreUserName, - blueprintProductId, - blueprintProductVersion, - blueprintStatus, - isBlueprintHasMultiAccountResource, - regions, - createdAt, - updatedAt); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ShowManagedAccountResponse {\n"); - sb.append(" landingZoneVersion: ").append(toIndentedString(landingZoneVersion)).append("\n"); - sb.append(" manageAccountId: ").append(toIndentedString(manageAccountId)).append("\n"); - sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); - sb.append(" accountName: ").append(toIndentedString(accountName)).append("\n"); - sb.append(" accountType: ").append(toIndentedString(accountType)).append("\n"); - sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); - sb.append(" state: ").append(toIndentedString(state)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" parentOrganizationUnitId: ").append(toIndentedString(parentOrganizationUnitId)).append("\n"); - sb.append(" parentOrganizationUnitName: ").append(toIndentedString(parentOrganizationUnitName)).append("\n"); - sb.append(" identityStoreUserName: ").append(toIndentedString(identityStoreUserName)).append("\n"); - sb.append(" blueprintProductId: ").append(toIndentedString(blueprintProductId)).append("\n"); - sb.append(" blueprintProductVersion: ").append(toIndentedString(blueprintProductVersion)).append("\n"); - sb.append(" blueprintStatus: ").append(toIndentedString(blueprintStatus)).append("\n"); - sb.append(" isBlueprintHasMultiAccountResource: ") - .append(toIndentedString(isBlueprintHasMultiAccountResource)) - .append("\n"); - sb.append(" regions: ").append(toIndentedString(regions)).append("\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowManagedCoreAccountResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowManagedCoreAccountResponse.java deleted file mode 100644 index 37bf40142c..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowManagedCoreAccountResponse.java +++ /dev/null @@ -1,140 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.huaweicloud.sdk.core.SdkResponse; - -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * Response Object - */ -public class ShowManagedCoreAccountResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "account_id") - - private String accountId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "account_name") - - private String accountName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "core_resource_mappings") - - private Map coreResourceMappings = null; - - public ShowManagedCoreAccountResponse withAccountId(String accountId) { - this.accountId = accountId; - return this; - } - - /** - * 纳管账号ID。 - * @return accountId - */ - public String getAccountId() { - return accountId; - } - - public void setAccountId(String accountId) { - this.accountId = accountId; - } - - public ShowManagedCoreAccountResponse withAccountName(String accountName) { - this.accountName = accountName; - return this; - } - - /** - * 纳管账号名称。 - * @return accountName - */ - public String getAccountName() { - return accountName; - } - - public void setAccountName(String accountName) { - this.accountName = accountName; - } - - public ShowManagedCoreAccountResponse withCoreResourceMappings(Map coreResourceMappings) { - this.coreResourceMappings = coreResourceMappings; - return this; - } - - public ShowManagedCoreAccountResponse putCoreResourceMappingsItem(String key, String coreResourceMappingsItem) { - if (this.coreResourceMappings == null) { - this.coreResourceMappings = new HashMap<>(); - } - this.coreResourceMappings.put(key, coreResourceMappingsItem); - return this; - } - - public ShowManagedCoreAccountResponse withCoreResourceMappings( - Consumer> coreResourceMappingsSetter) { - if (this.coreResourceMappings == null) { - this.coreResourceMappings = new HashMap<>(); - } - coreResourceMappingsSetter.accept(this.coreResourceMappings); - return this; - } - - /** - * 核心资源映射。 - * @return coreResourceMappings - */ - public Map getCoreResourceMappings() { - return coreResourceMappings; - } - - public void setCoreResourceMappings(Map coreResourceMappings) { - this.coreResourceMappings = coreResourceMappings; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ShowManagedCoreAccountResponse that = (ShowManagedCoreAccountResponse) obj; - return Objects.equals(this.accountId, that.accountId) && Objects.equals(this.accountName, that.accountName) - && Objects.equals(this.coreResourceMappings, that.coreResourceMappings); - } - - @Override - public int hashCode() { - return Objects.hash(accountId, accountName, coreResourceMappings); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ShowManagedCoreAccountResponse {\n"); - sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); - sb.append(" accountName: ").append(toIndentedString(accountName)).append("\n"); - sb.append(" coreResourceMappings: ").append(toIndentedString(coreResourceMappings)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowManagedOrganizationalUnitRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowManagedOrganizationalUnitRequest.java deleted file mode 100644 index ca3b27b94f..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowManagedOrganizationalUnitRequest.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * Request Object - */ -public class ShowManagedOrganizationalUnitRequest { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "managed_organization_unit_id") - - private String managedOrganizationUnitId; - - public ShowManagedOrganizationalUnitRequest withManagedOrganizationUnitId(String managedOrganizationUnitId) { - this.managedOrganizationUnitId = managedOrganizationUnitId; - return this; - } - - /** - * 注册OU ID。 - * @return managedOrganizationUnitId - */ - public String getManagedOrganizationUnitId() { - return managedOrganizationUnitId; - } - - public void setManagedOrganizationUnitId(String managedOrganizationUnitId) { - this.managedOrganizationUnitId = managedOrganizationUnitId; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ShowManagedOrganizationalUnitRequest that = (ShowManagedOrganizationalUnitRequest) obj; - return Objects.equals(this.managedOrganizationUnitId, that.managedOrganizationUnitId); - } - - @Override - public int hashCode() { - return Objects.hash(managedOrganizationUnitId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ShowManagedOrganizationalUnitRequest {\n"); - sb.append(" managedOrganizationUnitId: ").append(toIndentedString(managedOrganizationUnitId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowManagedOrganizationalUnitResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowManagedOrganizationalUnitResponse.java deleted file mode 100644 index 5d0bccd7e4..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowManagedOrganizationalUnitResponse.java +++ /dev/null @@ -1,323 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.huaweicloud.sdk.core.SdkResponse; - -import java.time.OffsetDateTime; -import java.util.Objects; - -/** - * Response Object - */ -public class ShowManagedOrganizationalUnitResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "manage_account_id") - - private String manageAccountId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organization_unit_id") - - private String organizationUnitId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organization_unit_name") - - private String organizationUnitName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organization_unit_status") - - private String organizationUnitStatus; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "organization_unit_type") - - private OrganizationalUnitType organizationUnitType; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "parent_organization_unit_id") - - private String parentOrganizationUnitId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "parent_organization_unit_name") - - private String parentOrganizationUnitName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "created_at") - - private OffsetDateTime createdAt; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "landing_zone_version") - - private String landingZoneVersion; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "updated_at") - - private OffsetDateTime updatedAt; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "message") - - private String message; - - public ShowManagedOrganizationalUnitResponse withManageAccountId(String manageAccountId) { - this.manageAccountId = manageAccountId; - return this; - } - - /** - * 管理纳管账号ID。 - * @return manageAccountId - */ - public String getManageAccountId() { - return manageAccountId; - } - - public void setManageAccountId(String manageAccountId) { - this.manageAccountId = manageAccountId; - } - - public ShowManagedOrganizationalUnitResponse withOrganizationUnitId(String organizationUnitId) { - this.organizationUnitId = organizationUnitId; - return this; - } - - /** - * 注册OU ID。 - * @return organizationUnitId - */ - public String getOrganizationUnitId() { - return organizationUnitId; - } - - public void setOrganizationUnitId(String organizationUnitId) { - this.organizationUnitId = organizationUnitId; - } - - public ShowManagedOrganizationalUnitResponse withOrganizationUnitName(String organizationUnitName) { - this.organizationUnitName = organizationUnitName; - return this; - } - - /** - * 注册OU名称。 - * @return organizationUnitName - */ - public String getOrganizationUnitName() { - return organizationUnitName; - } - - public void setOrganizationUnitName(String organizationUnitName) { - this.organizationUnitName = organizationUnitName; - } - - public ShowManagedOrganizationalUnitResponse withOrganizationUnitStatus(String organizationUnitStatus) { - this.organizationUnitStatus = organizationUnitStatus; - return this; - } - - /** - * 注册OU状态。 - * @return organizationUnitStatus - */ - public String getOrganizationUnitStatus() { - return organizationUnitStatus; - } - - public void setOrganizationUnitStatus(String organizationUnitStatus) { - this.organizationUnitStatus = organizationUnitStatus; - } - - public ShowManagedOrganizationalUnitResponse withOrganizationUnitType(OrganizationalUnitType organizationUnitType) { - this.organizationUnitType = organizationUnitType; - return this; - } - - /** - * Get organizationUnitType - * @return organizationUnitType - */ - public OrganizationalUnitType getOrganizationUnitType() { - return organizationUnitType; - } - - public void setOrganizationUnitType(OrganizationalUnitType organizationUnitType) { - this.organizationUnitType = organizationUnitType; - } - - public ShowManagedOrganizationalUnitResponse withParentOrganizationUnitId(String parentOrganizationUnitId) { - this.parentOrganizationUnitId = parentOrganizationUnitId; - return this; - } - - /** - * 父注册OU ID。 - * @return parentOrganizationUnitId - */ - public String getParentOrganizationUnitId() { - return parentOrganizationUnitId; - } - - public void setParentOrganizationUnitId(String parentOrganizationUnitId) { - this.parentOrganizationUnitId = parentOrganizationUnitId; - } - - public ShowManagedOrganizationalUnitResponse withParentOrganizationUnitName(String parentOrganizationUnitName) { - this.parentOrganizationUnitName = parentOrganizationUnitName; - return this; - } - - /** - * 父注册OU名称。 - * @return parentOrganizationUnitName - */ - public String getParentOrganizationUnitName() { - return parentOrganizationUnitName; - } - - public void setParentOrganizationUnitName(String parentOrganizationUnitName) { - this.parentOrganizationUnitName = parentOrganizationUnitName; - } - - public ShowManagedOrganizationalUnitResponse withCreatedAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; - return this; - } - - /** - * 组织里某个注册OU下的纳管账号被创建的时间。 - * @return createdAt - */ - public OffsetDateTime getCreatedAt() { - return createdAt; - } - - public void setCreatedAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; - } - - public ShowManagedOrganizationalUnitResponse withLandingZoneVersion(String landingZoneVersion) { - this.landingZoneVersion = landingZoneVersion; - return this; - } - - /** - * Landing Zone版本。 - * @return landingZoneVersion - */ - public String getLandingZoneVersion() { - return landingZoneVersion; - } - - public void setLandingZoneVersion(String landingZoneVersion) { - this.landingZoneVersion = landingZoneVersion; - } - - public ShowManagedOrganizationalUnitResponse withUpdatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; - return this; - } - - /** - * 组织里某个注册OU下的纳管账号最后一次更新的时间。 - * @return updatedAt - */ - public OffsetDateTime getUpdatedAt() { - return updatedAt; - } - - public void setUpdatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; - } - - public ShowManagedOrganizationalUnitResponse 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; - } - ShowManagedOrganizationalUnitResponse that = (ShowManagedOrganizationalUnitResponse) obj; - return Objects.equals(this.manageAccountId, that.manageAccountId) - && Objects.equals(this.organizationUnitId, that.organizationUnitId) - && Objects.equals(this.organizationUnitName, that.organizationUnitName) - && Objects.equals(this.organizationUnitStatus, that.organizationUnitStatus) - && Objects.equals(this.organizationUnitType, that.organizationUnitType) - && Objects.equals(this.parentOrganizationUnitId, that.parentOrganizationUnitId) - && Objects.equals(this.parentOrganizationUnitName, that.parentOrganizationUnitName) - && Objects.equals(this.createdAt, that.createdAt) - && Objects.equals(this.landingZoneVersion, that.landingZoneVersion) - && Objects.equals(this.updatedAt, that.updatedAt) && Objects.equals(this.message, that.message); - } - - @Override - public int hashCode() { - return Objects.hash(manageAccountId, - organizationUnitId, - organizationUnitName, - organizationUnitStatus, - organizationUnitType, - parentOrganizationUnitId, - parentOrganizationUnitName, - createdAt, - landingZoneVersion, - updatedAt, - message); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ShowManagedOrganizationalUnitResponse {\n"); - sb.append(" manageAccountId: ").append(toIndentedString(manageAccountId)).append("\n"); - sb.append(" organizationUnitId: ").append(toIndentedString(organizationUnitId)).append("\n"); - sb.append(" organizationUnitName: ").append(toIndentedString(organizationUnitName)).append("\n"); - sb.append(" organizationUnitStatus: ").append(toIndentedString(organizationUnitStatus)).append("\n"); - sb.append(" organizationUnitType: ").append(toIndentedString(organizationUnitType)).append("\n"); - sb.append(" parentOrganizationUnitId: ").append(toIndentedString(parentOrganizationUnitId)).append("\n"); - sb.append(" parentOrganizationUnitName: ").append(toIndentedString(parentOrganizationUnitName)).append("\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append(" landingZoneVersion: ").append(toIndentedString(landingZoneVersion)).append("\n"); - sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).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/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowOperationResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowOperationResponse.java deleted file mode 100644 index 963bf3ef00..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowOperationResponse.java +++ /dev/null @@ -1,189 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 ShowOperationResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "operation_id") - - private String operationId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "percentage_complete") - - private Integer percentageComplete; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "status") - - private String status; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "percentage_details") - - private List percentageDetails = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "message") - - private String message; - - public ShowOperationResponse withOperationId(String operationId) { - this.operationId = operationId; - return this; - } - - /** - * 操作ID。 - * @return operationId - */ - public String getOperationId() { - return operationId; - } - - public void setOperationId(String operationId) { - this.operationId = operationId; - } - - public ShowOperationResponse withPercentageComplete(Integer percentageComplete) { - this.percentageComplete = percentageComplete; - return this; - } - - /** - * 完成进度百分比。 - * @return percentageComplete - */ - public Integer getPercentageComplete() { - return percentageComplete; - } - - public void setPercentageComplete(Integer percentageComplete) { - this.percentageComplete = percentageComplete; - } - - public ShowOperationResponse withStatus(String status) { - this.status = status; - return this; - } - - /** - * 状态。 - * @return status - */ - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public ShowOperationResponse withPercentageDetails(List percentageDetails) { - this.percentageDetails = percentageDetails; - return this; - } - - public ShowOperationResponse addPercentageDetailsItem(OrganizationalPercentageDetail percentageDetailsItem) { - if (this.percentageDetails == null) { - this.percentageDetails = new ArrayList<>(); - } - this.percentageDetails.add(percentageDetailsItem); - return this; - } - - public ShowOperationResponse withPercentageDetails( - Consumer> percentageDetailsSetter) { - if (this.percentageDetails == null) { - this.percentageDetails = new ArrayList<>(); - } - percentageDetailsSetter.accept(this.percentageDetails); - return this; - } - - /** - * 创建账号、纳管注册OU、纳管账号的详细进度信息。 - * @return percentageDetails - */ - public List getPercentageDetails() { - return percentageDetails; - } - - public void setPercentageDetails(List percentageDetails) { - this.percentageDetails = percentageDetails; - } - - public ShowOperationResponse withMessage(String message) { - this.message = message; - return this; - } - - /** - * 创建账号、纳管注册OU、纳管账号的错误信息描述。 - * @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; - } - ShowOperationResponse that = (ShowOperationResponse) obj; - return Objects.equals(this.operationId, that.operationId) - && Objects.equals(this.percentageComplete, that.percentageComplete) - && Objects.equals(this.status, that.status) - && Objects.equals(this.percentageDetails, that.percentageDetails) - && Objects.equals(this.message, that.message); - } - - @Override - public int hashCode() { - return Objects.hash(operationId, percentageComplete, status, percentageDetails, message); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ShowOperationResponse {\n"); - sb.append(" operationId: ").append(toIndentedString(operationId)).append("\n"); - sb.append(" percentageComplete: ").append(toIndentedString(percentageComplete)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" percentageDetails: ").append(toIndentedString(percentageDetails)).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/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowTemplateDeployParamsResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowTemplateDeployParamsResponse.java deleted file mode 100644 index 29f90f8806..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ShowTemplateDeployParamsResponse.java +++ /dev/null @@ -1,92 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 ShowTemplateDeployParamsResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "variables") - - private List variables = null; - - public ShowTemplateDeployParamsResponse withVariables(List variables) { - this.variables = variables; - return this; - } - - public ShowTemplateDeployParamsResponse addVariablesItem(TemplateParamVariable variablesItem) { - if (this.variables == null) { - this.variables = new ArrayList<>(); - } - this.variables.add(variablesItem); - return this; - } - - public ShowTemplateDeployParamsResponse withVariables(Consumer> variablesSetter) { - if (this.variables == null) { - this.variables = new ArrayList<>(); - } - variablesSetter.accept(this.variables); - return this; - } - - /** - * Get variables - * @return variables - */ - public List getVariables() { - return variables; - } - - public void setVariables(List variables) { - this.variables = variables; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ShowTemplateDeployParamsResponse that = (ShowTemplateDeployParamsResponse) obj; - return Objects.equals(this.variables, that.variables); - } - - @Override - public int hashCode() { - return Objects.hash(variables); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ShowTemplateDeployParamsResponse {\n"); - sb.append(" variables: ").append(toIndentedString(variables)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/TemplateParamVariable.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/TemplateParamVariable.java deleted file mode 100644 index 08bff03f76..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/TemplateParamVariable.java +++ /dev/null @@ -1,232 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 TemplateParamVariable { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "default") - - private Object _default; - - @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 = "nullable") - - private Boolean nullable; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "sensitive") - - private Boolean sensitive; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "type") - - private String type; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "validations") - - private List validations = null; - - public TemplateParamVariable withDefault(Object _default) { - this._default = _default; - return this; - } - - /** - * 变量默认值。 - * @return _default - */ - public Object getDefault() { - return _default; - } - - public void setDefault(Object _default) { - this._default = _default; - } - - public TemplateParamVariable withName(String name) { - this.name = name; - return this; - } - - /** - * 变量名称。 - * @return name - */ - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public TemplateParamVariable withDescription(String description) { - this.description = description; - return this; - } - - /** - * 变量描述。 - * @return description - */ - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public TemplateParamVariable withNullable(Boolean nullable) { - this.nullable = nullable; - return this; - } - - /** - * 变量是否可以为空。 - * @return nullable - */ - public Boolean getNullable() { - return nullable; - } - - public void setNullable(Boolean nullable) { - this.nullable = nullable; - } - - public TemplateParamVariable withSensitive(Boolean sensitive) { - this.sensitive = sensitive; - return this; - } - - /** - * 变量是否为敏感字段。 - * @return sensitive - */ - public Boolean getSensitive() { - return sensitive; - } - - public void setSensitive(Boolean sensitive) { - this.sensitive = sensitive; - } - - public TemplateParamVariable withType(String type) { - this.type = type; - return this; - } - - /** - * 变量类型。 - * @return type - */ - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public TemplateParamVariable withValidations(List validations) { - this.validations = validations; - return this; - } - - public TemplateParamVariable addValidationsItem(TemplateParamVariableValidation validationsItem) { - if (this.validations == null) { - this.validations = new ArrayList<>(); - } - this.validations.add(validationsItem); - return this; - } - - public TemplateParamVariable withValidations(Consumer> validationsSetter) { - if (this.validations == null) { - this.validations = new ArrayList<>(); - } - validationsSetter.accept(this.validations); - return this; - } - - /** - * Get validations - * @return validations - */ - public List getValidations() { - return validations; - } - - public void setValidations(List validations) { - this.validations = validations; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - TemplateParamVariable that = (TemplateParamVariable) obj; - return Objects.equals(this._default, that._default) && Objects.equals(this.name, that.name) - && Objects.equals(this.description, that.description) && Objects.equals(this.nullable, that.nullable) - && Objects.equals(this.sensitive, that.sensitive) && Objects.equals(this.type, that.type) - && Objects.equals(this.validations, that.validations); - } - - @Override - public int hashCode() { - return Objects.hash(_default, name, description, nullable, sensitive, type, validations); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TemplateParamVariable {\n"); - sb.append(" _default: ").append(toIndentedString(_default)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" nullable: ").append(toIndentedString(nullable)).append("\n"); - sb.append(" sensitive: ").append(toIndentedString(sensitive)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" validations: ").append(toIndentedString(validations)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/TemplateParamVariableValidation.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/TemplateParamVariableValidation.java deleted file mode 100644 index c6cf2047a9..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/TemplateParamVariableValidation.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * 模板的部署参数变量的校验规则。 - */ -public class TemplateParamVariableValidation { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "condition") - - private String condition; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "error_message") - - private String errorMessage; - - public TemplateParamVariableValidation withCondition(String condition) { - this.condition = condition; - return this; - } - - /** - * 校验表达式。 - * @return condition - */ - public String getCondition() { - return condition; - } - - public void setCondition(String condition) { - this.condition = condition; - } - - public TemplateParamVariableValidation 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; - } - TemplateParamVariableValidation that = (TemplateParamVariableValidation) obj; - return Objects.equals(this.condition, that.condition) && Objects.equals(this.errorMessage, that.errorMessage); - } - - @Override - public int hashCode() { - return Objects.hash(condition, errorMessage); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TemplateParamVariableValidation {\n"); - sb.append(" condition: ").append(toIndentedString(condition)).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/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/UnEnrollAccountRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/UnEnrollAccountRequest.java deleted file mode 100644 index 005d10c439..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/UnEnrollAccountRequest.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.huaweicloud.sdk.rgc.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * Request Object - */ -public class UnEnrollAccountRequest { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "managed_account_id") - - private String managedAccountId; - - public UnEnrollAccountRequest withManagedAccountId(String managedAccountId) { - this.managedAccountId = managedAccountId; - return this; - } - - /** - * 纳管账号ID。 - * @return managedAccountId - */ - public String getManagedAccountId() { - return managedAccountId; - } - - public void setManagedAccountId(String managedAccountId) { - this.managedAccountId = managedAccountId; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - UnEnrollAccountRequest that = (UnEnrollAccountRequest) obj; - return Objects.equals(this.managedAccountId, that.managedAccountId); - } - - @Override - public int hashCode() { - return Objects.hash(managedAccountId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class UnEnrollAccountRequest {\n"); - sb.append(" managedAccountId: ").append(toIndentedString(managedAccountId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/UpdateManagedAccountRequestBody.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/UpdateManagedAccountRequestBody.java deleted file mode 100644 index 83dd10edd3..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/UpdateManagedAccountRequestBody.java +++ /dev/null @@ -1,130 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 UpdateManagedAccountRequestBody { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "parent_organization_unit_id") - - private String parentOrganizationUnitId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "parent_organization_unit_name") - - private String parentOrganizationUnitName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "blueprint") - - private Blueprint blueprint; - - public UpdateManagedAccountRequestBody withParentOrganizationUnitId(String parentOrganizationUnitId) { - this.parentOrganizationUnitId = parentOrganizationUnitId; - return this; - } - - /** - * 父注册OU ID。 - * @return parentOrganizationUnitId - */ - public String getParentOrganizationUnitId() { - return parentOrganizationUnitId; - } - - public void setParentOrganizationUnitId(String parentOrganizationUnitId) { - this.parentOrganizationUnitId = parentOrganizationUnitId; - } - - public UpdateManagedAccountRequestBody withParentOrganizationUnitName(String parentOrganizationUnitName) { - this.parentOrganizationUnitName = parentOrganizationUnitName; - return this; - } - - /** - * 父注册OU名称。 - * @return parentOrganizationUnitName - */ - public String getParentOrganizationUnitName() { - return parentOrganizationUnitName; - } - - public void setParentOrganizationUnitName(String parentOrganizationUnitName) { - this.parentOrganizationUnitName = parentOrganizationUnitName; - } - - public UpdateManagedAccountRequestBody withBlueprint(Blueprint blueprint) { - this.blueprint = blueprint; - return this; - } - - public UpdateManagedAccountRequestBody withBlueprint(Consumer blueprintSetter) { - if (this.blueprint == null) { - this.blueprint = new Blueprint(); - blueprintSetter.accept(this.blueprint); - } - - return this; - } - - /** - * Get blueprint - * @return blueprint - */ - public Blueprint getBlueprint() { - return blueprint; - } - - public void setBlueprint(Blueprint blueprint) { - this.blueprint = blueprint; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - UpdateManagedAccountRequestBody that = (UpdateManagedAccountRequestBody) obj; - return Objects.equals(this.parentOrganizationUnitId, that.parentOrganizationUnitId) - && Objects.equals(this.parentOrganizationUnitName, that.parentOrganizationUnitName) - && Objects.equals(this.blueprint, that.blueprint); - } - - @Override - public int hashCode() { - return Objects.hash(parentOrganizationUnitId, parentOrganizationUnitName, blueprint); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class UpdateManagedAccountRequestBody {\n"); - sb.append(" parentOrganizationUnitId: ").append(toIndentedString(parentOrganizationUnitId)).append("\n"); - sb.append(" parentOrganizationUnitName: ").append(toIndentedString(parentOrganizationUnitName)).append("\n"); - sb.append(" blueprint: ").append(toIndentedString(blueprint)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/UpdateManagedAccountResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/UpdateManagedAccountResponse.java deleted file mode 100644 index c364e65b00..0000000000 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/UpdateManagedAccountResponse.java +++ /dev/null @@ -1,73 +0,0 @@ -package com.huaweicloud.sdk.rgc.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 UpdateManagedAccountResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "operation_id") - - private String operationId; - - public UpdateManagedAccountResponse withOperationId(String operationId) { - this.operationId = operationId; - return this; - } - - /** - * 创建账号、纳管账号、纳管注册OU的操作ID。 - * @return operationId - */ - public String getOperationId() { - return operationId; - } - - public void setOperationId(String operationId) { - this.operationId = operationId; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - UpdateManagedAccountResponse that = (UpdateManagedAccountResponse) obj; - return Objects.equals(this.operationId, that.operationId); - } - - @Override - public int hashCode() { - return Objects.hash(operationId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class UpdateManagedAccountResponse {\n"); - sb.append(" operationId: ").append(toIndentedString(operationId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/rms/pom.xml b/services/rms/pom.xml index 4ab0ab8b5d..c452a8e112 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-rms - 3.1.95 + 3.1.96 Huawei Cloud SDK for RMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/rocketmq/pom.xml b/services/rocketmq/pom.xml index 2461e6a29e..69392c2547 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-rocketmq - 3.1.95 + 3.1.96 Huawei Cloud SDK for ROCKETMQ 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/roma/pom.xml b/services/roma/pom.xml index 2d91ba7959..c35842dc41 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-roma - 3.1.95 + 3.1.96 Huawei Cloud SDK for ROMA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/sa/pom.xml b/services/sa/pom.xml index 18658b6ae9..3629c65a12 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-sa - 3.1.95 + 3.1.96 Huawei Cloud SDK for SA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/scm/pom.xml b/services/scm/pom.xml index fec7656b59..de26aaf381 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-scm - 3.1.95 + 3.1.96 Huawei Cloud SDK for SCM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/scm/src/main/java/com/huaweicloud/sdk/scm/v3/model/ShowCertificateResponse.java b/services/scm/src/main/java/com/huaweicloud/sdk/scm/v3/model/ShowCertificateResponse.java index 81373b6035..98a160a16a 100644 --- a/services/scm/src/main/java/com/huaweicloud/sdk/scm/v3/model/ShowCertificateResponse.java +++ b/services/scm/src/main/java/com/huaweicloud/sdk/scm/v3/model/ShowCertificateResponse.java @@ -89,6 +89,11 @@ public class ShowCertificateResponse extends SdkResponse { private String domainType; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "multi_domain_type") + + private String multiDomainType; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "domain") @@ -381,6 +386,23 @@ public void setDomainType(String domainType) { this.domainType = domainType; } + public ShowCertificateResponse withMultiDomainType(String multiDomainType) { + this.multiDomainType = multiDomainType; + return this; + } + + /** + * 多域名类型,取值如下: - primary_single 主单 - primary_wildcard 主泛 + * @return multiDomainType + */ + public String getMultiDomainType() { + return multiDomainType; + } + + public void setMultiDomainType(String multiDomainType) { + this.multiDomainType = multiDomainType; + } + public ShowCertificateResponse withDomain(String domain) { this.domain = domain; return this; @@ -538,7 +560,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.issueTime, that.issueTime) && Objects.equals(this.notBefore, that.notBefore) && Objects.equals(this.notAfter, that.notAfter) && Objects.equals(this.validityPeriod, that.validityPeriod) && Objects.equals(this.validationMethod, that.validationMethod) - && Objects.equals(this.domainType, that.domainType) && Objects.equals(this.domain, that.domain) + && Objects.equals(this.domainType, that.domainType) + && Objects.equals(this.multiDomainType, that.multiDomainType) && Objects.equals(this.domain, that.domain) && Objects.equals(this.sans, that.sans) && Objects.equals(this.domainCount, that.domainCount) && Objects.equals(this.wildcardCount, that.wildcardCount) && Objects.equals(this.fingerprint, that.fingerprint) @@ -563,6 +586,7 @@ public int hashCode() { validityPeriod, validationMethod, domainType, + multiDomainType, domain, sans, domainCount, @@ -591,6 +615,7 @@ public String toString() { sb.append(" validityPeriod: ").append(toIndentedString(validityPeriod)).append("\n"); sb.append(" validationMethod: ").append(toIndentedString(validationMethod)).append("\n"); sb.append(" domainType: ").append(toIndentedString(domainType)).append("\n"); + sb.append(" multiDomainType: ").append(toIndentedString(multiDomainType)).append("\n"); sb.append(" domain: ").append(toIndentedString(domain)).append("\n"); sb.append(" sans: ").append(toIndentedString(sans)).append("\n"); sb.append(" domainCount: ").append(toIndentedString(domainCount)).append("\n"); diff --git a/services/sdrs/pom.xml b/services/sdrs/pom.xml index f23e63dfd2..8333a9434d 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-sdrs - 3.1.95 + 3.1.96 Huawei Cloud SDK for SDRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/secmaster/pom.xml b/services/secmaster/pom.xml index 6cf4552b0e..5a0d7ae7b3 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-secmaster - 3.1.95 + 3.1.96 Huawei Cloud SDK for SECMASTER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/servicestage/pom.xml b/services/servicestage/pom.xml index abca16eeaf..9833544908 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-servicestage - 3.1.95 + 3.1.96 Huawei Cloud SDK for SERVICESTAGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/sfsturbo/pom.xml b/services/sfsturbo/pom.xml index ab95d46b9a..9751272849 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-sfsturbo - 3.1.95 + 3.1.96 Huawei Cloud SDK for SFSTURBO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/sis/pom.xml b/services/sis/pom.xml index d147238100..4269527c2b 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-sis - 3.1.95 + 3.1.96 Huawei Cloud SDK for SIS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/smn/pom.xml b/services/smn/pom.xml index 13495ab3ff..f35021143b 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-smn - 3.1.95 + 3.1.96 Huawei Cloud SDK for SMN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/sms/pom.xml b/services/sms/pom.xml index beab99ce1e..d1fa6ef2ca 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-sms - 3.1.95 + 3.1.96 Huawei Cloud SDK for SMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/sts/pom.xml b/services/sts/pom.xml index daa5f5942a..a1e456f4d6 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-sts - 3.1.95 + 3.1.96 Huawei Cloud SDK for STS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/swr/pom.xml b/services/swr/pom.xml index 913f5c41c0..1c369cf365 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-swr - 3.1.95 + 3.1.96 Huawei Cloud SDK for SWR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/tics/pom.xml b/services/tics/pom.xml index 3607f27d1a..2873730194 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-tics - 3.1.95 + 3.1.96 Huawei Cloud SDK for TICS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/tms/pom.xml b/services/tms/pom.xml index 632ac9330c..f2b7d526ee 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-tms - 3.1.95 + 3.1.96 Huawei Cloud SDK for TMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/ugo/pom.xml b/services/ugo/pom.xml index 8ae39f7d53..99b94d33c4 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-ugo - 3.1.95 + 3.1.96 Huawei Cloud SDK for UGO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/vas/pom.xml b/services/vas/pom.xml index 487b830e60..9a78f66cb7 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-vas - 3.1.95 + 3.1.96 Huawei Cloud SDK for VAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/vcm/pom.xml b/services/vcm/pom.xml index 2ddae77933..a5c7b1512e 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-vcm - 3.1.95 + 3.1.96 Huawei Cloud SDK for VCM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/vod/pom.xml b/services/vod/pom.xml index e1525104c0..4117e1a869 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-vod - 3.1.95 + 3.1.96 Huawei Cloud SDK for VOD 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/vpc/pom.xml b/services/vpc/pom.xml index 979fc7b75d..1a9dcb00e0 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-vpc - 3.1.95 + 3.1.96 Huawei Cloud SDK for VPC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/region/VpcRegion.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/region/VpcRegion.java index dfcc01d53c..2ddc11abd2 100644 --- a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/region/VpcRegion.java +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/region/VpcRegion.java @@ -24,8 +24,12 @@ public class VpcRegion { public static final Region CN_EAST_3 = new Region("cn-east-3", "https://vpc.cn-east-3.myhuaweicloud.com"); + public static final Region CN_EAST_5 = new Region("cn-east-5", "https://vpc.cn-east-5.myhuaweicloud.com"); + public static final Region CN_SOUTH_1 = new Region("cn-south-1", "https://vpc.cn-south-1.myhuaweicloud.com"); + public static final Region CN_SOUTH_4 = new Region("cn-south-4", "https://vpc.cn-south-4.myhuaweicloud.com"); + public static final Region CN_SOUTHWEST_2 = new Region("cn-southwest-2", "https://vpc.cn-southwest-2.myhuaweicloud.com"); @@ -34,6 +38,8 @@ public class VpcRegion { public static final Region CN_NORTH_9 = new Region("cn-north-9", "https://vpc.cn-north-9.myhuaweicloud.com"); + public static final Region CN_NORTH_11 = new Region("cn-north-11", "https://vpc.cn-north-11.myhuaweicloud.com"); + public static final Region AP_SOUTHEAST_1 = new Region("ap-southeast-1", "https://vpc.ap-southeast-1.myhuaweicloud.com"); @@ -84,10 +90,13 @@ private static Map createStaticFields() { map.put("cn-north-1", CN_NORTH_1); map.put("cn-east-2", CN_EAST_2); map.put("cn-east-3", CN_EAST_3); + map.put("cn-east-5", CN_EAST_5); map.put("cn-south-1", CN_SOUTH_1); + map.put("cn-south-4", CN_SOUTH_4); map.put("cn-southwest-2", CN_SOUTHWEST_2); map.put("ap-southeast-2", AP_SOUTHEAST_2); map.put("cn-north-9", CN_NORTH_9); + map.put("cn-north-11", CN_NORTH_11); map.put("ap-southeast-1", AP_SOUTHEAST_1); map.put("ap-southeast-3", AP_SOUTHEAST_3); map.put("sa-brazil-1", SA_BRAZIL_1); diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/region/VpcRegion.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/region/VpcRegion.java index 2a6299f41e..b1b3eb3d1e 100644 --- a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/region/VpcRegion.java +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/region/VpcRegion.java @@ -24,8 +24,12 @@ public class VpcRegion { public static final Region CN_EAST_3 = new Region("cn-east-3", "https://vpc.cn-east-3.myhuaweicloud.com"); + public static final Region CN_EAST_5 = new Region("cn-east-5", "https://vpc.cn-east-5.myhuaweicloud.com"); + public static final Region CN_SOUTH_1 = new Region("cn-south-1", "https://vpc.cn-south-1.myhuaweicloud.com"); + public static final Region CN_SOUTH_4 = new Region("cn-south-4", "https://vpc.cn-south-4.myhuaweicloud.com"); + public static final Region CN_SOUTHWEST_2 = new Region("cn-southwest-2", "https://vpc.cn-southwest-2.myhuaweicloud.com"); @@ -34,6 +38,8 @@ public class VpcRegion { public static final Region CN_NORTH_9 = new Region("cn-north-9", "https://vpc.cn-north-9.myhuaweicloud.com"); + public static final Region CN_NORTH_11 = new Region("cn-north-11", "https://vpc.cn-north-11.myhuaweicloud.com"); + public static final Region AP_SOUTHEAST_1 = new Region("ap-southeast-1", "https://vpc.ap-southeast-1.myhuaweicloud.com"); @@ -84,10 +90,13 @@ private static Map createStaticFields() { map.put("cn-north-1", CN_NORTH_1); map.put("cn-east-2", CN_EAST_2); map.put("cn-east-3", CN_EAST_3); + map.put("cn-east-5", CN_EAST_5); map.put("cn-south-1", CN_SOUTH_1); + map.put("cn-south-4", CN_SOUTH_4); map.put("cn-southwest-2", CN_SOUTHWEST_2); map.put("ap-southeast-2", AP_SOUTHEAST_2); map.put("cn-north-9", CN_NORTH_9); + map.put("cn-north-11", CN_NORTH_11); map.put("ap-southeast-1", AP_SOUTHEAST_1); map.put("ap-southeast-3", AP_SOUTHEAST_3); map.put("sa-brazil-1", SA_BRAZIL_1); diff --git a/services/vpcep/pom.xml b/services/vpcep/pom.xml index c057d87799..1180ed6671 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-vpcep - 3.1.95 + 3.1.96 Huawei Cloud SDK for VPCEP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/vpn/pom.xml b/services/vpn/pom.xml index 3947d54b01..39d52a67ae 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-vpn - 3.1.95 + 3.1.96 Huawei Cloud SDK for VPN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/waf/pom.xml b/services/waf/pom.xml index 7a20c3cbbf..0d85578558 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-waf - 3.1.95 + 3.1.96 Huawei Cloud SDK for WAF 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/workspace/pom.xml b/services/workspace/pom.xml index 8f7442379c..0e2f2faf12 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-workspace - 3.1.95 + 3.1.96 Huawei Cloud SDK for WORKSPACE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96 diff --git a/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/WorkspaceAsyncClient.java b/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/WorkspaceAsyncClient.java index 2b3b8118a5..d557ee3f80 100644 --- a/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/WorkspaceAsyncClient.java +++ b/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/WorkspaceAsyncClient.java @@ -173,6 +173,8 @@ import com.huaweicloud.sdk.workspace.v2.model.ShowDesktopNetworkResponse; import com.huaweicloud.sdk.workspace.v2.model.ShowDesktopRemoteAssistanceInfoRequest; import com.huaweicloud.sdk.workspace.v2.model.ShowDesktopRemoteAssistanceInfoResponse; +import com.huaweicloud.sdk.workspace.v2.model.ShowJobRequest; +import com.huaweicloud.sdk.workspace.v2.model.ShowJobResponse; import com.huaweicloud.sdk.workspace.v2.model.ShowQuotasRequest; import com.huaweicloud.sdk.workspace.v2.model.ShowQuotasResponse; import com.huaweicloud.sdk.workspace.v2.model.ShowScheduledTasksRequest; @@ -1773,6 +1775,34 @@ public AsyncInvoker listItaSubJob return new AsyncInvoker<>(request, WorkspaceMeta.listItaSubJobs, hcClient); } + /** + * 查询任务详情 + * + * 该接口用于查询异步任务的执行情况,比如查询创建桌面任务的执行状态。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowJobRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showJobAsync(ShowJobRequest request) { + return hcClient.asyncInvokeHttp(request, WorkspaceMeta.showJob); + } + + /** + * 查询任务详情 + * + * 该接口用于查询异步任务的执行情况,比如查询创建桌面任务的执行状态。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowJobRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showJobAsyncInvoker(ShowJobRequest request) { + return new AsyncInvoker<>(request, WorkspaceMeta.showJob, hcClient); + } + /** * 开通桌面上网功能 * diff --git a/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/WorkspaceClient.java b/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/WorkspaceClient.java index a82a996704..c46d3fa2db 100644 --- a/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/WorkspaceClient.java +++ b/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/WorkspaceClient.java @@ -173,6 +173,8 @@ import com.huaweicloud.sdk.workspace.v2.model.ShowDesktopNetworkResponse; import com.huaweicloud.sdk.workspace.v2.model.ShowDesktopRemoteAssistanceInfoRequest; import com.huaweicloud.sdk.workspace.v2.model.ShowDesktopRemoteAssistanceInfoResponse; +import com.huaweicloud.sdk.workspace.v2.model.ShowJobRequest; +import com.huaweicloud.sdk.workspace.v2.model.ShowJobResponse; import com.huaweicloud.sdk.workspace.v2.model.ShowQuotasRequest; import com.huaweicloud.sdk.workspace.v2.model.ShowQuotasResponse; import com.huaweicloud.sdk.workspace.v2.model.ShowScheduledTasksRequest; @@ -1750,6 +1752,34 @@ public SyncInvoker listItaSubJobs return new SyncInvoker<>(request, WorkspaceMeta.listItaSubJobs, hcClient); } + /** + * 查询任务详情 + * + * 该接口用于查询异步任务的执行情况,比如查询创建桌面任务的执行状态。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowJobRequest 请求对象 + * @return ShowJobResponse + */ + public ShowJobResponse showJob(ShowJobRequest request) { + return hcClient.syncInvokeHttp(request, WorkspaceMeta.showJob); + } + + /** + * 查询任务详情 + * + * 该接口用于查询异步任务的执行情况,比如查询创建桌面任务的执行状态。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowJobRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showJobInvoker(ShowJobRequest request) { + return new SyncInvoker<>(request, WorkspaceMeta.showJob, hcClient); + } + /** * 开通桌面上网功能 * diff --git a/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/WorkspaceMeta.java b/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/WorkspaceMeta.java index 1ff2ad6758..6cf4c43e9a 100644 --- a/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/WorkspaceMeta.java +++ b/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/WorkspaceMeta.java @@ -217,6 +217,8 @@ import com.huaweicloud.sdk.workspace.v2.model.ShowDesktopNetworkResponse; import com.huaweicloud.sdk.workspace.v2.model.ShowDesktopRemoteAssistanceInfoRequest; import com.huaweicloud.sdk.workspace.v2.model.ShowDesktopRemoteAssistanceInfoResponse; +import com.huaweicloud.sdk.workspace.v2.model.ShowJobRequest; +import com.huaweicloud.sdk.workspace.v2.model.ShowJobResponse; import com.huaweicloud.sdk.workspace.v2.model.ShowQuotasRequest; import com.huaweicloud.sdk.workspace.v2.model.ShowQuotasResponse; import com.huaweicloud.sdk.workspace.v2.model.ShowScheduledTasksRequest; @@ -1903,6 +1905,28 @@ private static HttpRequestDef gen return builder.build(); } + public static final HttpRequestDef showJob = genForShowJob(); + + private static HttpRequestDef genForShowJob() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowJobRequest.class, ShowJobResponse.class) + .withName("ShowJob") + .withUri("/v2/{project_id}/workspace-jobs/{job_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowJobRequest::getJobId, ShowJobRequest::setJobId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef applyDesktopsInternet = genForApplyDesktopsInternet(); diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DeleteTemplateRequest.java b/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/ShowJobRequest.java similarity index 55% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DeleteTemplateRequest.java rename to services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/ShowJobRequest.java index c1cbf2243a..a1dcbc074d 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/DeleteTemplateRequest.java +++ b/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/ShowJobRequest.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.rgc.v1.model; +package com.huaweicloud.sdk.workspace.v2.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -8,28 +8,28 @@ /** * Request Object */ -public class DeleteTemplateRequest { +public class ShowJobRequest { @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "template_name") + @JsonProperty(value = "job_id") - private String templateName; + private String jobId; - public DeleteTemplateRequest withTemplateName(String templateName) { - this.templateName = templateName; + public ShowJobRequest withJobId(String jobId) { + this.jobId = jobId; return this; } /** - * 模板名称。 - * @return templateName + * 任务ID。 + * @return jobId */ - public String getTemplateName() { - return templateName; + public String getJobId() { + return jobId; } - public void setTemplateName(String templateName) { - this.templateName = templateName; + public void setJobId(String jobId) { + this.jobId = jobId; } @Override @@ -40,20 +40,20 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - DeleteTemplateRequest that = (DeleteTemplateRequest) obj; - return Objects.equals(this.templateName, that.templateName); + ShowJobRequest that = (ShowJobRequest) obj; + return Objects.equals(this.jobId, that.jobId); } @Override public int hashCode() { - return Objects.hash(templateName); + return Objects.hash(jobId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class DeleteTemplateRequest {\n"); - sb.append(" templateName: ").append(toIndentedString(templateName)).append("\n"); + sb.append("class ShowJobRequest {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/ShowJobResponse.java b/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/ShowJobResponse.java new file mode 100644 index 0000000000..5023a42c1c --- /dev/null +++ b/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/ShowJobResponse.java @@ -0,0 +1,280 @@ +package com.huaweicloud.sdk.workspace.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 ShowJobResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_type") + + private String jobType; + + @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 = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_error_code") + + private String jobErrorCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "fail_reason") + + private String failReason; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sub_jobs_total") + + private Integer subJobsTotal; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sub_jobs") + + private List subJobs = null; + + public ShowJobResponse 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 ShowJobResponse withJobType(String jobType) { + this.jobType = jobType; + return this; + } + + /** + * 任务类型 + * @return jobType + */ + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public ShowJobResponse withBeginTime(String beginTime) { + this.beginTime = beginTime; + return this; + } + + /** + * 任务开始时间 + * @return beginTime + */ + public String getBeginTime() { + return beginTime; + } + + public void setBeginTime(String beginTime) { + this.beginTime = beginTime; + } + + public ShowJobResponse withEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * 任务结束时间 + * @return endTime + */ + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public ShowJobResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 任务状态 + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public ShowJobResponse withJobErrorCode(String jobErrorCode) { + this.jobErrorCode = jobErrorCode; + return this; + } + + /** + * 任务错误码 + * @return jobErrorCode + */ + public String getJobErrorCode() { + return jobErrorCode; + } + + public void setJobErrorCode(String jobErrorCode) { + this.jobErrorCode = jobErrorCode; + } + + public ShowJobResponse withFailReason(String failReason) { + this.failReason = failReason; + return this; + } + + /** + * 任务失败原因 + * @return failReason + */ + public String getFailReason() { + return failReason; + } + + public void setFailReason(String failReason) { + this.failReason = failReason; + } + + public ShowJobResponse withSubJobsTotal(Integer subJobsTotal) { + this.subJobsTotal = subJobsTotal; + return this; + } + + /** + * 子任务总数 + * @return subJobsTotal + */ + public Integer getSubJobsTotal() { + return subJobsTotal; + } + + public void setSubJobsTotal(Integer subJobsTotal) { + this.subJobsTotal = subJobsTotal; + } + + public ShowJobResponse withSubJobs(List subJobs) { + this.subJobs = subJobs; + return this; + } + + public ShowJobResponse addSubJobsItem(JobDetailInfo subJobsItem) { + if (this.subJobs == null) { + this.subJobs = new ArrayList<>(); + } + this.subJobs.add(subJobsItem); + return this; + } + + public ShowJobResponse withSubJobs(Consumer> subJobsSetter) { + if (this.subJobs == null) { + this.subJobs = new ArrayList<>(); + } + subJobsSetter.accept(this.subJobs); + return this; + } + + /** + * 子任务列表 + * @return subJobs + */ + public List getSubJobs() { + return subJobs; + } + + public void setSubJobs(List subJobs) { + this.subJobs = subJobs; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowJobResponse that = (ShowJobResponse) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.jobType, that.jobType) + && Objects.equals(this.beginTime, that.beginTime) && Objects.equals(this.endTime, that.endTime) + && Objects.equals(this.status, that.status) && Objects.equals(this.jobErrorCode, that.jobErrorCode) + && Objects.equals(this.failReason, that.failReason) && Objects.equals(this.subJobsTotal, that.subJobsTotal) + && Objects.equals(this.subJobs, that.subJobs); + } + + @Override + public int hashCode() { + return Objects.hash(id, jobType, beginTime, endTime, status, jobErrorCode, failReason, subJobsTotal, subJobs); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowJobResponse {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" jobType: ").append(toIndentedString(jobType)).append("\n"); + sb.append(" beginTime: ").append(toIndentedString(beginTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" jobErrorCode: ").append(toIndentedString(jobErrorCode)).append("\n"); + sb.append(" failReason: ").append(toIndentedString(failReason)).append("\n"); + sb.append(" subJobsTotal: ").append(toIndentedString(subJobsTotal)).append("\n"); + sb.append(" subJobs: ").append(toIndentedString(subJobs)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/pom.xml b/services/workspaceapp/pom.xml index 4d85800b81..afb17d9ddd 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.95 + 3.1.96 huaweicloud-sdk-services .. huaweicloud-sdk-workspaceapp - 3.1.95 + 3.1.96 Huawei Cloud SDK for WORKSPACEAPP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.95 + 3.1.96