From 672ab5a4975651c09ec73734a3014e3b5ff6172e Mon Sep 17 00:00:00 2001 From: Huaweicloud-SDK Date: Thu, 22 Aug 2024 16:00:28 +0800 Subject: [PATCH] release 3.1.111 source code --- CHANGELOG.md | 243 +++++++++++ CHANGELOG_CN.md | 243 +++++++++++ VERSION | 2 +- all/pom.xml | 354 ++++++++-------- bundle/pom.xml | 6 +- core-bson/pom.xml | 6 +- core-xml/pom.xml | 6 +- core/pom.xml | 4 +- .../huaweicloud/sdk/core/ClientBuilder.java | 4 + .../com/huaweicloud/sdk/core/HcClient.java | 4 + 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 +- 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 +- .../sdk/cae/v1/CaeAsyncClient.java | 31 -- .../com/huaweicloud/sdk/cae/v1/CaeClient.java | 31 -- .../com/huaweicloud/sdk/cae/v1/CaeMeta.java | 44 -- .../cae/v1/model/ComponentEventKindObj.java | 72 ---- .../sdk/cae/v1/model/EventItem.java | 387 ------------------ .../v1/model/ListComponentEventsRequest.java | 148 ------- .../v1/model/ListComponentEventsResponse.java | 139 ------- .../cae/v1/model/NoticeRuleNotification.java | 98 ++++- services/campusgo/pom.xml | 6 +- services/cbh/pom.xml | 6 +- services/cbr/pom.xml | 6 +- services/cbs/pom.xml | 6 +- services/cc/pom.xml | 6 +- services/cce/pom.xml | 6 +- .../sdk/cce/v3/CceAsyncClient.java | 61 +++ .../com/huaweicloud/sdk/cce/v3/CceClient.java | 61 +++ .../com/huaweicloud/sdk/cce/v3/CceMeta.java | 64 +++ .../cce/v3/model/BatchSyncNodesRequest.java | 72 ++++ .../cce/v3/model/BatchSyncNodesResponse.java | 73 ++++ .../sdk/cce/v3/model/SyncNodeRequest.java | 95 +++++ .../sdk/cce/v3/model/SyncNodeResp.java | 34 ++ .../sdk/cce/v3/model/SyncNodeResponse.java | 73 ++++ .../sdk/cce/v3/model/SyncNodesResp.java | 34 ++ services/ccm/pom.xml | 6 +- services/cdm/pom.xml | 6 +- services/cdn/pom.xml | 6 +- services/ces/pom.xml | 6 +- .../sdk/ces/v1/region/CesRegion.java | 3 + .../sdk/ces/v2/region/CesRegion.java | 3 + .../sdk/ces/v3/region/CesRegion.java | 3 + 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/coc/pom.xml | 6 +- services/codeartsartifact/pom.xml | 6 +- services/codeartsbuild/pom.xml | 6 +- services/codeartscheck/pom.xml | 6 +- services/codeartsdeploy/pom.xml | 6 +- services/codeartsgovernance/pom.xml | 6 +- services/codeartsinspector/pom.xml | 6 +- services/codeartspipeline/pom.xml | 6 +- services/codecraft/pom.xml | 6 +- services/codehub/pom.xml | 6 +- services/config/pom.xml | 6 +- services/cph/pom.xml | 6 +- services/cpts/pom.xml | 6 +- services/cse/pom.xml | 6 +- services/csms/pom.xml | 6 +- services/css/pom.xml | 6 +- services/cts/pom.xml | 6 +- services/das/pom.xml | 6 +- services/dataartsinsight/pom.xml | 6 +- services/dataartsstudio/pom.xml | 6 +- services/dbss/pom.xml | 6 +- services/dc/pom.xml | 6 +- services/dcs/pom.xml | 6 +- services/ddm/pom.xml | 6 +- services/dds/pom.xml | 6 +- services/deh/pom.xml | 6 +- services/devstar/pom.xml | 6 +- services/dgc/pom.xml | 6 +- services/dis/pom.xml | 6 +- services/dlf/pom.xml | 6 +- services/dli/pom.xml | 6 +- services/dns/pom.xml | 6 +- services/dris/pom.xml | 6 +- services/drs/pom.xml | 6 +- .../sdk/drs/v5/DrsAsyncClient.java | 126 ++++++ .../com/huaweicloud/sdk/drs/v5/DrsClient.java | 124 ++++++ .../com/huaweicloud/sdk/drs/v5/DrsMeta.java | 147 +++++++ .../sdk/drs/v5/model/ActionParams.java | 25 ++ .../sdk/drs/v5/model/CreateJobResp.java | 166 -------- .../sdk/drs/v5/model/CreateJobResponse.java | 122 +++++- .../sdk/drs/v5/model/DeleteUserDriverReq.java | 189 +++++++++ .../v5/model/DeleteUserJdbcDriverRequest.java | 182 ++++++++ .../model/DeleteUserJdbcDriverResponse.java | 73 ++++ .../sdk/drs/v5/model/JobBaseInfo.java | 10 +- .../sdk/drs/v5/model/JobDetailResp.java | 244 ++++++++++- .../sdk/drs/v5/model/JobEndpointInfo.java | 10 +- .../v5/model/ListUserJdbcDriversRequest.java | 289 +++++++++++++ .../v5/model/ListUserJdbcDriversResponse.java | 115 ++++++ .../sdk/drs/v5/model/PolicyConfig.java | 29 +- .../v5/model/SyncUserJdbcDriverRequest.java | 206 ++++++++++ .../v5/model/SyncUserJdbcDriverResponse.java | 73 ++++ .../sdk/drs/v5/model/UpdateUserDriverReq.java | 170 ++++++++ .../v5/model/UploadJdbcDriverRequestBody.java | 2 +- .../v5/model/UploadUserJdbcDriverRequest.java | 276 +++++++++++++ .../UploadUserJdbcDriverRequestBody.java | 103 +++++ .../model/UploadUserJdbcDriverResponse.java | 73 ++++ services/dsc/pom.xml | 6 +- services/dss/pom.xml | 6 +- services/dwr/pom.xml | 6 +- services/dws/pom.xml | 6 +- services/ec/pom.xml | 6 +- services/ecs/pom.xml | 6 +- services/edgesec/pom.xml | 6 +- services/eds/pom.xml | 6 +- services/eg/pom.xml | 6 +- services/eihealth/pom.xml | 6 +- .../sdk/eihealth/v1/model/BaseModelDto.java | 28 +- .../eihealth/v1/model/CreateFepJobReq.java | 29 +- .../sdk/eihealth/v1/model/JobResult.java | 47 ++- .../eihealth/v1/model/ShowFepJobResponse.java | 30 +- .../ShowMolBatchDownloadTaskResponse.java | 37 +- .../sdk/eihealth/v1/model/TaskProgress.java | 74 ++++ services/eip/pom.xml | 6 +- services/elb/pom.xml | 6 +- .../sdk/elb/v2/region/ElbRegion.java | 3 + .../sdk/elb/v3/region/ElbRegion.java | 3 + services/eps/pom.xml | 6 +- services/er/pom.xml | 6 +- services/evs/pom.xml | 6 +- .../sdk/evs/v2/region/EvsRegion.java | 16 + services/expert/pom.xml | 6 +- services/frs/pom.xml | 6 +- services/functiongraph/pom.xml | 13 +- .../functiongraph/v2/CustomClientBuilder.java | 60 +++ .../v2/FunctionGraphTenantClient.java | 110 +++++ .../v2/region/FunctionGraphTenantRegion.java | 126 ++++++ .../v2/FunctionGraphTenantClientTest.java | 51 +++ .../region/FunctionGraphTenantRegionTest.java | 49 +++ services/ga/pom.xml | 6 +- services/gaussdb/pom.xml | 6 +- services/gaussdbfornosql/pom.xml | 6 +- services/gaussdbforopengauss/pom.xml | 6 +- .../v3/model/OpenGaussHaOption.java | 104 ++++- services/geip/pom.xml | 6 +- services/ges/pom.xml | 6 +- services/gsl/pom.xml | 6 +- .../sdk/gsl/v3/model/ShowSimCardResponse.java | 10 +- .../sdk/gsl/v3/model/SimDeviceVO.java | 10 +- services/hilens/pom.xml | 6 +- services/hss/pom.xml | 6 +- services/iam/pom.xml | 6 +- services/iamaccessanalyzer/pom.xml | 6 +- services/identitycenter/pom.xml | 6 +- services/identitycenterstore/pom.xml | 6 +- .../v1/region/IdentityCenterStoreRegion.java | 38 ++ 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/iotdm/pom.xml | 6 +- services/iotedge/pom.xml | 6 +- services/ivs/pom.xml | 6 +- services/kafka/pom.xml | 6 +- services/kms/pom.xml | 6 +- .../v2/model/CreateDatakeyRequestBody.java | 31 +- .../kms/v2/model/DecryptDataRequestBody.java | 31 +- .../v2/model/DecryptDatakeyRequestBody.java | 28 +- .../kms/v2/model/EncryptDataRequestBody.java | 28 +- .../v2/model/EncryptDatakeyRequestBody.java | 28 +- 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/KvsCredentials.java | 3 - services/lakeformation/pom.xml | 6 +- services/live/pom.xml | 6 +- services/lts/pom.xml | 6 +- services/mapds/pom.xml | 6 +- services/mas/pom.xml | 6 +- services/meeting/pom.xml | 6 +- .../sdk/meeting/v1/MeetingAsyncClient.java | 151 +++++++ .../sdk/meeting/v1/MeetingClient.java | 151 +++++++ .../sdk/meeting/v1/MeetingMeta.java | 179 ++++++++ .../sdk/meeting/v1/model/AddAppIdRequest.java | 107 +++++ .../meeting/v1/model/AddAppIdRequestBody.java | 95 +++++ .../meeting/v1/model/AddAppIdResponse.java | 216 ++++++++++ .../sdk/meeting/v1/model/AppIdInfoDTO.java | 215 ++++++++++ .../v1/model/BatchSearchAppIdRequest.java | 148 +++++++ .../v1/model/BatchSearchAppIdResponse.java | 162 ++++++++ .../meeting/v1/model/DeleteAppIdRequest.java | 121 ++++++ .../meeting/v1/model/DeleteAppIdResponse.java | 36 ++ .../meeting/v1/model/ResetAppKeyRequest.java | 121 ++++++ .../meeting/v1/model/ResetAppKeyResponse.java | 216 ++++++++++ .../meeting/v1/model/UpdateAppIdRequest.java | 155 +++++++ .../v1/model/UpdateAppIdRequestBody.java | 121 ++++++ .../meeting/v1/model/UpdateAppIdResponse.java | 216 ++++++++++ services/metastudio/pom.xml | 6 +- services/moderation/pom.xml | 6 +- services/mpc/pom.xml | 6 +- services/mrs/pom.xml | 6 +- services/msgsms/pom.xml | 6 +- services/mssi/pom.xml | 6 +- services/nat/pom.xml | 6 +- services/nlp/pom.xml | 6 +- services/oa/pom.xml | 6 +- services/obs/pom.xml | 8 +- services/ocr/pom.xml | 6 +- services/oms/pom.xml | 6 +- .../sdk/oms/v2/model/CreateTaskReq.java | 105 ++++- .../sdk/oms/v2/model/ShowTaskResponse.java | 105 ++++- .../sdk/oms/v2/model/TaskResp.java | 105 ++++- services/optverse/pom.xml | 6 +- services/organizations/pom.xml | 6 +- services/orgid/pom.xml | 6 +- services/oroas/pom.xml | 6 +- services/osm/pom.xml | 6 +- services/pangulargemodels/pom.xml | 6 +- services/pom.xml | 304 +++++++------- services/projectman/pom.xml | 6 +- services/rabbitmq/pom.xml | 6 +- services/ram/pom.xml | 6 +- services/rds/pom.xml | 6 +- services/res/pom.xml | 6 +- services/rgc/pom.xml | 6 +- services/rms/pom.xml | 6 +- services/rocketmq/pom.xml | 6 +- services/roma/pom.xml | 6 +- services/sa/pom.xml | 6 +- services/scm/pom.xml | 6 +- services/sdrs/pom.xml | 6 +- services/secmaster/pom.xml | 6 +- services/servicestage/pom.xml | 6 +- services/sfsturbo/pom.xml | 6 +- .../sfsturbo/v1/region/SFSTurboRegion.java | 3 + 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/vias/pom.xml | 6 +- services/vod/pom.xml | 6 +- services/vpc/pom.xml | 6 +- services/vpcep/pom.xml | 6 +- .../v1/model/CreateEndpointRequestBody.java | 8 +- .../v1/model/CreateEndpointResponse.java | 8 +- .../model/DeleteEndpointPolicyResponse.java | 8 +- .../vpcep/v1/model/EndpointResponseBody.java | 8 +- .../ListEndpointInfoDetailsResponse.java | 8 +- .../UpdateEndpointPolicyRequestBody.java | 8 +- .../model/UpdateEndpointPolicyResponse.java | 8 +- .../v1/model/UpdateEndpointWhiteResponse.java | 8 +- services/vpn/pom.xml | 6 +- services/waf/pom.xml | 6 +- services/workspace/pom.xml | 6 +- .../workspace/v2/WorkspaceAsyncClient.java | 32 ++ .../sdk/workspace/v2/WorkspaceClient.java | 31 ++ .../sdk/workspace/v2/WorkspaceMeta.java | 47 +++ .../workspace/v2/model/AttachUsersInfo.java | 142 +++++++ .../v2/model/ConnectDesktopsInfo.java | 162 ++++++++ .../ListDesktopsConnectStatusRequest.java | 165 ++++++++ .../ListDesktopsConnectStatusResponse.java | 115 ++++++ services/workspaceapp/pom.xml | 6 +- 286 files changed, 8956 insertions(+), 2011 deletions(-) delete mode 100644 services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ComponentEventKindObj.java delete mode 100644 services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/EventItem.java delete mode 100644 services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ListComponentEventsRequest.java delete mode 100644 services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ListComponentEventsResponse.java create mode 100644 services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/BatchSyncNodesRequest.java create mode 100644 services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/BatchSyncNodesResponse.java create mode 100644 services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/SyncNodeRequest.java create mode 100644 services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/SyncNodeResp.java create mode 100644 services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/SyncNodeResponse.java create mode 100644 services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/SyncNodesResp.java delete mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/CreateJobResp.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/DeleteUserDriverReq.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/DeleteUserJdbcDriverRequest.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/DeleteUserJdbcDriverResponse.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ListUserJdbcDriversRequest.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ListUserJdbcDriversResponse.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/SyncUserJdbcDriverRequest.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/SyncUserJdbcDriverResponse.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UpdateUserDriverReq.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UploadUserJdbcDriverRequest.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UploadUserJdbcDriverRequestBody.java create mode 100644 services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UploadUserJdbcDriverResponse.java create mode 100644 services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/TaskProgress.java create mode 100644 services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/CustomClientBuilder.java create mode 100644 services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/FunctionGraphTenantClient.java create mode 100644 services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/region/FunctionGraphTenantRegion.java create mode 100644 services/functiongraph/src/test/java/com/huaweicloud/sdk/functiongraph/v2/FunctionGraphTenantClientTest.java create mode 100644 services/functiongraph/src/test/java/com/huaweicloud/sdk/functiongraph/v2/region/FunctionGraphTenantRegionTest.java create mode 100644 services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/AddAppIdRequest.java create mode 100644 services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/AddAppIdRequestBody.java create mode 100644 services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/AddAppIdResponse.java create mode 100644 services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/AppIdInfoDTO.java create mode 100644 services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/BatchSearchAppIdRequest.java create mode 100644 services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/BatchSearchAppIdResponse.java create mode 100644 services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/DeleteAppIdRequest.java create mode 100644 services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/DeleteAppIdResponse.java create mode 100644 services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/ResetAppKeyRequest.java create mode 100644 services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/ResetAppKeyResponse.java create mode 100644 services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/UpdateAppIdRequest.java create mode 100644 services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/UpdateAppIdRequestBody.java create mode 100644 services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/UpdateAppIdResponse.java create mode 100644 services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/AttachUsersInfo.java create mode 100644 services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/ConnectDesktopsInfo.java create mode 100644 services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/ListDesktopsConnectStatusRequest.java create mode 100644 services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/ListDesktopsConnectStatusResponse.java diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a9c742c46..35c5cb151c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,246 @@ +# 3.1.111 2024-08-22 + +### HuaweiCloud SDK CAE + +- _API Version_ + - V1 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Remove the API `ListComponentEvents` + - **ListNoticeRules** + - changes of response param + - `+ items.notification.template` + - **CreateNoticeRule** + - changes of request param + - `+ spec.notification.template` + - changes of response param + - `+ spec.notification.template` + - **ShowNoticeRule** + - changes of response param + - `+ spec.notification.template` + - **UpdateNoticeRule** + - changes of response param + - `+ spec.notification.template` + +### HuaweiCloud SDK CCE + +- _API Version_ + - V3 +- _Features_ + - Support the APIs `SyncNode`, `BatchSyncNodes` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DRS + +- _API Version_ + - V5 +- _Features_ + - Support the APIs `UploadUserJdbcDriver`, `SyncUserJdbcDriver`, `ListUserJdbcDrivers`, `DeleteUserJdbcDriver` +- _Bug Fix_ + - None +- _Change_ + - **CreateJob** + - changes of request param + - `+ job.base_info.engine_type: enum value [mysql-to-mysql]` + - `+ job.source_endpoint.db_type: enum value [mysql]` + - changes of response param + - `+ is_clone_job` + - `+ create_time` + - `+ name` + - `+ id` + - `+ status` + - `- job` + - **BatchCreateJobsAsync** + - changes of request param + - `+ jobs.policy_config.is_create_table_with_index` + - `+ jobs.base_info.engine_type: enum value [mysql-to-mysql]` + - `+ jobs.source_endpoint.db_type: enum value [mysql]` + - **ListAsyncJobDetail** + - changes of response param + - `+ jobs.status: enum value [CREATING,CREATE_FAILED,CONFIGURATION,STARTJOBING,WAITING_FOR_START,START_JOB_FAILED,PAUSING,FULL_TRANSFER_STARTED,FULL_TRANSFER_FAILED,FULL_TRANSFER_COMPLETE,INCRE_TRANSFER_STARTED,INCRE_TRANSFER_FAILED,RELEASE_RESOURCE_STARTED,RELEASE_RESOURCE_FAILED,RELEASE_RESOURCE_COMPLETE,REBUILD_NODE_STARTED,REBUILD_NODE_FAILED,CHANGE_JOB_STARTED,CHANGE_JOB_FAILED,DELETED,CHILD_TRANSFER_STARTING,CHILD_TRANSFER_STARTED,CHILD_TRANSFER_COMPLETE,CHILD_TRANSFER_FAILED,RELEASE_CHILD_TRANSFER_STARTED,RELEASE_CHILD_TRANSFER_COMPLETE,NODE_UPGRADE_START,NODE_UPGRADE_COMPLETE,NODE_UPGRADE_FAILED]` + - `+ jobs.policy_config.is_create_table_with_index` + - `+ jobs.base_info.engine_type: enum value [mysql-to-mysql]` + - `+ jobs.source_endpoint.db_type: enum value [mysql]` + - **UpdateBatchAsyncJobs** + - changes of request param + - `+ jobs.params.policy_config.is_create_table_with_index` + - `+ jobs.params.base_info.engine_type: enum value [mysql-to-mysql]` + - `+ jobs.params.source_endpoint.db_type: enum value [mysql]` + - **ShowJobDetail** + - changes of response param + - `+ job.status: enum value [CREATING,CREATE_FAILED,CONFIGURATION,STARTJOBING,WAITING_FOR_START,START_JOB_FAILED,PAUSING,FULL_TRANSFER_STARTED,FULL_TRANSFER_FAILED,FULL_TRANSFER_COMPLETE,INCRE_TRANSFER_STARTED,INCRE_TRANSFER_FAILED,RELEASE_RESOURCE_STARTED,RELEASE_RESOURCE_FAILED,RELEASE_RESOURCE_COMPLETE,REBUILD_NODE_STARTED,REBUILD_NODE_FAILED,CHANGE_JOB_STARTED,CHANGE_JOB_FAILED,DELETED,CHILD_TRANSFER_STARTING,CHILD_TRANSFER_STARTED,CHILD_TRANSFER_COMPLETE,CHILD_TRANSFER_FAILED,RELEASE_CHILD_TRANSFER_STARTED,RELEASE_CHILD_TRANSFER_COMPLETE,NODE_UPGRADE_START,NODE_UPGRADE_COMPLETE,NODE_UPGRADE_FAILED]` + - `+ job.policy_config.is_create_table_with_index` + - `+ job.base_info.engine_type: enum value [mysql-to-mysql]` + - `+ job.source_endpoint.db_type: enum value [mysql]` + - **UpdateJob** + - changes of request param + - `+ job.params.policy_config.is_create_table_with_index` + - `+ job.params.base_info.engine_type: enum value [mysql-to-mysql]` + - `+ job.params.source_endpoint.db_type: enum value [mysql]` + - **ExecuteJobAction** + - changes of request param + - `+ job.action_params.is_only_init_task` + - `+ job.action_params.endpoints.db_type: enum value [mysql]` + - **BatchExecuteJobActions** + - changes of request param + - `+ jobs.action_params.is_only_init_task` + - `+ jobs.action_params.endpoints.db_type: enum value [mysql]` + +### HuaweiCloud SDK eiHealth + +- _API Version_ + - V1 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowMolBatchDownloadTask** + - changes of response param + - `+ progress` + - **ListBaseModel** + - changes of response param + - `- models.creator` + - **CreateFepJob** + - changes of request param + - `+ add_membrane` + - **ShowFepJob** + - changes of response param + - `+ add_membrane` + - `+ job_result.sub_tasks_duration` + - **ShowAdmetJob** + - changes of response param + - `+ job_result.sub_tasks_duration` + - **ShowDockingJob** + - changes of response param + - `+ job_result.sub_tasks_duration` + +### HuaweiCloud SDK GaussDBforopenGauss + +- _API Version_ + - V3 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateDbInstance** + - changes of request param + - `+ ha.instance_mode` + +### HuaweiCloud SDK KMS + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateDatakey** + - changes of request param + - `+ additional_authenticated_data` + - **CreateDatakeyWithoutPlaintext** + - changes of request param + - `+ additional_authenticated_data` + - **EncryptDatakey** + - changes of request param + - `+ additional_authenticated_data` + - **DecryptDatakey** + - changes of request param + - `+ additional_authenticated_data` + - **EncryptData** + - changes of request param + - `+ additional_authenticated_data` + - **DecryptData** + - changes of request param + - `+ additional_authenticated_data` + +### HuaweiCloud SDK Meeting + +- _API Version_ + - V1 +- _Features_ + - Support the following APIs: + - `AddAppId` + - `BatchSearchAppId` + - `UpdateAppId` + - `DeleteAppId` + - `ResetAppKey` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK OMS + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowTask** + - changes of response param + - `+ task_priority` + - **CreateTask** + - changes of request param + - `+ task_priority` + - **ListTasks** + - changes of response param + - `+ task_priority` + - `+ tasks.task_priority` + +### HuaweiCloud SDK VPCEP + +- _API Version_ + - V1 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListEndpointInfoDetails** + - changes of response param + - `* policy_document: string -> object` + - **UpdateEndpointWhite** + - changes of response param + - `* policy_document: string -> object` + - **UpdateEndpointPolicy** + - changes of request param + - `* policy_document: string -> object` + - changes of response param + - `* policy_document: string -> object` + - **DeleteEndpointPolicy** + - changes of response param + - `* policy_document: string -> object` + - **CreateEndpoint** + - changes of request param + - `* policy_document: string -> object` + - changes of response param + - `* policy_document: string -> object` + - **ListEndpoints** + - changes of response param + - `* endpoints.policy_document: string -> object` + +### HuaweiCloud SDK Workspace + +- _API Version_ + - V2 +- _Features_ + - Support the API `ListDesktopsConnectStatus` +- _Bug Fix_ + - None +- _Change_ + - None + # 3.1.110 2024-08-15 ### HuaweiCloud SDK AOS diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 5c8b92dc1a..5844f90564 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,246 @@ +# 3.1.111 2024-08-22 + +### HuaweiCloud SDK CAE + +- _接口版本_ + - V1 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 移除接口`ListComponentEvents` + - **ListNoticeRules** + - 响应参数变更 + - `+ items.notification.template` + - **CreateNoticeRule** + - 请求参数变更 + - `+ spec.notification.template` + - 响应参数变更 + - `+ spec.notification.template` + - **ShowNoticeRule** + - 响应参数变更 + - `+ spec.notification.template` + - **UpdateNoticeRule** + - 响应参数变更 + - `+ spec.notification.template` + +### HuaweiCloud SDK CCE + +- _接口版本_ + - V3 +- _新增特性_ + - 支持接口`SyncNode`、`BatchSyncNodes` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DRS + +- _接口版本_ + - V5 +- _新增特性_ + - 支持接口`UploadUserJdbcDriver`、`SyncUserJdbcDriver`、`ListUserJdbcDrivers`、`DeleteUserJdbcDriver` +- _解决问题_ + - 无 +- _特性变更_ + - **CreateJob** + - 请求参数变更 + - `+ job.base_info.engine_type: enum value [mysql-to-mysql]` + - `+ job.source_endpoint.db_type: enum value [mysql]` + - 响应参数变更 + - `+ is_clone_job` + - `+ create_time` + - `+ name` + - `+ id` + - `+ status` + - `- job` + - **BatchCreateJobsAsync** + - 请求参数变更 + - `+ jobs.policy_config.is_create_table_with_index` + - `+ jobs.base_info.engine_type: enum value [mysql-to-mysql]` + - `+ jobs.source_endpoint.db_type: enum value [mysql]` + - **ListAsyncJobDetail** + - 响应参数变更 + - `+ jobs.status: enum value [CREATING,CREATE_FAILED,CONFIGURATION,STARTJOBING,WAITING_FOR_START,START_JOB_FAILED,PAUSING,FULL_TRANSFER_STARTED,FULL_TRANSFER_FAILED,FULL_TRANSFER_COMPLETE,INCRE_TRANSFER_STARTED,INCRE_TRANSFER_FAILED,RELEASE_RESOURCE_STARTED,RELEASE_RESOURCE_FAILED,RELEASE_RESOURCE_COMPLETE,REBUILD_NODE_STARTED,REBUILD_NODE_FAILED,CHANGE_JOB_STARTED,CHANGE_JOB_FAILED,DELETED,CHILD_TRANSFER_STARTING,CHILD_TRANSFER_STARTED,CHILD_TRANSFER_COMPLETE,CHILD_TRANSFER_FAILED,RELEASE_CHILD_TRANSFER_STARTED,RELEASE_CHILD_TRANSFER_COMPLETE,NODE_UPGRADE_START,NODE_UPGRADE_COMPLETE,NODE_UPGRADE_FAILED]` + - `+ jobs.policy_config.is_create_table_with_index` + - `+ jobs.base_info.engine_type: enum value [mysql-to-mysql]` + - `+ jobs.source_endpoint.db_type: enum value [mysql]` + - **UpdateBatchAsyncJobs** + - 请求参数变更 + - `+ jobs.params.policy_config.is_create_table_with_index` + - `+ jobs.params.base_info.engine_type: enum value [mysql-to-mysql]` + - `+ jobs.params.source_endpoint.db_type: enum value [mysql]` + - **ShowJobDetail** + - 响应参数变更 + - `+ job.status: enum value [CREATING,CREATE_FAILED,CONFIGURATION,STARTJOBING,WAITING_FOR_START,START_JOB_FAILED,PAUSING,FULL_TRANSFER_STARTED,FULL_TRANSFER_FAILED,FULL_TRANSFER_COMPLETE,INCRE_TRANSFER_STARTED,INCRE_TRANSFER_FAILED,RELEASE_RESOURCE_STARTED,RELEASE_RESOURCE_FAILED,RELEASE_RESOURCE_COMPLETE,REBUILD_NODE_STARTED,REBUILD_NODE_FAILED,CHANGE_JOB_STARTED,CHANGE_JOB_FAILED,DELETED,CHILD_TRANSFER_STARTING,CHILD_TRANSFER_STARTED,CHILD_TRANSFER_COMPLETE,CHILD_TRANSFER_FAILED,RELEASE_CHILD_TRANSFER_STARTED,RELEASE_CHILD_TRANSFER_COMPLETE,NODE_UPGRADE_START,NODE_UPGRADE_COMPLETE,NODE_UPGRADE_FAILED]` + - `+ job.policy_config.is_create_table_with_index` + - `+ job.base_info.engine_type: enum value [mysql-to-mysql]` + - `+ job.source_endpoint.db_type: enum value [mysql]` + - **UpdateJob** + - 请求参数变更 + - `+ job.params.policy_config.is_create_table_with_index` + - `+ job.params.base_info.engine_type: enum value [mysql-to-mysql]` + - `+ job.params.source_endpoint.db_type: enum value [mysql]` + - **ExecuteJobAction** + - 请求参数变更 + - `+ job.action_params.is_only_init_task` + - `+ job.action_params.endpoints.db_type: enum value [mysql]` + - **BatchExecuteJobActions** + - 请求参数变更 + - `+ jobs.action_params.is_only_init_task` + - `+ jobs.action_params.endpoints.db_type: enum value [mysql]` + +### HuaweiCloud SDK eiHealth + +- _接口版本_ + - V1 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowMolBatchDownloadTask** + - 响应参数变更 + - `+ progress` + - **ListBaseModel** + - 响应参数变更 + - `- models.creator` + - **CreateFepJob** + - 请求参数变更 + - `+ add_membrane` + - **ShowFepJob** + - 响应参数变更 + - `+ add_membrane` + - `+ job_result.sub_tasks_duration` + - **ShowAdmetJob** + - 响应参数变更 + - `+ job_result.sub_tasks_duration` + - **ShowDockingJob** + - 响应参数变更 + - `+ job_result.sub_tasks_duration` + +### HuaweiCloud SDK GaussDBforopenGauss + +- _接口版本_ + - V3 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateDbInstance** + - 请求参数变更 + - `+ ha.instance_mode` + +### HuaweiCloud SDK KMS + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateDatakey** + - 请求参数变更 + - `+ additional_authenticated_data` + - **CreateDatakeyWithoutPlaintext** + - 请求参数变更 + - `+ additional_authenticated_data` + - **EncryptDatakey** + - 请求参数变更 + - `+ additional_authenticated_data` + - **DecryptDatakey** + - 请求参数变更 + - `+ additional_authenticated_data` + - **EncryptData** + - 请求参数变更 + - `+ additional_authenticated_data` + - **DecryptData** + - 请求参数变更 + - `+ additional_authenticated_data` + +### HuaweiCloud SDK Meeting + +- _接口版本_ + - V1 +- _新增特性_ + - 支持以下接口: + - `AddAppId` + - `BatchSearchAppId` + - `UpdateAppId` + - `DeleteAppId` + - `ResetAppKey` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK OMS + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowTask** + - 响应参数变更 + - `+ task_priority` + - **CreateTask** + - 请求参数变更 + - `+ task_priority` + - **ListTasks** + - 响应参数变更 + - `+ task_priority` + - `+ tasks.task_priority` + +### HuaweiCloud SDK VPCEP + +- _接口版本_ + - V1 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListEndpointInfoDetails** + - 响应参数变更 + - `* policy_document: string -> object` + - **UpdateEndpointWhite** + - 响应参数变更 + - `* policy_document: string -> object` + - **UpdateEndpointPolicy** + - 请求参数变更 + - `* policy_document: string -> object` + - 响应参数变更 + - `* policy_document: string -> object` + - **DeleteEndpointPolicy** + - 响应参数变更 + - `* policy_document: string -> object` + - **CreateEndpoint** + - 请求参数变更 + - `* policy_document: string -> object` + - 响应参数变更 + - `* policy_document: string -> object` + - **ListEndpoints** + - 响应参数变更 + - `* endpoints.policy_document: string -> object` + +### HuaweiCloud SDK Workspace + +- _接口版本_ + - V2 +- _新增特性_ + - 支持接口`ListDesktopsConnectStatus` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + # 3.1.110 2024-08-15 ### HuaweiCloud SDK AOS diff --git a/VERSION b/VERSION index 579728d4d1..308dc7bc1d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.110 +3.1.111 diff --git a/all/pom.xml b/all/pom.xml index 7bdbc2a91a..7860711301 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.110 + 3.1.111 huaweicloud-sdk 4.0.0 huaweicloud-sdk-all - 3.1.110 + 3.1.111 Huawei Cloud SDK for Java Huawei Cloud SDK for Java provides all services https://github.com/huaweicloud/huaweicloud-sdk-java-v3 @@ -23,876 +23,876 @@ com.huaweicloud.sdk huaweicloud-sdk-mssi - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-orgid - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-cfw - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-antiddos - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-oa - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-aom - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-apig - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-as - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-asm - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-bcs - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-bms - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-bss - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-bssintl - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-cbr - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-cce - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-ces - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-classroom - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-cloudrtc - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-cloudide - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-codeartspipeline - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-cloudpond - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-cloudtest - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-codeartscheck - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-cts - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-das - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-dcs - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-ddm - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-dds - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-dis - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-devstar - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-dlf - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-dgc - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-dli - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-dns - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-drs - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-ecs - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-eihealth - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-eip - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-geip - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-elb - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-eps - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-evs - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-dss - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-functiongraph - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-gaussdbfornosql - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-hss - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-cgs - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-iam - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-iec - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-ief - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-image - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-ims - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-iotda - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-iotdm - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-iotedge - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-kafka - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-kms - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-kps - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-live - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-meeting - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-moderation - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-mpc - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-mrs - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-nat - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-oms - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-osm - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-projectman - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-rabbitmq - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-rds - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-rms - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-roma - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-sa - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-secmaster - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-scm - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-servicestage - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-smn - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-sms - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-swr - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-tms - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-vpc - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-vpcep - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-cdn - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-ugo - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-ocr - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-waf - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-optverse - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-oroas - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-vod - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-lts - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-gaussdb - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-ccm - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-csms - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-codeartsdeploy - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-frs - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-codecraft - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-imagesearch - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-cbs - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-cpts - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-ivs - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-gsl - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-cdm - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-sdrs - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-dbss - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-dsc - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-codeartsinspector - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-nlp - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-gaussdbforopengauss - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-campusgo - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-codehub - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-vas - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-cbh - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-ges - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-sfsturbo - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-sis - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-cloudtable - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-deh - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-res - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-hilens - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-iotanalytics - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-expert - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-css - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-dws - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-vcm - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-cc - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-cse - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-cae - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-rocketmq - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-apm - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-cph - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-eg - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-er - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-ga - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-workspace - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-workspaceapp - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-codeartsartifact - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-koomessage - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-koophone - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-koomap - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-codeartsgovernance - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-dc - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-aos - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-mas - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-dwr - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-dris - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-mapds - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-codeartsbuild - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-lakeformation - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-dataartsinsight - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-organizations - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-ram - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-idme - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-idmeclassicapi - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-metastudio - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-cms - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-msgsms - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-eds - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-obs - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-dataartsstudio - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-tics - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-config - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-identitycenter - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-identitycenterstore - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-pangulargemodels - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-edgesec - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-ec - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-kvs - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-vpn - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-aad - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-rgc - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-iamaccessanalyzer - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-vias - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-sts - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-coc - 3.1.110 + 3.1.111 - ${project.artifactId}-3.1.110 + ${project.artifactId}-3.1.111 maven-dependency-plugin diff --git a/bundle/pom.xml b/bundle/pom.xml index d6e647ca86..acc84aeab6 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.110 + 3.1.111 huaweicloud-sdk 4.0.0 huaweicloud-sdk-bundle - 3.1.110 + 3.1.111 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.110 + 3.1.111 diff --git a/core-bson/pom.xml b/core-bson/pom.xml index 2cfe3f9839..884175dc32 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.110 + 3.1.111 huaweicloud-sdk 4.0.0 jar huaweicloud-sdk-core-bson - 3.1.110 + 3.1.111 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.110 + 3.1.111 ch.qos.logback diff --git a/core-xml/pom.xml b/core-xml/pom.xml index 78c323a794..eb7c17d5c3 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.110 + 3.1.111 huaweicloud-sdk 4.0.0 jar huaweicloud-sdk-core-xml - 3.1.110 + 3.1.111 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.110 + 3.1.111 ch.qos.logback diff --git a/core/pom.xml b/core/pom.xml index 047f80ac66..088ef2456e 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -5,14 +5,14 @@ com.huaweicloud.sdk - 3.1.110 + 3.1.111 huaweicloud-sdk 4.0.0 jar huaweicloud-sdk-core - 3.1.110 + 3.1.111 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/ClientBuilder.java b/core/src/main/java/com/huaweicloud/sdk/core/ClientBuilder.java index 719f5a9f53..474a4a67ec 100644 --- a/core/src/main/java/com/huaweicloud/sdk/core/ClientBuilder.java +++ b/core/src/main/java/com/huaweicloud/sdk/core/ClientBuilder.java @@ -50,6 +50,10 @@ public class ClientBuilder { private HttpConfig httpConfig; + protected Region getRegion() { + return region; + } + private Region region; private List endpoints; diff --git a/core/src/main/java/com/huaweicloud/sdk/core/HcClient.java b/core/src/main/java/com/huaweicloud/sdk/core/HcClient.java index 8be3abc6e0..21d13ceb28 100644 --- a/core/src/main/java/com/huaweicloud/sdk/core/HcClient.java +++ b/core/src/main/java/com/huaweicloud/sdk/core/HcClient.java @@ -93,6 +93,10 @@ public static Logger get() { private ExceptionHandler exceptionHandler = new DefaultExceptionHandler(); + public List getEndpoints() { + return endpoints; + } + private List endpoints; private ICredential credential; diff --git a/pom.xml b/pom.xml index 888f98edeb..d82277713d 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ pom com.huaweicloud.sdk huaweicloud-sdk - 3.1.110 + 3.1.111 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 7c458af962..ba6388dfa6 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-aad - 3.1.110 + 3.1.111 Huawei Cloud SDK for AAD 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/antiddos/pom.xml b/services/antiddos/pom.xml index aa845891c2..e2afc245e3 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-antiddos - 3.1.110 + 3.1.111 Huawei Cloud SDK for ANTIDDOS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/aom/pom.xml b/services/aom/pom.xml index dcaae4740c..a6933f74a2 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-aom - 3.1.110 + 3.1.111 Huawei Cloud SDK for AOM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/aos/pom.xml b/services/aos/pom.xml index 23dd59346c..e50adbea75 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-aos - 3.1.110 + 3.1.111 Huawei Cloud SDK for AOS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/apig/pom.xml b/services/apig/pom.xml index af6a9f9790..08c6601544 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-apig - 3.1.110 + 3.1.111 Huawei Cloud SDK for APIG 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/apm/pom.xml b/services/apm/pom.xml index fa9fdbeed5..842579af72 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-apm - 3.1.110 + 3.1.111 Huawei Cloud SDK for APM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/as/pom.xml b/services/as/pom.xml index b7c18ec03f..6232b1195c 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-as - 3.1.110 + 3.1.111 Huawei Cloud SDK for AS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/asm/pom.xml b/services/asm/pom.xml index 0517f7dd33..4a0821b7ba 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-asm - 3.1.110 + 3.1.111 Huawei Cloud SDK for ASM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/bcs/pom.xml b/services/bcs/pom.xml index 36fbf45f33..47912b20d7 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-bcs - 3.1.110 + 3.1.111 Huawei Cloud SDK for BCS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/bms/pom.xml b/services/bms/pom.xml index fea2366f2f..10418ead13 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-bms - 3.1.110 + 3.1.111 Huawei Cloud SDK for BMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/bss/pom.xml b/services/bss/pom.xml index 7d9b676162..82d7ab6dec 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-bss - 3.1.110 + 3.1.111 Huawei Cloud SDK for BSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/bssintl/pom.xml b/services/bssintl/pom.xml index 3d28acfe4c..594b732240 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-bssintl - 3.1.110 + 3.1.111 Huawei Cloud SDK for BSSINTL 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/cae/pom.xml b/services/cae/pom.xml index 3b678ecfed..499bf0e77b 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-cae - 3.1.110 + 3.1.111 Huawei Cloud SDK for CAE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/CaeAsyncClient.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/CaeAsyncClient.java index 41f21b229f..d97cc77332 100644 --- a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/CaeAsyncClient.java +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/CaeAsyncClient.java @@ -56,8 +56,6 @@ import com.huaweicloud.sdk.cae.v1.model.ListCertificatesResponse; import com.huaweicloud.sdk.cae.v1.model.ListComponentConfigurationsRequest; import com.huaweicloud.sdk.cae.v1.model.ListComponentConfigurationsResponse; -import com.huaweicloud.sdk.cae.v1.model.ListComponentEventsRequest; -import com.huaweicloud.sdk.cae.v1.model.ListComponentEventsResponse; import com.huaweicloud.sdk.cae.v1.model.ListComponentInstancesRequest; import com.huaweicloud.sdk.cae.v1.model.ListComponentInstancesResponse; import com.huaweicloud.sdk.cae.v1.model.ListComponentSnapshotsRequest; @@ -530,35 +528,6 @@ public AsyncInvoker executeActionAs return new AsyncInvoker<>(request, CaeMeta.executeAction, hcClient); } - /** - * 获取组件事件列表 - * - * 获取组件事件列表。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListComponentEventsRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture listComponentEventsAsync(ListComponentEventsRequest request) { - return hcClient.asyncInvokeHttp(request, CaeMeta.listComponentEvents); - } - - /** - * 获取组件事件列表 - * - * 获取组件事件列表。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListComponentEventsRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker listComponentEventsAsyncInvoker( - ListComponentEventsRequest request) { - return new AsyncInvoker<>(request, CaeMeta.listComponentEvents, hcClient); - } - /** * 获取组件实例列表 * diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/CaeClient.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/CaeClient.java index e4b3e4e347..704b899855 100644 --- a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/CaeClient.java +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/CaeClient.java @@ -56,8 +56,6 @@ import com.huaweicloud.sdk.cae.v1.model.ListCertificatesResponse; import com.huaweicloud.sdk.cae.v1.model.ListComponentConfigurationsRequest; import com.huaweicloud.sdk.cae.v1.model.ListComponentConfigurationsResponse; -import com.huaweicloud.sdk.cae.v1.model.ListComponentEventsRequest; -import com.huaweicloud.sdk.cae.v1.model.ListComponentEventsResponse; import com.huaweicloud.sdk.cae.v1.model.ListComponentInstancesRequest; import com.huaweicloud.sdk.cae.v1.model.ListComponentInstancesResponse; import com.huaweicloud.sdk.cae.v1.model.ListComponentSnapshotsRequest; @@ -525,35 +523,6 @@ public SyncInvoker executeActionInv return new SyncInvoker<>(request, CaeMeta.executeAction, hcClient); } - /** - * 获取组件事件列表 - * - * 获取组件事件列表。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListComponentEventsRequest 请求对象 - * @return ListComponentEventsResponse - */ - public ListComponentEventsResponse listComponentEvents(ListComponentEventsRequest request) { - return hcClient.syncInvokeHttp(request, CaeMeta.listComponentEvents); - } - - /** - * 获取组件事件列表 - * - * 获取组件事件列表。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListComponentEventsRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker listComponentEventsInvoker( - ListComponentEventsRequest request) { - return new SyncInvoker<>(request, CaeMeta.listComponentEvents, hcClient); - } - /** * 获取组件实例列表 * diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/CaeMeta.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/CaeMeta.java index c016dad854..9b181fae33 100644 --- a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/CaeMeta.java +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/CaeMeta.java @@ -68,8 +68,6 @@ import com.huaweicloud.sdk.cae.v1.model.ListCertificatesResponse; import com.huaweicloud.sdk.cae.v1.model.ListComponentConfigurationsRequest; import com.huaweicloud.sdk.cae.v1.model.ListComponentConfigurationsResponse; -import com.huaweicloud.sdk.cae.v1.model.ListComponentEventsRequest; -import com.huaweicloud.sdk.cae.v1.model.ListComponentEventsResponse; import com.huaweicloud.sdk.cae.v1.model.ListComponentInstancesRequest; import com.huaweicloud.sdk.cae.v1.model.ListComponentInstancesResponse; import com.huaweicloud.sdk.cae.v1.model.ListComponentSnapshotsRequest; @@ -618,48 +616,6 @@ private static HttpRequestDef genFo return builder.build(); } - public static final HttpRequestDef listComponentEvents = - genForListComponentEvents(); - - private static HttpRequestDef genForListComponentEvents() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.GET, ListComponentEventsRequest.class, ListComponentEventsResponse.class) - .withName("ListComponentEvents") - .withUri("/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/events") - .withContentType("application/json"); - - // requests - builder.withRequestField("application_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListComponentEventsRequest::getApplicationId, - ListComponentEventsRequest::setApplicationId)); - builder.withRequestField("component_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListComponentEventsRequest::getComponentId, - ListComponentEventsRequest::setComponentId)); - builder.withRequestField("X-Enterprise-Project-ID", - LocationType.Header, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListComponentEventsRequest::getXEnterpriseProjectID, - ListComponentEventsRequest::setXEnterpriseProjectID)); - builder.withRequestField("X-Environment-ID", - LocationType.Header, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListComponentEventsRequest::getXEnvironmentID, - ListComponentEventsRequest::setXEnvironmentID)); - - // response - - return builder.build(); - } - public static final HttpRequestDef listComponentInstances = genForListComponentInstances(); diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ComponentEventKindObj.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ComponentEventKindObj.java deleted file mode 100644 index 70e399aa3c..0000000000 --- a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ComponentEventKindObj.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.huaweicloud.sdk.cae.v1.model; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -import java.util.Collections; -import java.util.HashMap; -import java.util.Map; - -/** - * API类型,固定值“ComponentEvent”,该值不可修改。 - */ -public class ComponentEventKindObj { - - /** - * Enum COMPONENTEVENT for value: "ComponentEvent" - */ - public static final ComponentEventKindObj COMPONENTEVENT = new ComponentEventKindObj("ComponentEvent"); - - private static final Map STATIC_FIELDS = createStaticFields(); - - private static Map createStaticFields() { - Map map = new HashMap<>(); - map.put("ComponentEvent", COMPONENTEVENT); - return Collections.unmodifiableMap(map); - } - - private String value; - - ComponentEventKindObj(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ComponentEventKindObj fromValue(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ComponentEventKindObj(value)); - } - - public static ComponentEventKindObj 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 ComponentEventKindObj) { - return this.value.equals(((ComponentEventKindObj) obj).value); - } - return false; - } - - @Override - public int hashCode() { - return this.value.hashCode(); - } -} diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/EventItem.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/EventItem.java deleted file mode 100644 index 521d6089b4..0000000000 --- a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/EventItem.java +++ /dev/null @@ -1,387 +0,0 @@ -package com.huaweicloud.sdk.cae.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; - -/** - * EventItem - */ -public class EventItem { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "name") - - private String name; - - /** - * 涉及对象类型。 - */ - public static final class InvolvedObjectKindEnum { - - /** - * Enum COMPONENT for value: "Component" - */ - public static final InvolvedObjectKindEnum COMPONENT = new InvolvedObjectKindEnum("Component"); - - /** - * Enum COMPONENTINSTANCE for value: "ComponentInstance" - */ - public static final InvolvedObjectKindEnum COMPONENTINSTANCE = new InvolvedObjectKindEnum("ComponentInstance"); - - /** - * Enum COMPONENTSCALING for value: "ComponentScaling" - */ - public static final InvolvedObjectKindEnum COMPONENTSCALING = new InvolvedObjectKindEnum("ComponentScaling"); - - private static final Map STATIC_FIELDS = createStaticFields(); - - private static Map createStaticFields() { - Map map = new HashMap<>(); - map.put("Component", COMPONENT); - map.put("ComponentInstance", COMPONENTINSTANCE); - map.put("ComponentScaling", COMPONENTSCALING); - return Collections.unmodifiableMap(map); - } - - private String value; - - InvolvedObjectKindEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static InvolvedObjectKindEnum fromValue(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new InvolvedObjectKindEnum(value)); - } - - public static InvolvedObjectKindEnum 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 InvolvedObjectKindEnum) { - return this.value.equals(((InvolvedObjectKindEnum) obj).value); - } - return false; - } - - @Override - public int hashCode() { - return this.value.hashCode(); - } - } - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "involved_object_kind") - - private InvolvedObjectKindEnum involvedObjectKind; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "involved_object") - - private String involvedObject; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "message") - - private String message; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "created_at") - - private String createdAt; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "updated_at") - - private String updatedAt; - - /** - * 组件事件状态。 - */ - public static final class StatusEnum { - - /** - * Enum WARNING for value: "Warning" - */ - public static final StatusEnum WARNING = new StatusEnum("Warning"); - - /** - * Enum NORMAL for value: "Normal" - */ - public static final StatusEnum NORMAL = new StatusEnum("Normal"); - - private static final Map STATIC_FIELDS = createStaticFields(); - - private static Map createStaticFields() { - Map map = new HashMap<>(); - map.put("Warning", WARNING); - map.put("Normal", NORMAL); - 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 = "count") - - private Integer count; - - public EventItem withName(String name) { - this.name = name; - return this; - } - - /** - * 事件名称。 - * @return name - */ - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public EventItem withInvolvedObjectKind(InvolvedObjectKindEnum involvedObjectKind) { - this.involvedObjectKind = involvedObjectKind; - return this; - } - - /** - * 涉及对象类型。 - * @return involvedObjectKind - */ - public InvolvedObjectKindEnum getInvolvedObjectKind() { - return involvedObjectKind; - } - - public void setInvolvedObjectKind(InvolvedObjectKindEnum involvedObjectKind) { - this.involvedObjectKind = involvedObjectKind; - } - - public EventItem withInvolvedObject(String involvedObject) { - this.involvedObject = involvedObject; - return this; - } - - /** - * 涉及对象。 - * @return involvedObject - */ - public String getInvolvedObject() { - return involvedObject; - } - - public void setInvolvedObject(String involvedObject) { - this.involvedObject = involvedObject; - } - - public EventItem withMessage(String message) { - this.message = message; - return this; - } - - /** - * 组件事件信息。 - * @return message - */ - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public EventItem withCreatedAt(String createdAt) { - this.createdAt = createdAt; - return this; - } - - /** - * 创建时间。 - * @return createdAt - */ - public String getCreatedAt() { - return createdAt; - } - - public void setCreatedAt(String createdAt) { - this.createdAt = createdAt; - } - - public EventItem withUpdatedAt(String updatedAt) { - this.updatedAt = updatedAt; - return this; - } - - /** - * 更新时间。 - * @return updatedAt - */ - public String getUpdatedAt() { - return updatedAt; - } - - public void setUpdatedAt(String updatedAt) { - this.updatedAt = updatedAt; - } - - public EventItem withStatus(StatusEnum status) { - this.status = status; - return this; - } - - /** - * 组件事件状态。 - * @return status - */ - public StatusEnum getStatus() { - return status; - } - - public void setStatus(StatusEnum status) { - this.status = status; - } - - public EventItem withCount(Integer count) { - this.count = count; - return this; - } - - /** - * 事件发生次数。 - * @return count - */ - public Integer getCount() { - return count; - } - - public void setCount(Integer count) { - this.count = count; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - EventItem that = (EventItem) obj; - return Objects.equals(this.name, that.name) && Objects.equals(this.involvedObjectKind, that.involvedObjectKind) - && Objects.equals(this.involvedObject, that.involvedObject) && Objects.equals(this.message, that.message) - && Objects.equals(this.createdAt, that.createdAt) && Objects.equals(this.updatedAt, that.updatedAt) - && Objects.equals(this.status, that.status) && Objects.equals(this.count, that.count); - } - - @Override - public int hashCode() { - return Objects.hash(name, involvedObjectKind, involvedObject, message, createdAt, updatedAt, status, count); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EventItem {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" involvedObjectKind: ").append(toIndentedString(involvedObjectKind)).append("\n"); - sb.append(" involvedObject: ").append(toIndentedString(involvedObject)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" count: ").append(toIndentedString(count)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ListComponentEventsRequest.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ListComponentEventsRequest.java deleted file mode 100644 index 09d8c69479..0000000000 --- a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ListComponentEventsRequest.java +++ /dev/null @@ -1,148 +0,0 @@ -package com.huaweicloud.sdk.cae.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * Request Object - */ -public class ListComponentEventsRequest { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "application_id") - - private String applicationId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "component_id") - - private String componentId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Enterprise-Project-ID") - - private String xEnterpriseProjectID; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Environment-ID") - - private String xEnvironmentID; - - public ListComponentEventsRequest withApplicationId(String applicationId) { - this.applicationId = applicationId; - return this; - } - - /** - * 应用ID。 - * @return applicationId - */ - public String getApplicationId() { - return applicationId; - } - - public void setApplicationId(String applicationId) { - this.applicationId = applicationId; - } - - public ListComponentEventsRequest withComponentId(String componentId) { - this.componentId = componentId; - return this; - } - - /** - * 组件ID。 - * @return componentId - */ - public String getComponentId() { - return componentId; - } - - public void setComponentId(String componentId) { - this.componentId = componentId; - } - - public ListComponentEventsRequest withXEnterpriseProjectID(String xEnterpriseProjectID) { - this.xEnterpriseProjectID = xEnterpriseProjectID; - return this; - } - - /** - * 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。 - * @return xEnterpriseProjectID - */ - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Enterprise-Project-ID") - public String getXEnterpriseProjectID() { - return xEnterpriseProjectID; - } - - public void setXEnterpriseProjectID(String xEnterpriseProjectID) { - this.xEnterpriseProjectID = xEnterpriseProjectID; - } - - public ListComponentEventsRequest withXEnvironmentID(String xEnvironmentID) { - this.xEnvironmentID = xEnvironmentID; - return this; - } - - /** - * 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。 - * @return xEnvironmentID - */ - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Environment-ID") - public String getXEnvironmentID() { - return xEnvironmentID; - } - - public void setXEnvironmentID(String xEnvironmentID) { - this.xEnvironmentID = xEnvironmentID; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ListComponentEventsRequest that = (ListComponentEventsRequest) obj; - return Objects.equals(this.applicationId, that.applicationId) - && Objects.equals(this.componentId, that.componentId) - && Objects.equals(this.xEnterpriseProjectID, that.xEnterpriseProjectID) - && Objects.equals(this.xEnvironmentID, that.xEnvironmentID); - } - - @Override - public int hashCode() { - return Objects.hash(applicationId, componentId, xEnterpriseProjectID, xEnvironmentID); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListComponentEventsRequest {\n"); - sb.append(" applicationId: ").append(toIndentedString(applicationId)).append("\n"); - sb.append(" componentId: ").append(toIndentedString(componentId)).append("\n"); - sb.append(" xEnterpriseProjectID: ").append(toIndentedString(xEnterpriseProjectID)).append("\n"); - sb.append(" xEnvironmentID: ").append(toIndentedString(xEnvironmentID)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ListComponentEventsResponse.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ListComponentEventsResponse.java deleted file mode 100644 index 24dd823cb0..0000000000 --- a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ListComponentEventsResponse.java +++ /dev/null @@ -1,139 +0,0 @@ -package com.huaweicloud.sdk.cae.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.huaweicloud.sdk.core.SdkResponse; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * Response Object - */ -public class ListComponentEventsResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "api_version") - - private ApiVersionObj apiVersion; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "kind") - - private ComponentEventKindObj kind; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "items") - - private List items = null; - - public ListComponentEventsResponse withApiVersion(ApiVersionObj apiVersion) { - this.apiVersion = apiVersion; - return this; - } - - /** - * Get apiVersion - * @return apiVersion - */ - public ApiVersionObj getApiVersion() { - return apiVersion; - } - - public void setApiVersion(ApiVersionObj apiVersion) { - this.apiVersion = apiVersion; - } - - public ListComponentEventsResponse withKind(ComponentEventKindObj kind) { - this.kind = kind; - return this; - } - - /** - * Get kind - * @return kind - */ - public ComponentEventKindObj getKind() { - return kind; - } - - public void setKind(ComponentEventKindObj kind) { - this.kind = kind; - } - - public ListComponentEventsResponse withItems(List items) { - this.items = items; - return this; - } - - public ListComponentEventsResponse addItemsItem(EventItem itemsItem) { - if (this.items == null) { - this.items = new ArrayList<>(); - } - this.items.add(itemsItem); - return this; - } - - public ListComponentEventsResponse 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; - } - ListComponentEventsResponse that = (ListComponentEventsResponse) obj; - return Objects.equals(this.apiVersion, that.apiVersion) && Objects.equals(this.kind, that.kind) - && Objects.equals(this.items, that.items); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, kind, items); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListComponentEventsResponse {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).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/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/NoticeRuleNotification.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/NoticeRuleNotification.java index 4a246e3358..ba8761eac6 100644 --- a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/NoticeRuleNotification.java +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/NoticeRuleNotification.java @@ -101,6 +101,81 @@ public int hashCode() { private String endpoint; + /** + * 通知的模板语言。 ZH,中文。 EN,英文。 + */ + public static final class TemplateEnum { + + /** + * Enum ZH for value: "ZH" + */ + public static final TemplateEnum ZH = new TemplateEnum("ZH"); + + /** + * Enum EN for value: "EN" + */ + public static final TemplateEnum EN = new TemplateEnum("EN"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("ZH", ZH); + map.put("EN", EN); + return Collections.unmodifiableMap(map); + } + + private String value; + + TemplateEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TemplateEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new TemplateEnum(value)); + } + + public static TemplateEnum 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 TemplateEnum) { + return this.value.equals(((TemplateEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "template") + + private TemplateEnum template; + public NoticeRuleNotification withProtocol(ProtocolEnum protocol) { this.protocol = protocol; return this; @@ -135,6 +210,23 @@ public void setEndpoint(String endpoint) { this.endpoint = endpoint; } + public NoticeRuleNotification withTemplate(TemplateEnum template) { + this.template = template; + return this; + } + + /** + * 通知的模板语言。 ZH,中文。 EN,英文。 + * @return template + */ + public TemplateEnum getTemplate() { + return template; + } + + public void setTemplate(TemplateEnum template) { + this.template = template; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -144,12 +236,13 @@ public boolean equals(java.lang.Object obj) { return false; } NoticeRuleNotification that = (NoticeRuleNotification) obj; - return Objects.equals(this.protocol, that.protocol) && Objects.equals(this.endpoint, that.endpoint); + return Objects.equals(this.protocol, that.protocol) && Objects.equals(this.endpoint, that.endpoint) + && Objects.equals(this.template, that.template); } @Override public int hashCode() { - return Objects.hash(protocol, endpoint); + return Objects.hash(protocol, endpoint, template); } @Override @@ -158,6 +251,7 @@ public String toString() { sb.append("class NoticeRuleNotification {\n"); sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); sb.append(" endpoint: ").append(toIndentedString(endpoint)).append("\n"); + sb.append(" template: ").append(toIndentedString(template)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/campusgo/pom.xml b/services/campusgo/pom.xml index 02b05a2720..c0c0f2e213 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-campusgo - 3.1.110 + 3.1.111 Huawei Cloud SDK for CAMPUSGO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/cbh/pom.xml b/services/cbh/pom.xml index b2f80609c6..bc9695fa5f 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-cbh - 3.1.110 + 3.1.111 Huawei Cloud SDK for CBH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/cbr/pom.xml b/services/cbr/pom.xml index d4d25382dc..61d559b5a4 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-cbr - 3.1.110 + 3.1.111 Huawei Cloud SDK for CBR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/cbs/pom.xml b/services/cbs/pom.xml index 4e277f0aff..6f2ccb3aac 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-cbs - 3.1.110 + 3.1.111 Huawei Cloud SDK for CBS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/cc/pom.xml b/services/cc/pom.xml index 2937f39bad..d77f3992d5 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-cc - 3.1.110 + 3.1.111 Huawei Cloud SDK for CC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/cce/pom.xml b/services/cce/pom.xml index d64ec41a00..c217814a10 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-cce - 3.1.110 + 3.1.111 Huawei Cloud SDK for CCE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/CceAsyncClient.java b/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/CceAsyncClient.java index 4d04514ed7..29076a98b3 100644 --- a/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/CceAsyncClient.java +++ b/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/CceAsyncClient.java @@ -14,6 +14,8 @@ import com.huaweicloud.sdk.cce.v3.model.BatchDeleteAutopilotClusterTagsResponse; import com.huaweicloud.sdk.cce.v3.model.BatchDeleteClusterTagsRequest; import com.huaweicloud.sdk.cce.v3.model.BatchDeleteClusterTagsResponse; +import com.huaweicloud.sdk.cce.v3.model.BatchSyncNodesRequest; +import com.huaweicloud.sdk.cce.v3.model.BatchSyncNodesResponse; import com.huaweicloud.sdk.cce.v3.model.ContinueUpgradeClusterTaskRequest; import com.huaweicloud.sdk.cce.v3.model.ContinueUpgradeClusterTaskResponse; import com.huaweicloud.sdk.cce.v3.model.CreateAddonInstanceRequest; @@ -236,6 +238,8 @@ import com.huaweicloud.sdk.cce.v3.model.ShowVersionResponse; import com.huaweicloud.sdk.cce.v3.model.SyncNodePoolRequest; import com.huaweicloud.sdk.cce.v3.model.SyncNodePoolResponse; +import com.huaweicloud.sdk.cce.v3.model.SyncNodeRequest; +import com.huaweicloud.sdk.cce.v3.model.SyncNodeResponse; import com.huaweicloud.sdk.cce.v3.model.UpdateAddonInstanceRequest; import com.huaweicloud.sdk.cce.v3.model.UpdateAddonInstanceResponse; import com.huaweicloud.sdk.cce.v3.model.UpdateAutopilotAddonInstanceRequest; @@ -454,6 +458,35 @@ public AsyncInvoker(request, CceMeta.batchDeleteClusterTags, hcClient); } + /** + * 批量同步节点 + * + * 该API用于批量同步节点。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchSyncNodesRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture batchSyncNodesAsync(BatchSyncNodesRequest request) { + return hcClient.asyncInvokeHttp(request, CceMeta.batchSyncNodes); + } + + /** + * 批量同步节点 + * + * 该API用于批量同步节点。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchSyncNodesRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker batchSyncNodesAsyncInvoker( + BatchSyncNodesRequest request) { + return new AsyncInvoker<>(request, CceMeta.batchSyncNodes, hcClient); + } + /** * 继续执行集群升级任务 * @@ -2563,6 +2596,34 @@ public AsyncInvoker s return new AsyncInvoker<>(request, CceMeta.showUserChartsQuotas, hcClient); } + /** + * 同步节点 + * + * 该API用于同步节点。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SyncNodeRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture syncNodeAsync(SyncNodeRequest request) { + return hcClient.asyncInvokeHttp(request, CceMeta.syncNode); + } + + /** + * 同步节点 + * + * 该API用于同步节点。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SyncNodeRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker syncNodeAsyncInvoker(SyncNodeRequest request) { + return new AsyncInvoker<>(request, CceMeta.syncNode, hcClient); + } + /** * 同步nodePool配置到存量节点 * diff --git a/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/CceClient.java b/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/CceClient.java index 8d7de77c52..c2c9378dcd 100644 --- a/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/CceClient.java +++ b/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/CceClient.java @@ -14,6 +14,8 @@ import com.huaweicloud.sdk.cce.v3.model.BatchDeleteAutopilotClusterTagsResponse; import com.huaweicloud.sdk.cce.v3.model.BatchDeleteClusterTagsRequest; import com.huaweicloud.sdk.cce.v3.model.BatchDeleteClusterTagsResponse; +import com.huaweicloud.sdk.cce.v3.model.BatchSyncNodesRequest; +import com.huaweicloud.sdk.cce.v3.model.BatchSyncNodesResponse; import com.huaweicloud.sdk.cce.v3.model.ContinueUpgradeClusterTaskRequest; import com.huaweicloud.sdk.cce.v3.model.ContinueUpgradeClusterTaskResponse; import com.huaweicloud.sdk.cce.v3.model.CreateAddonInstanceRequest; @@ -236,6 +238,8 @@ import com.huaweicloud.sdk.cce.v3.model.ShowVersionResponse; import com.huaweicloud.sdk.cce.v3.model.SyncNodePoolRequest; import com.huaweicloud.sdk.cce.v3.model.SyncNodePoolResponse; +import com.huaweicloud.sdk.cce.v3.model.SyncNodeRequest; +import com.huaweicloud.sdk.cce.v3.model.SyncNodeResponse; import com.huaweicloud.sdk.cce.v3.model.UpdateAddonInstanceRequest; import com.huaweicloud.sdk.cce.v3.model.UpdateAddonInstanceResponse; import com.huaweicloud.sdk.cce.v3.model.UpdateAutopilotAddonInstanceRequest; @@ -449,6 +453,35 @@ public SyncInvoker(request, CceMeta.batchDeleteClusterTags, hcClient); } + /** + * 批量同步节点 + * + * 该API用于批量同步节点。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchSyncNodesRequest 请求对象 + * @return BatchSyncNodesResponse + */ + public BatchSyncNodesResponse batchSyncNodes(BatchSyncNodesRequest request) { + return hcClient.syncInvokeHttp(request, CceMeta.batchSyncNodes); + } + + /** + * 批量同步节点 + * + * 该API用于批量同步节点。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchSyncNodesRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker batchSyncNodesInvoker( + BatchSyncNodesRequest request) { + return new SyncInvoker<>(request, CceMeta.batchSyncNodes, hcClient); + } + /** * 继续执行集群升级任务 * @@ -2529,6 +2562,34 @@ public SyncInvoker sh return new SyncInvoker<>(request, CceMeta.showUserChartsQuotas, hcClient); } + /** + * 同步节点 + * + * 该API用于同步节点。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SyncNodeRequest 请求对象 + * @return SyncNodeResponse + */ + public SyncNodeResponse syncNode(SyncNodeRequest request) { + return hcClient.syncInvokeHttp(request, CceMeta.syncNode); + } + + /** + * 同步节点 + * + * 该API用于同步节点。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SyncNodeRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker syncNodeInvoker(SyncNodeRequest request) { + return new SyncInvoker<>(request, CceMeta.syncNode, hcClient); + } + /** * 同步nodePool配置到存量节点 * diff --git a/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/CceMeta.java b/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/CceMeta.java index 70b877554a..feda4b32fb 100644 --- a/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/CceMeta.java +++ b/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/CceMeta.java @@ -21,6 +21,8 @@ import com.huaweicloud.sdk.cce.v3.model.BatchDeleteClusterTagsRequest; import com.huaweicloud.sdk.cce.v3.model.BatchDeleteClusterTagsRequestBody; import com.huaweicloud.sdk.cce.v3.model.BatchDeleteClusterTagsResponse; +import com.huaweicloud.sdk.cce.v3.model.BatchSyncNodesRequest; +import com.huaweicloud.sdk.cce.v3.model.BatchSyncNodesResponse; import com.huaweicloud.sdk.cce.v3.model.CertDuration; import com.huaweicloud.sdk.cce.v3.model.ChartResp; import com.huaweicloud.sdk.cce.v3.model.Cluster; @@ -268,6 +270,8 @@ import com.huaweicloud.sdk.cce.v3.model.ShowVersionResponse; import com.huaweicloud.sdk.cce.v3.model.SyncNodePoolRequest; import com.huaweicloud.sdk.cce.v3.model.SyncNodePoolResponse; +import com.huaweicloud.sdk.cce.v3.model.SyncNodeRequest; +import com.huaweicloud.sdk.cce.v3.model.SyncNodeResponse; import com.huaweicloud.sdk.cce.v3.model.UpdateAddonInstanceRequest; import com.huaweicloud.sdk.cce.v3.model.UpdateAddonInstanceResponse; import com.huaweicloud.sdk.cce.v3.model.UpdateAutopilotAddonInstanceRequest; @@ -479,6 +483,34 @@ private static HttpRequestDef batchSyncNodes = + genForBatchSyncNodes(); + + private static HttpRequestDef genForBatchSyncNodes() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, BatchSyncNodesRequest.class, BatchSyncNodesResponse.class) + .withName("BatchSyncNodes") + .withUri("/api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/sync") + .withContentType("application/json"); + + // requests + builder.withRequestField("cluster_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(BatchSyncNodesRequest::getClusterId, BatchSyncNodesRequest::setClusterId)); + + // response + builder.withResponseField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(BatchSyncNodesResponse::getBody, BatchSyncNodesResponse::setBody)); + + return builder.build(); + } + public static final HttpRequestDef continueUpgradeClusterTask = genForContinueUpgradeClusterTask(); @@ -2493,6 +2525,38 @@ private static HttpRequestDef syncNode = genForSyncNode(); + + private static HttpRequestDef genForSyncNode() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, SyncNodeRequest.class, SyncNodeResponse.class) + .withName("SyncNode") + .withUri("/api/v2/projects/{project_id}/clusters/{cluster_id}/nodes/{node_id}/sync") + .withContentType("application/json"); + + // requests + builder.withRequestField("cluster_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(SyncNodeRequest::getClusterId, SyncNodeRequest::setClusterId)); + builder.withRequestField("node_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(SyncNodeRequest::getNodeId, SyncNodeRequest::setNodeId)); + + // response + builder.withResponseField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(SyncNodeResponse::getBody, SyncNodeResponse::setBody)); + + return builder.build(); + } + public static final HttpRequestDef syncNodePool = genForSyncNodePool(); private static HttpRequestDef genForSyncNodePool() { diff --git a/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/BatchSyncNodesRequest.java b/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/BatchSyncNodesRequest.java new file mode 100644 index 0000000000..f76714c691 --- /dev/null +++ b/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/BatchSyncNodesRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.cce.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class BatchSyncNodesRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cluster_id") + + private String clusterId; + + public BatchSyncNodesRequest withClusterId(String clusterId) { + this.clusterId = clusterId; + return this; + } + + /** + * 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + * @return clusterId + */ + public String getClusterId() { + return clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchSyncNodesRequest that = (BatchSyncNodesRequest) obj; + return Objects.equals(this.clusterId, that.clusterId); + } + + @Override + public int hashCode() { + return Objects.hash(clusterId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchSyncNodesRequest {\n"); + sb.append(" clusterId: ").append(toIndentedString(clusterId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/BatchSyncNodesResponse.java b/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/BatchSyncNodesResponse.java new file mode 100644 index 0000000000..4759a8d00a --- /dev/null +++ b/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/BatchSyncNodesResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.cce.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 BatchSyncNodesResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private String body; + + public BatchSyncNodesResponse 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; + } + BatchSyncNodesResponse that = (BatchSyncNodesResponse) 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 BatchSyncNodesResponse {\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/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/SyncNodeRequest.java b/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/SyncNodeRequest.java new file mode 100644 index 0000000000..c4eb1dc718 --- /dev/null +++ b/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/SyncNodeRequest.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.cce.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class SyncNodeRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cluster_id") + + private String clusterId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "node_id") + + private String nodeId; + + public SyncNodeRequest withClusterId(String clusterId) { + this.clusterId = clusterId; + return this; + } + + /** + * 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + * @return clusterId + */ + public String getClusterId() { + return clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + public SyncNodeRequest withNodeId(String nodeId) { + this.nodeId = nodeId; + return this; + } + + /** + * 节点ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + * @return nodeId + */ + public String getNodeId() { + return nodeId; + } + + public void setNodeId(String nodeId) { + this.nodeId = nodeId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SyncNodeRequest that = (SyncNodeRequest) obj; + return Objects.equals(this.clusterId, that.clusterId) && Objects.equals(this.nodeId, that.nodeId); + } + + @Override + public int hashCode() { + return Objects.hash(clusterId, nodeId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SyncNodeRequest {\n"); + sb.append(" clusterId: ").append(toIndentedString(clusterId)).append("\n"); + sb.append(" nodeId: ").append(toIndentedString(nodeId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/SyncNodeResp.java b/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/SyncNodeResp.java new file mode 100644 index 0000000000..857520a13a --- /dev/null +++ b/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/SyncNodeResp.java @@ -0,0 +1,34 @@ +package com.huaweicloud.sdk.cce.v3.model; + +import java.util.Objects; + +/** + * SyncNodeResp + */ +public class SyncNodeResp { + + @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 SyncNodeResp {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/SyncNodeResponse.java b/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/SyncNodeResponse.java new file mode 100644 index 0000000000..93027b17da --- /dev/null +++ b/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/SyncNodeResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.cce.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 SyncNodeResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private String body; + + public SyncNodeResponse 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; + } + SyncNodeResponse that = (SyncNodeResponse) 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 SyncNodeResponse {\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/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/SyncNodesResp.java b/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/SyncNodesResp.java new file mode 100644 index 0000000000..60f002a74f --- /dev/null +++ b/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/SyncNodesResp.java @@ -0,0 +1,34 @@ +package com.huaweicloud.sdk.cce.v3.model; + +import java.util.Objects; + +/** + * SyncNodesResp + */ +public class SyncNodesResp { + + @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 SyncNodesResp {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/ccm/pom.xml b/services/ccm/pom.xml index c3267c8df4..cc2911ffc3 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-ccm - 3.1.110 + 3.1.111 Huawei Cloud SDK for CCM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/cdm/pom.xml b/services/cdm/pom.xml index 06f7077b50..cc7673a735 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-cdm - 3.1.110 + 3.1.111 Huawei Cloud SDK for CDM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/cdn/pom.xml b/services/cdn/pom.xml index dd7f074288..26dd63ffe3 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-cdn - 3.1.110 + 3.1.111 Huawei Cloud SDK for CDN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/ces/pom.xml b/services/ces/pom.xml index c5ffe32d97..3547ae9ce0 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-ces - 3.1.110 + 3.1.111 Huawei Cloud SDK for CES 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/ces/src/main/java/com/huaweicloud/sdk/ces/v1/region/CesRegion.java b/services/ces/src/main/java/com/huaweicloud/sdk/ces/v1/region/CesRegion.java index 0227eaebce..14a27eedec 100644 --- a/services/ces/src/main/java/com/huaweicloud/sdk/ces/v1/region/CesRegion.java +++ b/services/ces/src/main/java/com/huaweicloud/sdk/ces/v1/region/CesRegion.java @@ -67,6 +67,8 @@ public class CesRegion { public static final Region CN_SOUTH_2 = new Region("cn-south-2", "https://ces.cn-south-2.myhuaweicloud.com"); + public static final Region CN_SOUTH_4 = new Region("cn-south-4", "https://ces.cn-south-4.myhuaweicloud.com"); + private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("CES"); private static final Map STATIC_FIELDS = createStaticFields(); @@ -97,6 +99,7 @@ private static Map createStaticFields() { map.put("eu-west-0", EU_WEST_0); map.put("ru-moscow-1", RU_MOSCOW_1); map.put("cn-south-2", CN_SOUTH_2); + map.put("cn-south-4", CN_SOUTH_4); return Collections.unmodifiableMap(map); } diff --git a/services/ces/src/main/java/com/huaweicloud/sdk/ces/v2/region/CesRegion.java b/services/ces/src/main/java/com/huaweicloud/sdk/ces/v2/region/CesRegion.java index da4fc592c8..524d4dfc11 100644 --- a/services/ces/src/main/java/com/huaweicloud/sdk/ces/v2/region/CesRegion.java +++ b/services/ces/src/main/java/com/huaweicloud/sdk/ces/v2/region/CesRegion.java @@ -67,6 +67,8 @@ public class CesRegion { public static final Region CN_SOUTH_2 = new Region("cn-south-2", "https://ces.cn-south-2.myhuaweicloud.com"); + public static final Region CN_SOUTH_4 = new Region("cn-south-4", "https://ces.cn-south-4.myhuaweicloud.com"); + private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("CES"); private static final Map STATIC_FIELDS = createStaticFields(); @@ -97,6 +99,7 @@ private static Map createStaticFields() { map.put("eu-west-0", EU_WEST_0); map.put("ru-moscow-1", RU_MOSCOW_1); map.put("cn-south-2", CN_SOUTH_2); + map.put("cn-south-4", CN_SOUTH_4); return Collections.unmodifiableMap(map); } diff --git a/services/ces/src/main/java/com/huaweicloud/sdk/ces/v3/region/CesRegion.java b/services/ces/src/main/java/com/huaweicloud/sdk/ces/v3/region/CesRegion.java index 2f7058827a..70cf392149 100644 --- a/services/ces/src/main/java/com/huaweicloud/sdk/ces/v3/region/CesRegion.java +++ b/services/ces/src/main/java/com/huaweicloud/sdk/ces/v3/region/CesRegion.java @@ -67,6 +67,8 @@ public class CesRegion { public static final Region CN_SOUTH_2 = new Region("cn-south-2", "https://ces.cn-south-2.myhuaweicloud.com"); + public static final Region CN_SOUTH_4 = new Region("cn-south-4", "https://ces.cn-south-4.myhuaweicloud.com"); + private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("CES"); private static final Map STATIC_FIELDS = createStaticFields(); @@ -97,6 +99,7 @@ private static Map createStaticFields() { map.put("eu-west-0", EU_WEST_0); map.put("ru-moscow-1", RU_MOSCOW_1); map.put("cn-south-2", CN_SOUTH_2); + map.put("cn-south-4", CN_SOUTH_4); return Collections.unmodifiableMap(map); } diff --git a/services/cfw/pom.xml b/services/cfw/pom.xml index 0d25317f04..fcf4e4c04a 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-cfw - 3.1.110 + 3.1.111 Huawei Cloud SDK for CFW 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/cgs/pom.xml b/services/cgs/pom.xml index 6ca3c2f91d..a0286e3d43 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-cgs - 3.1.110 + 3.1.111 Huawei Cloud SDK for CGS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/classroom/pom.xml b/services/classroom/pom.xml index 75031e686e..e1569fccee 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-classroom - 3.1.110 + 3.1.111 Huawei Cloud SDK for CLASSROOM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/cloudide/pom.xml b/services/cloudide/pom.xml index daf40ec2e5..51a05c7460 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-cloudide - 3.1.110 + 3.1.111 Huawei Cloud SDK for CLOUDIDE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 junit diff --git a/services/cloudpond/pom.xml b/services/cloudpond/pom.xml index f117954dcc..08844ca514 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-cloudpond - 3.1.110 + 3.1.111 Huawei Cloud SDK for CLOUDPOND 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/cloudrtc/pom.xml b/services/cloudrtc/pom.xml index 7901a000ac..2ef066ff0a 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-cloudrtc - 3.1.110 + 3.1.111 Huawei Cloud SDK for CLOUDRTC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/cloudtable/pom.xml b/services/cloudtable/pom.xml index 38e272256d..004b1ad8e5 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-cloudtable - 3.1.110 + 3.1.111 Huawei Cloud SDK for CLOUDTABLE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/cloudtest/pom.xml b/services/cloudtest/pom.xml index 1db4bba0df..4a4094309f 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-cloudtest - 3.1.110 + 3.1.111 Huawei Cloud SDK for CLOUDTEST 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/cms/pom.xml b/services/cms/pom.xml index 4da7464620..0ab01ffa37 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-cms - 3.1.110 + 3.1.111 Huawei Cloud SDK for CMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/coc/pom.xml b/services/coc/pom.xml index ecd94c5b66..ec7ec983d5 100644 --- a/services/coc/pom.xml +++ b/services/coc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-coc - 3.1.110 + 3.1.111 Huawei Cloud SDK for COC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/codeartsartifact/pom.xml b/services/codeartsartifact/pom.xml index 890a204410..1c3d827d53 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsartifact - 3.1.110 + 3.1.111 Huawei Cloud SDK for CODEARTSARTIFACT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/codeartsbuild/pom.xml b/services/codeartsbuild/pom.xml index 129f172a95..d95440a173 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsbuild - 3.1.110 + 3.1.111 Huawei Cloud SDK for CODEARTSBUILD 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/codeartscheck/pom.xml b/services/codeartscheck/pom.xml index 4681ceb8be..3cc0e80191 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-codeartscheck - 3.1.110 + 3.1.111 Huawei Cloud SDK for CODEARTSCHECK 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/codeartsdeploy/pom.xml b/services/codeartsdeploy/pom.xml index 30663c291a..f56a7541cb 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsdeploy - 3.1.110 + 3.1.111 Huawei Cloud SDK for CODEARTSDEPLOY 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/codeartsgovernance/pom.xml b/services/codeartsgovernance/pom.xml index 476ec3eaa5..eaf99542a2 100644 --- a/services/codeartsgovernance/pom.xml +++ b/services/codeartsgovernance/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsgovernance - 3.1.110 + 3.1.111 Huawei Cloud SDK for CODEARTSGOVERNANCE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/codeartsinspector/pom.xml b/services/codeartsinspector/pom.xml index 13f836fffa..541800cc29 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsinspector - 3.1.110 + 3.1.111 Huawei Cloud SDK for CODEARTSINSPECTOR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/codeartspipeline/pom.xml b/services/codeartspipeline/pom.xml index 0b3d15c166..e8db650b17 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-codeartspipeline - 3.1.110 + 3.1.111 Huawei Cloud SDK for CODEARTSPIPELINE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/codecraft/pom.xml b/services/codecraft/pom.xml index acb6260b7b..d4393a4144 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-codecraft - 3.1.110 + 3.1.111 Huawei Cloud SDK for CODECRAFT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/codehub/pom.xml b/services/codehub/pom.xml index f95d3e9496..038b697006 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-codehub - 3.1.110 + 3.1.111 Huawei Cloud SDK for CODEHUB 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/config/pom.xml b/services/config/pom.xml index 22b10fd693..7e23447c76 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-config - 3.1.110 + 3.1.111 Huawei Cloud SDK for CONFIG 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/cph/pom.xml b/services/cph/pom.xml index 3a6710ca40..f39fcb3ca0 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-cph - 3.1.110 + 3.1.111 Huawei Cloud SDK for CPH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/cpts/pom.xml b/services/cpts/pom.xml index 148aba369f..9bb2758ad5 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-cpts - 3.1.110 + 3.1.111 Huawei Cloud SDK for CPTS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/cse/pom.xml b/services/cse/pom.xml index 031d804772..8683d77569 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-cse - 3.1.110 + 3.1.111 Huawei Cloud SDK for CSE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/csms/pom.xml b/services/csms/pom.xml index abba6c9f74..6f603d654b 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-csms - 3.1.110 + 3.1.111 Huawei Cloud SDK for CSMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/css/pom.xml b/services/css/pom.xml index 981e762620..a68431f2b6 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-css - 3.1.110 + 3.1.111 Huawei Cloud SDK for CSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/cts/pom.xml b/services/cts/pom.xml index b1b16093dc..934912cff6 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-cts - 3.1.110 + 3.1.111 Huawei Cloud SDK for CTS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/das/pom.xml b/services/das/pom.xml index 015d81375e..2222ac9f43 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-das - 3.1.110 + 3.1.111 Huawei Cloud SDK for DAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/dataartsinsight/pom.xml b/services/dataartsinsight/pom.xml index 7f570a3070..178705c49f 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-dataartsinsight - 3.1.110 + 3.1.111 Huawei Cloud SDK for DATAARTSINSIGHT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/dataartsstudio/pom.xml b/services/dataartsstudio/pom.xml index 61a99aee72..2f634cd062 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-dataartsstudio - 3.1.110 + 3.1.111 Huawei Cloud SDK for DATAARTSSTUDIO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/dbss/pom.xml b/services/dbss/pom.xml index 14f15f0947..ee63089f71 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-dbss - 3.1.110 + 3.1.111 Huawei Cloud SDK for DBSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/dc/pom.xml b/services/dc/pom.xml index 9853d99e1f..5bd6d47454 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-dc - 3.1.110 + 3.1.111 Huawei Cloud SDK for DC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/dcs/pom.xml b/services/dcs/pom.xml index f4932186cf..e9fb69c9f3 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-dcs - 3.1.110 + 3.1.111 Huawei Cloud SDK for DCS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/ddm/pom.xml b/services/ddm/pom.xml index 7420de9f7b..c4c45a257b 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-ddm - 3.1.110 + 3.1.111 Huawei Cloud SDK for DDM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/dds/pom.xml b/services/dds/pom.xml index 8dac2d16f8..a84188858a 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-dds - 3.1.110 + 3.1.111 Huawei Cloud SDK for DDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/deh/pom.xml b/services/deh/pom.xml index 4b09684097..11d8b5b1fc 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-deh - 3.1.110 + 3.1.111 Huawei Cloud SDK for DEH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/devstar/pom.xml b/services/devstar/pom.xml index 3840dacfb5..6fe9782883 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-devstar - 3.1.110 + 3.1.111 Huawei Cloud SDK for DEVSTAR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/dgc/pom.xml b/services/dgc/pom.xml index 2ed619b644..92de31bd94 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-dgc - 3.1.110 + 3.1.111 Huawei Cloud SDK for DGC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/dis/pom.xml b/services/dis/pom.xml index 9ecc7cc391..e73d5febb8 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-dis - 3.1.110 + 3.1.111 Huawei Cloud SDK for DIS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/dlf/pom.xml b/services/dlf/pom.xml index 32b6bdf7fc..57801dd4a7 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-dlf - 3.1.110 + 3.1.111 Huawei Cloud SDK for DLF 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/dli/pom.xml b/services/dli/pom.xml index eeddd0f66e..5c386d0040 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-dli - 3.1.110 + 3.1.111 Huawei Cloud SDK for DLI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/dns/pom.xml b/services/dns/pom.xml index bcca76907d..23c80b1432 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-dns - 3.1.110 + 3.1.111 Huawei Cloud SDK for DNS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/dris/pom.xml b/services/dris/pom.xml index 1f49e72cde..e4e148e4e3 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-dris - 3.1.110 + 3.1.111 Huawei Cloud SDK for DRIS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/drs/pom.xml b/services/drs/pom.xml index 65c018f9b6..2347f27dfb 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-drs - 3.1.110 + 3.1.111 Huawei Cloud SDK for DRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/DrsAsyncClient.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/DrsAsyncClient.java index 5f5007e3c8..713b90ea1f 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/DrsAsyncClient.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/DrsAsyncClient.java @@ -39,6 +39,8 @@ import com.huaweicloud.sdk.drs.v5.model.DeleteJdbcDriverResponse; import com.huaweicloud.sdk.drs.v5.model.DeleteJobRequest; import com.huaweicloud.sdk.drs.v5.model.DeleteJobResponse; +import com.huaweicloud.sdk.drs.v5.model.DeleteUserJdbcDriverRequest; +import com.huaweicloud.sdk.drs.v5.model.DeleteUserJdbcDriverResponse; import com.huaweicloud.sdk.drs.v5.model.DownloadBatchCreateTemplateRequest; import com.huaweicloud.sdk.drs.v5.model.DownloadBatchCreateTemplateResponse; import com.huaweicloud.sdk.drs.v5.model.DownloadDbObjectTemplateRequest; @@ -73,6 +75,8 @@ import com.huaweicloud.sdk.drs.v5.model.ListProjectTagsResponse; import com.huaweicloud.sdk.drs.v5.model.ListTagsRequest; import com.huaweicloud.sdk.drs.v5.model.ListTagsResponse; +import com.huaweicloud.sdk.drs.v5.model.ListUserJdbcDriversRequest; +import com.huaweicloud.sdk.drs.v5.model.ListUserJdbcDriversResponse; import com.huaweicloud.sdk.drs.v5.model.ListsAgencyPermissionsRequest; import com.huaweicloud.sdk.drs.v5.model.ListsAgencyPermissionsResponse; import com.huaweicloud.sdk.drs.v5.model.ShowActionsRequest; @@ -131,6 +135,8 @@ import com.huaweicloud.sdk.drs.v5.model.StopJobActionResponse; import com.huaweicloud.sdk.drs.v5.model.SyncJdbcDriverRequest; import com.huaweicloud.sdk.drs.v5.model.SyncJdbcDriverResponse; +import com.huaweicloud.sdk.drs.v5.model.SyncUserJdbcDriverRequest; +import com.huaweicloud.sdk.drs.v5.model.SyncUserJdbcDriverResponse; import com.huaweicloud.sdk.drs.v5.model.UpdateBatchAsyncJobsRequest; import com.huaweicloud.sdk.drs.v5.model.UpdateBatchAsyncJobsResponse; import com.huaweicloud.sdk.drs.v5.model.UpdateComparePolicyRequest; @@ -147,6 +153,8 @@ import com.huaweicloud.sdk.drs.v5.model.UploadDbObjectTemplateResponse; import com.huaweicloud.sdk.drs.v5.model.UploadJdbcDriverRequest; import com.huaweicloud.sdk.drs.v5.model.UploadJdbcDriverResponse; +import com.huaweicloud.sdk.drs.v5.model.UploadUserJdbcDriverRequest; +import com.huaweicloud.sdk.drs.v5.model.UploadUserJdbcDriverResponse; import com.huaweicloud.sdk.drs.v5.model.ValidateJobNameRequest; import com.huaweicloud.sdk.drs.v5.model.ValidateJobNameResponse; @@ -701,6 +709,36 @@ public AsyncInvoker deleteJobAsyncInvoker(D return new AsyncInvoker<>(request, DrsMeta.deleteJob, hcClient); } + /** + * 删除驱动文件 + * + * 删除驱动文件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteUserJdbcDriverRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteUserJdbcDriverAsync( + DeleteUserJdbcDriverRequest request) { + return hcClient.asyncInvokeHttp(request, DrsMeta.deleteUserJdbcDriver); + } + + /** + * 删除驱动文件 + * + * 删除驱动文件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteUserJdbcDriverRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteUserJdbcDriverAsyncInvoker( + DeleteUserJdbcDriverRequest request) { + return new AsyncInvoker<>(request, DrsMeta.deleteUserJdbcDriver, hcClient); + } + /** * 下载批量导入任务模板 * @@ -1199,6 +1237,35 @@ public AsyncInvoker listTagsAsyncInvoker(List return new AsyncInvoker<>(request, DrsMeta.listTags, hcClient); } + /** + * 查询驱动文件列表 + * + * 查询驱动文件列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListUserJdbcDriversRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listUserJdbcDriversAsync(ListUserJdbcDriversRequest request) { + return hcClient.asyncInvokeHttp(request, DrsMeta.listUserJdbcDrivers); + } + + /** + * 查询驱动文件列表 + * + * 查询驱动文件列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListUserJdbcDriversRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listUserJdbcDriversAsyncInvoker( + ListUserJdbcDriversRequest request) { + return new AsyncInvoker<>(request, DrsMeta.listUserJdbcDrivers, hcClient); + } + /** * 查询委托的权限列表 * @@ -2065,6 +2132,35 @@ public AsyncInvoker syncJdbcDrive return new AsyncInvoker<>(request, DrsMeta.syncJdbcDriver, hcClient); } + /** + * 同步驱动文件 + * + * 同步驱动文件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SyncUserJdbcDriverRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture syncUserJdbcDriverAsync(SyncUserJdbcDriverRequest request) { + return hcClient.asyncInvokeHttp(request, DrsMeta.syncUserJdbcDriver); + } + + /** + * 同步驱动文件 + * + * 同步驱动文件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SyncUserJdbcDriverRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker syncUserJdbcDriverAsyncInvoker( + SyncUserJdbcDriverRequest request) { + return new AsyncInvoker<>(request, DrsMeta.syncUserJdbcDriver, hcClient); + } + /** * 更新指定ID批量异步任务详情 * @@ -2305,6 +2401,36 @@ public AsyncInvoker uploadJdb return new AsyncInvoker<>(request, DrsMeta.uploadJdbcDriver, hcClient); } + /** + * 上传驱动文件 + * + * 上传驱动文件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UploadUserJdbcDriverRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture uploadUserJdbcDriverAsync( + UploadUserJdbcDriverRequest request) { + return hcClient.asyncInvokeHttp(request, DrsMeta.uploadUserJdbcDriver); + } + + /** + * 上传驱动文件 + * + * 上传驱动文件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UploadUserJdbcDriverRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker uploadUserJdbcDriverAsyncInvoker( + UploadUserJdbcDriverRequest request) { + return new AsyncInvoker<>(request, DrsMeta.uploadUserJdbcDriver, hcClient); + } + /** * 任务名称校验 * diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/DrsClient.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/DrsClient.java index d412183adf..d6df3ff258 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/DrsClient.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/DrsClient.java @@ -39,6 +39,8 @@ import com.huaweicloud.sdk.drs.v5.model.DeleteJdbcDriverResponse; import com.huaweicloud.sdk.drs.v5.model.DeleteJobRequest; import com.huaweicloud.sdk.drs.v5.model.DeleteJobResponse; +import com.huaweicloud.sdk.drs.v5.model.DeleteUserJdbcDriverRequest; +import com.huaweicloud.sdk.drs.v5.model.DeleteUserJdbcDriverResponse; import com.huaweicloud.sdk.drs.v5.model.DownloadBatchCreateTemplateRequest; import com.huaweicloud.sdk.drs.v5.model.DownloadBatchCreateTemplateResponse; import com.huaweicloud.sdk.drs.v5.model.DownloadDbObjectTemplateRequest; @@ -73,6 +75,8 @@ import com.huaweicloud.sdk.drs.v5.model.ListProjectTagsResponse; import com.huaweicloud.sdk.drs.v5.model.ListTagsRequest; import com.huaweicloud.sdk.drs.v5.model.ListTagsResponse; +import com.huaweicloud.sdk.drs.v5.model.ListUserJdbcDriversRequest; +import com.huaweicloud.sdk.drs.v5.model.ListUserJdbcDriversResponse; import com.huaweicloud.sdk.drs.v5.model.ListsAgencyPermissionsRequest; import com.huaweicloud.sdk.drs.v5.model.ListsAgencyPermissionsResponse; import com.huaweicloud.sdk.drs.v5.model.ShowActionsRequest; @@ -131,6 +135,8 @@ import com.huaweicloud.sdk.drs.v5.model.StopJobActionResponse; import com.huaweicloud.sdk.drs.v5.model.SyncJdbcDriverRequest; import com.huaweicloud.sdk.drs.v5.model.SyncJdbcDriverResponse; +import com.huaweicloud.sdk.drs.v5.model.SyncUserJdbcDriverRequest; +import com.huaweicloud.sdk.drs.v5.model.SyncUserJdbcDriverResponse; import com.huaweicloud.sdk.drs.v5.model.UpdateBatchAsyncJobsRequest; import com.huaweicloud.sdk.drs.v5.model.UpdateBatchAsyncJobsResponse; import com.huaweicloud.sdk.drs.v5.model.UpdateComparePolicyRequest; @@ -147,6 +153,8 @@ import com.huaweicloud.sdk.drs.v5.model.UploadDbObjectTemplateResponse; import com.huaweicloud.sdk.drs.v5.model.UploadJdbcDriverRequest; import com.huaweicloud.sdk.drs.v5.model.UploadJdbcDriverResponse; +import com.huaweicloud.sdk.drs.v5.model.UploadUserJdbcDriverRequest; +import com.huaweicloud.sdk.drs.v5.model.UploadUserJdbcDriverResponse; import com.huaweicloud.sdk.drs.v5.model.ValidateJobNameRequest; import com.huaweicloud.sdk.drs.v5.model.ValidateJobNameResponse; @@ -694,6 +702,35 @@ public SyncInvoker deleteJobInvoker(DeleteJ return new SyncInvoker<>(request, DrsMeta.deleteJob, hcClient); } + /** + * 删除驱动文件 + * + * 删除驱动文件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteUserJdbcDriverRequest 请求对象 + * @return DeleteUserJdbcDriverResponse + */ + public DeleteUserJdbcDriverResponse deleteUserJdbcDriver(DeleteUserJdbcDriverRequest request) { + return hcClient.syncInvokeHttp(request, DrsMeta.deleteUserJdbcDriver); + } + + /** + * 删除驱动文件 + * + * 删除驱动文件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteUserJdbcDriverRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteUserJdbcDriverInvoker( + DeleteUserJdbcDriverRequest request) { + return new SyncInvoker<>(request, DrsMeta.deleteUserJdbcDriver, hcClient); + } + /** * 下载批量导入任务模板 * @@ -1186,6 +1223,35 @@ public SyncInvoker listTagsInvoker(ListTagsRe return new SyncInvoker<>(request, DrsMeta.listTags, hcClient); } + /** + * 查询驱动文件列表 + * + * 查询驱动文件列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListUserJdbcDriversRequest 请求对象 + * @return ListUserJdbcDriversResponse + */ + public ListUserJdbcDriversResponse listUserJdbcDrivers(ListUserJdbcDriversRequest request) { + return hcClient.syncInvokeHttp(request, DrsMeta.listUserJdbcDrivers); + } + + /** + * 查询驱动文件列表 + * + * 查询驱动文件列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListUserJdbcDriversRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listUserJdbcDriversInvoker( + ListUserJdbcDriversRequest request) { + return new SyncInvoker<>(request, DrsMeta.listUserJdbcDrivers, hcClient); + } + /** * 查询委托的权限列表 * @@ -2040,6 +2106,35 @@ public SyncInvoker syncJdbcDriver return new SyncInvoker<>(request, DrsMeta.syncJdbcDriver, hcClient); } + /** + * 同步驱动文件 + * + * 同步驱动文件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SyncUserJdbcDriverRequest 请求对象 + * @return SyncUserJdbcDriverResponse + */ + public SyncUserJdbcDriverResponse syncUserJdbcDriver(SyncUserJdbcDriverRequest request) { + return hcClient.syncInvokeHttp(request, DrsMeta.syncUserJdbcDriver); + } + + /** + * 同步驱动文件 + * + * 同步驱动文件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SyncUserJdbcDriverRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker syncUserJdbcDriverInvoker( + SyncUserJdbcDriverRequest request) { + return new SyncInvoker<>(request, DrsMeta.syncUserJdbcDriver, hcClient); + } + /** * 更新指定ID批量异步任务详情 * @@ -2277,6 +2372,35 @@ public SyncInvoker uploadJdbc return new SyncInvoker<>(request, DrsMeta.uploadJdbcDriver, hcClient); } + /** + * 上传驱动文件 + * + * 上传驱动文件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UploadUserJdbcDriverRequest 请求对象 + * @return UploadUserJdbcDriverResponse + */ + public UploadUserJdbcDriverResponse uploadUserJdbcDriver(UploadUserJdbcDriverRequest request) { + return hcClient.syncInvokeHttp(request, DrsMeta.uploadUserJdbcDriver); + } + + /** + * 上传驱动文件 + * + * 上传驱动文件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UploadUserJdbcDriverRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker uploadUserJdbcDriverInvoker( + UploadUserJdbcDriverRequest request) { + return new SyncInvoker<>(request, DrsMeta.uploadUserJdbcDriver, hcClient); + } + /** * 任务名称校验 * diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/DrsMeta.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/DrsMeta.java index 079aad826c..22c7d22c1b 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/DrsMeta.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/DrsMeta.java @@ -53,6 +53,9 @@ import com.huaweicloud.sdk.drs.v5.model.DeleteJdbcDriverResponse; import com.huaweicloud.sdk.drs.v5.model.DeleteJobRequest; import com.huaweicloud.sdk.drs.v5.model.DeleteJobResponse; +import com.huaweicloud.sdk.drs.v5.model.DeleteUserDriverReq; +import com.huaweicloud.sdk.drs.v5.model.DeleteUserJdbcDriverRequest; +import com.huaweicloud.sdk.drs.v5.model.DeleteUserJdbcDriverResponse; import com.huaweicloud.sdk.drs.v5.model.DownloadBatchCreateTemplateRequest; import com.huaweicloud.sdk.drs.v5.model.DownloadBatchCreateTemplateResponse; import com.huaweicloud.sdk.drs.v5.model.DownloadDbObjectTemplateRequest; @@ -89,6 +92,8 @@ import com.huaweicloud.sdk.drs.v5.model.ListProjectTagsResponse; import com.huaweicloud.sdk.drs.v5.model.ListTagsRequest; import com.huaweicloud.sdk.drs.v5.model.ListTagsResponse; +import com.huaweicloud.sdk.drs.v5.model.ListUserJdbcDriversRequest; +import com.huaweicloud.sdk.drs.v5.model.ListUserJdbcDriversResponse; import com.huaweicloud.sdk.drs.v5.model.ListsAgencyPermissionsRequest; import com.huaweicloud.sdk.drs.v5.model.ListsAgencyPermissionsResponse; import com.huaweicloud.sdk.drs.v5.model.ModifyComparePolicyReq; @@ -158,6 +163,8 @@ import com.huaweicloud.sdk.drs.v5.model.StopJobActionResponse; import com.huaweicloud.sdk.drs.v5.model.SyncJdbcDriverRequest; import com.huaweicloud.sdk.drs.v5.model.SyncJdbcDriverResponse; +import com.huaweicloud.sdk.drs.v5.model.SyncUserJdbcDriverRequest; +import com.huaweicloud.sdk.drs.v5.model.SyncUserJdbcDriverResponse; import com.huaweicloud.sdk.drs.v5.model.UpdateBatchAsyncJobsRequest; import com.huaweicloud.sdk.drs.v5.model.UpdateBatchAsyncJobsResponse; import com.huaweicloud.sdk.drs.v5.model.UpdateComparePolicyRequest; @@ -171,12 +178,16 @@ import com.huaweicloud.sdk.drs.v5.model.UpdateJobResponse; import com.huaweicloud.sdk.drs.v5.model.UpdateStartPositionRequest; import com.huaweicloud.sdk.drs.v5.model.UpdateStartPositionResponse; +import com.huaweicloud.sdk.drs.v5.model.UpdateUserDriverReq; import com.huaweicloud.sdk.drs.v5.model.UploadDbObjectTemplateRequest; import com.huaweicloud.sdk.drs.v5.model.UploadDbObjectTemplateRequestBody; import com.huaweicloud.sdk.drs.v5.model.UploadDbObjectTemplateResponse; import com.huaweicloud.sdk.drs.v5.model.UploadJdbcDriverRequest; import com.huaweicloud.sdk.drs.v5.model.UploadJdbcDriverRequestBody; import com.huaweicloud.sdk.drs.v5.model.UploadJdbcDriverResponse; +import com.huaweicloud.sdk.drs.v5.model.UploadUserJdbcDriverRequest; +import com.huaweicloud.sdk.drs.v5.model.UploadUserJdbcDriverRequestBody; +import com.huaweicloud.sdk.drs.v5.model.UploadUserJdbcDriverResponse; import com.huaweicloud.sdk.drs.v5.model.ValidateJobNameRequest; import com.huaweicloud.sdk.drs.v5.model.ValidateJobNameResponse; @@ -773,6 +784,35 @@ private static HttpRequestDef genForDeleteJ return builder.build(); } + public static final HttpRequestDef deleteUserJdbcDriver = + genForDeleteUserJdbcDriver(); + + private static HttpRequestDef genForDeleteUserJdbcDriver() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.DELETE, DeleteUserJdbcDriverRequest.class, DeleteUserJdbcDriverResponse.class) + .withName("DeleteUserJdbcDriver") + .withUri("/v5/{project_id}/drivers") + .withContentType("application/json"); + + // requests + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(DeleteUserJdbcDriverRequest.XLanguageEnum.class), + f -> f.withMarshaller(DeleteUserJdbcDriverRequest::getXLanguage, + DeleteUserJdbcDriverRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(DeleteUserDriverReq.class), + f -> f.withMarshaller(DeleteUserJdbcDriverRequest::getBody, DeleteUserJdbcDriverRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef downloadBatchCreateTemplate = genForDownloadBatchCreateTemplate(); @@ -1468,6 +1508,45 @@ private static HttpRequestDef genForListTags( return builder.build(); } + public static final HttpRequestDef listUserJdbcDrivers = + genForListUserJdbcDrivers(); + + private static HttpRequestDef genForListUserJdbcDrivers() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListUserJdbcDriversRequest.class, ListUserJdbcDriversResponse.class) + .withName("ListUserJdbcDrivers") + .withUri("/v5/{project_id}/drivers") + .withContentType("application/json"); + + // requests + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListUserJdbcDriversRequest::getLimit, ListUserJdbcDriversRequest::setLimit)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListUserJdbcDriversRequest::getOffset, ListUserJdbcDriversRequest::setOffset)); + builder.withRequestField("driver_type", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ListUserJdbcDriversRequest.DriverTypeEnum.class), + f -> f.withMarshaller(ListUserJdbcDriversRequest::getDriverType, + ListUserJdbcDriversRequest::setDriverType)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ListUserJdbcDriversRequest.XLanguageEnum.class), + f -> f.withMarshaller(ListUserJdbcDriversRequest::getXLanguage, ListUserJdbcDriversRequest::setXLanguage)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listsAgencyPermissions = genForListsAgencyPermissions(); @@ -2641,6 +2720,39 @@ private static HttpRequestDef gen return builder.build(); } + public static final HttpRequestDef syncUserJdbcDriver = + genForSyncUserJdbcDriver(); + + private static HttpRequestDef genForSyncUserJdbcDriver() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.PUT, SyncUserJdbcDriverRequest.class, SyncUserJdbcDriverResponse.class) + .withName("SyncUserJdbcDriver") + .withUri("/v5/{project_id}/jobs/{job_id}/update-driver") + .withContentType("application/json"); + + // requests + builder.withRequestField("job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(SyncUserJdbcDriverRequest::getJobId, SyncUserJdbcDriverRequest::setJobId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(SyncUserJdbcDriverRequest.XLanguageEnum.class), + f -> f.withMarshaller(SyncUserJdbcDriverRequest::getXLanguage, SyncUserJdbcDriverRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateUserDriverReq.class), + f -> f.withMarshaller(SyncUserJdbcDriverRequest::getBody, SyncUserJdbcDriverRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef updateBatchAsyncJobs = genForUpdateBatchAsyncJobs(); @@ -2909,6 +3021,41 @@ private static HttpRequestDef return builder.build(); } + public static final HttpRequestDef uploadUserJdbcDriver = + genForUploadUserJdbcDriver(); + + private static HttpRequestDef genForUploadUserJdbcDriver() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, UploadUserJdbcDriverRequest.class, UploadUserJdbcDriverResponse.class) + .withName("UploadUserJdbcDriver") + .withUri("/v5/{project_id}/driver") + .withContentType("multipart/form-data"); + + // requests + builder.withRequestField("driver_type", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UploadUserJdbcDriverRequest.DriverTypeEnum.class), + f -> f.withMarshaller(UploadUserJdbcDriverRequest::getDriverType, + UploadUserJdbcDriverRequest::setDriverType)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(UploadUserJdbcDriverRequest.XLanguageEnum.class), + f -> f.withMarshaller(UploadUserJdbcDriverRequest::getXLanguage, + UploadUserJdbcDriverRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UploadUserJdbcDriverRequestBody.class), + f -> f.withMarshaller(UploadUserJdbcDriverRequest::getBody, UploadUserJdbcDriverRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef validateJobName = genForValidateJobName(); diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ActionParams.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ActionParams.java index 13bf771d71..3bad60bc55 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ActionParams.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ActionParams.java @@ -48,6 +48,11 @@ public class ActionParams { private Boolean isSyncReEdit; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_only_init_task") + + private Boolean isOnlyInitTask; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "force_delete") @@ -216,6 +221,23 @@ public void setIsSyncReEdit(Boolean isSyncReEdit) { this.isSyncReEdit = isSyncReEdit; } + public ActionParams withIsOnlyInitTask(Boolean isOnlyInitTask) { + this.isOnlyInitTask = isOnlyInitTask; + return this; + } + + /** + * 是否支持只初始化任务。仅支持白名单用户使用,需要提交工单申请才能使用。 + * @return isOnlyInitTask + */ + public Boolean getIsOnlyInitTask() { + return isOnlyInitTask; + } + + public void setIsOnlyInitTask(Boolean isOnlyInitTask) { + this.isOnlyInitTask = isOnlyInitTask; + } + public ActionParams withForceDelete(Boolean forceDelete) { this.forceDelete = forceDelete; return this; @@ -299,6 +321,7 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.pauseMode, that.pauseMode) && Objects.equals(this.startTime, that.startTime) && Objects.equals(this.compareTaskParam, that.compareTaskParam) && Objects.equals(this.isSyncReEdit, that.isSyncReEdit) + && Objects.equals(this.isOnlyInitTask, that.isOnlyInitTask) && Objects.equals(this.forceDelete, that.forceDelete) && Objects.equals(this.publicIpConfig, that.publicIpConfig) && Objects.equals(this.replayConfig, that.replayConfig); @@ -313,6 +336,7 @@ public int hashCode() { startTime, compareTaskParam, isSyncReEdit, + isOnlyInitTask, forceDelete, publicIpConfig, replayConfig); @@ -329,6 +353,7 @@ public String toString() { sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); sb.append(" compareTaskParam: ").append(toIndentedString(compareTaskParam)).append("\n"); sb.append(" isSyncReEdit: ").append(toIndentedString(isSyncReEdit)).append("\n"); + sb.append(" isOnlyInitTask: ").append(toIndentedString(isOnlyInitTask)).append("\n"); sb.append(" forceDelete: ").append(toIndentedString(forceDelete)).append("\n"); sb.append(" publicIpConfig: ").append(toIndentedString(publicIpConfig)).append("\n"); sb.append(" replayConfig: ").append(toIndentedString(replayConfig)).append("\n"); diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/CreateJobResp.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/CreateJobResp.java deleted file mode 100644 index e7fac0eeef..0000000000 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/CreateJobResp.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.huaweicloud.sdk.drs.v5.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * 创建任务响应体。 - */ -public class CreateJobResp { - - @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 = "status") - - private String status; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "create_time") - - private String createTime; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "is_clone_job") - - private String isCloneJob; - - public CreateJobResp 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 CreateJobResp withName(String name) { - this.name = name; - return this; - } - - /** - * 任务名称。 - * @return name - */ - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public CreateJobResp withStatus(String status) { - this.status = status; - return this; - } - - /** - * 任务状态。 - * @return status - */ - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public CreateJobResp withCreateTime(String createTime) { - this.createTime = createTime; - return this; - } - - /** - * 任务创建时间。 - * @return createTime - */ - public String getCreateTime() { - return createTime; - } - - public void setCreateTime(String createTime) { - this.createTime = createTime; - } - - public CreateJobResp withIsCloneJob(String isCloneJob) { - this.isCloneJob = isCloneJob; - return this; - } - - /** - * 是否为克隆任务。 - * @return isCloneJob - */ - public String getIsCloneJob() { - return isCloneJob; - } - - public void setIsCloneJob(String isCloneJob) { - this.isCloneJob = isCloneJob; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - CreateJobResp that = (CreateJobResp) obj; - return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) - && Objects.equals(this.status, that.status) && Objects.equals(this.createTime, that.createTime) - && Objects.equals(this.isCloneJob, that.isCloneJob); - } - - @Override - public int hashCode() { - return Objects.hash(id, name, status, createTime, isCloneJob); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CreateJobResp {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); - sb.append(" isCloneJob: ").append(toIndentedString(isCloneJob)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/CreateJobResponse.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/CreateJobResponse.java index c9aef1d164..a384a779a2 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/CreateJobResponse.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/CreateJobResponse.java @@ -5,7 +5,6 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; -import java.util.function.Consumer; /** * Response Object @@ -13,34 +12,113 @@ public class CreateJobResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "job") + @JsonProperty(value = "id") - private CreateJobResp job; + private String id; - public CreateJobResponse withJob(CreateJobResp job) { - this.job = job; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_clone_job") + + private String isCloneJob; + + public CreateJobResponse withId(String id) { + this.id = id; return this; } - public CreateJobResponse withJob(Consumer jobSetter) { - if (this.job == null) { - this.job = new CreateJobResp(); - jobSetter.accept(this.job); - } + /** + * 任务ID。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public CreateJobResponse withName(String name) { + this.name = name; + return this; + } + + /** + * 任务名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateJobResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 任务状态。 + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public CreateJobResponse withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 任务创建时间。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + public CreateJobResponse withIsCloneJob(String isCloneJob) { + this.isCloneJob = isCloneJob; return this; } /** - * Get job - * @return job + * 是否为克隆任务。 + * @return isCloneJob */ - public CreateJobResp getJob() { - return job; + public String getIsCloneJob() { + return isCloneJob; } - public void setJob(CreateJobResp job) { - this.job = job; + public void setIsCloneJob(String isCloneJob) { + this.isCloneJob = isCloneJob; } @Override @@ -52,19 +130,25 @@ public boolean equals(java.lang.Object obj) { return false; } CreateJobResponse that = (CreateJobResponse) obj; - return Objects.equals(this.job, that.job); + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.status, that.status) && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.isCloneJob, that.isCloneJob); } @Override public int hashCode() { - return Objects.hash(job); + return Objects.hash(id, name, status, createTime, isCloneJob); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateJobResponse {\n"); - sb.append(" job: ").append(toIndentedString(job)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" isCloneJob: ").append(toIndentedString(isCloneJob)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/DeleteUserDriverReq.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/DeleteUserDriverReq.java new file mode 100644 index 0000000000..d0a0b0fc47 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/DeleteUserDriverReq.java @@ -0,0 +1,189 @@ +package com.huaweicloud.sdk.drs.v5.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * DeleteUserDriverReq + */ +public class DeleteUserDriverReq { + + /** + * 指定待删除的驱动文件类型。取值范围: - db2:DB2 for LUW - informix:Informix + */ + public static final class DriverTypeEnum { + + /** + * Enum DB2 for value: "db2" + */ + public static final DriverTypeEnum DB2 = new DriverTypeEnum("db2"); + + /** + * Enum INFORMIX for value: "informix" + */ + public static final DriverTypeEnum INFORMIX = new DriverTypeEnum("informix"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("db2", DB2); + map.put("informix", INFORMIX); + return Collections.unmodifiableMap(map); + } + + private String value; + + DriverTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static DriverTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new DriverTypeEnum(value)); + } + + public static DriverTypeEnum 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 DriverTypeEnum) { + return this.value.equals(((DriverTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "driver_type") + + private DriverTypeEnum driverType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "driver_names") + + private List driverNames = null; + + public DeleteUserDriverReq withDriverType(DriverTypeEnum driverType) { + this.driverType = driverType; + return this; + } + + /** + * 指定待删除的驱动文件类型。取值范围: - db2:DB2 for LUW - informix:Informix + * @return driverType + */ + public DriverTypeEnum getDriverType() { + return driverType; + } + + public void setDriverType(DriverTypeEnum driverType) { + this.driverType = driverType; + } + + public DeleteUserDriverReq withDriverNames(List driverNames) { + this.driverNames = driverNames; + return this; + } + + public DeleteUserDriverReq addDriverNamesItem(String driverNamesItem) { + if (this.driverNames == null) { + this.driverNames = new ArrayList<>(); + } + this.driverNames.add(driverNamesItem); + return this; + } + + public DeleteUserDriverReq withDriverNames(Consumer> driverNamesSetter) { + if (this.driverNames == null) { + this.driverNames = new ArrayList<>(); + } + driverNamesSetter.accept(this.driverNames); + return this; + } + + /** + * JDBC驱动文件列表,列表长度1-20,driver_name的长度5-64,结尾以.jar结尾。 + * @return driverNames + */ + public List getDriverNames() { + return driverNames; + } + + public void setDriverNames(List driverNames) { + this.driverNames = driverNames; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteUserDriverReq that = (DeleteUserDriverReq) obj; + return Objects.equals(this.driverType, that.driverType) && Objects.equals(this.driverNames, that.driverNames); + } + + @Override + public int hashCode() { + return Objects.hash(driverType, driverNames); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteUserDriverReq {\n"); + sb.append(" driverType: ").append(toIndentedString(driverType)).append("\n"); + sb.append(" driverNames: ").append(toIndentedString(driverNames)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/DeleteUserJdbcDriverRequest.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/DeleteUserJdbcDriverRequest.java new file mode 100644 index 0000000000..70ec2e7b5f --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/DeleteUserJdbcDriverRequest.java @@ -0,0 +1,182 @@ +package com.huaweicloud.sdk.drs.v5.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class DeleteUserJdbcDriverRequest { + + /** + * 请求语言类型。 + */ + 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 DeleteUserDriverReq body; + + public DeleteUserJdbcDriverRequest 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 DeleteUserJdbcDriverRequest withBody(DeleteUserDriverReq body) { + this.body = body; + return this; + } + + public DeleteUserJdbcDriverRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new DeleteUserDriverReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public DeleteUserDriverReq getBody() { + return body; + } + + public void setBody(DeleteUserDriverReq 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; + } + DeleteUserJdbcDriverRequest that = (DeleteUserJdbcDriverRequest) 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 DeleteUserJdbcDriverRequest {\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/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/DeleteUserJdbcDriverResponse.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/DeleteUserJdbcDriverResponse.java new file mode 100644 index 0000000000..cc5faf2a53 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/DeleteUserJdbcDriverResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.drs.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeleteUserJdbcDriverResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private Object body; + + public DeleteUserJdbcDriverResponse withBody(Object body) { + this.body = body; + return this; + } + + /** + * 空响应体。 + * @return body + */ + public Object getBody() { + return body; + } + + public void setBody(Object body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteUserJdbcDriverResponse that = (DeleteUserJdbcDriverResponse) 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 DeleteUserJdbcDriverResponse {\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/JobBaseInfo.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/JobBaseInfo.java index 659fee4d6c..b9046fd2f3 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/JobBaseInfo.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/JobBaseInfo.java @@ -110,7 +110,7 @@ public int hashCode() { private Boolean multiWrite; /** - * 引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。 - redis-to-gaussredis:Redis同步到GeminiDB Redis,实时迁移场景使用。 - rediscluster-to-gaussredis:Redis集群同步到GeminiDB Redis,实时迁移场景使用。 + * 引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。 - redis-to-gaussredis:Redis同步到GeminiDB Redis,实时迁移场景使用。 - rediscluster-to-gaussredis:Redis集群同步到GeminiDB Redis,实时迁移场景使用。 - mysql-to-mysql:MySQL同步到MySQL,实时同步场景使用。 */ public static final class EngineTypeEnum { @@ -130,6 +130,11 @@ public static final class EngineTypeEnum { public static final EngineTypeEnum REDISCLUSTER_TO_GAUSSREDIS = new EngineTypeEnum("rediscluster-to-gaussredis"); + /** + * Enum MYSQL_TO_MYSQL for value: "mysql-to-mysql" + */ + public static final EngineTypeEnum MYSQL_TO_MYSQL = new EngineTypeEnum("mysql-to-mysql"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { @@ -137,6 +142,7 @@ private static Map createStaticFields() { map.put("oracle-to-gaussdbv5", ORACLE_TO_GAUSSDBV5); map.put("redis-to-gaussredis", REDIS_TO_GAUSSREDIS); map.put("rediscluster-to-gaussredis", REDISCLUSTER_TO_GAUSSREDIS); + map.put("mysql-to-mysql", MYSQL_TO_MYSQL); return Collections.unmodifiableMap(map); } @@ -596,7 +602,7 @@ public JobBaseInfo withEngineType(EngineTypeEnum engineType) { } /** - * 引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。 - redis-to-gaussredis:Redis同步到GeminiDB Redis,实时迁移场景使用。 - rediscluster-to-gaussredis:Redis集群同步到GeminiDB Redis,实时迁移场景使用。 + * 引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。 - redis-to-gaussredis:Redis同步到GeminiDB Redis,实时迁移场景使用。 - rediscluster-to-gaussredis:Redis集群同步到GeminiDB Redis,实时迁移场景使用。 - mysql-to-mysql:MySQL同步到MySQL,实时同步场景使用。 * @return engineType */ public EngineTypeEnum getEngineType() { diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/JobDetailResp.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/JobDetailResp.java index bb2579fa0c..d2a5a2f321 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/JobDetailResp.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/JobDetailResp.java @@ -23,10 +23,244 @@ public class JobDetailResp { private String id; + /** + * 任务状态。 - CREATING:创建中 - CREATE_FAILED:创建失败 - CONFIGURATION:配置中 - STARTJOBING:启动中 - WAITING_FOR_START:等待启动中 - START_JOB_FAILED:启动失败 - PAUSING:已暂停 - FULL_TRANSFER_STARTED:全量开始,灾备场景下为初始化 - FULL_TRANSFER_FAILED:全量失败,灾备场景下为初始化失败 - FULL_TRANSFER_COMPLETE:全量完成,灾备场景下为初始化完成 - INCRE_TRANSFER_STARTED:增量开始,灾备场景下为灾备中 - INCRE_TRANSFER_FAILED:增量失败,灾备场景下为灾备异常 - RELEASE_RESOURCE_STARTED:结束任务中 - RELEASE_RESOURCE_FAILED:结束任务失败 - RELEASE_RESOURCE_COMPLETE:已结束 - REBUILD_NODE_STARTED:故障恢复中 - REBUILD_NODE_FAILED:故障恢复失败 - CHANGE_JOB_STARTED:任务变更中 - CHANGE_JOB_FAILED:任务变更失败 - DELETED:已删除 - CHILD_TRANSFER_STARTING:再编辑子任务启动中 - CHILD_TRANSFER_STARTED:再编辑子任务迁移中 - CHILD_TRANSFER_COMPLETE:再编辑子任务迁移完成 - CHILD_TRANSFER_FAILED:再编辑子任务迁移失败 - RELEASE_CHILD_TRANSFER_STARTED:再编辑子任务结束中 - RELEASE_CHILD_TRANSFER_COMPLETE:再编辑子任务已结束 - NODE_UPGRADE_START:升级开始 - NODE_UPGRADE_COMPLETE:升级完成 - NODE_UPGRADE_FAILED:升级失败 + */ + public static final class StatusEnum { + + /** + * Enum CREATING for value: "CREATING" + */ + public static final StatusEnum CREATING = new StatusEnum("CREATING"); + + /** + * Enum CREATE_FAILED for value: "CREATE_FAILED" + */ + public static final StatusEnum CREATE_FAILED = new StatusEnum("CREATE_FAILED"); + + /** + * Enum CONFIGURATION for value: "CONFIGURATION" + */ + public static final StatusEnum CONFIGURATION = new StatusEnum("CONFIGURATION"); + + /** + * Enum STARTJOBING for value: "STARTJOBING" + */ + public static final StatusEnum STARTJOBING = new StatusEnum("STARTJOBING"); + + /** + * Enum WAITING_FOR_START for value: "WAITING_FOR_START" + */ + public static final StatusEnum WAITING_FOR_START = new StatusEnum("WAITING_FOR_START"); + + /** + * Enum START_JOB_FAILED for value: "START_JOB_FAILED" + */ + public static final StatusEnum START_JOB_FAILED = new StatusEnum("START_JOB_FAILED"); + + /** + * Enum PAUSING for value: "PAUSING" + */ + public static final StatusEnum PAUSING = new StatusEnum("PAUSING"); + + /** + * Enum FULL_TRANSFER_STARTED for value: "FULL_TRANSFER_STARTED" + */ + public static final StatusEnum FULL_TRANSFER_STARTED = new StatusEnum("FULL_TRANSFER_STARTED"); + + /** + * Enum FULL_TRANSFER_FAILED for value: "FULL_TRANSFER_FAILED" + */ + public static final StatusEnum FULL_TRANSFER_FAILED = new StatusEnum("FULL_TRANSFER_FAILED"); + + /** + * Enum FULL_TRANSFER_COMPLETE for value: "FULL_TRANSFER_COMPLETE" + */ + public static final StatusEnum FULL_TRANSFER_COMPLETE = new StatusEnum("FULL_TRANSFER_COMPLETE"); + + /** + * Enum INCRE_TRANSFER_STARTED for value: "INCRE_TRANSFER_STARTED" + */ + public static final StatusEnum INCRE_TRANSFER_STARTED = new StatusEnum("INCRE_TRANSFER_STARTED"); + + /** + * Enum INCRE_TRANSFER_FAILED for value: "INCRE_TRANSFER_FAILED" + */ + public static final StatusEnum INCRE_TRANSFER_FAILED = new StatusEnum("INCRE_TRANSFER_FAILED"); + + /** + * Enum RELEASE_RESOURCE_STARTED for value: "RELEASE_RESOURCE_STARTED" + */ + public static final StatusEnum RELEASE_RESOURCE_STARTED = new StatusEnum("RELEASE_RESOURCE_STARTED"); + + /** + * Enum RELEASE_RESOURCE_FAILED for value: "RELEASE_RESOURCE_FAILED" + */ + public static final StatusEnum RELEASE_RESOURCE_FAILED = new StatusEnum("RELEASE_RESOURCE_FAILED"); + + /** + * Enum RELEASE_RESOURCE_COMPLETE for value: "RELEASE_RESOURCE_COMPLETE" + */ + public static final StatusEnum RELEASE_RESOURCE_COMPLETE = new StatusEnum("RELEASE_RESOURCE_COMPLETE"); + + /** + * Enum REBUILD_NODE_STARTED for value: "REBUILD_NODE_STARTED" + */ + public static final StatusEnum REBUILD_NODE_STARTED = new StatusEnum("REBUILD_NODE_STARTED"); + + /** + * Enum REBUILD_NODE_FAILED for value: "REBUILD_NODE_FAILED" + */ + public static final StatusEnum REBUILD_NODE_FAILED = new StatusEnum("REBUILD_NODE_FAILED"); + + /** + * Enum CHANGE_JOB_STARTED for value: "CHANGE_JOB_STARTED" + */ + public static final StatusEnum CHANGE_JOB_STARTED = new StatusEnum("CHANGE_JOB_STARTED"); + + /** + * Enum CHANGE_JOB_FAILED for value: "CHANGE_JOB_FAILED" + */ + public static final StatusEnum CHANGE_JOB_FAILED = new StatusEnum("CHANGE_JOB_FAILED"); + + /** + * Enum DELETED for value: "DELETED" + */ + public static final StatusEnum DELETED = new StatusEnum("DELETED"); + + /** + * Enum CHILD_TRANSFER_STARTING for value: "CHILD_TRANSFER_STARTING" + */ + public static final StatusEnum CHILD_TRANSFER_STARTING = new StatusEnum("CHILD_TRANSFER_STARTING"); + + /** + * Enum CHILD_TRANSFER_STARTED for value: "CHILD_TRANSFER_STARTED" + */ + public static final StatusEnum CHILD_TRANSFER_STARTED = new StatusEnum("CHILD_TRANSFER_STARTED"); + + /** + * Enum CHILD_TRANSFER_COMPLETE for value: "CHILD_TRANSFER_COMPLETE" + */ + public static final StatusEnum CHILD_TRANSFER_COMPLETE = new StatusEnum("CHILD_TRANSFER_COMPLETE"); + + /** + * Enum CHILD_TRANSFER_FAILED for value: "CHILD_TRANSFER_FAILED" + */ + public static final StatusEnum CHILD_TRANSFER_FAILED = new StatusEnum("CHILD_TRANSFER_FAILED"); + + /** + * Enum RELEASE_CHILD_TRANSFER_STARTED for value: "RELEASE_CHILD_TRANSFER_STARTED" + */ + public static final StatusEnum RELEASE_CHILD_TRANSFER_STARTED = + new StatusEnum("RELEASE_CHILD_TRANSFER_STARTED"); + + /** + * Enum RELEASE_CHILD_TRANSFER_COMPLETE for value: "RELEASE_CHILD_TRANSFER_COMPLETE" + */ + public static final StatusEnum RELEASE_CHILD_TRANSFER_COMPLETE = + new StatusEnum("RELEASE_CHILD_TRANSFER_COMPLETE"); + + /** + * Enum NODE_UPGRADE_START for value: "NODE_UPGRADE_START" + */ + public static final StatusEnum NODE_UPGRADE_START = new StatusEnum("NODE_UPGRADE_START"); + + /** + * Enum NODE_UPGRADE_COMPLETE for value: "NODE_UPGRADE_COMPLETE" + */ + public static final StatusEnum NODE_UPGRADE_COMPLETE = new StatusEnum("NODE_UPGRADE_COMPLETE"); + + /** + * Enum NODE_UPGRADE_FAILED for value: "NODE_UPGRADE_FAILED" + */ + public static final StatusEnum NODE_UPGRADE_FAILED = new StatusEnum("NODE_UPGRADE_FAILED"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("CREATING", CREATING); + map.put("CREATE_FAILED", CREATE_FAILED); + map.put("CONFIGURATION", CONFIGURATION); + map.put("STARTJOBING", STARTJOBING); + map.put("WAITING_FOR_START", WAITING_FOR_START); + map.put("START_JOB_FAILED", START_JOB_FAILED); + map.put("PAUSING", PAUSING); + map.put("FULL_TRANSFER_STARTED", FULL_TRANSFER_STARTED); + map.put("FULL_TRANSFER_FAILED", FULL_TRANSFER_FAILED); + map.put("FULL_TRANSFER_COMPLETE", FULL_TRANSFER_COMPLETE); + map.put("INCRE_TRANSFER_STARTED", INCRE_TRANSFER_STARTED); + map.put("INCRE_TRANSFER_FAILED", INCRE_TRANSFER_FAILED); + map.put("RELEASE_RESOURCE_STARTED", RELEASE_RESOURCE_STARTED); + map.put("RELEASE_RESOURCE_FAILED", RELEASE_RESOURCE_FAILED); + map.put("RELEASE_RESOURCE_COMPLETE", RELEASE_RESOURCE_COMPLETE); + map.put("REBUILD_NODE_STARTED", REBUILD_NODE_STARTED); + map.put("REBUILD_NODE_FAILED", REBUILD_NODE_FAILED); + map.put("CHANGE_JOB_STARTED", CHANGE_JOB_STARTED); + map.put("CHANGE_JOB_FAILED", CHANGE_JOB_FAILED); + map.put("DELETED", DELETED); + map.put("CHILD_TRANSFER_STARTING", CHILD_TRANSFER_STARTING); + map.put("CHILD_TRANSFER_STARTED", CHILD_TRANSFER_STARTED); + map.put("CHILD_TRANSFER_COMPLETE", CHILD_TRANSFER_COMPLETE); + map.put("CHILD_TRANSFER_FAILED", CHILD_TRANSFER_FAILED); + map.put("RELEASE_CHILD_TRANSFER_STARTED", RELEASE_CHILD_TRANSFER_STARTED); + map.put("RELEASE_CHILD_TRANSFER_COMPLETE", RELEASE_CHILD_TRANSFER_COMPLETE); + map.put("NODE_UPGRADE_START", NODE_UPGRADE_START); + map.put("NODE_UPGRADE_COMPLETE", NODE_UPGRADE_COMPLETE); + map.put("NODE_UPGRADE_FAILED", NODE_UPGRADE_FAILED); + 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 String status; + private StatusEnum status; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "create_time") @@ -260,20 +494,20 @@ public void setId(String id) { this.id = id; } - public JobDetailResp withStatus(String status) { + public JobDetailResp withStatus(StatusEnum status) { this.status = status; return this; } /** - * 任务状态。 + * 任务状态。 - CREATING:创建中 - CREATE_FAILED:创建失败 - CONFIGURATION:配置中 - STARTJOBING:启动中 - WAITING_FOR_START:等待启动中 - START_JOB_FAILED:启动失败 - PAUSING:已暂停 - FULL_TRANSFER_STARTED:全量开始,灾备场景下为初始化 - FULL_TRANSFER_FAILED:全量失败,灾备场景下为初始化失败 - FULL_TRANSFER_COMPLETE:全量完成,灾备场景下为初始化完成 - INCRE_TRANSFER_STARTED:增量开始,灾备场景下为灾备中 - INCRE_TRANSFER_FAILED:增量失败,灾备场景下为灾备异常 - RELEASE_RESOURCE_STARTED:结束任务中 - RELEASE_RESOURCE_FAILED:结束任务失败 - RELEASE_RESOURCE_COMPLETE:已结束 - REBUILD_NODE_STARTED:故障恢复中 - REBUILD_NODE_FAILED:故障恢复失败 - CHANGE_JOB_STARTED:任务变更中 - CHANGE_JOB_FAILED:任务变更失败 - DELETED:已删除 - CHILD_TRANSFER_STARTING:再编辑子任务启动中 - CHILD_TRANSFER_STARTED:再编辑子任务迁移中 - CHILD_TRANSFER_COMPLETE:再编辑子任务迁移完成 - CHILD_TRANSFER_FAILED:再编辑子任务迁移失败 - RELEASE_CHILD_TRANSFER_STARTED:再编辑子任务结束中 - RELEASE_CHILD_TRANSFER_COMPLETE:再编辑子任务已结束 - NODE_UPGRADE_START:升级开始 - NODE_UPGRADE_COMPLETE:升级完成 - NODE_UPGRADE_FAILED:升级失败 * @return status */ - public String getStatus() { + public StatusEnum getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(StatusEnum status) { this.status = status; } diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/JobEndpointInfo.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/JobEndpointInfo.java index a695b36ce3..da6d3c8880 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/JobEndpointInfo.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/JobEndpointInfo.java @@ -17,7 +17,7 @@ public class JobEndpointInfo { /** - * 数据库类型。取值: - oracle:Oracle。 - gaussdbv5:GaussDB分布式版。 - redis:Redis。 - rediscluster:Redis集群版。 - gaussredis: GeminiDB Redis。 + * 数据库类型。取值: - oracle:Oracle。 - gaussdbv5:GaussDB分布式版。 - redis:Redis。 - rediscluster:Redis集群版。 - gaussredis: GeminiDB Redis。 - mysql:MySQL。 */ public static final class DbTypeEnum { @@ -46,6 +46,11 @@ public static final class DbTypeEnum { */ public static final DbTypeEnum GAUSSREDIS = new DbTypeEnum("gaussredis"); + /** + * Enum MYSQL for value: "mysql" + */ + public static final DbTypeEnum MYSQL = new DbTypeEnum("mysql"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { @@ -55,6 +60,7 @@ private static Map createStaticFields() { map.put("redis", REDIS); map.put("rediscluster", REDISCLUSTER); map.put("gaussredis", GAUSSREDIS); + map.put("mysql", MYSQL); return Collections.unmodifiableMap(map); } @@ -301,7 +307,7 @@ public JobEndpointInfo withDbType(DbTypeEnum dbType) { } /** - * 数据库类型。取值: - oracle:Oracle。 - gaussdbv5:GaussDB分布式版。 - redis:Redis。 - rediscluster:Redis集群版。 - gaussredis: GeminiDB Redis。 + * 数据库类型。取值: - oracle:Oracle。 - gaussdbv5:GaussDB分布式版。 - redis:Redis。 - rediscluster:Redis集群版。 - gaussredis: GeminiDB Redis。 - mysql:MySQL。 * @return dbType */ public DbTypeEnum getDbType() { diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ListUserJdbcDriversRequest.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ListUserJdbcDriversRequest.java new file mode 100644 index 0000000000..e93f9c8f74 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ListUserJdbcDriversRequest.java @@ -0,0 +1,289 @@ +package com.huaweicloud.sdk.drs.v5.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Request Object + */ +public class ListUserJdbcDriversRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + /** + * 指定待查询的驱动文件类型。取值范围: - db2:DB2 for LUW - informix:Informix + */ + public static final class DriverTypeEnum { + + /** + * Enum DB2 for value: "db2" + */ + public static final DriverTypeEnum DB2 = new DriverTypeEnum("db2"); + + /** + * Enum INFORMIX for value: "informix" + */ + public static final DriverTypeEnum INFORMIX = new DriverTypeEnum("informix"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("db2", DB2); + map.put("informix", INFORMIX); + return Collections.unmodifiableMap(map); + } + + private String value; + + DriverTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static DriverTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new DriverTypeEnum(value)); + } + + public static DriverTypeEnum 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 DriverTypeEnum) { + return this.value.equals(((DriverTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "driver_type") + + private DriverTypeEnum driverType; + + /** + * 请求语言类型。 + */ + 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; + + public ListUserJdbcDriversRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 每页显示的条目数量。默认为10。 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListUserJdbcDriversRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 偏移量,表示从此偏移量开始查询, offset 大于等于 0。默认为0。 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListUserJdbcDriversRequest withDriverType(DriverTypeEnum driverType) { + this.driverType = driverType; + return this; + } + + /** + * 指定待查询的驱动文件类型。取值范围: - db2:DB2 for LUW - informix:Informix + * @return driverType + */ + public DriverTypeEnum getDriverType() { + return driverType; + } + + public void setDriverType(DriverTypeEnum driverType) { + this.driverType = driverType; + } + + public ListUserJdbcDriversRequest 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; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListUserJdbcDriversRequest that = (ListUserJdbcDriversRequest) obj; + return Objects.equals(this.limit, that.limit) && Objects.equals(this.offset, that.offset) + && Objects.equals(this.driverType, that.driverType) && Objects.equals(this.xLanguage, that.xLanguage); + } + + @Override + public int hashCode() { + return Objects.hash(limit, offset, driverType, xLanguage); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListUserJdbcDriversRequest {\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" driverType: ").append(toIndentedString(driverType)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ListUserJdbcDriversResponse.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ListUserJdbcDriversResponse.java new file mode 100644 index 0000000000..9de57df45d --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/ListUserJdbcDriversResponse.java @@ -0,0 +1,115 @@ +package com.huaweicloud.sdk.drs.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListUserJdbcDriversResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "count") + + private Integer count; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "items") + + private List items = null; + + public ListUserJdbcDriversResponse withCount(Integer count) { + this.count = count; + return this; + } + + /** + * 驱动文件总数。 + * @return count + */ + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public ListUserJdbcDriversResponse withItems(List items) { + this.items = items; + return this; + } + + public ListUserJdbcDriversResponse addItemsItem(DriverInfo itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + public ListUserJdbcDriversResponse 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; + } + ListUserJdbcDriversResponse that = (ListUserJdbcDriversResponse) obj; + return Objects.equals(this.count, that.count) && Objects.equals(this.items, that.items); + } + + @Override + public int hashCode() { + return Objects.hash(count, items); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListUserJdbcDriversResponse {\n"); + sb.append(" count: ").append(toIndentedString(count)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/PolicyConfig.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/PolicyConfig.java index 827ef2daec..b339f806c2 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/PolicyConfig.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/PolicyConfig.java @@ -382,6 +382,11 @@ public int hashCode() { private String dmlTypes; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_create_table_with_index") + + private Boolean isCreateTableWithIndex; + public PolicyConfig withFilterDdlPolicy(FilterDdlPolicyEnum filterDdlPolicy) { this.filterDdlPolicy = filterDdlPolicy; return this; @@ -535,6 +540,23 @@ public void setDmlTypes(String dmlTypes) { this.dmlTypes = dmlTypes; } + public PolicyConfig withIsCreateTableWithIndex(Boolean isCreateTableWithIndex) { + this.isCreateTableWithIndex = isCreateTableWithIndex; + return this; + } + + /** + * 索引与表结构是否同时建立。 + * @return isCreateTableWithIndex + */ + public Boolean getIsCreateTableWithIndex() { + return isCreateTableWithIndex; + } + + public void setIsCreateTableWithIndex(Boolean isCreateTableWithIndex) { + this.isCreateTableWithIndex = isCreateTableWithIndex; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -551,7 +573,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.supportDdlInfo, that.supportDdlInfo) && Objects.equals(this.syncTypePolicy, that.syncTypePolicy) && Objects.equals(this.incrementReadMode, that.incrementReadMode) - && Objects.equals(this.dmlTypes, that.dmlTypes); + && Objects.equals(this.dmlTypes, that.dmlTypes) + && Objects.equals(this.isCreateTableWithIndex, that.isCreateTableWithIndex); } @Override @@ -564,7 +587,8 @@ public int hashCode() { supportDdlInfo, syncTypePolicy, incrementReadMode, - dmlTypes); + dmlTypes, + isCreateTableWithIndex); } @Override @@ -580,6 +604,7 @@ public String toString() { sb.append(" syncTypePolicy: ").append(toIndentedString(syncTypePolicy)).append("\n"); sb.append(" incrementReadMode: ").append(toIndentedString(incrementReadMode)).append("\n"); sb.append(" dmlTypes: ").append(toIndentedString(dmlTypes)).append("\n"); + sb.append(" isCreateTableWithIndex: ").append(toIndentedString(isCreateTableWithIndex)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/SyncUserJdbcDriverRequest.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/SyncUserJdbcDriverRequest.java new file mode 100644 index 0000000000..2a203764e7 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/SyncUserJdbcDriverRequest.java @@ -0,0 +1,206 @@ +package com.huaweicloud.sdk.drs.v5.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class SyncUserJdbcDriverRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + /** + * 请求语言类型。 + */ + 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 UpdateUserDriverReq body; + + public SyncUserJdbcDriverRequest 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 SyncUserJdbcDriverRequest 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 SyncUserJdbcDriverRequest withBody(UpdateUserDriverReq body) { + this.body = body; + return this; + } + + public SyncUserJdbcDriverRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdateUserDriverReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdateUserDriverReq getBody() { + return body; + } + + public void setBody(UpdateUserDriverReq 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; + } + SyncUserJdbcDriverRequest that = (SyncUserJdbcDriverRequest) obj; + return Objects.equals(this.jobId, that.jobId) && Objects.equals(this.xLanguage, that.xLanguage) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(jobId, xLanguage, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SyncUserJdbcDriverRequest {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).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/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/SyncUserJdbcDriverResponse.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/SyncUserJdbcDriverResponse.java new file mode 100644 index 0000000000..2cab170784 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/SyncUserJdbcDriverResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.drs.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class SyncUserJdbcDriverResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private Object body; + + public SyncUserJdbcDriverResponse withBody(Object body) { + this.body = body; + return this; + } + + /** + * 空响应体。 + * @return body + */ + public Object getBody() { + return body; + } + + public void setBody(Object body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SyncUserJdbcDriverResponse that = (SyncUserJdbcDriverResponse) 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 SyncUserJdbcDriverResponse {\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UpdateUserDriverReq.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UpdateUserDriverReq.java new file mode 100644 index 0000000000..f6885bc0b1 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UpdateUserDriverReq.java @@ -0,0 +1,170 @@ +package com.huaweicloud.sdk.drs.v5.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * UpdateUserDriverReq + */ +public class UpdateUserDriverReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "driver_name") + + private String driverName; + + /** + * 指定待同步的驱动文件类型。取值范围: - db2:DB2 for LUW - informix:Informix + */ + public static final class DriverTypeEnum { + + /** + * Enum DB2 for value: "db2" + */ + public static final DriverTypeEnum DB2 = new DriverTypeEnum("db2"); + + /** + * Enum INFORMIX for value: "informix" + */ + public static final DriverTypeEnum INFORMIX = new DriverTypeEnum("informix"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("db2", DB2); + map.put("informix", INFORMIX); + return Collections.unmodifiableMap(map); + } + + private String value; + + DriverTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static DriverTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new DriverTypeEnum(value)); + } + + public static DriverTypeEnum 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 DriverTypeEnum) { + return this.value.equals(((DriverTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "driver_type") + + private DriverTypeEnum driverType; + + public UpdateUserDriverReq withDriverName(String driverName) { + this.driverName = driverName; + return this; + } + + /** + * JDBC驱动文件名称,name的长度5-64,结尾以.jar结尾。 + * @return driverName + */ + public String getDriverName() { + return driverName; + } + + public void setDriverName(String driverName) { + this.driverName = driverName; + } + + public UpdateUserDriverReq withDriverType(DriverTypeEnum driverType) { + this.driverType = driverType; + return this; + } + + /** + * 指定待同步的驱动文件类型。取值范围: - db2:DB2 for LUW - informix:Informix + * @return driverType + */ + public DriverTypeEnum getDriverType() { + return driverType; + } + + public void setDriverType(DriverTypeEnum driverType) { + this.driverType = driverType; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateUserDriverReq that = (UpdateUserDriverReq) obj; + return Objects.equals(this.driverName, that.driverName) && Objects.equals(this.driverType, that.driverType); + } + + @Override + public int hashCode() { + return Objects.hash(driverName, driverType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateUserDriverReq {\n"); + sb.append(" driverName: ").append(toIndentedString(driverName)).append("\n"); + sb.append(" driverType: ").append(toIndentedString(driverType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UploadJdbcDriverRequestBody.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UploadJdbcDriverRequestBody.java index 484ee43cdc..c14fa2b90b 100644 --- a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UploadJdbcDriverRequestBody.java +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UploadJdbcDriverRequestBody.java @@ -25,7 +25,7 @@ public UploadJdbcDriverRequestBody withFile(FormDataFilePart file) { } /** - * 驱动文件,驱动文件名称长度5-64,以jar结尾,name相同会替换远程驱动文件 + * 驱动文件,驱动文件名称长度5-64,以jar结尾,文件名相同会替换远程驱动文件 * @return file */ public FormDataFilePart getFile() { diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UploadUserJdbcDriverRequest.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UploadUserJdbcDriverRequest.java new file mode 100644 index 0000000000..f1f2334f82 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UploadUserJdbcDriverRequest.java @@ -0,0 +1,276 @@ +package com.huaweicloud.sdk.drs.v5.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class UploadUserJdbcDriverRequest { + + /** + * 请求语言类型。 + */ + 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; + + /** + * 指定待上传的驱动文件类型。取值范围: - db2:DB2 for LUW - informix:Informix + */ + public static final class DriverTypeEnum { + + /** + * Enum DB2 for value: "db2" + */ + public static final DriverTypeEnum DB2 = new DriverTypeEnum("db2"); + + /** + * Enum INFORMIX for value: "informix" + */ + public static final DriverTypeEnum INFORMIX = new DriverTypeEnum("informix"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("db2", DB2); + map.put("informix", INFORMIX); + return Collections.unmodifiableMap(map); + } + + private String value; + + DriverTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static DriverTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new DriverTypeEnum(value)); + } + + public static DriverTypeEnum 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 DriverTypeEnum) { + return this.value.equals(((DriverTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "driver_type") + + private DriverTypeEnum driverType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UploadUserJdbcDriverRequestBody body; + + public UploadUserJdbcDriverRequest 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 UploadUserJdbcDriverRequest withDriverType(DriverTypeEnum driverType) { + this.driverType = driverType; + return this; + } + + /** + * 指定待上传的驱动文件类型。取值范围: - db2:DB2 for LUW - informix:Informix + * @return driverType + */ + public DriverTypeEnum getDriverType() { + return driverType; + } + + public void setDriverType(DriverTypeEnum driverType) { + this.driverType = driverType; + } + + public UploadUserJdbcDriverRequest withBody(UploadUserJdbcDriverRequestBody body) { + this.body = body; + return this; + } + + public UploadUserJdbcDriverRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UploadUserJdbcDriverRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UploadUserJdbcDriverRequestBody getBody() { + return body; + } + + public void setBody(UploadUserJdbcDriverRequestBody 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; + } + UploadUserJdbcDriverRequest that = (UploadUserJdbcDriverRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.driverType, that.driverType) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, driverType, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UploadUserJdbcDriverRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" driverType: ").append(toIndentedString(driverType)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UploadUserJdbcDriverRequestBody.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UploadUserJdbcDriverRequestBody.java new file mode 100644 index 0000000000..33595af627 --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UploadUserJdbcDriverRequestBody.java @@ -0,0 +1,103 @@ +package com.huaweicloud.sdk.drs.v5.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.http.FormDataFilePart; +import com.huaweicloud.sdk.core.http.FormDataPart; +import com.huaweicloud.sdk.core.http.SdkFormDataBody; + +import java.io.InputStream; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; + +/** + * UploadUserJdbcDriverRequestBody + */ +public class UploadUserJdbcDriverRequestBody implements SdkFormDataBody { + + @JsonProperty(value = "file", access = JsonProperty.Access.WRITE_ONLY) + + private FormDataFilePart file; + + public UploadUserJdbcDriverRequestBody withFile(FormDataFilePart file) { + this.file = file; + return this; + } + + /** + * 驱动文件,驱动文件名称长度5-64,以jar结尾,文件名相同会替换远程驱动文件。 + * @return file + */ + public FormDataFilePart getFile() { + return file; + } + + public void setFile(FormDataFilePart file) { + this.file = file; + } + + public UploadUserJdbcDriverRequestBody withFile(InputStream inputStream, String fileName, String contentType) { + this.file = new FormDataFilePart(inputStream, fileName).withContentType(contentType); + return this; + } + + public UploadUserJdbcDriverRequestBody withFile(InputStream inputStream, String fileName) { + this.file = new FormDataFilePart(inputStream, fileName); + return this; + } + + public UploadUserJdbcDriverRequestBody withFile(InputStream inputStream, String fileName, + Map headers) { + this.file = new FormDataFilePart(inputStream, fileName).withHeaders(headers); + return this; + } + + @Override + public Map> buildFormData() { + return new LinkedHashMap>() { + + private static final long serialVersionUID = 1L; + { + put("file", file); + } + }; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UploadUserJdbcDriverRequestBody that = (UploadUserJdbcDriverRequestBody) obj; + return Objects.equals(this.file, that.file); + } + + @Override + public int hashCode() { + return Objects.hash(file); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UploadUserJdbcDriverRequestBody {\n"); + sb.append(" file: ").append(toIndentedString("[resource:will-not-print]")).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UploadUserJdbcDriverResponse.java b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UploadUserJdbcDriverResponse.java new file mode 100644 index 0000000000..eb6b658ece --- /dev/null +++ b/services/drs/src/main/java/com/huaweicloud/sdk/drs/v5/model/UploadUserJdbcDriverResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.drs.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class UploadUserJdbcDriverResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private Object body; + + public UploadUserJdbcDriverResponse withBody(Object body) { + this.body = body; + return this; + } + + /** + * 空响应体。 + * @return body + */ + public Object getBody() { + return body; + } + + public void setBody(Object body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UploadUserJdbcDriverResponse that = (UploadUserJdbcDriverResponse) 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 UploadUserJdbcDriverResponse {\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/dsc/pom.xml b/services/dsc/pom.xml index 8417e51327..e8454836ca 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-dsc - 3.1.110 + 3.1.111 Huawei Cloud SDK for DSC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/dss/pom.xml b/services/dss/pom.xml index 0ae5e7c6e3..4e80182dfc 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-dss - 3.1.110 + 3.1.111 Huawei Cloud SDK for DSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/dwr/pom.xml b/services/dwr/pom.xml index c1f313f4c8..1d8aa0f285 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-dwr - 3.1.110 + 3.1.111 Huawei Cloud SDK for DWR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/dws/pom.xml b/services/dws/pom.xml index 4244449fdb..1de424c48a 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-dws - 3.1.110 + 3.1.111 Huawei Cloud SDK for DWS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/ec/pom.xml b/services/ec/pom.xml index 3d37af1734..d1f8e05113 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-ec - 3.1.110 + 3.1.111 Huawei Cloud SDK for EC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/ecs/pom.xml b/services/ecs/pom.xml index cd55759435..81d64e209e 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-ecs - 3.1.110 + 3.1.111 Huawei Cloud SDK for ECS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 ch.qos.logback diff --git a/services/edgesec/pom.xml b/services/edgesec/pom.xml index d0a1c6b008..32aedaa4d1 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-edgesec - 3.1.110 + 3.1.111 Huawei Cloud SDK for EDGESEC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/eds/pom.xml b/services/eds/pom.xml index 9d515510a3..8d996a233a 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-eds - 3.1.110 + 3.1.111 Huawei Cloud SDK for EDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/eg/pom.xml b/services/eg/pom.xml index 4a02ac3fd4..444aa3a91f 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-eg - 3.1.110 + 3.1.111 Huawei Cloud SDK for EG 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/eihealth/pom.xml b/services/eihealth/pom.xml index 22ebcdec3e..a7e32f87d2 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-eihealth - 3.1.110 + 3.1.111 Huawei Cloud SDK for EIHEALTH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/BaseModelDto.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/BaseModelDto.java index 5e5c9cfd70..e3f00364a1 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/BaseModelDto.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/BaseModelDto.java @@ -25,11 +25,6 @@ public class BaseModelDto { private String createTime; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "creator") - - private String creator; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "description") @@ -86,23 +81,6 @@ public void setCreateTime(String createTime) { this.createTime = createTime; } - public BaseModelDto withCreator(String creator) { - this.creator = creator; - return this; - } - - /** - * 创建模型的用户名称 - * @return creator - */ - public String getCreator() { - return creator; - } - - public void setCreator(String creator) { - this.creator = creator; - } - public BaseModelDto withDescription(String description) { this.description = description; return this; @@ -130,13 +108,12 @@ public boolean equals(java.lang.Object obj) { } BaseModelDto that = (BaseModelDto) obj; return Objects.equals(this.name, that.name) && Objects.equals(this.id, that.id) - && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.creator, that.creator) - && Objects.equals(this.description, that.description); + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.description, that.description); } @Override public int hashCode() { - return Objects.hash(name, id, createTime, creator, description); + return Objects.hash(name, id, createTime, description); } @Override @@ -146,7 +123,6 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); - sb.append(" creator: ").append(toIndentedString(creator)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateFepJobReq.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateFepJobReq.java index 08f155ec2f..c278f6a640 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateFepJobReq.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateFepJobReq.java @@ -23,6 +23,11 @@ public class CreateFepJobReq { private ReceptorDrugFile receptor; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "add_membrane") + + private Boolean addMembrane; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "ligands") @@ -90,6 +95,23 @@ public void setReceptor(ReceptorDrugFile receptor) { this.receptor = receptor; } + public CreateFepJobReq withAddMembrane(Boolean addMembrane) { + this.addMembrane = addMembrane; + return this; + } + + /** + * 是否加膜处理 + * @return addMembrane + */ + public Boolean getAddMembrane() { + return addMembrane; + } + + public void setAddMembrane(Boolean addMembrane) { + this.addMembrane = addMembrane; + } + public CreateFepJobReq withLigands(List ligands) { this.ligands = ligands; return this; @@ -185,13 +207,13 @@ public boolean equals(java.lang.Object obj) { } CreateFepJobReq that = (CreateFepJobReq) obj; return Objects.equals(this.basicInfo, that.basicInfo) && Objects.equals(this.receptor, that.receptor) - && Objects.equals(this.ligands, that.ligands) && Objects.equals(this.graph, that.graph) - && Objects.equals(this.params, that.params); + && Objects.equals(this.addMembrane, that.addMembrane) && Objects.equals(this.ligands, that.ligands) + && Objects.equals(this.graph, that.graph) && Objects.equals(this.params, that.params); } @Override public int hashCode() { - return Objects.hash(basicInfo, receptor, ligands, graph, params); + return Objects.hash(basicInfo, receptor, addMembrane, ligands, graph, params); } @Override @@ -200,6 +222,7 @@ public String toString() { sb.append("class CreateFepJobReq {\n"); sb.append(" basicInfo: ").append(toIndentedString(basicInfo)).append("\n"); sb.append(" receptor: ").append(toIndentedString(receptor)).append("\n"); + sb.append(" addMembrane: ").append(toIndentedString(addMembrane)).append("\n"); sb.append(" ligands: ").append(toIndentedString(ligands)).append("\n"); sb.append(" graph: ").append(toIndentedString(graph)).append("\n"); sb.append(" params: ").append(toIndentedString(params)).append("\n"); diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/JobResult.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/JobResult.java index 0b096e380f..5af68bafb2 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/JobResult.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/JobResult.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; /** * 作业运行结果信息 @@ -20,6 +23,11 @@ public class JobResult { private Integer failedCount; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sub_tasks_duration") + + private List subTasksDuration = null; + public JobResult withTotalCount(Integer totalCount) { this.totalCount = totalCount; return this; @@ -54,6 +62,39 @@ public void setFailedCount(Integer failedCount) { this.failedCount = failedCount; } + public JobResult withSubTasksDuration(List subTasksDuration) { + this.subTasksDuration = subTasksDuration; + return this; + } + + public JobResult addSubTasksDurationItem(Float subTasksDurationItem) { + if (this.subTasksDuration == null) { + this.subTasksDuration = new ArrayList<>(); + } + this.subTasksDuration.add(subTasksDurationItem); + return this; + } + + public JobResult withSubTasksDuration(Consumer> subTasksDurationSetter) { + if (this.subTasksDuration == null) { + this.subTasksDuration = new ArrayList<>(); + } + subTasksDurationSetter.accept(this.subTasksDuration); + return this; + } + + /** + * 子任务运行时长(秒)。 + * @return subTasksDuration + */ + public List getSubTasksDuration() { + return subTasksDuration; + } + + public void setSubTasksDuration(List subTasksDuration) { + this.subTasksDuration = subTasksDuration; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -63,12 +104,13 @@ public boolean equals(java.lang.Object obj) { return false; } JobResult that = (JobResult) obj; - return Objects.equals(this.totalCount, that.totalCount) && Objects.equals(this.failedCount, that.failedCount); + return Objects.equals(this.totalCount, that.totalCount) && Objects.equals(this.failedCount, that.failedCount) + && Objects.equals(this.subTasksDuration, that.subTasksDuration); } @Override public int hashCode() { - return Objects.hash(totalCount, failedCount); + return Objects.hash(totalCount, failedCount, subTasksDuration); } @Override @@ -77,6 +119,7 @@ public String toString() { sb.append("class JobResult {\n"); sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); sb.append(" failedCount: ").append(toIndentedString(failedCount)).append("\n"); + sb.append(" subTasksDuration: ").append(toIndentedString(subTasksDuration)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowFepJobResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowFepJobResponse.java index 1a9d71909f..9e6dc39c33 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowFepJobResponse.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowFepJobResponse.java @@ -24,6 +24,11 @@ public class ShowFepJobResponse extends SdkResponse { private ReceptorDrugFile receptor; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "add_membrane") + + private Boolean addMembrane; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "ligands") @@ -101,6 +106,23 @@ public void setReceptor(ReceptorDrugFile receptor) { this.receptor = receptor; } + public ShowFepJobResponse withAddMembrane(Boolean addMembrane) { + this.addMembrane = addMembrane; + return this; + } + + /** + * 是否加膜处理 + * @return addMembrane + */ + public Boolean getAddMembrane() { + return addMembrane; + } + + public void setAddMembrane(Boolean addMembrane) { + this.addMembrane = addMembrane; + } + public ShowFepJobResponse withLigands(List ligands) { this.ligands = ligands; return this; @@ -255,14 +277,15 @@ public boolean equals(java.lang.Object obj) { } ShowFepJobResponse that = (ShowFepJobResponse) obj; return Objects.equals(this.basicInfo, that.basicInfo) && Objects.equals(this.receptor, that.receptor) - && Objects.equals(this.ligands, that.ligands) && Objects.equals(this.graph, that.graph) - && Objects.equals(this.params, that.params) && Objects.equals(this.jobResult, that.jobResult) + && Objects.equals(this.addMembrane, that.addMembrane) && Objects.equals(this.ligands, that.ligands) + && Objects.equals(this.graph, that.graph) && Objects.equals(this.params, that.params) + && Objects.equals(this.jobResult, that.jobResult) && Objects.equals(this.partFailedReason, that.partFailedReason); } @Override public int hashCode() { - return Objects.hash(basicInfo, receptor, ligands, graph, params, jobResult, partFailedReason); + return Objects.hash(basicInfo, receptor, addMembrane, ligands, graph, params, jobResult, partFailedReason); } @Override @@ -271,6 +294,7 @@ public String toString() { sb.append("class ShowFepJobResponse {\n"); sb.append(" basicInfo: ").append(toIndentedString(basicInfo)).append("\n"); sb.append(" receptor: ").append(toIndentedString(receptor)).append("\n"); + sb.append(" addMembrane: ").append(toIndentedString(addMembrane)).append("\n"); sb.append(" ligands: ").append(toIndentedString(ligands)).append("\n"); sb.append(" graph: ").append(toIndentedString(graph)).append("\n"); sb.append(" params: ").append(toIndentedString(params)).append("\n"); diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowMolBatchDownloadTaskResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowMolBatchDownloadTaskResponse.java index faf9fca089..c0a09c0026 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowMolBatchDownloadTaskResponse.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowMolBatchDownloadTaskResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -26,6 +27,11 @@ public class ShowMolBatchDownloadTaskResponse extends SdkResponse { private String outDir; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "progress") + + private TaskProgress progress; + public ShowMolBatchDownloadTaskResponse withStatus(String status) { this.status = status; return this; @@ -77,6 +83,32 @@ public void setOutDir(String outDir) { this.outDir = outDir; } + public ShowMolBatchDownloadTaskResponse withProgress(TaskProgress progress) { + this.progress = progress; + return this; + } + + public ShowMolBatchDownloadTaskResponse withProgress(Consumer progressSetter) { + if (this.progress == null) { + this.progress = new TaskProgress(); + progressSetter.accept(this.progress); + } + + return this; + } + + /** + * Get progress + * @return progress + */ + public TaskProgress getProgress() { + return progress; + } + + public void setProgress(TaskProgress progress) { + this.progress = progress; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -87,12 +119,12 @@ public boolean equals(java.lang.Object obj) { } ShowMolBatchDownloadTaskResponse that = (ShowMolBatchDownloadTaskResponse) obj; return Objects.equals(this.status, that.status) && Objects.equals(this.filename, that.filename) - && Objects.equals(this.outDir, that.outDir); + && Objects.equals(this.outDir, that.outDir) && Objects.equals(this.progress, that.progress); } @Override public int hashCode() { - return Objects.hash(status, filename, outDir); + return Objects.hash(status, filename, outDir, progress); } @Override @@ -102,6 +134,7 @@ public String toString() { sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" filename: ").append(toIndentedString(filename)).append("\n"); sb.append(" outDir: ").append(toIndentedString(outDir)).append("\n"); + sb.append(" progress: ").append(toIndentedString(progress)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/TaskProgress.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/TaskProgress.java new file mode 100644 index 0000000000..99001d210d --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/TaskProgress.java @@ -0,0 +1,74 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 任务进度 + */ +public class TaskProgress { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "overall") + + private Float overall; + + public TaskProgress withOverall(Float overall) { + this.overall = overall; + return this; + } + + /** + * 整体进度 + * minimum: 0 + * maximum: 1 + * @return overall + */ + public Float getOverall() { + return overall; + } + + public void setOverall(Float overall) { + this.overall = overall; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + TaskProgress that = (TaskProgress) obj; + return Objects.equals(this.overall, that.overall); + } + + @Override + public int hashCode() { + return Objects.hash(overall); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TaskProgress {\n"); + sb.append(" overall: ").append(toIndentedString(overall)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eip/pom.xml b/services/eip/pom.xml index 04c8ddbf58..978d78e5b6 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-eip - 3.1.110 + 3.1.111 Huawei Cloud SDK for EIP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/elb/pom.xml b/services/elb/pom.xml index ca15635803..79513b2818 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-elb - 3.1.110 + 3.1.111 Huawei Cloud SDK for ELB 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/elb/src/main/java/com/huaweicloud/sdk/elb/v2/region/ElbRegion.java b/services/elb/src/main/java/com/huaweicloud/sdk/elb/v2/region/ElbRegion.java index d4e9106d7f..e40b936c47 100644 --- a/services/elb/src/main/java/com/huaweicloud/sdk/elb/v2/region/ElbRegion.java +++ b/services/elb/src/main/java/com/huaweicloud/sdk/elb/v2/region/ElbRegion.java @@ -74,6 +74,8 @@ public class ElbRegion { public static final Region AF_NORTH_1 = new Region("af-north-1", "https://elb.af-north-1.myhuaweicloud.com"); + public static final Region CN_EAST_5 = new Region("cn-east-5", "https://elb.cn-east-5.myhuaweicloud.com"); + private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("ELB"); private static final Map STATIC_FIELDS = createStaticFields(); @@ -107,6 +109,7 @@ private static Map createStaticFields() { map.put("ru-moscow-1", RU_MOSCOW_1); map.put("cn-east-4", CN_EAST_4); map.put("af-north-1", AF_NORTH_1); + map.put("cn-east-5", CN_EAST_5); return Collections.unmodifiableMap(map); } diff --git a/services/elb/src/main/java/com/huaweicloud/sdk/elb/v3/region/ElbRegion.java b/services/elb/src/main/java/com/huaweicloud/sdk/elb/v3/region/ElbRegion.java index cb2b5f9b5b..0da87205f0 100644 --- a/services/elb/src/main/java/com/huaweicloud/sdk/elb/v3/region/ElbRegion.java +++ b/services/elb/src/main/java/com/huaweicloud/sdk/elb/v3/region/ElbRegion.java @@ -74,6 +74,8 @@ public class ElbRegion { public static final Region AF_NORTH_1 = new Region("af-north-1", "https://elb.af-north-1.myhuaweicloud.com"); + public static final Region CN_EAST_5 = new Region("cn-east-5", "https://elb.cn-east-5.myhuaweicloud.com"); + private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("ELB"); private static final Map STATIC_FIELDS = createStaticFields(); @@ -107,6 +109,7 @@ private static Map createStaticFields() { map.put("ru-moscow-1", RU_MOSCOW_1); map.put("cn-east-4", CN_EAST_4); map.put("af-north-1", AF_NORTH_1); + map.put("cn-east-5", CN_EAST_5); return Collections.unmodifiableMap(map); } diff --git a/services/eps/pom.xml b/services/eps/pom.xml index af168724b5..9261f297ca 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-eps - 3.1.110 + 3.1.111 Huawei Cloud SDK for EPS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/er/pom.xml b/services/er/pom.xml index a4cd5b4ffc..8fcfa0cb77 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-er - 3.1.110 + 3.1.111 Huawei Cloud SDK for ER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/evs/pom.xml b/services/evs/pom.xml index f886a3ea20..a411f6f7de 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-evs - 3.1.110 + 3.1.111 Huawei Cloud SDK for EVS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/region/EvsRegion.java b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/region/EvsRegion.java index 4764491985..7b5bc01893 100644 --- a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/region/EvsRegion.java +++ b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/region/EvsRegion.java @@ -72,6 +72,17 @@ public class EvsRegion { public static final Region MY_KUALALUMPUR_1 = new Region("my-kualalumpur-1", "https://evs.my-kualalumpur-1.myhuaweicloud.com"); + public static final Region CN_EAST_4 = new Region("cn-east-4", "https://evs.cn-east-4.myhuaweicloud.com"); + + public static final Region CN_EAST_5 = new Region("cn-east-5", "https://evs.cn-east-5.myhuaweicloud.com"); + + public static final Region CN_NORTH_11 = new Region("cn-north-11", "https://evs.cn-north-11.myhuaweicloud.com"); + + public static final Region RU_NORTHWEST_2 = + new Region("ru-northwest-2", "https://evs.ru-northwest-2.myhuaweicloud.com"); + + public static final Region AF_NORTH_1 = new Region("af-north-1", "https://evs.af-north-1.myhuaweicloud.com"); + private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("EVS"); private static final Map STATIC_FIELDS = createStaticFields(); @@ -104,6 +115,11 @@ private static Map createStaticFields() { map.put("cn-south-4", CN_SOUTH_4); map.put("ru-moscow-1", RU_MOSCOW_1); map.put("my-kualalumpur-1", MY_KUALALUMPUR_1); + map.put("cn-east-4", CN_EAST_4); + map.put("cn-east-5", CN_EAST_5); + map.put("cn-north-11", CN_NORTH_11); + map.put("ru-northwest-2", RU_NORTHWEST_2); + map.put("af-north-1", AF_NORTH_1); return Collections.unmodifiableMap(map); } diff --git a/services/expert/pom.xml b/services/expert/pom.xml index 5d9612be52..0e9c3f6fcd 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-expert - 3.1.110 + 3.1.111 Huawei Cloud SDK for EXPERT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/frs/pom.xml b/services/frs/pom.xml index 020d868bae..43ace6cd71 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-frs - 3.1.110 + 3.1.111 Huawei Cloud SDK for FRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/functiongraph/pom.xml b/services/functiongraph/pom.xml index 93224cf402..ef9bf1a936 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-functiongraph - 3.1.110 + 3.1.111 Huawei Cloud SDK for FUNCTIONGRAPH 4.0.0 @@ -17,8 +17,13 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 + + junit + junit + test + - \ No newline at end of file + diff --git a/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/CustomClientBuilder.java b/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/CustomClientBuilder.java new file mode 100644 index 0000000000..52cb44ed1a --- /dev/null +++ b/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/CustomClientBuilder.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.functiongraph.v2; + +import java.util.Objects; +import java.util.function.Function; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import com.huaweicloud.sdk.core.ClientBuilder; +import com.huaweicloud.sdk.core.HcClient; +import com.huaweicloud.sdk.core.region.Region; +import com.huaweicloud.sdk.functiongraph.v2.region.FunctionGraphTenantRegion; + +public class CustomClientBuilder extends ClientBuilder { + private static final Logger logger = LoggerFactory.getLogger(CustomClientBuilder.class); + + public CustomClientBuilder(Function creator) { + super(creator); + } + + public CustomClientBuilder(Function creator, String credentialType) { + super(creator, credentialType); + } + + @Override + public T build() { + processRegion(); + + return super.build(); + } + + private void processRegion() { + Region region = getRegion(); + if (Objects.nonNull(region) && region != FunctionGraphTenantRegion.valueOf(region.getId())) { + FunctionGraphTenantRegion.processRegion(region); + } + } + +} diff --git a/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/FunctionGraphTenantClient.java b/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/FunctionGraphTenantClient.java new file mode 100644 index 0000000000..f9dd5afc5a --- /dev/null +++ b/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/FunctionGraphTenantClient.java @@ -0,0 +1,110 @@ +/* + * 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.functiongraph.v2; + +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.CopyOnWriteArrayList; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import com.huaweicloud.sdk.core.ClientBuilder; +import com.huaweicloud.sdk.core.Constants; +import com.huaweicloud.sdk.core.HcClient; +import com.huaweicloud.sdk.core.exception.ConnectionException; +import com.huaweicloud.sdk.core.exchange.SdkExchange; +import com.huaweicloud.sdk.core.exchange.SdkExchangeCache; +import com.huaweicloud.sdk.core.http.HttpRequestDef; +import com.huaweicloud.sdk.functiongraph.v2.model.AsyncInvokeFunctionRequest; +import com.huaweicloud.sdk.functiongraph.v2.model.AsyncInvokeFunctionResponse; +import com.huaweicloud.sdk.functiongraph.v2.model.InvokeFunctionRequest; +import com.huaweicloud.sdk.functiongraph.v2.model.InvokeFunctionResponse; + +public class FunctionGraphTenantClient extends FunctionGraphClient { + private static final Logger logger = LoggerFactory.getLogger(FunctionGraphTenantClient.class); + + private String domainName = null; + + private final List endpoints; + + public static ClientBuilder newBuilder() { + return new CustomClientBuilder<>(FunctionGraphTenantClient::new); + } + + public FunctionGraphTenantClient(HcClient hcClient) { + super(hcClient); + this.endpoints = hcClient.getEndpoints(); + if (this.endpoints != null && this.endpoints.size() > 0) { + this.domainName = this.endpoints.get(this.endpoints.size() - 1); + } + } + + private S invokeFunctionWithRetries(R request, HttpRequestDef meta, Class responseType) { + CopyOnWriteArrayList shuffleEndpoints = new CopyOnWriteArrayList<>(endpoints); + Collections.shuffle(shuffleEndpoints); + S response = null; + SdkExchange sdkExchange = new SdkExchange(); + int retryCount = 0; + + for (int i = 0; i < shuffleEndpoints.size(); i++) { + String endpoint = shuffleEndpoints.get(i); + try { + this.hcClient.withEndpoints(Collections.singletonList(endpoint)); + response = this.hcClient.syncInvokeHttp(request, meta, sdkExchange, genApigHeader()); + break; // 如果请求成功,退出循环 + } catch (ConnectionException e) { + retryCount++; + String exchangeId = SdkExchangeCache.putExchange(sdkExchange); + logger.error("request failed, exchangeId: " + exchangeId + " endpoint: " + endpoint, + " message: " + e.getMessage() + " retry times: " + retryCount); + if (i == shuffleEndpoints.size() - 1) { + throw e; + } + } + } + + return response; + } + + @Override + public AsyncInvokeFunctionResponse asyncInvokeFunction(AsyncInvokeFunctionRequest request) { + return invokeFunctionWithRetries(request, FunctionGraphMeta.asyncInvokeFunction, AsyncInvokeFunctionResponse.class); + } + + @Override + public InvokeFunctionResponse invokeFunction(InvokeFunctionRequest request) { + return invokeFunctionWithRetries(request, FunctionGraphMeta.invokeFunction, InvokeFunctionResponse.class); + } + private Map genApigHeader() { + Map extraHeaders = new HashMap<>(); + if (domainName == null) { + return new HashMap<>(); + } + String host = domainName.replace(Constants.HTTPS_SCHEME + "://", ""); + extraHeaders.put(Constants.HOST, host); + return extraHeaders; + } + +} diff --git a/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/region/FunctionGraphTenantRegion.java b/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/region/FunctionGraphTenantRegion.java new file mode 100644 index 0000000000..084af584f6 --- /dev/null +++ b/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/region/FunctionGraphTenantRegion.java @@ -0,0 +1,126 @@ +/* + * 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.functiongraph.v2.region; + +import java.net.InetAddress; +import java.net.UnknownHostException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.stream.Collectors; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import com.huaweicloud.sdk.core.Constants; +import com.huaweicloud.sdk.core.region.Region; +import com.huaweicloud.sdk.core.utils.StringUtils; + +public class FunctionGraphTenantRegion { + private static final Logger logger = LoggerFactory.getLogger(FunctionGraphTenantRegion.class); + + static { + System.setProperty("sun.net.spi.nameservice.provider.1", "sun,dns"); + } + + private static final Map REGION_AFTER_INIT = new HashMap<>(); + + private static final Object LOCK = new Object(); + + /** + * single instance cache + * @param regionId region id + * @return pre-render region + */ + public static Region valueOf(String regionId) { + if (StringUtils.isEmpty(regionId)) { + throw new IllegalArgumentException("Unexpected empty parameter: regionId."); + } + Region result = (Region) REGION_AFTER_INIT.get(regionId); + if (Objects.nonNull(result)) { + return result; + } + Region regionOrigin = FunctionGraphRegion.valueOf(regionId); + Region region = phraseTenantRegionUrl(regionOrigin); + // double-checked locking + result = (Region) REGION_AFTER_INIT.get(regionId); + if (Objects.nonNull(result)) { + return result; + } + synchronized (LOCK) { + Region regionAfterInit = processRegion(region); + REGION_AFTER_INIT.put(regionId, regionAfterInit); + return regionAfterInit; + } + } + + private static Region phraseTenantRegionUrl(Region regionOrigin) { + // 重新构造新对象,防止对老对象产生影响 + Region region = new Region(); + region.setId(regionOrigin.getId()); + List endpoints = regionOrigin.getEndpoints(); + List tenantEndpoints = endpoints.stream() + .map(url -> url.replace("functiongraph", "functiongraph-ext")) + .collect(Collectors.toList()); + + region.setEndpoints(tenantEndpoints); + return region; + } + + /** + * parse dns set region endpoint with ip + * @param region region + * @return pre-render region + */ + public static Region processRegion(Region region) { + if (region.getEndpoints() != null && region.getEndpoints().size() > 0) { + List endpoints = parseByDns(region.getEndpoints()); + endpoints.add(region.getEndpoints().get(0)); + region.withEndpointsOverride(endpoints); + } + return region; + } + + private static List parseByDns(List domainNames) { + return domainNames.stream().flatMap(domainName -> parseByDns(domainName).stream()).distinct() + .collect(Collectors.toList()); + } + + private static List parseByDns(String domainName) { + String domainReplace = domainName.replace(Constants.HTTPS_SCHEME + "://", ""); + List records = new ArrayList<>(); + + try { + InetAddress[] inetAddress = InetAddress.getAllByName(domainReplace); + for (InetAddress inetAddressEntry : inetAddress) { + records.add(Constants.HTTPS_SCHEME + "://" + inetAddressEntry.getHostAddress()); + } + } catch (UnknownHostException e) { + logger.error("phrase dns failed,unknown domain name: " + domainName); + } + + return records; + } + +} diff --git a/services/functiongraph/src/test/java/com/huaweicloud/sdk/functiongraph/v2/FunctionGraphTenantClientTest.java b/services/functiongraph/src/test/java/com/huaweicloud/sdk/functiongraph/v2/FunctionGraphTenantClientTest.java new file mode 100644 index 0000000000..a7924d2ffa --- /dev/null +++ b/services/functiongraph/src/test/java/com/huaweicloud/sdk/functiongraph/v2/FunctionGraphTenantClientTest.java @@ -0,0 +1,51 @@ +/* + * 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.functiongraph.v2; + +import com.huaweicloud.sdk.core.auth.BasicCredentials; + +import org.junit.Assert; +import org.junit.Test; + +import java.util.Collections; +import java.util.List; + +public class FunctionGraphTenantClientTest { + + @Test + public void testNewBuilderSuccess() { + BasicCredentials credentials = new BasicCredentials().withAk("ak").withSk("sk").withProjectId("projectId"); + List endpoints = Collections.singletonList("endpoint"); + FunctionGraphClient client = FunctionGraphTenantClient.newBuilder() + .withCredential(credentials) + .withEndpoints(endpoints) + .build(); + Assert.assertFalse(client.hcClient.getHttpConfig().isIgnoreSSLVerification()); + } + + @Test + public void testConstructFunction() { + CustomClientBuilder clientBuilder + = new CustomClientBuilder<>(FunctionGraphTenantClient::new, "GlobalCredentials,BasicCredentials"); + Assert.assertNotNull(clientBuilder); + } +} \ No newline at end of file diff --git a/services/functiongraph/src/test/java/com/huaweicloud/sdk/functiongraph/v2/region/FunctionGraphTenantRegionTest.java b/services/functiongraph/src/test/java/com/huaweicloud/sdk/functiongraph/v2/region/FunctionGraphTenantRegionTest.java new file mode 100644 index 0000000000..cc8c2027b9 --- /dev/null +++ b/services/functiongraph/src/test/java/com/huaweicloud/sdk/functiongraph/v2/region/FunctionGraphTenantRegionTest.java @@ -0,0 +1,49 @@ +/* + * 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.functiongraph.v2.region; + +import com.huaweicloud.sdk.core.region.Region; + +import org.junit.Assert; +import org.junit.Test; + +public class FunctionGraphTenantRegionTest { + @Test + public void testValueOf() { + Region region = FunctionGraphTenantRegion.valueOf("cn-north-4"); + Assert.assertNotNull(region); + } + + @Test + public void testValueOfEmpty() { + Assert.assertThrows(IllegalArgumentException.class, () -> { + FunctionGraphTenantRegion.valueOf(""); + }); + } + + @Test + public void testValueOfNotFound() { + Assert.assertThrows(IllegalArgumentException.class, () -> { + FunctionGraphTenantRegion.valueOf("abc"); + }); + } +} diff --git a/services/ga/pom.xml b/services/ga/pom.xml index 5c2f4e4926..108d9fc766 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-ga - 3.1.110 + 3.1.111 Huawei Cloud SDK for GA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/gaussdb/pom.xml b/services/gaussdb/pom.xml index ec18dc9c98..180196dfdc 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-gaussdb - 3.1.110 + 3.1.111 Huawei Cloud SDK for GAUSSDB 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/gaussdbfornosql/pom.xml b/services/gaussdbfornosql/pom.xml index 7b9d64fa87..20478f3f4c 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-gaussdbfornosql - 3.1.110 + 3.1.111 Huawei Cloud SDK for GAUSSDBFORNOSQL 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/gaussdbforopengauss/pom.xml b/services/gaussdbforopengauss/pom.xml index 9a05ed886f..f19e8b8f9f 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-gaussdbforopengauss - 3.1.110 + 3.1.111 Huawei Cloud SDK for GAUSSDBFOROPENGAUSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/OpenGaussHaOption.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/OpenGaussHaOption.java index 6df21621a9..7388a0444e 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/OpenGaussHaOption.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/OpenGaussHaOption.java @@ -234,6 +234,87 @@ public int hashCode() { private ReplicationModeEnum replicationMode; + /** + * 指定创建实例的产品类型,创建企业版实例时传空值或者enterprise,创建基础版实例时需要指定instance_mode的值为basic,创建生态版实例时需要指定instance_mode的值为ecology。 + */ + public static final class InstanceModeEnum { + + /** + * Enum ENTERPRISE for value: "enterprise" + */ + public static final InstanceModeEnum ENTERPRISE = new InstanceModeEnum("enterprise"); + + /** + * Enum BASIC for value: "basic" + */ + public static final InstanceModeEnum BASIC = new InstanceModeEnum("basic"); + + /** + * Enum ECOLOGY for value: "ecology" + */ + public static final InstanceModeEnum ECOLOGY = new InstanceModeEnum("ecology"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("enterprise", ENTERPRISE); + map.put("basic", BASIC); + map.put("ecology", ECOLOGY); + return Collections.unmodifiableMap(map); + } + + private String value; + + InstanceModeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static InstanceModeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new InstanceModeEnum(value)); + } + + public static InstanceModeEnum 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 InstanceModeEnum) { + return this.value.equals(((InstanceModeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_mode") + + private InstanceModeEnum instanceMode; + public OpenGaussHaOption withMode(ModeEnum mode) { this.mode = mode; return this; @@ -285,6 +366,23 @@ public void setReplicationMode(ReplicationModeEnum replicationMode) { this.replicationMode = replicationMode; } + public OpenGaussHaOption withInstanceMode(InstanceModeEnum instanceMode) { + this.instanceMode = instanceMode; + return this; + } + + /** + * 指定创建实例的产品类型,创建企业版实例时传空值或者enterprise,创建基础版实例时需要指定instance_mode的值为basic,创建生态版实例时需要指定instance_mode的值为ecology。 + * @return instanceMode + */ + public InstanceModeEnum getInstanceMode() { + return instanceMode; + } + + public void setInstanceMode(InstanceModeEnum instanceMode) { + this.instanceMode = instanceMode; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -295,12 +393,13 @@ public boolean equals(java.lang.Object obj) { } OpenGaussHaOption that = (OpenGaussHaOption) obj; return Objects.equals(this.mode, that.mode) && Objects.equals(this.consistency, that.consistency) - && Objects.equals(this.replicationMode, that.replicationMode); + && Objects.equals(this.replicationMode, that.replicationMode) + && Objects.equals(this.instanceMode, that.instanceMode); } @Override public int hashCode() { - return Objects.hash(mode, consistency, replicationMode); + return Objects.hash(mode, consistency, replicationMode, instanceMode); } @Override @@ -310,6 +409,7 @@ public String toString() { sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); sb.append(" consistency: ").append(toIndentedString(consistency)).append("\n"); sb.append(" replicationMode: ").append(toIndentedString(replicationMode)).append("\n"); + sb.append(" instanceMode: ").append(toIndentedString(instanceMode)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/geip/pom.xml b/services/geip/pom.xml index f26f67cc31..578427b662 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-geip - 3.1.110 + 3.1.111 Huawei Cloud SDK for GEIP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/ges/pom.xml b/services/ges/pom.xml index abc02b93c7..54b4f78ea1 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-ges - 3.1.110 + 3.1.111 Huawei Cloud SDK for GES 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/gsl/pom.xml b/services/gsl/pom.xml index 6447fd0f4d..a6bb6b271b 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-gsl - 3.1.110 + 3.1.111 Huawei Cloud SDK for GSL 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/gsl/src/main/java/com/huaweicloud/sdk/gsl/v3/model/ShowSimCardResponse.java b/services/gsl/src/main/java/com/huaweicloud/sdk/gsl/v3/model/ShowSimCardResponse.java index 240672dae4..fb80cda368 100644 --- a/services/gsl/src/main/java/com/huaweicloud/sdk/gsl/v3/model/ShowSimCardResponse.java +++ b/services/gsl/src/main/java/com/huaweicloud/sdk/gsl/v3/model/ShowSimCardResponse.java @@ -310,7 +310,7 @@ public ShowSimCardResponse withDeviceStatus(Integer deviceStatus) { } /** - * 设备状态 + * 设备状态:1.注册 2.重启 3.在线 4.离线 (该参数只有ESIM、VSIM返回, 实体卡返回null) * @return deviceStatus */ public Integer getDeviceStatus() { @@ -327,7 +327,7 @@ public ShowSimCardResponse withDeviceModel(String deviceModel) { } /** - * 设备模组 + * 设备模组 (该参数只有ESIM、VSIM返回, 实体卡返回null) * @return deviceModel */ public String getDeviceModel() { @@ -361,7 +361,7 @@ public ShowSimCardResponse withDeviceStatusDate(OffsetDateTime deviceStatusDate) } /** - * 设备状态变更时间 例如2020-01-31T16:00:00.000Z + * 设备状态变更时间 例如2020-01-31T16:00:00.000Z (该参数只有ESIM、VSIM返回, 实体卡返回null) * @return deviceStatusDate */ public OffsetDateTime getDeviceStatusDate() { @@ -429,7 +429,7 @@ public ShowSimCardResponse withDbm(String dbm) { } /** - * 信号强度 + * 信号强度 (该参数只有ESIM、VSIM返回, 实体卡返回null) * @return dbm */ public String getDbm() { @@ -446,7 +446,7 @@ public ShowSimCardResponse withSignalLevel(String signalLevel) { } /** - * 信号等级:1.差 2.良 3.良 4.优(该参数只有eSIM,vSIM返回,实体卡不返回) + * 信号等级:1.差 2.良 3.良 4.优 (该参数只有ESIM、VSIM返回, 实体卡返回null) * @return signalLevel */ public String getSignalLevel() { diff --git a/services/gsl/src/main/java/com/huaweicloud/sdk/gsl/v3/model/SimDeviceVO.java b/services/gsl/src/main/java/com/huaweicloud/sdk/gsl/v3/model/SimDeviceVO.java index b97e78987b..dd1f2e9c9d 100644 --- a/services/gsl/src/main/java/com/huaweicloud/sdk/gsl/v3/model/SimDeviceVO.java +++ b/services/gsl/src/main/java/com/huaweicloud/sdk/gsl/v3/model/SimDeviceVO.java @@ -309,7 +309,7 @@ public SimDeviceVO withDeviceStatus(Integer deviceStatus) { } /** - * 设备状态 + * 设备状态:1.注册 2.重启 3.在线 4.离线 (该参数只有ESIM、VSIM返回, 实体卡返回null) * @return deviceStatus */ public Integer getDeviceStatus() { @@ -326,7 +326,7 @@ public SimDeviceVO withDeviceModel(String deviceModel) { } /** - * 设备模组 + * 设备模组 (该参数只有ESIM、VSIM返回, 实体卡返回null) * @return deviceModel */ public String getDeviceModel() { @@ -360,7 +360,7 @@ public SimDeviceVO withDeviceStatusDate(OffsetDateTime deviceStatusDate) { } /** - * 设备状态变更时间 例如2020-01-31T16:00:00.000Z + * 设备状态变更时间 例如2020-01-31T16:00:00.000Z (该参数只有ESIM、VSIM返回, 实体卡返回null) * @return deviceStatusDate */ public OffsetDateTime getDeviceStatusDate() { @@ -428,7 +428,7 @@ public SimDeviceVO withDbm(String dbm) { } /** - * 信号强度 + * 信号强度 (该参数只有ESIM、VSIM返回, 实体卡返回null) * @return dbm */ public String getDbm() { @@ -445,7 +445,7 @@ public SimDeviceVO withSignalLevel(String signalLevel) { } /** - * 信号等级:1.差 2.良 3.良 4.优(该参数只有eSIM,vSIM返回,实体卡不返回) + * 信号等级:1.差 2.良 3.良 4.优 (该参数只有ESIM、VSIM返回, 实体卡返回null) * @return signalLevel */ public String getSignalLevel() { diff --git a/services/hilens/pom.xml b/services/hilens/pom.xml index a652d92040..c29b1dafe1 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-hilens - 3.1.110 + 3.1.111 Huawei Cloud SDK for HILENS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/hss/pom.xml b/services/hss/pom.xml index 20ef3e06da..cfdb3ad24c 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-hss - 3.1.110 + 3.1.111 Huawei Cloud SDK for HSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/iam/pom.xml b/services/iam/pom.xml index bbc769ad5d..962dfd5103 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-iam - 3.1.110 + 3.1.111 Huawei Cloud SDK for IAM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/iamaccessanalyzer/pom.xml b/services/iamaccessanalyzer/pom.xml index ea800b54b3..acf970ba35 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-iamaccessanalyzer - 3.1.110 + 3.1.111 Huawei Cloud SDK for IAMACCESSANALYZER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/identitycenter/pom.xml b/services/identitycenter/pom.xml index 6fa3fd43eb..2a519bdec3 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-identitycenter - 3.1.110 + 3.1.111 Huawei Cloud SDK for IDENTITYCENTER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/identitycenterstore/pom.xml b/services/identitycenterstore/pom.xml index 67efa9a04f..78f803801c 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-identitycenterstore - 3.1.110 + 3.1.111 Huawei Cloud SDK for IDENTITYCENTERSTORE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/identitycenterstore/src/main/java/com/huaweicloud/sdk/identitycenterstore/v1/region/IdentityCenterStoreRegion.java b/services/identitycenterstore/src/main/java/com/huaweicloud/sdk/identitycenterstore/v1/region/IdentityCenterStoreRegion.java index 671cafd8e1..14c4d9a05b 100644 --- a/services/identitycenterstore/src/main/java/com/huaweicloud/sdk/identitycenterstore/v1/region/IdentityCenterStoreRegion.java +++ b/services/identitycenterstore/src/main/java/com/huaweicloud/sdk/identitycenterstore/v1/region/IdentityCenterStoreRegion.java @@ -28,6 +28,34 @@ public class IdentityCenterStoreRegion { public static final Region AP_SOUTHEAST_2 = new Region("ap-southeast-2", "https://identitystore.ap-southeast-2.myhuaweicloud.com"); + public static final Region LA_SOUTH_2 = + new Region("la-south-2", "https://identitystore.la-south-2.myhuaweicloud.com"); + + public static final Region AF_SOUTH_1 = + new Region("af-south-1", "https://identitystore.af-south-1.myhuaweicloud.com"); + + public static final Region AP_SOUTHEAST_1 = + new Region("ap-southeast-1", "https://identitystore.ap-southeast-1.myhuaweicloud.com"); + + public static final Region CN_SOUTH_4 = + new Region("cn-south-4", "https://identitystore.cn-south-4.myhuaweicloud.com"); + + public static final Region ME_EAST_1 = new Region("me-east-1", "https://identitystore.me-east-1.myhuaweicloud.com"); + + public static final Region TR_WEST_1 = new Region("tr-west-1", "https://identitystore.tr-west-1.myhuaweicloud.com"); + + public static final Region LA_NORTH_2 = + new Region("la-north-2", "https://identitystore.la-north-2.myhuaweicloud.com"); + + public static final Region SA_BRAZIL_1 = + new Region("sa-brazil-1", "https://identitystore.sa-brazil-1.myhuaweicloud.com"); + + public static final Region CN_SOUTH_1 = + new Region("cn-south-1", "https://identitystore.cn-south-1.myhuaweicloud.com"); + + public static final Region CN_SOUTHWEST_2 = + new Region("cn-southwest-2", "https://identitystore.cn-southwest-2.myhuaweicloud.com"); + private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("IDENTITYCENTERSTORE"); @@ -40,6 +68,16 @@ private static Map createStaticFields() { map.put("ap-southeast-4", AP_SOUTHEAST_4); map.put("ap-southeast-3", AP_SOUTHEAST_3); map.put("ap-southeast-2", AP_SOUTHEAST_2); + map.put("la-south-2", LA_SOUTH_2); + map.put("af-south-1", AF_SOUTH_1); + map.put("ap-southeast-1", AP_SOUTHEAST_1); + map.put("cn-south-4", CN_SOUTH_4); + map.put("me-east-1", ME_EAST_1); + map.put("tr-west-1", TR_WEST_1); + map.put("la-north-2", LA_NORTH_2); + map.put("sa-brazil-1", SA_BRAZIL_1); + map.put("cn-south-1", CN_SOUTH_1); + map.put("cn-southwest-2", CN_SOUTHWEST_2); return Collections.unmodifiableMap(map); } diff --git a/services/idme/pom.xml b/services/idme/pom.xml index 699a9b7ac0..5a1fce84fc 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-idme - 3.1.110 + 3.1.111 Huawei Cloud SDK for IDME 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/idmeclassicapi/pom.xml b/services/idmeclassicapi/pom.xml index c3825e7e59..3a9607e2c0 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-idmeclassicapi - 3.1.110 + 3.1.111 Huawei Cloud SDK for IDMECLASSICAPI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/iec/pom.xml b/services/iec/pom.xml index 627f76cf4c..8374950eee 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-iec - 3.1.110 + 3.1.111 Huawei Cloud SDK for IEC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/ief/pom.xml b/services/ief/pom.xml index 62f3e7e590..63d418822e 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-ief - 3.1.110 + 3.1.111 Huawei Cloud SDK for IEF 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/image/pom.xml b/services/image/pom.xml index 7942ec0cd8..bd2ebea965 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-image - 3.1.110 + 3.1.111 Huawei Cloud SDK for IMAGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/imagesearch/pom.xml b/services/imagesearch/pom.xml index 1a6817b1c5..fef750db07 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-imagesearch - 3.1.110 + 3.1.111 Huawei Cloud SDK for IMAGESEARCH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/ims/pom.xml b/services/ims/pom.xml index 6b3f44e61e..dfc136f50b 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-ims - 3.1.110 + 3.1.111 Huawei Cloud SDK for IMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/iotanalytics/pom.xml b/services/iotanalytics/pom.xml index bd9fd28f7c..2d93ac526a 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-iotanalytics - 3.1.110 + 3.1.111 Huawei Cloud SDK for IOTANALYTICS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/iotda/pom.xml b/services/iotda/pom.xml index 2b99e37964..782481916c 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-iotda - 3.1.110 + 3.1.111 Huawei Cloud SDK for IOTDA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 junit diff --git a/services/iotdm/pom.xml b/services/iotdm/pom.xml index d4fac6e790..b87966d5d5 100644 --- a/services/iotdm/pom.xml +++ b/services/iotdm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-iotdm - 3.1.110 + 3.1.111 Huawei Cloud SDK for IOTDM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/iotedge/pom.xml b/services/iotedge/pom.xml index 7d028dcb0e..ea74a3d170 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-iotedge - 3.1.110 + 3.1.111 Huawei Cloud SDK for IOTEDGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/ivs/pom.xml b/services/ivs/pom.xml index 6ffaa8b28a..8a47c78157 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-ivs - 3.1.110 + 3.1.111 Huawei Cloud SDK for IVS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/kafka/pom.xml b/services/kafka/pom.xml index dd827812e0..6b3c06c469 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-kafka - 3.1.110 + 3.1.111 Huawei Cloud SDK for KAFKA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/kms/pom.xml b/services/kms/pom.xml index 724ef1487a..7c3ea293b2 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-kms - 3.1.110 + 3.1.111 Huawei Cloud SDK for KMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/kms/src/main/java/com/huaweicloud/sdk/kms/v2/model/CreateDatakeyRequestBody.java b/services/kms/src/main/java/com/huaweicloud/sdk/kms/v2/model/CreateDatakeyRequestBody.java index 77a445a976..0916442797 100644 --- a/services/kms/src/main/java/com/huaweicloud/sdk/kms/v2/model/CreateDatakeyRequestBody.java +++ b/services/kms/src/main/java/com/huaweicloud/sdk/kms/v2/model/CreateDatakeyRequestBody.java @@ -100,6 +100,11 @@ public int hashCode() { private String datakeyLength; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "additional_authenticated_data") + + private String additionalAuthenticatedData; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "sequence") @@ -156,6 +161,23 @@ public void setDatakeyLength(String datakeyLength) { this.datakeyLength = datakeyLength; } + public CreateDatakeyRequestBody withAdditionalAuthenticatedData(String additionalAuthenticatedData) { + this.additionalAuthenticatedData = additionalAuthenticatedData; + return this; + } + + /** + * 身份验证的非敏感额外数据。任意字符串,长度不超过128字节。 + * @return additionalAuthenticatedData + */ + public String getAdditionalAuthenticatedData() { + return additionalAuthenticatedData; + } + + public void setAdditionalAuthenticatedData(String additionalAuthenticatedData) { + this.additionalAuthenticatedData = additionalAuthenticatedData; + } + public CreateDatakeyRequestBody withSequence(String sequence) { this.sequence = sequence; return this; @@ -183,12 +205,14 @@ public boolean equals(java.lang.Object obj) { } CreateDatakeyRequestBody that = (CreateDatakeyRequestBody) obj; return Objects.equals(this.keyId, that.keyId) && Objects.equals(this.keySpec, that.keySpec) - && Objects.equals(this.datakeyLength, that.datakeyLength) && Objects.equals(this.sequence, that.sequence); + && Objects.equals(this.datakeyLength, that.datakeyLength) + && Objects.equals(this.additionalAuthenticatedData, that.additionalAuthenticatedData) + && Objects.equals(this.sequence, that.sequence); } @Override public int hashCode() { - return Objects.hash(keyId, keySpec, datakeyLength, sequence); + return Objects.hash(keyId, keySpec, datakeyLength, additionalAuthenticatedData, sequence); } @Override @@ -198,6 +222,9 @@ public String toString() { sb.append(" keyId: ").append(toIndentedString(keyId)).append("\n"); sb.append(" keySpec: ").append(toIndentedString(keySpec)).append("\n"); sb.append(" datakeyLength: ").append(toIndentedString(datakeyLength)).append("\n"); + sb.append(" additionalAuthenticatedData: ") + .append(toIndentedString(additionalAuthenticatedData)) + .append("\n"); sb.append(" sequence: ").append(toIndentedString(sequence)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/kms/src/main/java/com/huaweicloud/sdk/kms/v2/model/DecryptDataRequestBody.java b/services/kms/src/main/java/com/huaweicloud/sdk/kms/v2/model/DecryptDataRequestBody.java index ec76e7a86f..8d131b2264 100644 --- a/services/kms/src/main/java/com/huaweicloud/sdk/kms/v2/model/DecryptDataRequestBody.java +++ b/services/kms/src/main/java/com/huaweicloud/sdk/kms/v2/model/DecryptDataRequestBody.java @@ -108,6 +108,11 @@ public int hashCode() { private String keyId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "additional_authenticated_data") + + private String additionalAuthenticatedData; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "sequence") @@ -164,6 +169,23 @@ public void setKeyId(String keyId) { this.keyId = keyId; } + public DecryptDataRequestBody withAdditionalAuthenticatedData(String additionalAuthenticatedData) { + this.additionalAuthenticatedData = additionalAuthenticatedData; + return this; + } + + /** + * 身份验证的非敏感额外数据。任意字符串,长度不超过128字节。 + * @return additionalAuthenticatedData + */ + public String getAdditionalAuthenticatedData() { + return additionalAuthenticatedData; + } + + public void setAdditionalAuthenticatedData(String additionalAuthenticatedData) { + this.additionalAuthenticatedData = additionalAuthenticatedData; + } + public DecryptDataRequestBody withSequence(String sequence) { this.sequence = sequence; return this; @@ -192,12 +214,14 @@ public boolean equals(java.lang.Object obj) { DecryptDataRequestBody that = (DecryptDataRequestBody) obj; return Objects.equals(this.cipherText, that.cipherText) && Objects.equals(this.encryptionAlgorithm, that.encryptionAlgorithm) - && Objects.equals(this.keyId, that.keyId) && Objects.equals(this.sequence, that.sequence); + && Objects.equals(this.keyId, that.keyId) + && Objects.equals(this.additionalAuthenticatedData, that.additionalAuthenticatedData) + && Objects.equals(this.sequence, that.sequence); } @Override public int hashCode() { - return Objects.hash(cipherText, encryptionAlgorithm, keyId, sequence); + return Objects.hash(cipherText, encryptionAlgorithm, keyId, additionalAuthenticatedData, sequence); } @Override @@ -207,6 +231,9 @@ public String toString() { sb.append(" cipherText: ").append(toIndentedString(cipherText)).append("\n"); sb.append(" encryptionAlgorithm: ").append(toIndentedString(encryptionAlgorithm)).append("\n"); sb.append(" keyId: ").append(toIndentedString(keyId)).append("\n"); + sb.append(" additionalAuthenticatedData: ") + .append(toIndentedString(additionalAuthenticatedData)) + .append("\n"); sb.append(" sequence: ").append(toIndentedString(sequence)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/kms/src/main/java/com/huaweicloud/sdk/kms/v2/model/DecryptDatakeyRequestBody.java b/services/kms/src/main/java/com/huaweicloud/sdk/kms/v2/model/DecryptDatakeyRequestBody.java index c46ac3b9f4..e461ff43fa 100644 --- a/services/kms/src/main/java/com/huaweicloud/sdk/kms/v2/model/DecryptDatakeyRequestBody.java +++ b/services/kms/src/main/java/com/huaweicloud/sdk/kms/v2/model/DecryptDatakeyRequestBody.java @@ -25,6 +25,11 @@ public class DecryptDatakeyRequestBody { private String datakeyCipherLength; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "additional_authenticated_data") + + private String additionalAuthenticatedData; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "sequence") @@ -81,6 +86,23 @@ public void setDatakeyCipherLength(String datakeyCipherLength) { this.datakeyCipherLength = datakeyCipherLength; } + public DecryptDatakeyRequestBody withAdditionalAuthenticatedData(String additionalAuthenticatedData) { + this.additionalAuthenticatedData = additionalAuthenticatedData; + return this; + } + + /** + * 身份验证的非敏感额外数据。任意字符串,长度不超过128字节。 + * @return additionalAuthenticatedData + */ + public String getAdditionalAuthenticatedData() { + return additionalAuthenticatedData; + } + + public void setAdditionalAuthenticatedData(String additionalAuthenticatedData) { + this.additionalAuthenticatedData = additionalAuthenticatedData; + } + public DecryptDatakeyRequestBody withSequence(String sequence) { this.sequence = sequence; return this; @@ -109,12 +131,13 @@ public boolean equals(java.lang.Object obj) { DecryptDatakeyRequestBody that = (DecryptDatakeyRequestBody) obj; return Objects.equals(this.keyId, that.keyId) && Objects.equals(this.cipherText, that.cipherText) && Objects.equals(this.datakeyCipherLength, that.datakeyCipherLength) + && Objects.equals(this.additionalAuthenticatedData, that.additionalAuthenticatedData) && Objects.equals(this.sequence, that.sequence); } @Override public int hashCode() { - return Objects.hash(keyId, cipherText, datakeyCipherLength, sequence); + return Objects.hash(keyId, cipherText, datakeyCipherLength, additionalAuthenticatedData, sequence); } @Override @@ -124,6 +147,9 @@ public String toString() { sb.append(" keyId: ").append(toIndentedString(keyId)).append("\n"); sb.append(" cipherText: ").append(toIndentedString(cipherText)).append("\n"); sb.append(" datakeyCipherLength: ").append(toIndentedString(datakeyCipherLength)).append("\n"); + sb.append(" additionalAuthenticatedData: ") + .append(toIndentedString(additionalAuthenticatedData)) + .append("\n"); sb.append(" sequence: ").append(toIndentedString(sequence)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/kms/src/main/java/com/huaweicloud/sdk/kms/v2/model/EncryptDataRequestBody.java b/services/kms/src/main/java/com/huaweicloud/sdk/kms/v2/model/EncryptDataRequestBody.java index 99166dcb87..a545a7c75a 100644 --- a/services/kms/src/main/java/com/huaweicloud/sdk/kms/v2/model/EncryptDataRequestBody.java +++ b/services/kms/src/main/java/com/huaweicloud/sdk/kms/v2/model/EncryptDataRequestBody.java @@ -108,6 +108,11 @@ public int hashCode() { private EncryptionAlgorithmEnum encryptionAlgorithm; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "additional_authenticated_data") + + private String additionalAuthenticatedData; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "sequence") @@ -164,6 +169,23 @@ public void setEncryptionAlgorithm(EncryptionAlgorithmEnum encryptionAlgorithm) this.encryptionAlgorithm = encryptionAlgorithm; } + public EncryptDataRequestBody withAdditionalAuthenticatedData(String additionalAuthenticatedData) { + this.additionalAuthenticatedData = additionalAuthenticatedData; + return this; + } + + /** + * 身份验证的非敏感额外数据。任意字符串,长度不超过128字节。 + * @return additionalAuthenticatedData + */ + public String getAdditionalAuthenticatedData() { + return additionalAuthenticatedData; + } + + public void setAdditionalAuthenticatedData(String additionalAuthenticatedData) { + this.additionalAuthenticatedData = additionalAuthenticatedData; + } + public EncryptDataRequestBody withSequence(String sequence) { this.sequence = sequence; return this; @@ -192,12 +214,13 @@ public boolean equals(java.lang.Object obj) { EncryptDataRequestBody that = (EncryptDataRequestBody) obj; return Objects.equals(this.keyId, that.keyId) && Objects.equals(this.plainText, that.plainText) && Objects.equals(this.encryptionAlgorithm, that.encryptionAlgorithm) + && Objects.equals(this.additionalAuthenticatedData, that.additionalAuthenticatedData) && Objects.equals(this.sequence, that.sequence); } @Override public int hashCode() { - return Objects.hash(keyId, plainText, encryptionAlgorithm, sequence); + return Objects.hash(keyId, plainText, encryptionAlgorithm, additionalAuthenticatedData, sequence); } @Override @@ -207,6 +230,9 @@ public String toString() { sb.append(" keyId: ").append(toIndentedString(keyId)).append("\n"); sb.append(" plainText: ").append(toIndentedString(plainText)).append("\n"); sb.append(" encryptionAlgorithm: ").append(toIndentedString(encryptionAlgorithm)).append("\n"); + sb.append(" additionalAuthenticatedData: ") + .append(toIndentedString(additionalAuthenticatedData)) + .append("\n"); sb.append(" sequence: ").append(toIndentedString(sequence)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/kms/src/main/java/com/huaweicloud/sdk/kms/v2/model/EncryptDatakeyRequestBody.java b/services/kms/src/main/java/com/huaweicloud/sdk/kms/v2/model/EncryptDatakeyRequestBody.java index 4a399ad3ab..14fde607de 100644 --- a/services/kms/src/main/java/com/huaweicloud/sdk/kms/v2/model/EncryptDatakeyRequestBody.java +++ b/services/kms/src/main/java/com/huaweicloud/sdk/kms/v2/model/EncryptDatakeyRequestBody.java @@ -25,6 +25,11 @@ public class EncryptDatakeyRequestBody { private String datakeyPlainLength; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "additional_authenticated_data") + + private String additionalAuthenticatedData; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "sequence") @@ -81,6 +86,23 @@ public void setDatakeyPlainLength(String datakeyPlainLength) { this.datakeyPlainLength = datakeyPlainLength; } + public EncryptDatakeyRequestBody withAdditionalAuthenticatedData(String additionalAuthenticatedData) { + this.additionalAuthenticatedData = additionalAuthenticatedData; + return this; + } + + /** + * 身份验证的非敏感额外数据。任意字符串,长度不超过128字节。 + * @return additionalAuthenticatedData + */ + public String getAdditionalAuthenticatedData() { + return additionalAuthenticatedData; + } + + public void setAdditionalAuthenticatedData(String additionalAuthenticatedData) { + this.additionalAuthenticatedData = additionalAuthenticatedData; + } + public EncryptDatakeyRequestBody withSequence(String sequence) { this.sequence = sequence; return this; @@ -109,12 +131,13 @@ public boolean equals(java.lang.Object obj) { EncryptDatakeyRequestBody that = (EncryptDatakeyRequestBody) obj; return Objects.equals(this.keyId, that.keyId) && Objects.equals(this.plainText, that.plainText) && Objects.equals(this.datakeyPlainLength, that.datakeyPlainLength) + && Objects.equals(this.additionalAuthenticatedData, that.additionalAuthenticatedData) && Objects.equals(this.sequence, that.sequence); } @Override public int hashCode() { - return Objects.hash(keyId, plainText, datakeyPlainLength, sequence); + return Objects.hash(keyId, plainText, datakeyPlainLength, additionalAuthenticatedData, sequence); } @Override @@ -124,6 +147,9 @@ public String toString() { sb.append(" keyId: ").append(toIndentedString(keyId)).append("\n"); sb.append(" plainText: ").append(toIndentedString(plainText)).append("\n"); sb.append(" datakeyPlainLength: ").append(toIndentedString(datakeyPlainLength)).append("\n"); + sb.append(" additionalAuthenticatedData: ") + .append(toIndentedString(additionalAuthenticatedData)) + .append("\n"); sb.append(" sequence: ").append(toIndentedString(sequence)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/koomap/pom.xml b/services/koomap/pom.xml index 69bf5e42d6..3278180a56 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-koomap - 3.1.110 + 3.1.111 Huawei Cloud SDK for KOOMAP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/koomessage/pom.xml b/services/koomessage/pom.xml index ee6125da37..bb5f2cf255 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-koomessage - 3.1.110 + 3.1.111 Huawei Cloud SDK for KOOMESSAGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/koophone/pom.xml b/services/koophone/pom.xml index 44e67b0e2b..9448bfb6ec 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-koophone - 3.1.110 + 3.1.111 Huawei Cloud SDK for KOOPHONE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/kps/pom.xml b/services/kps/pom.xml index 9f35ac2c77..1280cad428 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-kps - 3.1.110 + 3.1.111 Huawei Cloud SDK for KPS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/kvs/pom.xml b/services/kvs/pom.xml index 772b5799a7..216f6e2342 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-kvs - 3.1.110 + 3.1.111 Huawei Cloud SDK for KVS 4.0.0 @@ -17,12 +17,12 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-core-bson - 3.1.110 + 3.1.111 diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/KvsCredentials.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/KvsCredentials.java index 9e41c8ad90..0a9ce31bea 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/KvsCredentials.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/KvsCredentials.java @@ -12,9 +12,6 @@ public class KvsCredentials extends BasicCredentials { private boolean enableBodySignature = true; - public KvsCredentials() { - } - @Override public KvsCredentials withProjectId(String projectId) { this.projectId = projectId; diff --git a/services/lakeformation/pom.xml b/services/lakeformation/pom.xml index f85e0e53c1..c45306e310 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-lakeformation - 3.1.110 + 3.1.111 Huawei Cloud SDK for LAKEFORMATION 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/live/pom.xml b/services/live/pom.xml index adaf9b1df7..7638f636d7 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-live - 3.1.110 + 3.1.111 Huawei Cloud SDK for LIVE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/lts/pom.xml b/services/lts/pom.xml index d68a10fdf0..fbf46eed14 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-lts - 3.1.110 + 3.1.111 Huawei Cloud SDK for LTS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/mapds/pom.xml b/services/mapds/pom.xml index 6f5ca720bf..73083487c6 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-mapds - 3.1.110 + 3.1.111 Huawei Cloud SDK for MAPDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/mas/pom.xml b/services/mas/pom.xml index 2fc950daf8..a4344bcd9e 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-mas - 3.1.110 + 3.1.111 Huawei Cloud SDK for MAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/meeting/pom.xml b/services/meeting/pom.xml index 76fa26e6aa..44224995d6 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-meeting - 3.1.110 + 3.1.111 Huawei Cloud SDK for MEETING 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/MeetingAsyncClient.java b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/MeetingAsyncClient.java index e1255af41c..fc52614a45 100644 --- a/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/MeetingAsyncClient.java +++ b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/MeetingAsyncClient.java @@ -3,6 +3,8 @@ import com.huaweicloud.sdk.core.ClientBuilder; import com.huaweicloud.sdk.core.HcClient; import com.huaweicloud.sdk.core.invoker.AsyncInvoker; +import com.huaweicloud.sdk.meeting.v1.model.AddAppIdRequest; +import com.huaweicloud.sdk.meeting.v1.model.AddAppIdResponse; import com.huaweicloud.sdk.meeting.v1.model.AddCorpAdminRequest; import com.huaweicloud.sdk.meeting.v1.model.AddCorpAdminResponse; import com.huaweicloud.sdk.meeting.v1.model.AddCorpRequest; @@ -45,6 +47,8 @@ import com.huaweicloud.sdk.meeting.v1.model.BatchDeleteUsersResponse; import com.huaweicloud.sdk.meeting.v1.model.BatchHandRequest; import com.huaweicloud.sdk.meeting.v1.model.BatchHandResponse; +import com.huaweicloud.sdk.meeting.v1.model.BatchSearchAppIdRequest; +import com.huaweicloud.sdk.meeting.v1.model.BatchSearchAppIdResponse; import com.huaweicloud.sdk.meeting.v1.model.BatchShowUserDetailsRequest; import com.huaweicloud.sdk.meeting.v1.model.BatchShowUserDetailsResponse; import com.huaweicloud.sdk.meeting.v1.model.BatchUpdateDevicesStatusRequest; @@ -85,6 +89,8 @@ import com.huaweicloud.sdk.meeting.v1.model.CreateWebSocketTokenResponse; import com.huaweicloud.sdk.meeting.v1.model.CreateWebinarRequest; import com.huaweicloud.sdk.meeting.v1.model.CreateWebinarResponse; +import com.huaweicloud.sdk.meeting.v1.model.DeleteAppIdRequest; +import com.huaweicloud.sdk.meeting.v1.model.DeleteAppIdResponse; import com.huaweicloud.sdk.meeting.v1.model.DeleteAttendeesRequest; import com.huaweicloud.sdk.meeting.v1.model.DeleteAttendeesResponse; import com.huaweicloud.sdk.meeting.v1.model.DeleteCorpRequest; @@ -151,6 +157,8 @@ import com.huaweicloud.sdk.meeting.v1.model.RenameParticipantResponse; import com.huaweicloud.sdk.meeting.v1.model.ResetActivecodeRequest; import com.huaweicloud.sdk.meeting.v1.model.ResetActivecodeResponse; +import com.huaweicloud.sdk.meeting.v1.model.ResetAppKeyRequest; +import com.huaweicloud.sdk.meeting.v1.model.ResetAppKeyResponse; import com.huaweicloud.sdk.meeting.v1.model.ResetPwdByAdminRequest; import com.huaweicloud.sdk.meeting.v1.model.ResetPwdByAdminResponse; import com.huaweicloud.sdk.meeting.v1.model.ResetPwdRequest; @@ -327,6 +335,8 @@ import com.huaweicloud.sdk.meeting.v1.model.StopMeetingResponse; import com.huaweicloud.sdk.meeting.v1.model.SwitchModeRequest; import com.huaweicloud.sdk.meeting.v1.model.SwitchModeResponse; +import com.huaweicloud.sdk.meeting.v1.model.UpdateAppIdRequest; +import com.huaweicloud.sdk.meeting.v1.model.UpdateAppIdResponse; import com.huaweicloud.sdk.meeting.v1.model.UpdateContactRequest; import com.huaweicloud.sdk.meeting.v1.model.UpdateContactResponse; import com.huaweicloud.sdk.meeting.v1.model.UpdateCorpBasicInfoRequest; @@ -388,6 +398,34 @@ public static ClientBuilder newBuilder() { return clientBuilder; } + /** + * 添加企业应用 + * + * 企业默认管理员添加应用,添加应用后,记录返回信息,后续可通过[[执行App ID鉴权](https://support.huaweicloud.com/api-meeting/meeting_21_0311.html)](tag:hws) [[执行App ID鉴权](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0311.html)](tag:hk)获取accessToken + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddAppIdRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture addAppIdAsync(AddAppIdRequest request) { + return hcClient.asyncInvokeHttp(request, MeetingMeta.addAppId); + } + + /** + * 添加企业应用 + * + * 企业默认管理员添加应用,添加应用后,记录返回信息,后续可通过[[执行App ID鉴权](https://support.huaweicloud.com/api-meeting/meeting_21_0311.html)](tag:hws) [[执行App ID鉴权](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0311.html)](tag:hk)获取accessToken + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddAppIdRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker addAppIdAsyncInvoker(AddAppIdRequest request) { + return new AsyncInvoker<>(request, MeetingMeta.addAppId, hcClient); + } + /** * SP管理员创建企业 * @@ -998,6 +1036,35 @@ public AsyncInvoker batchHandAsyncInvoker(B return new AsyncInvoker<>(request, MeetingMeta.batchHand, hcClient); } + /** + * 分页查询企业应用 + * + * 企业默认管理员分页查询企业应用 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchSearchAppIdRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture batchSearchAppIdAsync(BatchSearchAppIdRequest request) { + return hcClient.asyncInvokeHttp(request, MeetingMeta.batchSearchAppId); + } + + /** + * 分页查询企业应用 + * + * 企业默认管理员分页查询企业应用 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchSearchAppIdRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker batchSearchAppIdAsyncInvoker( + BatchSearchAppIdRequest request) { + return new AsyncInvoker<>(request, MeetingMeta.batchSearchAppId, hcClient); + } + /** * 批量查询用户详情 * @@ -1590,6 +1657,34 @@ public AsyncInvoker createWebinarAs return new AsyncInvoker<>(request, MeetingMeta.createWebinar, hcClient); } + /** + * 删除企业应用 + * + * 企业管理员删除企业应用 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteAppIdRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteAppIdAsync(DeleteAppIdRequest request) { + return hcClient.asyncInvokeHttp(request, MeetingMeta.deleteAppId); + } + + /** + * 删除企业应用 + * + * 企业管理员删除企业应用 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteAppIdRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteAppIdAsyncInvoker(DeleteAppIdRequest request) { + return new AsyncInvoker<>(request, MeetingMeta.deleteAppId, hcClient); + } + /** * 删除与会者 * @@ -2548,6 +2643,34 @@ public AsyncInvoker resetActive return new AsyncInvoker<>(request, MeetingMeta.resetActivecode, hcClient); } + /** + * 重置企业应用appkey + * + * 企业默认管理员重置企业应用appkey + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ResetAppKeyRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture resetAppKeyAsync(ResetAppKeyRequest request) { + return hcClient.asyncInvokeHttp(request, MeetingMeta.resetAppKey); + } + + /** + * 重置企业应用appkey + * + * 企业默认管理员重置企业应用appkey + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ResetAppKeyRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker resetAppKeyAsyncInvoker(ResetAppKeyRequest request) { + return new AsyncInvoker<>(request, MeetingMeta.resetAppKey, hcClient); + } + /** * 用户重置密码 * @@ -4843,6 +4966,34 @@ public AsyncInvoker switchModeAsyncInvoke return new AsyncInvoker<>(request, MeetingMeta.switchMode, hcClient); } + /** + * 修改企业应用 + * + * 企业默认管理员修改企业应用 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateAppIdRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateAppIdAsync(UpdateAppIdRequest request) { + return hcClient.asyncInvokeHttp(request, MeetingMeta.updateAppId); + } + + /** + * 修改企业应用 + * + * 企业默认管理员修改企业应用 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateAppIdRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateAppIdAsyncInvoker(UpdateAppIdRequest request) { + return new AsyncInvoker<>(request, MeetingMeta.updateAppId, hcClient); + } + /** * 修改手机或邮箱 * diff --git a/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/MeetingClient.java b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/MeetingClient.java index 687cfdabe1..e24891a32f 100644 --- a/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/MeetingClient.java +++ b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/MeetingClient.java @@ -3,6 +3,8 @@ import com.huaweicloud.sdk.core.ClientBuilder; import com.huaweicloud.sdk.core.HcClient; import com.huaweicloud.sdk.core.invoker.SyncInvoker; +import com.huaweicloud.sdk.meeting.v1.model.AddAppIdRequest; +import com.huaweicloud.sdk.meeting.v1.model.AddAppIdResponse; import com.huaweicloud.sdk.meeting.v1.model.AddCorpAdminRequest; import com.huaweicloud.sdk.meeting.v1.model.AddCorpAdminResponse; import com.huaweicloud.sdk.meeting.v1.model.AddCorpRequest; @@ -45,6 +47,8 @@ import com.huaweicloud.sdk.meeting.v1.model.BatchDeleteUsersResponse; import com.huaweicloud.sdk.meeting.v1.model.BatchHandRequest; import com.huaweicloud.sdk.meeting.v1.model.BatchHandResponse; +import com.huaweicloud.sdk.meeting.v1.model.BatchSearchAppIdRequest; +import com.huaweicloud.sdk.meeting.v1.model.BatchSearchAppIdResponse; import com.huaweicloud.sdk.meeting.v1.model.BatchShowUserDetailsRequest; import com.huaweicloud.sdk.meeting.v1.model.BatchShowUserDetailsResponse; import com.huaweicloud.sdk.meeting.v1.model.BatchUpdateDevicesStatusRequest; @@ -85,6 +89,8 @@ import com.huaweicloud.sdk.meeting.v1.model.CreateWebSocketTokenResponse; import com.huaweicloud.sdk.meeting.v1.model.CreateWebinarRequest; import com.huaweicloud.sdk.meeting.v1.model.CreateWebinarResponse; +import com.huaweicloud.sdk.meeting.v1.model.DeleteAppIdRequest; +import com.huaweicloud.sdk.meeting.v1.model.DeleteAppIdResponse; import com.huaweicloud.sdk.meeting.v1.model.DeleteAttendeesRequest; import com.huaweicloud.sdk.meeting.v1.model.DeleteAttendeesResponse; import com.huaweicloud.sdk.meeting.v1.model.DeleteCorpRequest; @@ -151,6 +157,8 @@ import com.huaweicloud.sdk.meeting.v1.model.RenameParticipantResponse; import com.huaweicloud.sdk.meeting.v1.model.ResetActivecodeRequest; import com.huaweicloud.sdk.meeting.v1.model.ResetActivecodeResponse; +import com.huaweicloud.sdk.meeting.v1.model.ResetAppKeyRequest; +import com.huaweicloud.sdk.meeting.v1.model.ResetAppKeyResponse; import com.huaweicloud.sdk.meeting.v1.model.ResetPwdByAdminRequest; import com.huaweicloud.sdk.meeting.v1.model.ResetPwdByAdminResponse; import com.huaweicloud.sdk.meeting.v1.model.ResetPwdRequest; @@ -327,6 +335,8 @@ import com.huaweicloud.sdk.meeting.v1.model.StopMeetingResponse; import com.huaweicloud.sdk.meeting.v1.model.SwitchModeRequest; import com.huaweicloud.sdk.meeting.v1.model.SwitchModeResponse; +import com.huaweicloud.sdk.meeting.v1.model.UpdateAppIdRequest; +import com.huaweicloud.sdk.meeting.v1.model.UpdateAppIdResponse; import com.huaweicloud.sdk.meeting.v1.model.UpdateContactRequest; import com.huaweicloud.sdk.meeting.v1.model.UpdateContactResponse; import com.huaweicloud.sdk.meeting.v1.model.UpdateCorpBasicInfoRequest; @@ -385,6 +395,34 @@ public static ClientBuilder newBuilder() { return clientBuilder; } + /** + * 添加企业应用 + * + * 企业默认管理员添加应用,添加应用后,记录返回信息,后续可通过[[执行App ID鉴权](https://support.huaweicloud.com/api-meeting/meeting_21_0311.html)](tag:hws) [[执行App ID鉴权](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0311.html)](tag:hk)获取accessToken + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddAppIdRequest 请求对象 + * @return AddAppIdResponse + */ + public AddAppIdResponse addAppId(AddAppIdRequest request) { + return hcClient.syncInvokeHttp(request, MeetingMeta.addAppId); + } + + /** + * 添加企业应用 + * + * 企业默认管理员添加应用,添加应用后,记录返回信息,后续可通过[[执行App ID鉴权](https://support.huaweicloud.com/api-meeting/meeting_21_0311.html)](tag:hws) [[执行App ID鉴权](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0311.html)](tag:hk)获取accessToken + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddAppIdRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker addAppIdInvoker(AddAppIdRequest request) { + return new SyncInvoker<>(request, MeetingMeta.addAppId, hcClient); + } + /** * SP管理员创建企业 * @@ -988,6 +1026,35 @@ public SyncInvoker batchHandInvoker(BatchHa return new SyncInvoker<>(request, MeetingMeta.batchHand, hcClient); } + /** + * 分页查询企业应用 + * + * 企业默认管理员分页查询企业应用 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchSearchAppIdRequest 请求对象 + * @return BatchSearchAppIdResponse + */ + public BatchSearchAppIdResponse batchSearchAppId(BatchSearchAppIdRequest request) { + return hcClient.syncInvokeHttp(request, MeetingMeta.batchSearchAppId); + } + + /** + * 分页查询企业应用 + * + * 企业默认管理员分页查询企业应用 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchSearchAppIdRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker batchSearchAppIdInvoker( + BatchSearchAppIdRequest request) { + return new SyncInvoker<>(request, MeetingMeta.batchSearchAppId, hcClient); + } + /** * 批量查询用户详情 * @@ -1565,6 +1632,34 @@ public SyncInvoker createWebinarInv return new SyncInvoker<>(request, MeetingMeta.createWebinar, hcClient); } + /** + * 删除企业应用 + * + * 企业管理员删除企业应用 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteAppIdRequest 请求对象 + * @return DeleteAppIdResponse + */ + public DeleteAppIdResponse deleteAppId(DeleteAppIdRequest request) { + return hcClient.syncInvokeHttp(request, MeetingMeta.deleteAppId); + } + + /** + * 删除企业应用 + * + * 企业管理员删除企业应用 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteAppIdRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteAppIdInvoker(DeleteAppIdRequest request) { + return new SyncInvoker<>(request, MeetingMeta.deleteAppId, hcClient); + } + /** * 删除与会者 * @@ -2517,6 +2612,34 @@ public SyncInvoker resetActivec return new SyncInvoker<>(request, MeetingMeta.resetActivecode, hcClient); } + /** + * 重置企业应用appkey + * + * 企业默认管理员重置企业应用appkey + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ResetAppKeyRequest 请求对象 + * @return ResetAppKeyResponse + */ + public ResetAppKeyResponse resetAppKey(ResetAppKeyRequest request) { + return hcClient.syncInvokeHttp(request, MeetingMeta.resetAppKey); + } + + /** + * 重置企业应用appkey + * + * 企业默认管理员重置企业应用appkey + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ResetAppKeyRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker resetAppKeyInvoker(ResetAppKeyRequest request) { + return new SyncInvoker<>(request, MeetingMeta.resetAppKey, hcClient); + } + /** * 用户重置密码 * @@ -4790,6 +4913,34 @@ public SyncInvoker switchModeInvoker(Swit return new SyncInvoker<>(request, MeetingMeta.switchMode, hcClient); } + /** + * 修改企业应用 + * + * 企业默认管理员修改企业应用 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateAppIdRequest 请求对象 + * @return UpdateAppIdResponse + */ + public UpdateAppIdResponse updateAppId(UpdateAppIdRequest request) { + return hcClient.syncInvokeHttp(request, MeetingMeta.updateAppId); + } + + /** + * 修改企业应用 + * + * 企业默认管理员修改企业应用 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateAppIdRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateAppIdInvoker(UpdateAppIdRequest request) { + return new SyncInvoker<>(request, MeetingMeta.updateAppId, hcClient); + } + /** * 修改手机或邮箱 * diff --git a/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/MeetingMeta.java b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/MeetingMeta.java index c19afec4b9..6b8361f68f 100644 --- a/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/MeetingMeta.java +++ b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/MeetingMeta.java @@ -6,6 +6,9 @@ import com.huaweicloud.sdk.core.http.HttpRequestDef; import com.huaweicloud.sdk.core.http.LocationType; import com.huaweicloud.sdk.meeting.v1.model.ActiveDTO; +import com.huaweicloud.sdk.meeting.v1.model.AddAppIdRequest; +import com.huaweicloud.sdk.meeting.v1.model.AddAppIdRequestBody; +import com.huaweicloud.sdk.meeting.v1.model.AddAppIdResponse; import com.huaweicloud.sdk.meeting.v1.model.AddCorpAdminRequest; import com.huaweicloud.sdk.meeting.v1.model.AddCorpAdminResponse; import com.huaweicloud.sdk.meeting.v1.model.AddCorpDTO; @@ -55,6 +58,8 @@ import com.huaweicloud.sdk.meeting.v1.model.BatchDeleteUsersResponse; import com.huaweicloud.sdk.meeting.v1.model.BatchHandRequest; import com.huaweicloud.sdk.meeting.v1.model.BatchHandResponse; +import com.huaweicloud.sdk.meeting.v1.model.BatchSearchAppIdRequest; +import com.huaweicloud.sdk.meeting.v1.model.BatchSearchAppIdResponse; import com.huaweicloud.sdk.meeting.v1.model.BatchShowUserDetailsRequest; import com.huaweicloud.sdk.meeting.v1.model.BatchShowUserDetailsResponse; import com.huaweicloud.sdk.meeting.v1.model.BatchUpdateDevicesStatusRequest; @@ -99,6 +104,8 @@ import com.huaweicloud.sdk.meeting.v1.model.CreateWebSocketTokenResponse; import com.huaweicloud.sdk.meeting.v1.model.CreateWebinarRequest; import com.huaweicloud.sdk.meeting.v1.model.CreateWebinarResponse; +import com.huaweicloud.sdk.meeting.v1.model.DeleteAppIdRequest; +import com.huaweicloud.sdk.meeting.v1.model.DeleteAppIdResponse; import com.huaweicloud.sdk.meeting.v1.model.DeleteAttendeesRequest; import com.huaweicloud.sdk.meeting.v1.model.DeleteAttendeesResponse; import com.huaweicloud.sdk.meeting.v1.model.DeleteCorpRequest; @@ -181,6 +188,8 @@ import com.huaweicloud.sdk.meeting.v1.model.RenameParticipantResponse; import com.huaweicloud.sdk.meeting.v1.model.ResetActivecodeRequest; import com.huaweicloud.sdk.meeting.v1.model.ResetActivecodeResponse; +import com.huaweicloud.sdk.meeting.v1.model.ResetAppKeyRequest; +import com.huaweicloud.sdk.meeting.v1.model.ResetAppKeyResponse; import com.huaweicloud.sdk.meeting.v1.model.ResetPwdByAdminRequest; import com.huaweicloud.sdk.meeting.v1.model.ResetPwdByAdminResponse; import com.huaweicloud.sdk.meeting.v1.model.ResetPwdReqDTOV1; @@ -400,6 +409,9 @@ import com.huaweicloud.sdk.meeting.v1.model.StopMeetingResponse; import com.huaweicloud.sdk.meeting.v1.model.SwitchModeRequest; import com.huaweicloud.sdk.meeting.v1.model.SwitchModeResponse; +import com.huaweicloud.sdk.meeting.v1.model.UpdateAppIdRequest; +import com.huaweicloud.sdk.meeting.v1.model.UpdateAppIdRequestBody; +import com.huaweicloud.sdk.meeting.v1.model.UpdateAppIdResponse; import com.huaweicloud.sdk.meeting.v1.model.UpdateContactRequest; import com.huaweicloud.sdk.meeting.v1.model.UpdateContactResponse; import com.huaweicloud.sdk.meeting.v1.model.UpdateCorpBasicInfoRequest; @@ -464,6 +476,33 @@ @SuppressWarnings("unchecked") public class MeetingMeta { + public static final HttpRequestDef addAppId = genForAddAppId(); + + private static HttpRequestDef genForAddAppId() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, AddAppIdRequest.class, AddAppIdResponse.class) + .withName("AddAppId") + .withUri("/v2/usg/acs/corp/app") + .withContentType("application/json;charset=utf-8"); + + // requests + builder.withRequestField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(AddAppIdRequest::getXRequestId, AddAppIdRequest::setXRequestId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(AddAppIdRequestBody.class), + f -> f.withMarshaller(AddAppIdRequest::getBody, AddAppIdRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef addCorp = genForAddCorp(); private static HttpRequestDef genForAddCorp() { @@ -1211,6 +1250,45 @@ private static HttpRequestDef genForBatchHa return builder.build(); } + public static final HttpRequestDef batchSearchAppId = + genForBatchSearchAppId(); + + private static HttpRequestDef genForBatchSearchAppId() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, BatchSearchAppIdRequest.class, BatchSearchAppIdResponse.class) + .withName("BatchSearchAppId") + .withUri("/v2/usg/acs/corp/apps") + .withContentType("application/json"); + + // requests + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(BatchSearchAppIdRequest::getOffset, BatchSearchAppIdRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(BatchSearchAppIdRequest::getLimit, BatchSearchAppIdRequest::setLimit)); + builder.withRequestField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(BatchSearchAppIdRequest::getXRequestId, BatchSearchAppIdRequest::setXRequestId)); + builder.withRequestField("Accept-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(BatchSearchAppIdRequest::getAcceptLanguage, + BatchSearchAppIdRequest::setAcceptLanguage)); + + // response + + return builder.build(); + } + public static final HttpRequestDef batchShowUserDetails = genForBatchShowUserDetails(); @@ -1998,6 +2076,38 @@ private static HttpRequestDef genFo return builder.build(); } + public static final HttpRequestDef deleteAppId = genForDeleteAppId(); + + private static HttpRequestDef genForDeleteAppId() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.DELETE, DeleteAppIdRequest.class, DeleteAppIdResponse.class) + .withName("DeleteAppId") + .withUri("/v2/usg/acs/corp/app/{app_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("app_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteAppIdRequest::getAppId, DeleteAppIdRequest::setAppId)); + builder.withRequestField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteAppIdRequest::getXRequestId, DeleteAppIdRequest::setXRequestId)); + builder.withRequestField("Accept-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteAppIdRequest::getAcceptLanguage, DeleteAppIdRequest::setAcceptLanguage)); + + // response + + return builder.build(); + } + public static final HttpRequestDef deleteAttendees = genForDeleteAttendees(); @@ -3207,6 +3317,38 @@ private static HttpRequestDef g return builder.build(); } + public static final HttpRequestDef resetAppKey = genForResetAppKey(); + + private static HttpRequestDef genForResetAppKey() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.PUT, ResetAppKeyRequest.class, ResetAppKeyResponse.class) + .withName("ResetAppKey") + .withUri("/v2/usg/acs/corp/app/{app_id}/reset") + .withContentType("application/json"); + + // requests + builder.withRequestField("app_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ResetAppKeyRequest::getAppId, ResetAppKeyRequest::setAppId)); + builder.withRequestField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ResetAppKeyRequest::getXRequestId, ResetAppKeyRequest::setXRequestId)); + builder.withRequestField("Accept-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ResetAppKeyRequest::getAcceptLanguage, ResetAppKeyRequest::setAcceptLanguage)); + + // response + + return builder.build(); + } + public static final HttpRequestDef resetPwd = genForResetPwd(); private static HttpRequestDef genForResetPwd() { @@ -6464,6 +6606,43 @@ private static HttpRequestDef genForSwitc return builder.build(); } + public static final HttpRequestDef updateAppId = genForUpdateAppId(); + + private static HttpRequestDef genForUpdateAppId() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.PUT, UpdateAppIdRequest.class, UpdateAppIdResponse.class) + .withName("UpdateAppId") + .withUri("/v2/usg/acs/corp/app/{app_id}") + .withContentType("application/json;charset=utf-8"); + + // requests + builder.withRequestField("app_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateAppIdRequest::getAppId, UpdateAppIdRequest::setAppId)); + builder.withRequestField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateAppIdRequest::getXRequestId, UpdateAppIdRequest::setXRequestId)); + builder.withRequestField("Accept-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateAppIdRequest::getAcceptLanguage, UpdateAppIdRequest::setAcceptLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateAppIdRequestBody.class), + f -> f.withMarshaller(UpdateAppIdRequest::getBody, UpdateAppIdRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef updateContact = genForUpdateContact(); diff --git a/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/AddAppIdRequest.java b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/AddAppIdRequest.java new file mode 100644 index 0000000000..a2e11cf67d --- /dev/null +++ b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/AddAppIdRequest.java @@ -0,0 +1,107 @@ +package com.huaweicloud.sdk.meeting.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 AddAppIdRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private AddAppIdRequestBody body; + + public AddAppIdRequest withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * 请求requestId,用来标识一路请求,用于问题跟踪定位,建议使用UUID,若不携带,则后台自动生成。 + * @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; + } + + public AddAppIdRequest withBody(AddAppIdRequestBody body) { + this.body = body; + return this; + } + + public AddAppIdRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new AddAppIdRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public AddAppIdRequestBody getBody() { + return body; + } + + public void setBody(AddAppIdRequestBody 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; + } + AddAppIdRequest that = (AddAppIdRequest) obj; + return Objects.equals(this.xRequestId, that.xRequestId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(xRequestId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddAppIdRequest {\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).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/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/AddAppIdRequestBody.java b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/AddAppIdRequestBody.java new file mode 100644 index 0000000000..8f82ba0dcb --- /dev/null +++ b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/AddAppIdRequestBody.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.meeting.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 添加企业应用入参 + */ +public class AddAppIdRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_name") + + private String appName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + public AddAppIdRequestBody withAppName(String appName) { + this.appName = appName; + return this; + } + + /** + * 企业应用名称 + * @return appName + */ + public String getAppName() { + return appName; + } + + public void setAppName(String appName) { + this.appName = appName; + } + + public AddAppIdRequestBody 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; + } + AddAppIdRequestBody that = (AddAppIdRequestBody) obj; + return Objects.equals(this.appName, that.appName) && Objects.equals(this.description, that.description); + } + + @Override + public int hashCode() { + return Objects.hash(appName, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddAppIdRequestBody {\n"); + sb.append(" appName: ").append(toIndentedString(appName)).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/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/AddAppIdResponse.java b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/AddAppIdResponse.java new file mode 100644 index 0000000000..321c6eb48c --- /dev/null +++ b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/AddAppIdResponse.java @@ -0,0 +1,216 @@ +package com.huaweicloud.sdk.meeting.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 AddAppIdResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_name") + + private String appName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_id") + + private String appId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_key") + + private String appKey; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_update_time") + + private String lastUpdateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private Integer status; + + public AddAppIdResponse withAppName(String appName) { + this.appName = appName; + return this; + } + + /** + * 企业应用名称 + * @return appName + */ + public String getAppName() { + return appName; + } + + public void setAppName(String appName) { + this.appName = appName; + } + + public AddAppIdResponse withAppId(String appId) { + this.appId = appId; + return this; + } + + /** + * 企业应用 + * @return appId + */ + public String getAppId() { + return appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + public AddAppIdResponse withAppKey(String appKey) { + this.appKey = appKey; + return this; + } + + /** + * 企业应用appkey + * @return appKey + */ + public String getAppKey() { + return appKey; + } + + public void setAppKey(String appKey) { + this.appKey = appKey; + } + + public AddAppIdResponse withDescription(String description) { + this.description = description; + return this; + } + + /** + * 企业应用描述 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public AddAppIdResponse withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 企业应用创建时间 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public AddAppIdResponse withLastUpdateTime(String lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; + return this; + } + + /** + * 最近修改时间 + * @return lastUpdateTime + */ + public String getLastUpdateTime() { + return lastUpdateTime; + } + + public void setLastUpdateTime(String lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; + } + + public AddAppIdResponse withStatus(Integer status) { + this.status = status; + return this; + } + + /** + * 企业应用状态 * 0:正常 * 1:停用 + * minimum: 0 + * maximum: 1 + * @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; + } + AddAppIdResponse that = (AddAppIdResponse) obj; + return Objects.equals(this.appName, that.appName) && Objects.equals(this.appId, that.appId) + && Objects.equals(this.appKey, that.appKey) && Objects.equals(this.description, that.description) + && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.lastUpdateTime, that.lastUpdateTime) && Objects.equals(this.status, that.status); + } + + @Override + public int hashCode() { + return Objects.hash(appName, appId, appKey, description, createTime, lastUpdateTime, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddAppIdResponse {\n"); + sb.append(" appName: ").append(toIndentedString(appName)).append("\n"); + sb.append(" appId: ").append(toIndentedString(appId)).append("\n"); + sb.append(" appKey: ").append(toIndentedString(appKey)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" lastUpdateTime: ").append(toIndentedString(lastUpdateTime)).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/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/AppIdInfoDTO.java b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/AppIdInfoDTO.java new file mode 100644 index 0000000000..387934016d --- /dev/null +++ b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/AppIdInfoDTO.java @@ -0,0 +1,215 @@ +package com.huaweicloud.sdk.meeting.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 添加企业应用的返回结果 + */ +public class AppIdInfoDTO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_name") + + private String appName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_id") + + private String appId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_key") + + private String appKey; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_update_time") + + private String lastUpdateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private Integer status; + + public AppIdInfoDTO withAppName(String appName) { + this.appName = appName; + return this; + } + + /** + * 企业应用名称 + * @return appName + */ + public String getAppName() { + return appName; + } + + public void setAppName(String appName) { + this.appName = appName; + } + + public AppIdInfoDTO withAppId(String appId) { + this.appId = appId; + return this; + } + + /** + * 企业应用 + * @return appId + */ + public String getAppId() { + return appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + public AppIdInfoDTO withAppKey(String appKey) { + this.appKey = appKey; + return this; + } + + /** + * 企业应用appkey + * @return appKey + */ + public String getAppKey() { + return appKey; + } + + public void setAppKey(String appKey) { + this.appKey = appKey; + } + + public AppIdInfoDTO withDescription(String description) { + this.description = description; + return this; + } + + /** + * 企业应用描述 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public AppIdInfoDTO withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 企业应用创建时间 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public AppIdInfoDTO withLastUpdateTime(String lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; + return this; + } + + /** + * 最近修改时间 + * @return lastUpdateTime + */ + public String getLastUpdateTime() { + return lastUpdateTime; + } + + public void setLastUpdateTime(String lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; + } + + public AppIdInfoDTO withStatus(Integer status) { + this.status = status; + return this; + } + + /** + * 企业应用状态 * 0:正常 * 1:停用 + * minimum: 0 + * maximum: 1 + * @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; + } + AppIdInfoDTO that = (AppIdInfoDTO) obj; + return Objects.equals(this.appName, that.appName) && Objects.equals(this.appId, that.appId) + && Objects.equals(this.appKey, that.appKey) && Objects.equals(this.description, that.description) + && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.lastUpdateTime, that.lastUpdateTime) && Objects.equals(this.status, that.status); + } + + @Override + public int hashCode() { + return Objects.hash(appName, appId, appKey, description, createTime, lastUpdateTime, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AppIdInfoDTO {\n"); + sb.append(" appName: ").append(toIndentedString(appName)).append("\n"); + sb.append(" appId: ").append(toIndentedString(appId)).append("\n"); + sb.append(" appKey: ").append(toIndentedString(appKey)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" lastUpdateTime: ").append(toIndentedString(lastUpdateTime)).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/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/BatchSearchAppIdRequest.java b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/BatchSearchAppIdRequest.java new file mode 100644 index 0000000000..6447c17e34 --- /dev/null +++ b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/BatchSearchAppIdRequest.java @@ -0,0 +1,148 @@ +package com.huaweicloud.sdk.meeting.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class BatchSearchAppIdRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Accept-Language") + + private String acceptLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + public BatchSearchAppIdRequest withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * 请求requestId,用来标识一路请求,用于问题跟踪定位,建议使用UUID,若不携带,则后台自动生成。 + * @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; + } + + public BatchSearchAppIdRequest withAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + return this; + } + + /** + * 语言参数,默认为中文zh-CN,英文为en-US。 + * @return acceptLanguage + */ + public String getAcceptLanguage() { + return acceptLanguage; + } + + public void setAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + } + + public BatchSearchAppIdRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 查询偏移量,若超过最大数量,则返回最后一页的数据。 默认值:0。 + * minimum: 0 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public BatchSearchAppIdRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 查询数量。 默认值:10。 + * minimum: 1 + * maximum: 500 + * @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; + } + BatchSearchAppIdRequest that = (BatchSearchAppIdRequest) obj; + return Objects.equals(this.xRequestId, that.xRequestId) + && Objects.equals(this.acceptLanguage, that.acceptLanguage) && Objects.equals(this.offset, that.offset) + && Objects.equals(this.limit, that.limit); + } + + @Override + public int hashCode() { + return Objects.hash(xRequestId, acceptLanguage, offset, limit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchSearchAppIdRequest {\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append(" acceptLanguage: ").append(toIndentedString(acceptLanguage)).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/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/BatchSearchAppIdResponse.java b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/BatchSearchAppIdResponse.java new file mode 100644 index 0000000000..864969b11f --- /dev/null +++ b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/BatchSearchAppIdResponse.java @@ -0,0 +1,162 @@ +package com.huaweicloud.sdk.meeting.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 BatchSearchAppIdResponse 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; + + public BatchSearchAppIdResponse withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 页面起始页,从0开始。 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public BatchSearchAppIdResponse withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 每页显示的条目数量。 默认值:10。 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public BatchSearchAppIdResponse withCount(Integer count) { + this.count = count; + return this; + } + + /** + * 总数量。 + * @return count + */ + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public BatchSearchAppIdResponse withData(List data) { + this.data = data; + return this; + } + + public BatchSearchAppIdResponse addDataItem(AppIdInfoDTO dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + public BatchSearchAppIdResponse 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; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchSearchAppIdResponse that = (BatchSearchAppIdResponse) 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); + } + + @Override + public int hashCode() { + return Objects.hash(offset, limit, count, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchSearchAppIdResponse {\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("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/DeleteAppIdRequest.java b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/DeleteAppIdRequest.java new file mode 100644 index 0000000000..039c319e87 --- /dev/null +++ b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/DeleteAppIdRequest.java @@ -0,0 +1,121 @@ +package com.huaweicloud.sdk.meeting.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class DeleteAppIdRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Accept-Language") + + private String acceptLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_id") + + private String appId; + + public DeleteAppIdRequest withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * 请求requestId,用来标识一路请求,用于问题跟踪定位,建议使用UUID,若不携带,则后台自动生成。 + * @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; + } + + public DeleteAppIdRequest withAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + return this; + } + + /** + * 语言参数,默认为中文zh-CN,英文为en-US。 + * @return acceptLanguage + */ + public String getAcceptLanguage() { + return acceptLanguage; + } + + public void setAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + } + + public DeleteAppIdRequest withAppId(String appId) { + this.appId = appId; + return this; + } + + /** + * 需要修改的app + * @return appId + */ + public String getAppId() { + return appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteAppIdRequest that = (DeleteAppIdRequest) obj; + return Objects.equals(this.xRequestId, that.xRequestId) + && Objects.equals(this.acceptLanguage, that.acceptLanguage) && Objects.equals(this.appId, that.appId); + } + + @Override + public int hashCode() { + return Objects.hash(xRequestId, acceptLanguage, appId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteAppIdRequest {\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append(" acceptLanguage: ").append(toIndentedString(acceptLanguage)).append("\n"); + sb.append(" appId: ").append(toIndentedString(appId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/DeleteAppIdResponse.java b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/DeleteAppIdResponse.java new file mode 100644 index 0000000000..236a231fe2 --- /dev/null +++ b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/DeleteAppIdResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.meeting.v1.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeleteAppIdResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteAppIdResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/ResetAppKeyRequest.java b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/ResetAppKeyRequest.java new file mode 100644 index 0000000000..1b31deb21e --- /dev/null +++ b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/ResetAppKeyRequest.java @@ -0,0 +1,121 @@ +package com.huaweicloud.sdk.meeting.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ResetAppKeyRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Accept-Language") + + private String acceptLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_id") + + private String appId; + + public ResetAppKeyRequest withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * 请求requestId,用来标识一路请求,用于问题跟踪定位,建议使用UUID,若不携带,则后台自动生成。 + * @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; + } + + public ResetAppKeyRequest withAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + return this; + } + + /** + * 语言参数,默认为中文zh-CN,英文为en-US。 + * @return acceptLanguage + */ + public String getAcceptLanguage() { + return acceptLanguage; + } + + public void setAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + } + + public ResetAppKeyRequest withAppId(String appId) { + this.appId = appId; + return this; + } + + /** + * 需要修改的app + * @return appId + */ + public String getAppId() { + return appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ResetAppKeyRequest that = (ResetAppKeyRequest) obj; + return Objects.equals(this.xRequestId, that.xRequestId) + && Objects.equals(this.acceptLanguage, that.acceptLanguage) && Objects.equals(this.appId, that.appId); + } + + @Override + public int hashCode() { + return Objects.hash(xRequestId, acceptLanguage, appId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResetAppKeyRequest {\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append(" acceptLanguage: ").append(toIndentedString(acceptLanguage)).append("\n"); + sb.append(" appId: ").append(toIndentedString(appId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/ResetAppKeyResponse.java b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/ResetAppKeyResponse.java new file mode 100644 index 0000000000..d670cbe879 --- /dev/null +++ b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/ResetAppKeyResponse.java @@ -0,0 +1,216 @@ +package com.huaweicloud.sdk.meeting.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 ResetAppKeyResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_name") + + private String appName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_id") + + private String appId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_key") + + private String appKey; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_update_time") + + private String lastUpdateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private Integer status; + + public ResetAppKeyResponse withAppName(String appName) { + this.appName = appName; + return this; + } + + /** + * 企业应用名称 + * @return appName + */ + public String getAppName() { + return appName; + } + + public void setAppName(String appName) { + this.appName = appName; + } + + public ResetAppKeyResponse withAppId(String appId) { + this.appId = appId; + return this; + } + + /** + * 企业应用 + * @return appId + */ + public String getAppId() { + return appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + public ResetAppKeyResponse withAppKey(String appKey) { + this.appKey = appKey; + return this; + } + + /** + * 企业应用appkey + * @return appKey + */ + public String getAppKey() { + return appKey; + } + + public void setAppKey(String appKey) { + this.appKey = appKey; + } + + public ResetAppKeyResponse withDescription(String description) { + this.description = description; + return this; + } + + /** + * 企业应用描述 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ResetAppKeyResponse withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 企业应用创建时间 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public ResetAppKeyResponse withLastUpdateTime(String lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; + return this; + } + + /** + * 最近修改时间 + * @return lastUpdateTime + */ + public String getLastUpdateTime() { + return lastUpdateTime; + } + + public void setLastUpdateTime(String lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; + } + + public ResetAppKeyResponse withStatus(Integer status) { + this.status = status; + return this; + } + + /** + * 企业应用状态 * 0:正常 * 1:停用 + * minimum: 0 + * maximum: 1 + * @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; + } + ResetAppKeyResponse that = (ResetAppKeyResponse) obj; + return Objects.equals(this.appName, that.appName) && Objects.equals(this.appId, that.appId) + && Objects.equals(this.appKey, that.appKey) && Objects.equals(this.description, that.description) + && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.lastUpdateTime, that.lastUpdateTime) && Objects.equals(this.status, that.status); + } + + @Override + public int hashCode() { + return Objects.hash(appName, appId, appKey, description, createTime, lastUpdateTime, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResetAppKeyResponse {\n"); + sb.append(" appName: ").append(toIndentedString(appName)).append("\n"); + sb.append(" appId: ").append(toIndentedString(appId)).append("\n"); + sb.append(" appKey: ").append(toIndentedString(appKey)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" lastUpdateTime: ").append(toIndentedString(lastUpdateTime)).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/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/UpdateAppIdRequest.java b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/UpdateAppIdRequest.java new file mode 100644 index 0000000000..2631270720 --- /dev/null +++ b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/UpdateAppIdRequest.java @@ -0,0 +1,155 @@ +package com.huaweicloud.sdk.meeting.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 UpdateAppIdRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Accept-Language") + + private String acceptLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_id") + + private String appId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdateAppIdRequestBody body; + + public UpdateAppIdRequest withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * 请求requestId,用来标识一路请求,用于问题跟踪定位,建议使用UUID,若不携带,则后台自动生成。 + * @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; + } + + public UpdateAppIdRequest withAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + return this; + } + + /** + * 语言参数,默认为中文zh-CN,英文为en-US。 + * @return acceptLanguage + */ + public String getAcceptLanguage() { + return acceptLanguage; + } + + public void setAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + } + + public UpdateAppIdRequest withAppId(String appId) { + this.appId = appId; + return this; + } + + /** + * 需要修改的app + * @return appId + */ + public String getAppId() { + return appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + public UpdateAppIdRequest withBody(UpdateAppIdRequestBody body) { + this.body = body; + return this; + } + + public UpdateAppIdRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdateAppIdRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdateAppIdRequestBody getBody() { + return body; + } + + public void setBody(UpdateAppIdRequestBody 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; + } + UpdateAppIdRequest that = (UpdateAppIdRequest) obj; + return Objects.equals(this.xRequestId, that.xRequestId) + && Objects.equals(this.acceptLanguage, that.acceptLanguage) && Objects.equals(this.appId, that.appId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(xRequestId, acceptLanguage, appId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateAppIdRequest {\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append(" acceptLanguage: ").append(toIndentedString(acceptLanguage)).append("\n"); + sb.append(" appId: ").append(toIndentedString(appId)).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/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/UpdateAppIdRequestBody.java b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/UpdateAppIdRequestBody.java new file mode 100644 index 0000000000..bae2f0162a --- /dev/null +++ b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/UpdateAppIdRequestBody.java @@ -0,0 +1,121 @@ +package com.huaweicloud.sdk.meeting.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 修改企业应用的入参 + */ +public class UpdateAppIdRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_name") + + private String appName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private Integer status; + + public UpdateAppIdRequestBody withAppName(String appName) { + this.appName = appName; + return this; + } + + /** + * 企业应用名称 + * @return appName + */ + public String getAppName() { + return appName; + } + + public void setAppName(String appName) { + this.appName = appName; + } + + public UpdateAppIdRequestBody withDescription(String description) { + this.description = description; + return this; + } + + /** + * 企业应用描述 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public UpdateAppIdRequestBody withStatus(Integer status) { + this.status = status; + return this; + } + + /** + * 企业应用状态 * 0:正常 * 1:停用 + * minimum: 0 + * maximum: 1 + * @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; + } + UpdateAppIdRequestBody that = (UpdateAppIdRequestBody) obj; + return Objects.equals(this.appName, that.appName) && Objects.equals(this.description, that.description) + && Objects.equals(this.status, that.status); + } + + @Override + public int hashCode() { + return Objects.hash(appName, description, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateAppIdRequestBody {\n"); + sb.append(" appName: ").append(toIndentedString(appName)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).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/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/UpdateAppIdResponse.java b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/UpdateAppIdResponse.java new file mode 100644 index 0000000000..6cd89d20f7 --- /dev/null +++ b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/UpdateAppIdResponse.java @@ -0,0 +1,216 @@ +package com.huaweicloud.sdk.meeting.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 UpdateAppIdResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_name") + + private String appName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_id") + + private String appId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_key") + + private String appKey; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_update_time") + + private String lastUpdateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private Integer status; + + public UpdateAppIdResponse withAppName(String appName) { + this.appName = appName; + return this; + } + + /** + * 企业应用名称 + * @return appName + */ + public String getAppName() { + return appName; + } + + public void setAppName(String appName) { + this.appName = appName; + } + + public UpdateAppIdResponse withAppId(String appId) { + this.appId = appId; + return this; + } + + /** + * 企业应用 + * @return appId + */ + public String getAppId() { + return appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + public UpdateAppIdResponse withAppKey(String appKey) { + this.appKey = appKey; + return this; + } + + /** + * 企业应用appkey + * @return appKey + */ + public String getAppKey() { + return appKey; + } + + public void setAppKey(String appKey) { + this.appKey = appKey; + } + + public UpdateAppIdResponse withDescription(String description) { + this.description = description; + return this; + } + + /** + * 企业应用描述 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public UpdateAppIdResponse withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 企业应用创建时间 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public UpdateAppIdResponse withLastUpdateTime(String lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; + return this; + } + + /** + * 最近修改时间 + * @return lastUpdateTime + */ + public String getLastUpdateTime() { + return lastUpdateTime; + } + + public void setLastUpdateTime(String lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; + } + + public UpdateAppIdResponse withStatus(Integer status) { + this.status = status; + return this; + } + + /** + * 企业应用状态 * 0:正常 * 1:停用 + * minimum: 0 + * maximum: 1 + * @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; + } + UpdateAppIdResponse that = (UpdateAppIdResponse) obj; + return Objects.equals(this.appName, that.appName) && Objects.equals(this.appId, that.appId) + && Objects.equals(this.appKey, that.appKey) && Objects.equals(this.description, that.description) + && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.lastUpdateTime, that.lastUpdateTime) && Objects.equals(this.status, that.status); + } + + @Override + public int hashCode() { + return Objects.hash(appName, appId, appKey, description, createTime, lastUpdateTime, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateAppIdResponse {\n"); + sb.append(" appName: ").append(toIndentedString(appName)).append("\n"); + sb.append(" appId: ").append(toIndentedString(appId)).append("\n"); + sb.append(" appKey: ").append(toIndentedString(appKey)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" lastUpdateTime: ").append(toIndentedString(lastUpdateTime)).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/metastudio/pom.xml b/services/metastudio/pom.xml index f0a13b0982..c48e13e08b 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-metastudio - 3.1.110 + 3.1.111 Huawei Cloud SDK for METASTUDIO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/moderation/pom.xml b/services/moderation/pom.xml index bb3b60dd9e..43727b6c35 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-moderation - 3.1.110 + 3.1.111 Huawei Cloud SDK for MODERATION 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/mpc/pom.xml b/services/mpc/pom.xml index 1fa4ca872d..0c77ca8561 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-mpc - 3.1.110 + 3.1.111 Huawei Cloud SDK for MPC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/mrs/pom.xml b/services/mrs/pom.xml index 5ad4df8a23..d6bb3667c7 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-mrs - 3.1.110 + 3.1.111 Huawei Cloud SDK for MRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/msgsms/pom.xml b/services/msgsms/pom.xml index 0057afe645..0655cc184c 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-msgsms - 3.1.110 + 3.1.111 Huawei Cloud SDK for MSGSMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/mssi/pom.xml b/services/mssi/pom.xml index c0fc482e5b..1f5c31a450 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-mssi - 3.1.110 + 3.1.111 Huawei Cloud SDK for MSSI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/nat/pom.xml b/services/nat/pom.xml index 2d089af5c3..4b8fce6188 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-nat - 3.1.110 + 3.1.111 Huawei Cloud SDK for NAT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/nlp/pom.xml b/services/nlp/pom.xml index 96d747ffcb..44ad38cbb4 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-nlp - 3.1.110 + 3.1.111 Huawei Cloud SDK for NLP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/oa/pom.xml b/services/oa/pom.xml index c636841dfd..b2ffd99856 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-oa - 3.1.110 + 3.1.111 Huawei Cloud SDK for OA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/obs/pom.xml b/services/obs/pom.xml index 1e01a09827..d6b54e3d03 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-obs - 3.1.110 + 3.1.111 Huawei Cloud SDK for OBS 4.0.0 @@ -17,12 +17,12 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 com.huaweicloud.sdk huaweicloud-sdk-core-xml - 3.1.110 + 3.1.111 diff --git a/services/ocr/pom.xml b/services/ocr/pom.xml index a5f034c2f3..1eb8dea2b4 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-ocr - 3.1.110 + 3.1.111 Huawei Cloud SDK for OCR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/oms/pom.xml b/services/oms/pom.xml index 50c4a2acd7..63674c53dd 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-oms - 3.1.110 + 3.1.111 Huawei Cloud SDK for OMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/oms/src/main/java/com/huaweicloud/sdk/oms/v2/model/CreateTaskReq.java b/services/oms/src/main/java/com/huaweicloud/sdk/oms/v2/model/CreateTaskReq.java index 9c2e75809d..ea34029fec 100644 --- a/services/oms/src/main/java/com/huaweicloud/sdk/oms/v2/model/CreateTaskReq.java +++ b/services/oms/src/main/java/com/huaweicloud/sdk/oms/v2/model/CreateTaskReq.java @@ -428,6 +428,87 @@ public int hashCode() { private Boolean enableRequesterPays; + /** + * HIGH:高优先级 MEDIUM:中优先级 LOW:低优先级 + */ + public static final class TaskPriorityEnum { + + /** + * Enum HIGH for value: "HIGH" + */ + public static final TaskPriorityEnum HIGH = new TaskPriorityEnum("HIGH"); + + /** + * Enum MEDIUM for value: "MEDIUM" + */ + public static final TaskPriorityEnum MEDIUM = new TaskPriorityEnum("MEDIUM"); + + /** + * Enum LOW for value: "LOW" + */ + public static final TaskPriorityEnum LOW = new TaskPriorityEnum("LOW"); + + 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); + return Collections.unmodifiableMap(map); + } + + private String value; + + TaskPriorityEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TaskPriorityEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new TaskPriorityEnum(value)); + } + + public static TaskPriorityEnum 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 TaskPriorityEnum) { + return this.value.equals(((TaskPriorityEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_priority") + + private TaskPriorityEnum taskPriority; + public CreateTaskReq withTaskType(TaskTypeEnum taskType) { this.taskType = taskType; return this; @@ -754,6 +835,23 @@ public void setEnableRequesterPays(Boolean enableRequesterPays) { this.enableRequesterPays = enableRequesterPays; } + public CreateTaskReq withTaskPriority(TaskPriorityEnum taskPriority) { + this.taskPriority = taskPriority; + return this; + } + + /** + * HIGH:高优先级 MEDIUM:中优先级 LOW:低优先级 + * @return taskPriority + */ + public TaskPriorityEnum getTaskPriority() { + return taskPriority; + } + + public void setTaskPriority(TaskPriorityEnum taskPriority) { + this.taskPriority = taskPriority; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -775,7 +873,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.objectOverwriteMode, that.objectOverwriteMode) && Objects.equals(this.dstStoragePolicy, that.dstStoragePolicy) && Objects.equals(this.consistencyCheck, that.consistencyCheck) - && Objects.equals(this.enableRequesterPays, that.enableRequesterPays); + && Objects.equals(this.enableRequesterPays, that.enableRequesterPays) + && Objects.equals(this.taskPriority, that.taskPriority); } @Override @@ -795,7 +894,8 @@ public int hashCode() { objectOverwriteMode, dstStoragePolicy, consistencyCheck, - enableRequesterPays); + enableRequesterPays, + taskPriority); } @Override @@ -820,6 +920,7 @@ public String toString() { sb.append(" dstStoragePolicy: ").append(toIndentedString(dstStoragePolicy)).append("\n"); sb.append(" consistencyCheck: ").append(toIndentedString(consistencyCheck)).append("\n"); sb.append(" enableRequesterPays: ").append(toIndentedString(enableRequesterPays)).append("\n"); + sb.append(" taskPriority: ").append(toIndentedString(taskPriority)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/oms/src/main/java/com/huaweicloud/sdk/oms/v2/model/ShowTaskResponse.java b/services/oms/src/main/java/com/huaweicloud/sdk/oms/v2/model/ShowTaskResponse.java index a11699f05b..e44ea1e173 100644 --- a/services/oms/src/main/java/com/huaweicloud/sdk/oms/v2/model/ShowTaskResponse.java +++ b/services/oms/src/main/java/com/huaweicloud/sdk/oms/v2/model/ShowTaskResponse.java @@ -615,6 +615,87 @@ public int hashCode() { private Boolean enableRequesterPays; + /** + * HIGH:高优先级 MEDIUM:中优先级 LOW:低优先级 + */ + public static final class TaskPriorityEnum { + + /** + * Enum HIGH for value: "HIGH" + */ + public static final TaskPriorityEnum HIGH = new TaskPriorityEnum("HIGH"); + + /** + * Enum MEDIUM for value: "MEDIUM" + */ + public static final TaskPriorityEnum MEDIUM = new TaskPriorityEnum("MEDIUM"); + + /** + * Enum LOW for value: "LOW" + */ + public static final TaskPriorityEnum LOW = new TaskPriorityEnum("LOW"); + + 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); + return Collections.unmodifiableMap(map); + } + + private String value; + + TaskPriorityEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TaskPriorityEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new TaskPriorityEnum(value)); + } + + public static TaskPriorityEnum 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 TaskPriorityEnum) { + return this.value.equals(((TaskPriorityEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_priority") + + private TaskPriorityEnum taskPriority; + public ShowTaskResponse withBandwidthPolicy(List bandwidthPolicy) { this.bandwidthPolicy = bandwidthPolicy; return this; @@ -1361,6 +1442,23 @@ public void setEnableRequesterPays(Boolean enableRequesterPays) { this.enableRequesterPays = enableRequesterPays; } + public ShowTaskResponse withTaskPriority(TaskPriorityEnum taskPriority) { + this.taskPriority = taskPriority; + return this; + } + + /** + * HIGH:高优先级 MEDIUM:中优先级 LOW:低优先级 + * @return taskPriority + */ + public TaskPriorityEnum getTaskPriority() { + return taskPriority; + } + + public void setTaskPriority(TaskPriorityEnum taskPriority) { + this.taskPriority = taskPriority; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -1395,7 +1493,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.objectOverwriteMode, that.objectOverwriteMode) && Objects.equals(this.dstStoragePolicy, that.dstStoragePolicy) && Objects.equals(this.consistencyCheck, that.consistencyCheck) - && Objects.equals(this.enableRequesterPays, that.enableRequesterPays); + && Objects.equals(this.enableRequesterPays, that.enableRequesterPays) + && Objects.equals(this.taskPriority, that.taskPriority); } @Override @@ -1437,7 +1536,8 @@ public int hashCode() { objectOverwriteMode, dstStoragePolicy, consistencyCheck, - enableRequesterPays); + enableRequesterPays, + taskPriority); } @Override @@ -1484,6 +1584,7 @@ public String toString() { sb.append(" dstStoragePolicy: ").append(toIndentedString(dstStoragePolicy)).append("\n"); sb.append(" consistencyCheck: ").append(toIndentedString(consistencyCheck)).append("\n"); sb.append(" enableRequesterPays: ").append(toIndentedString(enableRequesterPays)).append("\n"); + sb.append(" taskPriority: ").append(toIndentedString(taskPriority)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/oms/src/main/java/com/huaweicloud/sdk/oms/v2/model/TaskResp.java b/services/oms/src/main/java/com/huaweicloud/sdk/oms/v2/model/TaskResp.java index 0f2fd4c31a..29881e6714 100644 --- a/services/oms/src/main/java/com/huaweicloud/sdk/oms/v2/model/TaskResp.java +++ b/services/oms/src/main/java/com/huaweicloud/sdk/oms/v2/model/TaskResp.java @@ -614,6 +614,87 @@ public int hashCode() { private Boolean enableRequesterPays; + /** + * HIGH:高优先级 MEDIUM:中优先级 LOW:低优先级 + */ + public static final class TaskPriorityEnum { + + /** + * Enum HIGH for value: "HIGH" + */ + public static final TaskPriorityEnum HIGH = new TaskPriorityEnum("HIGH"); + + /** + * Enum MEDIUM for value: "MEDIUM" + */ + public static final TaskPriorityEnum MEDIUM = new TaskPriorityEnum("MEDIUM"); + + /** + * Enum LOW for value: "LOW" + */ + public static final TaskPriorityEnum LOW = new TaskPriorityEnum("LOW"); + + 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); + return Collections.unmodifiableMap(map); + } + + private String value; + + TaskPriorityEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TaskPriorityEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new TaskPriorityEnum(value)); + } + + public static TaskPriorityEnum 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 TaskPriorityEnum) { + return this.value.equals(((TaskPriorityEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_priority") + + private TaskPriorityEnum taskPriority; + public TaskResp withBandwidthPolicy(List bandwidthPolicy) { this.bandwidthPolicy = bandwidthPolicy; return this; @@ -1360,6 +1441,23 @@ public void setEnableRequesterPays(Boolean enableRequesterPays) { this.enableRequesterPays = enableRequesterPays; } + public TaskResp withTaskPriority(TaskPriorityEnum taskPriority) { + this.taskPriority = taskPriority; + return this; + } + + /** + * HIGH:高优先级 MEDIUM:中优先级 LOW:低优先级 + * @return taskPriority + */ + public TaskPriorityEnum getTaskPriority() { + return taskPriority; + } + + public void setTaskPriority(TaskPriorityEnum taskPriority) { + this.taskPriority = taskPriority; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -1394,7 +1492,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.objectOverwriteMode, that.objectOverwriteMode) && Objects.equals(this.dstStoragePolicy, that.dstStoragePolicy) && Objects.equals(this.consistencyCheck, that.consistencyCheck) - && Objects.equals(this.enableRequesterPays, that.enableRequesterPays); + && Objects.equals(this.enableRequesterPays, that.enableRequesterPays) + && Objects.equals(this.taskPriority, that.taskPriority); } @Override @@ -1436,7 +1535,8 @@ public int hashCode() { objectOverwriteMode, dstStoragePolicy, consistencyCheck, - enableRequesterPays); + enableRequesterPays, + taskPriority); } @Override @@ -1483,6 +1583,7 @@ public String toString() { sb.append(" dstStoragePolicy: ").append(toIndentedString(dstStoragePolicy)).append("\n"); sb.append(" consistencyCheck: ").append(toIndentedString(consistencyCheck)).append("\n"); sb.append(" enableRequesterPays: ").append(toIndentedString(enableRequesterPays)).append("\n"); + sb.append(" taskPriority: ").append(toIndentedString(taskPriority)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/optverse/pom.xml b/services/optverse/pom.xml index d41ce02e4c..03f6f87a95 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-optverse - 3.1.110 + 3.1.111 Huawei Cloud SDK for OPTVERSE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/organizations/pom.xml b/services/organizations/pom.xml index e753319467..5f24b7a969 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-organizations - 3.1.110 + 3.1.111 Huawei Cloud SDK for ORGANIZATIONS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/orgid/pom.xml b/services/orgid/pom.xml index 101e1fa168..a7549ab840 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-orgid - 3.1.110 + 3.1.111 Huawei Cloud SDK for ORGID 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/oroas/pom.xml b/services/oroas/pom.xml index 2ed3ffaad8..e16f8fc769 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-oroas - 3.1.110 + 3.1.111 Huawei Cloud SDK for OROAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/osm/pom.xml b/services/osm/pom.xml index cb79ef3abe..8b675f7cd5 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-osm - 3.1.110 + 3.1.111 Huawei Cloud SDK for OSM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/pangulargemodels/pom.xml b/services/pangulargemodels/pom.xml index bd6975a46f..05187f247d 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-pangulargemodels - 3.1.110 + 3.1.111 Huawei Cloud SDK for PANGULARGEMODELS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 org.springframework.boot diff --git a/services/pom.xml b/services/pom.xml index 72d8dc6059..0a077c9eec 100644 --- a/services/pom.xml +++ b/services/pom.xml @@ -6,190 +6,190 @@ com.huaweicloud.sdk - 3.1.110 + 3.1.111 huaweicloud-sdk com.huaweicloud.sdk huaweicloud-sdk-services - 3.1.110 + 3.1.111 pom Huawei Cloud SDK for Java Services Services code for Huawei Cloud SDK for Java https://github.com/huaweicloud/huaweicloud-sdk-java-v3 - coc - codeartsinspector - dis - dcs - oroas - antiddos - ces - dgc - dataartsinsight - cse - dris - ief - eps - kms - live - kps - mapds - bssintl - rms - er - ecs - cce - dlf - projectman - image - rds - cpts - sms - as - dli - bcs - vod ocr - identitycenter - secmaster - ga - mrs - gaussdbfornosql - dc + lts + cce + cloudrtc + lakeformation + sfsturbo cdm - rocketmq - gaussdb - dds - nat - scm - aad - osm - sdrs + ec + kafka + vcm + meeting rgc - mas - organizations - classroom - sis - aos + antiddos + cdn + moderation + bssintl cph - ccm - css - cfw + waf + hss + vod + iotdm + secmaster + oroas + ecs + oa + iec asm - meeting - tics + dgc + expert + tms + csms + cloudtest + apm + bcs + rds + classroom oms + koophone + res + dsc + servicestage + deh + codeartsbuild + cloudtable + roma + er + evs + rabbitmq + iam + codeartspipeline + rms + msgsms + codehub + dws + vpcep drs - cloudpond - functiongraph - iamaccessanalyzer - hss + identitycenterstore + config + cse + live + ram + aos + imagesearch + gaussdbforopengauss + cgs + dataartsstudio + image + campusgo + identitycenter + bms + cc + koomap + cloudide + cae + codeartscheck + apig + codeartsdeploy + koomessage + dss + sis + eip hilens - dwr - idmeclassicapi - mssi - kafka - codeartsartifact + frs + dli + kms + mrs orgid + dns + coc + sdrs + gsl geip - cms - gaussdbforopengauss - codeartsbuild - edgesec + sms + gaussdbfornosql + idmeclassicapi cts - mpc - codeartsgovernance - roma - dss - dsc - cbs - servicestage + ugo + scm + dc + metastudio + iotanalytics + cloudpond optverse - bss + cms + idme + cfw eg + ccm + codeartsinspector + sa + dwr + mssi + bss + ddm + edgesec + dlf + css + ga + mas + das + ief + vias + cbr + dbss cbh + kps + pangulargemodels + functiongraph + dataartsinsight iotedge - iec - cbr - csms + eds + eps + rocketmq + codecraft + swr + osm + dcs + aom + nat + sts + dris ivs - idme - waf - workspace - ges + nlp vpc devstar - ims - lts - deh - vcm - vpcep - codecraft + cpts + vpn + ces + mpc + mapds workspaceapp - metastudio - dbss - cc - eds - evs - sfsturbo - oa - koomessage - codeartsdeploy - res - frs - cloudtest - expert - dataartsstudio - gsl - rabbitmq - cgs - iam - imagesearch - lakeformation - ddm - sts - bms - cloudrtc - iotda - koophone - ec - campusgo - vas - koomap - vias - pangulargemodels - cloudtable - eihealth - cloudide + iamaccessanalyzer + dis + projectman + codeartsartifact + ges smn - config - iotdm - dws - vpn - codeartscheck - ugo - das - cae - moderation - cdn - tms - apm - iotanalytics + organizations + gaussdb + codeartsgovernance + vas + aad + workspace kvs - apig - swr + tics + iotda obs - ram - eip - identitycenterstore - nlp - msgsms - dns - codehub - aom - codeartspipeline + ims + eihealth + dds + as + cbs elb - sa diff --git a/services/projectman/pom.xml b/services/projectman/pom.xml index c4d44ae5ca..991d298d7e 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-projectman - 3.1.110 + 3.1.111 Huawei Cloud SDK for PROJECTMAN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/rabbitmq/pom.xml b/services/rabbitmq/pom.xml index 97f04b71df..ae3a09166d 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-rabbitmq - 3.1.110 + 3.1.111 Huawei Cloud SDK for RABBITMQ 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/ram/pom.xml b/services/ram/pom.xml index aa6268c8a4..c66d112d69 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-ram - 3.1.110 + 3.1.111 Huawei Cloud SDK for RAM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/rds/pom.xml b/services/rds/pom.xml index cc2cef3058..49bc9ad18b 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-rds - 3.1.110 + 3.1.111 Huawei Cloud SDK for RDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/res/pom.xml b/services/res/pom.xml index 5e2c871db5..686087d6a2 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-res - 3.1.110 + 3.1.111 Huawei Cloud SDK for RES 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/rgc/pom.xml b/services/rgc/pom.xml index 72384dff22..8cb56f9c82 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-rgc - 3.1.110 + 3.1.111 Huawei Cloud SDK for RGC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/rms/pom.xml b/services/rms/pom.xml index 5300d32645..2f7cf66ccc 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-rms - 3.1.110 + 3.1.111 Huawei Cloud SDK for RMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/rocketmq/pom.xml b/services/rocketmq/pom.xml index 0feabb1099..581972e42c 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-rocketmq - 3.1.110 + 3.1.111 Huawei Cloud SDK for ROCKETMQ 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/roma/pom.xml b/services/roma/pom.xml index de476d7c0a..0dedbbe4c8 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-roma - 3.1.110 + 3.1.111 Huawei Cloud SDK for ROMA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/sa/pom.xml b/services/sa/pom.xml index c93b76bc70..77d6813895 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-sa - 3.1.110 + 3.1.111 Huawei Cloud SDK for SA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/scm/pom.xml b/services/scm/pom.xml index 9087ad0653..906fae5da8 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-scm - 3.1.110 + 3.1.111 Huawei Cloud SDK for SCM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/sdrs/pom.xml b/services/sdrs/pom.xml index af6b0cb3fb..102bb71783 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-sdrs - 3.1.110 + 3.1.111 Huawei Cloud SDK for SDRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/secmaster/pom.xml b/services/secmaster/pom.xml index 3224dc77c2..03e5b94b04 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-secmaster - 3.1.110 + 3.1.111 Huawei Cloud SDK for SECMASTER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/servicestage/pom.xml b/services/servicestage/pom.xml index bbedb15fbc..f819e44280 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-servicestage - 3.1.110 + 3.1.111 Huawei Cloud SDK for SERVICESTAGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/sfsturbo/pom.xml b/services/sfsturbo/pom.xml index 0678a7e5af..cc1b4053a9 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-sfsturbo - 3.1.110 + 3.1.111 Huawei Cloud SDK for SFSTURBO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/region/SFSTurboRegion.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/region/SFSTurboRegion.java index 2ea31ff091..f5fcd68f42 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/region/SFSTurboRegion.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/region/SFSTurboRegion.java @@ -74,6 +74,8 @@ public class SFSTurboRegion { public static final Region MY_KUALALUMPUR_1 = new Region("my-kualalumpur-1", "https://sfs-turbo.my-kualalumpur-1.myhuaweicloud.com"); + public static final Region CN_EAST_4 = new Region("cn-east-4", "https://sfs-turbo.cn-east-4.myhuaweicloud.com"); + private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("SFSTURBO"); private static final Map STATIC_FIELDS = createStaticFields(); @@ -105,6 +107,7 @@ private static Map createStaticFields() { map.put("cn-south-4", CN_SOUTH_4); map.put("ru-moscow-1", RU_MOSCOW_1); map.put("my-kualalumpur-1", MY_KUALALUMPUR_1); + map.put("cn-east-4", CN_EAST_4); return Collections.unmodifiableMap(map); } diff --git a/services/sis/pom.xml b/services/sis/pom.xml index b9214cb078..7f29a52749 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-sis - 3.1.110 + 3.1.111 Huawei Cloud SDK for SIS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/smn/pom.xml b/services/smn/pom.xml index ce31547583..214cff98dd 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-smn - 3.1.110 + 3.1.111 Huawei Cloud SDK for SMN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/sms/pom.xml b/services/sms/pom.xml index bd4ee7b0bf..dff7736b49 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-sms - 3.1.110 + 3.1.111 Huawei Cloud SDK for SMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/sts/pom.xml b/services/sts/pom.xml index 13c7201c3d..5d3cc11751 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-sts - 3.1.110 + 3.1.111 Huawei Cloud SDK for STS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/swr/pom.xml b/services/swr/pom.xml index d6b279e3d5..3c68794b50 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-swr - 3.1.110 + 3.1.111 Huawei Cloud SDK for SWR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/tics/pom.xml b/services/tics/pom.xml index d7e7a93eb7..ad4951714d 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-tics - 3.1.110 + 3.1.111 Huawei Cloud SDK for TICS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/tms/pom.xml b/services/tms/pom.xml index f721f016a4..5041f0c3ab 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-tms - 3.1.110 + 3.1.111 Huawei Cloud SDK for TMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/ugo/pom.xml b/services/ugo/pom.xml index 4616da04b4..a43d62bddc 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-ugo - 3.1.110 + 3.1.111 Huawei Cloud SDK for UGO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/vas/pom.xml b/services/vas/pom.xml index dbefddbf8c..4ea0391539 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-vas - 3.1.110 + 3.1.111 Huawei Cloud SDK for VAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/vcm/pom.xml b/services/vcm/pom.xml index be9b573c87..0cc96b3936 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-vcm - 3.1.110 + 3.1.111 Huawei Cloud SDK for VCM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/vias/pom.xml b/services/vias/pom.xml index edae41b96d..a196b64f80 100644 --- a/services/vias/pom.xml +++ b/services/vias/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-vias - 3.1.110 + 3.1.111 Huawei Cloud SDK for VIAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/vod/pom.xml b/services/vod/pom.xml index 6497e96907..6ad2d9a95d 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-vod - 3.1.110 + 3.1.111 Huawei Cloud SDK for VOD 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/vpc/pom.xml b/services/vpc/pom.xml index 9c7a9cd855..00b330fd56 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-vpc - 3.1.110 + 3.1.111 Huawei Cloud SDK for VPC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/vpcep/pom.xml b/services/vpcep/pom.xml index 8f86a71608..5a051e7933 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-vpcep - 3.1.110 + 3.1.111 Huawei Cloud SDK for VPCEP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/CreateEndpointRequestBody.java b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/CreateEndpointRequestBody.java index 91fd44d9f6..78c297d805 100644 --- a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/CreateEndpointRequestBody.java +++ b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/CreateEndpointRequestBody.java @@ -76,7 +76,7 @@ public class CreateEndpointRequestBody { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "policy_document") - private String policyDocument; + private Object policyDocument; /** * 指定终端节点的IP版本,仅专业型终端节点支持此参数。 - ipv4, IPv4 - dualstack, 双栈 @@ -409,7 +409,7 @@ public void setPolicyStatement(List policyStatement) { this.policyStatement = policyStatement; } - public CreateEndpointRequestBody withPolicyDocument(String policyDocument) { + public CreateEndpointRequestBody withPolicyDocument(Object policyDocument) { this.policyDocument = policyDocument; return this; } @@ -418,11 +418,11 @@ public CreateEndpointRequestBody withPolicyDocument(String policyDocument) { * 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) * @return policyDocument */ - public String getPolicyDocument() { + public Object getPolicyDocument() { return policyDocument; } - public void setPolicyDocument(String policyDocument) { + public void setPolicyDocument(Object policyDocument) { this.policyDocument = policyDocument; } diff --git a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/CreateEndpointResponse.java b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/CreateEndpointResponse.java index 4081731fd9..d3334eb9ae 100644 --- a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/CreateEndpointResponse.java +++ b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/CreateEndpointResponse.java @@ -123,7 +123,7 @@ public class CreateEndpointResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "policy_document") - private String policyDocument; + private Object policyDocument; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "enable_status") @@ -582,7 +582,7 @@ public void setPolicyStatement(List policyStatement) { this.policyStatement = policyStatement; } - public CreateEndpointResponse withPolicyDocument(String policyDocument) { + public CreateEndpointResponse withPolicyDocument(Object policyDocument) { this.policyDocument = policyDocument; return this; } @@ -591,11 +591,11 @@ public CreateEndpointResponse withPolicyDocument(String policyDocument) { * 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) * @return policyDocument */ - public String getPolicyDocument() { + public Object getPolicyDocument() { return policyDocument; } - public void setPolicyDocument(String policyDocument) { + public void setPolicyDocument(Object policyDocument) { this.policyDocument = policyDocument; } diff --git a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/DeleteEndpointPolicyResponse.java b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/DeleteEndpointPolicyResponse.java index a9857e1579..9770509148 100644 --- a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/DeleteEndpointPolicyResponse.java +++ b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/DeleteEndpointPolicyResponse.java @@ -113,7 +113,7 @@ public class DeleteEndpointPolicyResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "policy_document") - private String policyDocument; + private Object policyDocument; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "endpoint_pool_id") @@ -544,7 +544,7 @@ public void setPolicyStatement(List policyStatement) { this.policyStatement = policyStatement; } - public DeleteEndpointPolicyResponse withPolicyDocument(String policyDocument) { + public DeleteEndpointPolicyResponse withPolicyDocument(Object policyDocument) { this.policyDocument = policyDocument; return this; } @@ -553,11 +553,11 @@ public DeleteEndpointPolicyResponse withPolicyDocument(String policyDocument) { * 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) * @return policyDocument */ - public String getPolicyDocument() { + public Object getPolicyDocument() { return policyDocument; } - public void setPolicyDocument(String policyDocument) { + public void setPolicyDocument(Object policyDocument) { this.policyDocument = policyDocument; } diff --git a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/EndpointResponseBody.java b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/EndpointResponseBody.java index fd5fd6ddc7..585ee7582f 100644 --- a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/EndpointResponseBody.java +++ b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/EndpointResponseBody.java @@ -127,7 +127,7 @@ public class EndpointResponseBody { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "policy_document") - private String policyDocument; + private Object policyDocument; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "endpoint_pool_id") @@ -625,7 +625,7 @@ public void setPolicyStatement(List policyStatement) { this.policyStatement = policyStatement; } - public EndpointResponseBody withPolicyDocument(String policyDocument) { + public EndpointResponseBody withPolicyDocument(Object policyDocument) { this.policyDocument = policyDocument; return this; } @@ -634,11 +634,11 @@ public EndpointResponseBody withPolicyDocument(String policyDocument) { * 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) * @return policyDocument */ - public String getPolicyDocument() { + public Object getPolicyDocument() { return policyDocument; } - public void setPolicyDocument(String policyDocument) { + public void setPolicyDocument(Object policyDocument) { this.policyDocument = policyDocument; } diff --git a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/ListEndpointInfoDetailsResponse.java b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/ListEndpointInfoDetailsResponse.java index 1e9f9b962c..60170cb434 100644 --- a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/ListEndpointInfoDetailsResponse.java +++ b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/ListEndpointInfoDetailsResponse.java @@ -138,7 +138,7 @@ public class ListEndpointInfoDetailsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "policy_document") - private String policyDocument; + private Object policyDocument; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "endpoint_pool_id") @@ -668,7 +668,7 @@ public void setPolicyStatement(List policyStatement) { this.policyStatement = policyStatement; } - public ListEndpointInfoDetailsResponse withPolicyDocument(String policyDocument) { + public ListEndpointInfoDetailsResponse withPolicyDocument(Object policyDocument) { this.policyDocument = policyDocument; return this; } @@ -677,11 +677,11 @@ public ListEndpointInfoDetailsResponse withPolicyDocument(String policyDocument) * 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) * @return policyDocument */ - public String getPolicyDocument() { + public Object getPolicyDocument() { return policyDocument; } - public void setPolicyDocument(String policyDocument) { + public void setPolicyDocument(Object policyDocument) { this.policyDocument = policyDocument; } diff --git a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/UpdateEndpointPolicyRequestBody.java b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/UpdateEndpointPolicyRequestBody.java index 5ab70e3db1..89278b5b29 100644 --- a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/UpdateEndpointPolicyRequestBody.java +++ b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/UpdateEndpointPolicyRequestBody.java @@ -21,7 +21,7 @@ public class UpdateEndpointPolicyRequestBody { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "policy_document") - private String policyDocument; + private Object policyDocument; public UpdateEndpointPolicyRequestBody withPolicyStatement(List policyStatement) { this.policyStatement = policyStatement; @@ -56,7 +56,7 @@ public void setPolicyStatement(List policyStatement) { this.policyStatement = policyStatement; } - public UpdateEndpointPolicyRequestBody withPolicyDocument(String policyDocument) { + public UpdateEndpointPolicyRequestBody withPolicyDocument(Object policyDocument) { this.policyDocument = policyDocument; return this; } @@ -65,11 +65,11 @@ public UpdateEndpointPolicyRequestBody withPolicyDocument(String policyDocument) * 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) * @return policyDocument */ - public String getPolicyDocument() { + public Object getPolicyDocument() { return policyDocument; } - public void setPolicyDocument(String policyDocument) { + public void setPolicyDocument(Object policyDocument) { this.policyDocument = policyDocument; } diff --git a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/UpdateEndpointPolicyResponse.java b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/UpdateEndpointPolicyResponse.java index bf8e7756d8..97e6a51bc4 100644 --- a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/UpdateEndpointPolicyResponse.java +++ b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/UpdateEndpointPolicyResponse.java @@ -113,7 +113,7 @@ public class UpdateEndpointPolicyResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "policy_document") - private String policyDocument; + private Object policyDocument; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "endpoint_pool_id") @@ -544,7 +544,7 @@ public void setPolicyStatement(List policyStatement) { this.policyStatement = policyStatement; } - public UpdateEndpointPolicyResponse withPolicyDocument(String policyDocument) { + public UpdateEndpointPolicyResponse withPolicyDocument(Object policyDocument) { this.policyDocument = policyDocument; return this; } @@ -553,11 +553,11 @@ public UpdateEndpointPolicyResponse withPolicyDocument(String policyDocument) { * 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) * @return policyDocument */ - public String getPolicyDocument() { + public Object getPolicyDocument() { return policyDocument; } - public void setPolicyDocument(String policyDocument) { + public void setPolicyDocument(Object policyDocument) { this.policyDocument = policyDocument; } diff --git a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/UpdateEndpointWhiteResponse.java b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/UpdateEndpointWhiteResponse.java index 611ee152c9..7016e63be6 100644 --- a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/UpdateEndpointWhiteResponse.java +++ b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/UpdateEndpointWhiteResponse.java @@ -113,7 +113,7 @@ public class UpdateEndpointWhiteResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "policy_document") - private String policyDocument; + private Object policyDocument; public UpdateEndpointWhiteResponse withId(String id) { this.id = id; @@ -518,7 +518,7 @@ public void setPolicyStatement(List policyStatement) { this.policyStatement = policyStatement; } - public UpdateEndpointWhiteResponse withPolicyDocument(String policyDocument) { + public UpdateEndpointWhiteResponse withPolicyDocument(Object policyDocument) { this.policyDocument = policyDocument; return this; } @@ -527,11 +527,11 @@ public UpdateEndpointWhiteResponse withPolicyDocument(String policyDocument) { * 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) * @return policyDocument */ - public String getPolicyDocument() { + public Object getPolicyDocument() { return policyDocument; } - public void setPolicyDocument(String policyDocument) { + public void setPolicyDocument(Object policyDocument) { this.policyDocument = policyDocument; } diff --git a/services/vpn/pom.xml b/services/vpn/pom.xml index 6ee26d1566..b0f18e5fb4 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-vpn - 3.1.110 + 3.1.111 Huawei Cloud SDK for VPN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/waf/pom.xml b/services/waf/pom.xml index dbd95f1987..03fcc2b502 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-waf - 3.1.110 + 3.1.111 Huawei Cloud SDK for WAF 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 diff --git a/services/workspace/pom.xml b/services/workspace/pom.xml index da17fe0799..000aca96fc 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-workspace - 3.1.110 + 3.1.111 Huawei Cloud SDK for WORKSPACE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111 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 a4e7917a29..f531d7ec5b 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 @@ -107,6 +107,8 @@ import com.huaweicloud.sdk.workspace.v2.model.ListDesktopNamePolicyResponse; import com.huaweicloud.sdk.workspace.v2.model.ListDesktopUsageMetricRequest; import com.huaweicloud.sdk.workspace.v2.model.ListDesktopUsageMetricResponse; +import com.huaweicloud.sdk.workspace.v2.model.ListDesktopsConnectStatusRequest; +import com.huaweicloud.sdk.workspace.v2.model.ListDesktopsConnectStatusResponse; import com.huaweicloud.sdk.workspace.v2.model.ListDesktopsDetailRequest; import com.huaweicloud.sdk.workspace.v2.model.ListDesktopsDetailResponse; import com.huaweicloud.sdk.workspace.v2.model.ListDesktopsEipsRequest; @@ -962,6 +964,36 @@ public AsyncInvoker listDesktopsAsync return new AsyncInvoker<>(request, WorkspaceMeta.listDesktops, hcClient); } + /** + * 查询桌面登录状态列表 + * + * 查询桌面登录状态列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDesktopsConnectStatusRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listDesktopsConnectStatusAsync( + ListDesktopsConnectStatusRequest request) { + return hcClient.asyncInvokeHttp(request, WorkspaceMeta.listDesktopsConnectStatus); + } + + /** + * 查询桌面登录状态列表 + * + * 查询桌面登录状态列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDesktopsConnectStatusRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listDesktopsConnectStatusAsyncInvoker( + ListDesktopsConnectStatusRequest request) { + return new AsyncInvoker<>(request, WorkspaceMeta.listDesktopsConnectStatus, 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 368c93b509..b3c5e869bf 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 @@ -107,6 +107,8 @@ import com.huaweicloud.sdk.workspace.v2.model.ListDesktopNamePolicyResponse; import com.huaweicloud.sdk.workspace.v2.model.ListDesktopUsageMetricRequest; import com.huaweicloud.sdk.workspace.v2.model.ListDesktopUsageMetricResponse; +import com.huaweicloud.sdk.workspace.v2.model.ListDesktopsConnectStatusRequest; +import com.huaweicloud.sdk.workspace.v2.model.ListDesktopsConnectStatusResponse; import com.huaweicloud.sdk.workspace.v2.model.ListDesktopsDetailRequest; import com.huaweicloud.sdk.workspace.v2.model.ListDesktopsDetailResponse; import com.huaweicloud.sdk.workspace.v2.model.ListDesktopsEipsRequest; @@ -946,6 +948,35 @@ public SyncInvoker listDesktopsInvoke return new SyncInvoker<>(request, WorkspaceMeta.listDesktops, hcClient); } + /** + * 查询桌面登录状态列表 + * + * 查询桌面登录状态列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDesktopsConnectStatusRequest 请求对象 + * @return ListDesktopsConnectStatusResponse + */ + public ListDesktopsConnectStatusResponse listDesktopsConnectStatus(ListDesktopsConnectStatusRequest request) { + return hcClient.syncInvokeHttp(request, WorkspaceMeta.listDesktopsConnectStatus); + } + + /** + * 查询桌面登录状态列表 + * + * 查询桌面登录状态列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDesktopsConnectStatusRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listDesktopsConnectStatusInvoker( + ListDesktopsConnectStatusRequest request) { + return new SyncInvoker<>(request, WorkspaceMeta.listDesktopsConnectStatus, 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 3beaa2ee64..3ce90fb577 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 @@ -143,6 +143,8 @@ import com.huaweicloud.sdk.workspace.v2.model.ListDesktopNamePolicyResponse; import com.huaweicloud.sdk.workspace.v2.model.ListDesktopUsageMetricRequest; import com.huaweicloud.sdk.workspace.v2.model.ListDesktopUsageMetricResponse; +import com.huaweicloud.sdk.workspace.v2.model.ListDesktopsConnectStatusRequest; +import com.huaweicloud.sdk.workspace.v2.model.ListDesktopsConnectStatusResponse; import com.huaweicloud.sdk.workspace.v2.model.ListDesktopsDetailRequest; import com.huaweicloud.sdk.workspace.v2.model.ListDesktopsDetailResponse; import com.huaweicloud.sdk.workspace.v2.model.ListDesktopsEipsRequest; @@ -1008,6 +1010,51 @@ private static HttpRequestDef genForL return builder.build(); } + public static final HttpRequestDef listDesktopsConnectStatus = + genForListDesktopsConnectStatus(); + + private static HttpRequestDef genForListDesktopsConnectStatus() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ListDesktopsConnectStatusRequest.class, + ListDesktopsConnectStatusResponse.class) + .withName("ListDesktopsConnectStatus") + .withUri("/v2/{project_id}/connect-desktops") + .withContentType("application/json"); + + // requests + builder.>withRequestField("user_names", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(List.class), + f -> f.withMarshaller(ListDesktopsConnectStatusRequest::getUserNames, + ListDesktopsConnectStatusRequest::setUserNames)); + builder.withRequestField("connect_status", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDesktopsConnectStatusRequest::getConnectStatus, + ListDesktopsConnectStatusRequest::setConnectStatus)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListDesktopsConnectStatusRequest::getOffset, + ListDesktopsConnectStatusRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListDesktopsConnectStatusRequest::getLimit, + ListDesktopsConnectStatusRequest::setLimit)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listDesktopsDetail = genForListDesktopsDetail(); diff --git a/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/AttachUsersInfo.java b/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/AttachUsersInfo.java new file mode 100644 index 0000000000..c221c3422d --- /dev/null +++ b/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/AttachUsersInfo.java @@ -0,0 +1,142 @@ +package com.huaweicloud.sdk.workspace.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 桌面分配用户信息。 + */ +public class AttachUsersInfo { + + @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 = "user_group") + + private String userGroup; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + public AttachUsersInfo withId(String id) { + this.id = id; + return this; + } + + /** + * 当type字段为USER时,填写用户id;当type字段为GROUP时,填写用户组id,后端服务会校验组id是否存在; + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public AttachUsersInfo withName(String name) { + this.name = name; + return this; + } + + /** + * 桌面分配对象的名称,当type类型USER时填写用户名字;当type类型GROUP时填写用户组名称。 - 当type类型USER时:桌面所属的用户,当桌面分配成功后此用户可以登录该桌面。只允许输入大写字母、小写字母、数字、中划线(-)和下划线(_)。域类型为LITE_AD时,使用小写字母或者大写字母开头,长度范围为[1-20]。当域类型为LOCAL_AD时,用户名可以使用小写字母或者大写字母或者数字开头,长度范围为[1-64]。Windows桌面用户最长支持20个字符,Linux桌面用户最长支持64个字符。后端服务会校验用户名是否存在,并且用户名不能与机器名重复。 - 当type类型GROUP时:只能为中文、字母、数字及特殊符号-_。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public AttachUsersInfo withUserGroup(String userGroup) { + this.userGroup = userGroup; + return this; + } + + /** + * 桌面用户所属的用户组。 - sudo:Linux管理员组。 - default:Linux默认用户组。 - administrators:Windows管理员组。管理员拥有对该桌面的完全访问权,可以做任何需要的更改(禁用操作除外)。 - users:Windows标准用户组。标准用户可以使用大多数软件,并可以更改不影响其他用户的系统设置。 + * @return userGroup + */ + public String getUserGroup() { + return userGroup; + } + + public void setUserGroup(String userGroup) { + this.userGroup = userGroup; + } + + public AttachUsersInfo withType(String type) { + this.type = type; + return this; + } + + /** + * 对象类型,可选值为: - USER:用户。 - GROUP:用户组。 + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AttachUsersInfo that = (AttachUsersInfo) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.userGroup, that.userGroup) && Objects.equals(this.type, that.type); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, userGroup, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AttachUsersInfo {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" userGroup: ").append(toIndentedString(userGroup)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/ConnectDesktopsInfo.java b/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/ConnectDesktopsInfo.java new file mode 100644 index 0000000000..ee91722f94 --- /dev/null +++ b/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/ConnectDesktopsInfo.java @@ -0,0 +1,162 @@ +package com.huaweicloud.sdk.workspace.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 ConnectDesktopsInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "desktop_id") + + private String desktopId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "desktop_name") + + private String desktopName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "connect_status") + + private String connectStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "attach_users") + + private List attachUsers = null; + + public ConnectDesktopsInfo withDesktopId(String desktopId) { + this.desktopId = desktopId; + return this; + } + + /** + * 桌面id。 + * @return desktopId + */ + public String getDesktopId() { + return desktopId; + } + + public void setDesktopId(String desktopId) { + this.desktopId = desktopId; + } + + public ConnectDesktopsInfo withDesktopName(String desktopName) { + this.desktopName = desktopName; + return this; + } + + /** + * 桌面名称。 + * @return desktopName + */ + public String getDesktopName() { + return desktopName; + } + + public void setDesktopName(String desktopName) { + this.desktopName = desktopName; + } + + public ConnectDesktopsInfo withConnectStatus(String connectStatus) { + this.connectStatus = connectStatus; + return this; + } + + /** + * 桌面的登录状态。 - UNREGISTER:表示桌面未注册时的状态(桌面启动后,会自动注册)。关机后也会出现未注册的状态。 - REGISTERED:表示桌面注册以后,等待用户连接的状态。 - CONNECTED:表示用户已经成功登录,正在使用桌面。 - DISCONNECTED:表示桌面与客户端断开会话后显示的状态,可能为关闭客户端窗口,或客户端与桌面网络断开引起。 + * @return connectStatus + */ + public String getConnectStatus() { + return connectStatus; + } + + public void setConnectStatus(String connectStatus) { + this.connectStatus = connectStatus; + } + + public ConnectDesktopsInfo withAttachUsers(List attachUsers) { + this.attachUsers = attachUsers; + return this; + } + + public ConnectDesktopsInfo addAttachUsersItem(AttachUsersInfo attachUsersItem) { + if (this.attachUsers == null) { + this.attachUsers = new ArrayList<>(); + } + this.attachUsers.add(attachUsersItem); + return this; + } + + public ConnectDesktopsInfo withAttachUsers(Consumer> attachUsersSetter) { + if (this.attachUsers == null) { + this.attachUsers = new ArrayList<>(); + } + attachUsersSetter.accept(this.attachUsers); + return this; + } + + /** + * 桌面已分配的用户或用户组信息列表。 + * @return attachUsers + */ + public List getAttachUsers() { + return attachUsers; + } + + public void setAttachUsers(List attachUsers) { + this.attachUsers = attachUsers; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ConnectDesktopsInfo that = (ConnectDesktopsInfo) obj; + return Objects.equals(this.desktopId, that.desktopId) && Objects.equals(this.desktopName, that.desktopName) + && Objects.equals(this.connectStatus, that.connectStatus) + && Objects.equals(this.attachUsers, that.attachUsers); + } + + @Override + public int hashCode() { + return Objects.hash(desktopId, desktopName, connectStatus, attachUsers); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConnectDesktopsInfo {\n"); + sb.append(" desktopId: ").append(toIndentedString(desktopId)).append("\n"); + sb.append(" desktopName: ").append(toIndentedString(desktopName)).append("\n"); + sb.append(" connectStatus: ").append(toIndentedString(connectStatus)).append("\n"); + sb.append(" attachUsers: ").append(toIndentedString(attachUsers)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/ListDesktopsConnectStatusRequest.java b/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/ListDesktopsConnectStatusRequest.java new file mode 100644 index 0000000000..420034f046 --- /dev/null +++ b/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/ListDesktopsConnectStatusRequest.java @@ -0,0 +1,165 @@ +package com.huaweicloud.sdk.workspace.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; + +/** + * Request Object + */ +public class ListDesktopsConnectStatusRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "user_names") + + private List userNames = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "connect_status") + + private String connectStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + public ListDesktopsConnectStatusRequest withUserNames(List userNames) { + this.userNames = userNames; + return this; + } + + public ListDesktopsConnectStatusRequest addUserNamesItem(String userNamesItem) { + if (this.userNames == null) { + this.userNames = new ArrayList<>(); + } + this.userNames.add(userNamesItem); + return this; + } + + public ListDesktopsConnectStatusRequest withUserNames(Consumer> userNamesSetter) { + if (this.userNames == null) { + this.userNames = new ArrayList<>(); + } + userNamesSetter.accept(this.userNames); + return this; + } + + /** + * 桌面所属用户,批量筛选,最多不超过100个用户。 + * @return userNames + */ + public List getUserNames() { + return userNames; + } + + public void setUserNames(List userNames) { + this.userNames = userNames; + } + + public ListDesktopsConnectStatusRequest withConnectStatus(String connectStatus) { + this.connectStatus = connectStatus; + return this; + } + + /** + * 桌面的登录状态。 - UNREGISTER:表示桌面未注册时的状态(桌面启动后,会自动注册)。关机后也会出现未注册的状态。 - REGISTERED:表示桌面注册以后,等待用户连接的状态。 - CONNECTED:表示用户已经成功登录,正在使用桌面。 - DISCONNECTED:表示桌面与客户端断开会话后显示的状态,可能为关闭客户端窗口,或客户端与桌面网络断开引起。 + * @return connectStatus + */ + public String getConnectStatus() { + return connectStatus; + } + + public void setConnectStatus(String connectStatus) { + this.connectStatus = connectStatus; + } + + public ListDesktopsConnectStatusRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 从查询结果中的第几条数据开始返回,用于分页查询,取值范围0-2000,默认从0开始。 + * minimum: 0 + * maximum: 100000 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListDesktopsConnectStatusRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 查询结果中想要返回的信息条目数量,用于分页查询,取值范围0-2000,默认值100。 + * minimum: 0 + * maximum: 1000 + * @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; + } + ListDesktopsConnectStatusRequest that = (ListDesktopsConnectStatusRequest) obj; + return Objects.equals(this.userNames, that.userNames) && Objects.equals(this.connectStatus, that.connectStatus) + && Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit); + } + + @Override + public int hashCode() { + return Objects.hash(userNames, connectStatus, offset, limit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDesktopsConnectStatusRequest {\n"); + sb.append(" userNames: ").append(toIndentedString(userNames)).append("\n"); + sb.append(" connectStatus: ").append(toIndentedString(connectStatus)).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/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/ListDesktopsConnectStatusResponse.java b/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/ListDesktopsConnectStatusResponse.java new file mode 100644 index 0000000000..751f0eb92f --- /dev/null +++ b/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/ListDesktopsConnectStatusResponse.java @@ -0,0 +1,115 @@ +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 ListDesktopsConnectStatusResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "desktops") + + private List desktops = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_count") + + private Integer totalCount; + + public ListDesktopsConnectStatusResponse withDesktops(List desktops) { + this.desktops = desktops; + return this; + } + + public ListDesktopsConnectStatusResponse addDesktopsItem(ConnectDesktopsInfo desktopsItem) { + if (this.desktops == null) { + this.desktops = new ArrayList<>(); + } + this.desktops.add(desktopsItem); + return this; + } + + public ListDesktopsConnectStatusResponse withDesktops(Consumer> desktopsSetter) { + if (this.desktops == null) { + this.desktops = new ArrayList<>(); + } + desktopsSetter.accept(this.desktops); + return this; + } + + /** + * 桌面登录信息列表。 + * @return desktops + */ + public List getDesktops() { + return desktops; + } + + public void setDesktops(List desktops) { + this.desktops = desktops; + } + + public ListDesktopsConnectStatusResponse 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; + } + ListDesktopsConnectStatusResponse that = (ListDesktopsConnectStatusResponse) obj; + return Objects.equals(this.desktops, that.desktops) && Objects.equals(this.totalCount, that.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(desktops, totalCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDesktopsConnectStatusResponse {\n"); + sb.append(" desktops: ").append(toIndentedString(desktops)).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/workspaceapp/pom.xml b/services/workspaceapp/pom.xml index 9fe9345add..968bdf5f5b 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.110 + 3.1.111 huaweicloud-sdk-services .. huaweicloud-sdk-workspaceapp - 3.1.110 + 3.1.111 Huawei Cloud SDK for WORKSPACEAPP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.110 + 3.1.111