From 830dd41454290a3a40a91b05f29996ed0f7857db Mon Sep 17 00:00:00 2001 From: Huaweicloud-SDK Date: Thu, 19 Dec 2024 17:17:15 +0800 Subject: [PATCH] release 3.1.128 source code --- CHANGELOG.md | 381 ++++++++ CHANGELOG_CN.md | 381 ++++++++ VERSION | 2 +- all/pom.xml | 362 ++++---- bundle/pom.xml | 6 +- core-bson/pom.xml | 6 +- core-xml/pom.xml | 6 +- core/pom.xml | 4 +- pom.xml | 2 +- services/aad/pom.xml | 6 +- .../sdk/aad/v2/AadAsyncClient.java | 63 ++ .../com/huaweicloud/sdk/aad/v2/AadClient.java | 62 ++ .../com/huaweicloud/sdk/aad/v2/AadMeta.java | 62 ++ .../v2/model/AddWafWhiteIpRuleRequest.java | 82 ++ .../v2/model/AddWafWhiteIpRuleResponse.java | 73 ++ .../model/AddWafWhiteIpRuleV2RequestBody.java | 161 ++++ .../v2/model/DeleteWafWhiteIpRuleRequest.java | 82 ++ .../model/DeleteWafWhiteIpRuleResponse.java | 73 ++ .../DeleteWafWhiteIpRuleV2RequestBody.java | 138 +++ 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 +- .../as/v1/model/ScalingActivityLogList.java | 6 +- .../sdk/as/v1/model/ScalingActivityLogV2.java | 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 +- .../v1/model/ComponentSnapshotContext.java | 6 + .../sdk/cae/v1/model/ComponentSpec.java | 6 + .../sdk/cae/v1/model/CreateComponentSpec.java | 6 + ...onentWithConfigurationRequestBodySpec.java | 6 + .../v1/model/UpdateComponentRequestSpec.java | 6 + .../sdk/cae/v1/region/CaeRegion.java | 16 +- 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/model/SupportVersions.java | 43 +- .../sdk/cce/v3/region/CceRegion.java | 4 + services/ccm/pom.xml | 6 +- services/cdm/pom.xml | 6 +- services/cdn/pom.xml | 6 +- services/ces/pom.xml | 6 +- services/cfw/pom.xml | 6 +- services/cgs/pom.xml | 6 +- services/classroom/pom.xml | 6 +- services/cloudide/pom.xml | 6 +- services/cloudpond/pom.xml | 6 +- 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 +- .../sdk/codeartspipeline/v2/model/JobRun.java | 8 +- 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/dataartsfabric/pom.xml | 6 +- .../v1/region/DataArtsFabricRegion.java | 53 ++ services/dataartsfabricep/pom.xml | 6 +- .../v1/region/DataArtsFabricEpRegion.java | 54 ++ services/dataartsinsight/pom.xml | 6 +- services/dataartsstudio/pom.xml | 6 +- .../v1/DataArtsStudioAsyncClient.java | 32 + .../v1/DataArtsStudioClient.java | 31 + .../dataartsstudio/v1/DataArtsStudioMeta.java | 44 + .../v1/model/RetryFactoryJobInstanceBody.java | 305 +++++++ .../RetryFactoryJobInstanceBodyJobs.java | 95 ++ ...RetryFactoryJobInstanceBodyTaskRetrys.java | 119 +++ .../model/RetryFactoryJobInstanceRequest.java | 154 ++++ .../RetryFactoryJobInstanceResponse.java | 36 + services/dbss/pom.xml | 6 +- services/dc/pom.xml | 6 +- .../huaweicloud/sdk/dc/v3/DcAsyncClient.java | 369 ++++---- .../com/huaweicloud/sdk/dc/v3/DcClient.java | 358 ++++---- .../com/huaweicloud/sdk/dc/v3/DcMeta.java | 697 ++++++--------- .../sdk/dc/v3/model/AddGdgwRouteAction.java | 142 +++ .../model/{Locale.java => AddressBody.java} | 16 +- .../sdk/dc/v3/model/AddressFamily.java | 78 ++ .../sdk/dc/v3/model/BandWidthInfo.java | 97 ++ .../dc/v3/model/BandwidthInfoExternal.java | 28 +- ...ateRoutes.java => BaseAddRouteAction.java} | 21 +- .../dc/v3/model/BaseDeleteRouteAction.java | 95 ++ .../dc/v3/model/BindGlobalEipsResponse.java | 30 +- .../sdk/dc/v3/model/CommonRoutetable.java | 418 +++++++++ ...=> CreateExternalPeerLinkRequestBody.java} | 48 +- ...eExternalPeerLinkRequestBodyPeerLink.java} | 31 +- ...alPeerLinkRequestBodyPeerLinkPeerSite.java | 120 +++ ...ateway.java => CreateGlobalDcGateway.java} | 53 +- ...y.java => CreateGlobalDcGatewayEntry.java} | 344 ++++---- .../CreateGlobalDcGatewayRequestBody.java | 43 +- ...GatewayRequestBodyGlobalDcGatewayTags.java | 96 -- .../model/CreateGlobalDcGatewayResponse.java | 66 +- .../dc/v3/model/CreatePeerLinkRequest.java | 14 +- .../dc/v3/model/CreatePeerLinkResponse.java | 32 +- .../dc/v3/model/CreateVifPeerResponse.java | 27 +- .../sdk/dc/v3/model/CreateVirtualGateway.java | 43 +- .../dc/v3/model/CreateVirtualInterface.java | 16 +- .../dc/v3/model/DeleteGdgwRouteAction.java | 119 +++ .../model/DeleteGlobalDcGatewayRequest.java | 2 +- .../model/DeleteGlobalDcGatewayResponse.java | 43 +- .../dc/v3/model/DeletePeerLinkRequest.java | 4 +- .../dc/v3/model/DeletePeerLinkResponse.java | 43 +- .../sdk/dc/v3/model/DirectConnect.java | 24 +- .../v3/model/DirectConnectLocationEntry.java | 446 ++++++++++ .../model/ExternalCreateGlobalDcGateway.java | 493 ----------- .../dc/v3/model/ExternalCreatePeerLink.java | 37 +- .../dc/v3/model/ExternalListPeerLinks.java | 386 -------- .../v3/model/ExternalShowGlobalDcGateway.java | 545 ------------ .../model/ExternalUpdateGlobalDcGateway.java | 468 ---------- .../dc/v3/model/ExternalUpdatePeerLink.java | 20 +- ...etable.java => GdgwRouteTableRequest.java} | 59 +- ...ateways.java => GlobalDcGatewayEntry.java} | 361 ++++---- .../dc/v3/model/GlobalDcGatewayStatus.java | 90 ++ .../sdk/dc/v3/model/HostedDirectConnect.java | 45 +- .../sdk/dc/v3/model/ListBindingGeip.java | 163 +++- .../v3/model/ListConnectGatewaysRequest.java | 6 +- .../ListDirectConnectLocationsRequest.java | 357 ++++++++ .../ListDirectConnectLocationsResponse.java | 151 ++++ .../v3/model/ListGdgwRouteTablesRequest.java | 144 +-- .../v3/model/ListGdgwRouteTablesResponse.java | 34 +- ....java => ListGlobalDcGatewaysRequest.java} | 307 +++---- ...java => ListGlobalDcGatewaysResponse.java} | 80 +- .../dc/v3/model/ListGlobalEipsRequest.java | 6 +- .../dc/v3/model/ListGlobalEipsResponse.java | 30 +- .../sdk/dc/v3/model/ListPeerLinksRequest.java | 64 +- .../dc/v3/model/ListPeerLinksResponse.java | 67 +- .../model/ListRmsGlobalDcGatewayRequest.java | 755 ---------------- .../model/ListRmsGlobalDcGatewayResponse.java | 175 ---- .../v3/model/ListVirtualGatewaysRequest.java | 2 +- ...alShowPeerLink.java => PeerLinkEntry.java} | 197 ++--- .../sdk/dc/v3/model/PeerLinkStatus.java | 90 ++ ...odyPeerLinkPeerSite.java => PeerSite.java} | 143 ++- .../sdk/dc/v3/model/PeerSiteExternal.java | 37 +- .../sdk/dc/v3/model/ProviderResponseBody.java | 176 ++++ .../sdk/dc/v3/model/ProviderValueBody.java | 95 ++ .../dc/v3/model/RmsListGlobalDcGateways.java | 545 ------------ .../sdk/dc/v3/model/RouteDescription.java | 34 + .../sdk/dc/v3/model/RouteDestination.java | 34 + .../sdk/dc/v3/model/RouteNextHop.java | 34 + .../sdk/dc/v3/model/RouteTypeOfGdgw.java | 78 ++ .../ShowDirectConnectLocationRequest.java | 72 ++ .../ShowDirectConnectLocationResponse.java | 109 +++ .../sdk/dc/v3/model/ShowGdgwRoutetable.java | 252 +++++- .../v3/model/ShowGlobalDcGatewayRequest.java | 94 +- .../v3/model/ShowGlobalDcGatewayResponse.java | 67 +- .../sdk/dc/v3/model/ShowPeerLinkRequest.java | 92 +- .../sdk/dc/v3/model/ShowPeerLinkResponse.java | 64 +- .../sdk/dc/v3/model/ShowQuotasRequest.java | 2 +- .../model/ShowQuotasResponseBodyQuotas.java | 2 +- .../model/ShowRmsGlobalDcGatewayRequest.java | 248 ------ .../model/ShowRmsGlobalDcGatewayResponse.java | 133 --- .../sdk/dc/v3/model/SwitchoverTestRecord.java | 4 +- .../dc/v3/model/UnbindGlobalEipsResponse.java | 30 +- .../model/UpdateConnectGatewayResponse.java | 75 +- .../sdk/dc/v3/model/UpdateDirectConnect.java | 12 +- ...=> UpdateExternalPeerLinkRequestBody.java} | 48 +- ...eExternalPeerLinkRequestBodyPeerLink.java} | 16 +- .../v3/model/UpdateGdgwRouteTableRequest.java | 2 +- .../model/UpdateGdgwRouteTableResponse.java | 34 +- .../UpdateGdgwRoutetableRequestBody.java | 18 +- .../dc/v3/model/UpdateGlobalDcGateway.java | 119 +++ .../model/UpdateGlobalDcGatewayRequest.java | 2 +- .../UpdateGlobalDcGatewayRequestBody.java | 43 +- ...alDcGatewayRequestBodyGlobalDcGateway.java | 194 ---- .../model/UpdateGlobalDcGatewayResponse.java | 67 +- .../dc/v3/model/UpdatePeerLinkRequest.java | 16 +- .../dc/v3/model/UpdatePeerLinkResponse.java | 30 +- .../sdk/dc/v3/model/UpdateRouteAction.java | 119 +++ .../dc/v3/model/UpdateVifPeerResponse.java | 27 +- .../sdk/dc/v3/model/UpdateVirtualGateway.java | 4 +- .../dc/v3/model/UpdateVirtualInterface.java | 6 +- .../sdk/dc/v3/model/VifExtendAttribute.java | 2 +- .../huaweicloud/sdk/dc/v3/model/VifPeer.java | 2 +- .../sdk/dc/v3/model/VirtualGateway.java | 25 + .../sdk/dc/v3/model/VirtualInterface.java | 37 +- services/dcs/pom.xml | 6 +- .../sdk/dcs/v2/DcsAsyncClient.java | 315 +++++++ .../com/huaweicloud/sdk/dcs/v2/DcsClient.java | 313 +++++++ .../com/huaweicloud/sdk/dcs/v2/DcsMeta.java | 321 +++++++ .../v2/model/BandwidthAutoScalingPolicy.java | 398 +++++++++ .../model/ChangeNodesStartStopStatusBody.java | 114 +++ .../ChangeNodesStartStopStatusRequest.java | 105 +++ .../model/ChangeNodesStartStopStatusResp.java | 34 + .../ChangeNodesStartStopStatusResponse.java | 73 ++ ...anceBandwidthAutoScalingPolicyRequest.java | 72 ++ ...nstanceBandwidthAutoScalingPolicyResp.java | 34 + ...nceBandwidthAutoScalingPolicyResponse.java | 73 ++ .../dcs/v2/model/DeletePublicIpRequest.java | 72 ++ .../dcs/v2/model/DeletePublicIpResponse.java | 73 ++ .../sdk/dcs/v2/model/GroupBandwidthInfo.java | 166 ++++ .../dcs/v2/model/ShowBandwidthsRequest.java | 72 ++ .../dcs/v2/model/ShowBandwidthsResponse.java | 163 ++++ ...anceBandwidthAutoScalingPolicyRequest.java | 72 ++ ...nceBandwidthAutoScalingPolicyResponse.java | 400 +++++++++ .../v2/model/ShowInstanceVersionRequest.java | 72 ++ .../v2/model/ShowInstanceVersionResponse.java | 202 +++++ .../v2/model/UpdateBandwidthInfoRequest.java | 92 ++ .../dcs/v2/model/UpdateBandwidthRequest.java | 105 +++ .../sdk/dcs/v2/model/UpdateBandwidthResp.java | 34 + .../dcs/v2/model/UpdateBandwidthResponse.java | 73 ++ .../UpdateGroupBandwidthInfoRequest.java | 95 ++ ...anceBandwidthAutoScalingPolicyRequest.java | 107 +++ ...BandwidthAutoScalingPolicyRequestBody.java | 400 +++++++++ ...nceBandwidthAutoScalingPolicyResponse.java | 400 +++++++++ .../dcs/v2/model/UpdatePublicIpRequest.java | 105 +++ .../v2/model/UpdatePublicIpRequestBody.java | 119 +++ .../dcs/v2/model/UpdatePublicIpResponse.java | 73 ++ .../UpgradeInstanceMinorVersionRequest.java | 105 +++ .../UpgradeInstanceMinorVersionResponse.java | 73 ++ .../model/UpgradeMinorVersionRequestBody.java | 96 ++ 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 +- services/dsc/pom.xml | 6 +- services/dss/pom.xml | 6 +- services/dwr/pom.xml | 6 +- services/dws/pom.xml | 6 +- .../com/huaweicloud/sdk/dws/v2/DwsMeta.java | 6 +- .../dws/v2/model/BackupStrategyRequest.java | 166 ++++ .../v2/model/CreateSnapshotPolicyRequest.java | 12 +- ...a => CreateSnapshotPolicyRequestBody.java} | 56 +- .../sdk/dws/v2/model/ScaleOut.java | 27 +- 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 +- services/eip/pom.xml | 6 +- services/elb/pom.xml | 6 +- services/eps/pom.xml | 6 +- services/er/pom.xml | 6 +- services/evs/pom.xml | 6 +- .../sdk/evs/v2/EvsAsyncClient.java | 36 + .../com/huaweicloud/sdk/evs/v2/EvsClient.java | 35 + .../com/huaweicloud/sdk/evs/v2/EvsMeta.java | 40 + .../v2/model/QuotaDetailGigabytesESSD.java | 119 +++ .../v2/model/QuotaDetailSnapshotsESSD.java | 119 +++ .../evs/v2/model/QuotaDetailVolumesESSD.java | 119 +++ .../sdk/evs/v2/model/QuotaList.java | 102 +++ .../UnsubscribePostpaidVolumeRequest.java | 82 ++ .../UnsubscribePostpaidVolumeResponse.java | 92 ++ .../sdk/evs/v2/model/UnsubscribeVolume.java | 142 +++ .../model/UnsubscribeVolumeRequestBody.java | 91 ++ .../model/UnsubscribeVolumeResponseBody.java | 91 ++ services/expert/pom.xml | 6 +- services/frs/pom.xml | 6 +- services/functiongraph/pom.xml | 6 +- services/ga/pom.xml | 6 +- services/gaussdb/pom.xml | 6 +- services/gaussdbfornosql/pom.xml | 6 +- services/gaussdbforopengauss/pom.xml | 6 +- .../v3/GaussDBforopenGaussAsyncClient.java | 599 ++++++++++++- .../v3/GaussDBforopenGaussClient.java | 588 ++++++++++++- .../v3/GaussDBforopenGaussMeta.java | 753 ++++++++++++++++ .../model/AllowDbRolePrivilegesRequest.java | 131 +++ .../AllowDbRolePrivilegesRequestBody.java | 95 ++ .../model/AllowDbRolePrivilegesResponse.java | 36 + ...chShowUpgradeCandidateVersionsRequest.java | 182 ++++ ...hShowUpgradeCandidateVersionsResponse.java | 246 ++++++ .../v3/model/CanBeRollbackedHotfixDetail.java | 143 +++ .../v3/model/CanBeUpgradedHotfixDetail.java | 143 +++ .../v3/model/ConfigurationsResult.java | 262 ++++++ .../model/CreateDatabaseInstanceRequest.java | 107 +++ .../CreateDatabaseInstanceRequestBody.java | 731 +++++++++++++++ .../model/CreateDatabaseInstanceResponse.java | 130 +++ .../model/CreateDatabaseInstanceResult.java | 512 +++++++++++ .../v3/model/CreateDbRoleRequest.java | 131 +++ .../v3/model/CreateDbRoleRequestBody.java | 95 ++ .../v3/model/CreateDbRoleResponse.java | 36 + .../model/CreateInstanceDatastoreOption.java} | 99 +-- .../v3/model/DatastoreResult.java} | 108 +-- .../v3/model/DeleteDatabaseSchemaRequest.java | 131 +++ .../DeleteDatabaseSchemaRequestBody.java | 95 ++ .../model/DeleteDatabaseSchemaResponse.java | 36 + .../v3/model/GaussDBListDatabaseRoles.java | 142 +++ .../v3/model/HotfixInfoResult.java | 218 +++++ .../v3/model/ListBackupsDetailsRequest.java | 316 +++++++ .../v3/model/ListBackupsDetailsResponse.java | 115 +++ .../v3/model/ListBackupsResult.java | 444 ++++++++++ .../model/ListDatabaseInstancesRequest.java | 537 +++++++++++ .../model/ListDatabaseInstancesResponse.java | 115 +++ .../v3/model/ListDatabaseRolesRequest.java | 144 +++ .../v3/model/ListDatabaseRolesResponse.java | 115 +++ .../model/ListDatastoresDetailsRequest.java | 149 ++++ .../model/ListDatastoresDetailsResponse.java | 92 ++ .../v3/model/ListFlavorsDetailsRequest.java | 191 ++++ .../v3/model/ListFlavorsDetailsResponse.java | 115 +++ .../ListParameterGroupTemplatesRequest.java | 196 +++++ .../ListParameterGroupTemplatesResponse.java | 116 +++ .../ListRecycleInstancesDetailsRequest.java | 219 +++++ .../ListRecycleInstancesDetailsResponse.java | 116 +++ ...ListRestorableInstancesDetailsRequest.java | 192 ++++ ...istRestorableInstancesDetailsResponse.java | 115 +++ .../model/RecycleInstancesDetailResultV1.java | 833 ++++++++++++++++++ .../ShowInstanceParamGroupDetailRequest.java | 97 ++ .../ShowInstanceParamGroupDetailResponse.java | 190 ++++ .../ShowParameterGroupDetailRequest.java | 172 ++++ .../ShowParameterGroupDetailResponse.java | 337 +++++++ .../ShowSourceInstanceDetailRequest.java | 219 +++++ .../ShowSourceInstanceDetailResponse.java | 491 +++++++++++ ...pgradeCandidateVersionsDetailsRequest.java | 172 ++++ ...gradeCandidateVersionsDetailsResponse.java | 428 +++++++++ .../ShowUpgradeCandidateVersionsResponse.java | 51 +- .../v3/model/SyncLimitDataRequest.java | 72 ++ .../v3/model/SyncLimitDataResponse.java | 143 +++ services/geip/pom.xml | 6 +- services/ges/pom.xml | 6 +- services/gsl/pom.xml | 6 +- services/hilens/pom.xml | 6 +- services/hss/pom.xml | 6 +- services/iam/pom.xml | 6 +- services/iamaccessanalyzer/pom.xml | 6 +- services/identitycenter/pom.xml | 6 +- services/identitycenterstore/pom.xml | 6 +- services/idme/pom.xml | 6 +- services/idmeclassicapi/pom.xml | 6 +- services/iec/pom.xml | 6 +- services/ief/pom.xml | 6 +- services/image/pom.xml | 6 +- services/imagesearch/pom.xml | 6 +- services/ims/pom.xml | 6 +- .../QuickImportImageByFileRequestBody.java | 28 +- services/iotanalytics/pom.xml | 6 +- services/iotda/pom.xml | 6 +- services/iotdm/pom.xml | 6 +- services/iotedge/pom.xml | 6 +- .../sdk/iotedge/v2/IoTEdgeAsyncClient.java | 32 + .../sdk/iotedge/v2/IoTEdgeClient.java | 31 + .../sdk/iotedge/v2/IoTEdgeMeta.java | 47 + .../iotedge/v2/model/ActiveControlRspDTO.java | 189 ++++ .../ListPropertyActiveControlsRequest.java | 142 +++ .../ListPropertyActiveControlsResponse.java | 210 +++++ services/ivs/pom.xml | 6 +- services/kafka/pom.xml | 6 +- services/kms/pom.xml | 6 +- services/koomap/pom.xml | 6 +- services/koomessage/pom.xml | 6 +- services/koophone/pom.xml | 6 +- services/kps/pom.xml | 6 +- services/kvs/pom.xml | 8 +- services/lakeformation/pom.xml | 6 +- services/live/pom.xml | 6 +- services/lts/pom.xml | 6 +- services/mapds/pom.xml | 6 +- services/mas/pom.xml | 6 +- services/mastudio/pom.xml | 6 +- services/meeting/pom.xml | 6 +- 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 +- .../model/AutoClassificationRequestBody.java | 29 +- .../v1/model/AutoClassificationResult.java | 2 +- .../SmartDocumentRecognizerRequestBody.java | 26 +- services/oms/pom.xml | 6 +- services/optverse/pom.xml | 6 +- services/organizations/pom.xml | 6 +- services/orgid/pom.xml | 6 +- services/oroas/pom.xml | 6 +- services/osm/pom.xml | 6 +- services/pangulargemodels/pom.xml | 6 +- services/pom.xml | 318 +++---- services/projectman/pom.xml | 6 +- services/rabbitmq/pom.xml | 6 +- services/ram/pom.xml | 6 +- services/rds/pom.xml | 6 +- .../sdk/rds/v3/RdsAsyncClient.java | 32 + .../com/huaweicloud/sdk/rds/v3/RdsClient.java | 32 + .../com/huaweicloud/sdk/rds/v3/RdsMeta.java | 35 + .../ListUpdateBackupEnhancePolicyRequest.java | 95 ++ ...ListUpdateBackupEnhancePolicyResponse.java | 186 ++++ .../huaweicloud/sdk/rds/v3/model/Policy.java | 95 ++ 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 +- .../com/huaweicloud/sdk/scm/v3/ScmMeta.java | 5 + .../scm/v3/model/ListCertificatesRequest.java | 28 +- services/sdrs/pom.xml | 6 +- services/secmaster/pom.xml | 6 +- services/servicestage/pom.xml | 6 +- services/sfsturbo/pom.xml | 6 +- services/sis/pom.xml | 6 +- services/smn/pom.xml | 6 +- services/sms/pom.xml | 6 +- services/smsapi/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 +- services/vpn/pom.xml | 6 +- services/waf/pom.xml | 6 +- services/workspace/pom.xml | 6 +- services/workspaceapp/pom.xml | 6 +- 443 files changed, 28581 insertions(+), 7964 deletions(-) create mode 100644 services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/model/AddWafWhiteIpRuleRequest.java create mode 100644 services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/model/AddWafWhiteIpRuleResponse.java create mode 100644 services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/model/AddWafWhiteIpRuleV2RequestBody.java create mode 100644 services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/model/DeleteWafWhiteIpRuleRequest.java create mode 100644 services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/model/DeleteWafWhiteIpRuleResponse.java create mode 100644 services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/model/DeleteWafWhiteIpRuleV2RequestBody.java create mode 100644 services/dataartsfabric/src/main/java/com/huaweicloud/sdk/dataartsfabric/v1/region/DataArtsFabricRegion.java create mode 100644 services/dataartsfabricep/src/main/java/com/huaweicloud/sdk/dataartsfabricep/v1/region/DataArtsFabricEpRegion.java create mode 100644 services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RetryFactoryJobInstanceBody.java create mode 100644 services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RetryFactoryJobInstanceBodyJobs.java create mode 100644 services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RetryFactoryJobInstanceBodyTaskRetrys.java create mode 100644 services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RetryFactoryJobInstanceRequest.java create mode 100644 services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RetryFactoryJobInstanceResponse.java create mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/AddGdgwRouteAction.java rename services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/{Locale.java => AddressBody.java} (86%) create mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/AddressFamily.java create mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/BandWidthInfo.java rename services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/{UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes.java => BaseAddRouteAction.java} (77%) create mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/BaseDeleteRouteAction.java create mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CommonRoutetable.java rename services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/{CreatePeerLinkRequestBody.java => CreateExternalPeerLinkRequestBody.java} (51%) rename services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/{CreatePeerLinkRequestBodyPeerLink.java => CreateExternalPeerLinkRequestBodyPeerLink.java} (69%) create mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateExternalPeerLinkRequestBodyPeerLinkPeerSite.java rename services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/{CreateGlobalDcGatewayRequestBodyGlobalDcGateway.java => CreateGlobalDcGateway.java} (80%) rename services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/{RmsShowGlobalDcGateway.java => CreateGlobalDcGatewayEntry.java} (60%) delete mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags.java create mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DeleteGdgwRouteAction.java create mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DirectConnectLocationEntry.java delete mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalCreateGlobalDcGateway.java delete mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalListPeerLinks.java delete mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalShowGlobalDcGateway.java delete mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalUpdateGlobalDcGateway.java rename services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/{UpdateGdgwRoutetableRequestBodyGdgwRoutetable.java => GdgwRouteTableRequest.java} (54%) rename services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/{ExternalListGlobalDcGateways.java => GlobalDcGatewayEntry.java} (65%) create mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/GlobalDcGatewayStatus.java create mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListDirectConnectLocationsRequest.java create mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListDirectConnectLocationsResponse.java rename services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/{ListGlobalDcGatewayRequest.java => ListGlobalDcGatewaysRequest.java} (77%) rename services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/{ListGlobalDcGatewayResponse.java => ListGlobalDcGatewaysResponse.java} (60%) delete mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListRmsGlobalDcGatewayRequest.java delete mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListRmsGlobalDcGatewayResponse.java rename services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/{ExternalShowPeerLink.java => PeerLinkEntry.java} (71%) create mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/PeerLinkStatus.java rename services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/{CreatePeerLinkRequestBodyPeerLinkPeerSite.java => PeerSite.java} (67%) create mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ProviderResponseBody.java create mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ProviderValueBody.java delete mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/RmsListGlobalDcGateways.java create mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/RouteDescription.java create mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/RouteDestination.java create mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/RouteNextHop.java create mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/RouteTypeOfGdgw.java create mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowDirectConnectLocationRequest.java create mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowDirectConnectLocationResponse.java delete mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowRmsGlobalDcGatewayRequest.java delete mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowRmsGlobalDcGatewayResponse.java rename services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/{UpdatePeerLinkRequestBody.java => UpdateExternalPeerLinkRequestBody.java} (51%) rename services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/{UpdatePeerLinkRequestBodyPeerLink.java => UpdateExternalPeerLinkRequestBodyPeerLink.java} (79%) create mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGlobalDcGateway.java delete mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGlobalDcGatewayRequestBodyGlobalDcGateway.java create mode 100644 services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateRouteAction.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/BandwidthAutoScalingPolicy.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ChangeNodesStartStopStatusBody.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ChangeNodesStartStopStatusRequest.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ChangeNodesStartStopStatusResp.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ChangeNodesStartStopStatusResponse.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/DeleteInstanceBandwidthAutoScalingPolicyRequest.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/DeleteInstanceBandwidthAutoScalingPolicyResp.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/DeleteInstanceBandwidthAutoScalingPolicyResponse.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/DeletePublicIpRequest.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/DeletePublicIpResponse.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/GroupBandwidthInfo.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ShowBandwidthsRequest.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ShowBandwidthsResponse.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ShowInstanceBandwidthAutoScalingPolicyRequest.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ShowInstanceBandwidthAutoScalingPolicyResponse.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ShowInstanceVersionRequest.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ShowInstanceVersionResponse.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateBandwidthInfoRequest.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateBandwidthRequest.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateBandwidthResp.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateBandwidthResponse.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateGroupBandwidthInfoRequest.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateInstanceBandwidthAutoScalingPolicyRequest.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateInstanceBandwidthAutoScalingPolicyRequestBody.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateInstanceBandwidthAutoScalingPolicyResponse.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdatePublicIpRequest.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdatePublicIpRequestBody.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdatePublicIpResponse.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpgradeInstanceMinorVersionRequest.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpgradeInstanceMinorVersionResponse.java create mode 100644 services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpgradeMinorVersionRequestBody.java create mode 100644 services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/BackupStrategyRequest.java rename services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/{BackupPolicy.java => CreateSnapshotPolicyRequestBody.java} (68%) create mode 100644 services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/QuotaDetailGigabytesESSD.java create mode 100644 services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/QuotaDetailSnapshotsESSD.java create mode 100644 services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/QuotaDetailVolumesESSD.java create mode 100644 services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribePostpaidVolumeRequest.java create mode 100644 services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribePostpaidVolumeResponse.java create mode 100644 services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribeVolume.java create mode 100644 services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribeVolumeRequestBody.java create mode 100644 services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribeVolumeResponseBody.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/AllowDbRolePrivilegesRequest.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/AllowDbRolePrivilegesRequestBody.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/AllowDbRolePrivilegesResponse.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/BatchShowUpgradeCandidateVersionsRequest.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/BatchShowUpgradeCandidateVersionsResponse.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CanBeRollbackedHotfixDetail.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CanBeUpgradedHotfixDetail.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ConfigurationsResult.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDatabaseInstanceRequest.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDatabaseInstanceRequestBody.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDatabaseInstanceResponse.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDatabaseInstanceResult.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDbRoleRequest.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDbRoleRequestBody.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDbRoleResponse.java rename services/{dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes.java => gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateInstanceDatastoreOption.java} (57%) rename services/{dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes.java => gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/DatastoreResult.java} (51%) create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/DeleteDatabaseSchemaRequest.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/DeleteDatabaseSchemaRequestBody.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/DeleteDatabaseSchemaResponse.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/GaussDBListDatabaseRoles.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/HotfixInfoResult.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListBackupsDetailsRequest.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListBackupsDetailsResponse.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListBackupsResult.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListDatabaseInstancesRequest.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListDatabaseInstancesResponse.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListDatabaseRolesRequest.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListDatabaseRolesResponse.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListDatastoresDetailsRequest.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListDatastoresDetailsResponse.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListFlavorsDetailsRequest.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListFlavorsDetailsResponse.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListParameterGroupTemplatesRequest.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListParameterGroupTemplatesResponse.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListRecycleInstancesDetailsRequest.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListRecycleInstancesDetailsResponse.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListRestorableInstancesDetailsRequest.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListRestorableInstancesDetailsResponse.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RecycleInstancesDetailResultV1.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowInstanceParamGroupDetailRequest.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowInstanceParamGroupDetailResponse.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowParameterGroupDetailRequest.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowParameterGroupDetailResponse.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowSourceInstanceDetailRequest.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowSourceInstanceDetailResponse.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowUpgradeCandidateVersionsDetailsRequest.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowUpgradeCandidateVersionsDetailsResponse.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/SyncLimitDataRequest.java create mode 100644 services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/SyncLimitDataResponse.java create mode 100644 services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/ActiveControlRspDTO.java create mode 100644 services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/ListPropertyActiveControlsRequest.java create mode 100644 services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/ListPropertyActiveControlsResponse.java create mode 100644 services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/model/ListUpdateBackupEnhancePolicyRequest.java create mode 100644 services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/model/ListUpdateBackupEnhancePolicyResponse.java create mode 100644 services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/model/Policy.java diff --git a/CHANGELOG.md b/CHANGELOG.md index 70773cfd08..0482652dc1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,384 @@ +# 3.1.128 2024-12-19 + +### HuaweiCloud SDK AAD + +- _API Version_ + - V2 +- _Features_ + - Support the APIs `AddWafWhiteIpRule`, `DeleteWafWhiteIpRule` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK AS + +- _API Version_ + - V1 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListScalingActivityLogs** + - changes of response param + - `+ scaling_activity_log.status: enum value [DOING]` + - `- scaling_activity_log.status: enum value [DING]` + - **ListScalingActivityV2Logs** + - changes of response param + - `+ scaling_activity_log.status: enum value [DOING]` + - `- scaling_activity_log.status: enum value [DING]` + +### HuaweiCloud SDK CAE + +- _API Version_ + - V1 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListComponentSnapshots** + - changes of response param + - `+ items.context.runtime: enum value [Java21]` + - **ShowComponent** + - changes of response param + - `+ spec.runtime: enum value [Java21]` + - **UpdateComponent** + - changes of request param + - `+ spec.runtime: enum value [Java21]` + - **CreateComponent** + - changes of request param + - `+ spec.runtime: enum value [Java21]` + - changes of response param + - `+ spec.runtime: enum value [Java21]` + - **ListComponents** + - changes of response param + - `+ items.spec.runtime: enum value [Java21]` + - **CreateComponentWithConfiguration** + - changes of request param + - `+ spec.runtime: enum value [Java21]` + - changes of response param + - `+ spec.runtime: enum value [Java21]` + +### HuaweiCloud SDK CCE + +- _API Version_ + - V3 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowAddonInstance** + - changes of response param + - `+ status.currentVersion.supportVersions.category` + - **UpdateAddonInstance** + - changes of response param + - `+ status.currentVersion.supportVersions.category` + - **RollbackAddonInstance** + - changes of response param + - `+ status.currentVersion.supportVersions.category` + - **ShowAutopilotAddonInstance** + - changes of response param + - `+ status.currentVersion.supportVersions.category` + - **UpdateAutopilotAddonInstance** + - changes of response param + - `+ status.currentVersion.supportVersions.category` + - **RollbackAutopilotAddonInstance** + - changes of response param + - `+ status.currentVersion.supportVersions.category` + - **CreateAddonInstance** + - changes of response param + - `+ status.currentVersion.supportVersions.category` + - **ListAddonInstances** + - changes of response param + - `+ items.status.currentVersion.supportVersions.category` + - **ListAddonTemplates** + - changes of response param + - `+ items.spec.versions.supportVersions.category` + - **CreateAutopilotAddonInstance** + - changes of response param + - `+ status.currentVersion.supportVersions.category` + - **ListAutopilotAddonInstances** + - changes of response param + - `+ items.status.currentVersion.supportVersions.category` + - **ListAutopilotAddonTemplates** + - changes of response param + - `+ items.spec.versions.supportVersions.category` + +### HuaweiCloud SDK CodeArtsPipeline + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowPipelineRunDetail** + - changes of response param + - `* stages.jobs.async: string -> boolean` + +### HuaweiCloud SDK DataArtsStudio + +- _API Version_ + - V1 +- _Features_ + - Support the API `RetryFactoryJobInstance` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DC + +- _API Version_ + - V3 +- _Features_ + - Support the APIs `ListDirectConnectLocations`, `ShowDirectConnectLocation` +- _Bug Fix_ + - None +- _Change_ + - Remove the APIs `ListRmsGlobalDcGateway`, `ShowRmsGlobalDcGateway` + - **ListGlobalDcGateways** + - changes of request param + - `+ status` + - `- hosting_id` + - **ShowGlobalDcGateway** + - changes of request param + - `+ limit` + - `+ enterprise_project_id` + - **UpdateVifPeer** + - changes of response param + - `- request_id` + - **CreateVifPeer** + - changes of response param + - `- request_id` + - **ListGdgwRouteTables** + - changes of request param + - `- fields` + - `- ext_fields` + - **ListGlobalEips** + - changes of response param + - `+ global_eips.status: enum value [ACTIVE,ERROR]` + - `+ global_eips.type: enum value [IP_ADDRESS,IP_SEGMENT]` + - **BindGlobalEips** + - changes of response param + - `+ global_eips.status: enum value [ACTIVE,ERROR]` + - `+ global_eips.type: enum value [IP_ADDRESS,IP_SEGMENT]` + - **UnbindGlobalEips** + - changes of response param + - `+ global_eips.status: enum value [ACTIVE,ERROR]` + - `+ global_eips.type: enum value [IP_ADDRESS,IP_SEGMENT]` + - **ShowDirectConnect** + - changes of response param + - `+ direct_connect.status: enum value [LEASED_LINE_DELIVERY]` + - **UpdateDirectConnect** + - changes of request param + - `+ direct_connect.status: enum value [APPLY]` + - changes of response param + - `+ direct_connect.status: enum value [LEASED_LINE_DELIVERY]` + - **ListDirectConnects** + - changes of response param + - `+ direct_connects.status: enum value [LEASED_LINE_DELIVERY]` + - **ListHostedDirectConnects** + - changes of response param + - `* hosted_connects.apply_time: string -> date-time` + - `* hosted_connects.create_time: string -> date-time` + - **CreateHostedDirectConnect** + - changes of response param + - `* hosted_connect.apply_time: string -> date-time` + - `* hosted_connect.create_time: string -> date-time` + - **ShowHostedDirectConnect** + - changes of response param + - `* hosted_connect.apply_time: string -> date-time` + - `* hosted_connect.create_time: string -> date-time` + - **UpdateHostedDirectConnect** + - changes of response param + - `* hosted_connect.apply_time: string -> date-time` + - `* hosted_connect.create_time: string -> date-time` + - **ShowVirtualGateway** + - changes of response param + - `+ virtual_gateway.enterprise_router_id` + - **UpdateVirtualGateway** + - changes of response param + - `+ virtual_gateway.enterprise_router_id` + - **ListVirtualGateways** + - changes of response param + - `+ virtual_gateways.enterprise_router_id` + - **CreateVirtualGateway** + - changes of request param + - `+ virtual_gateway.enterprise_router_id` + - changes of response param + - `+ virtual_gateway.enterprise_router_id` + - **ShowVirtualInterface** + - changes of response param + - `+ virtual_interface.update_time` + - **UpdateVirtualInterface** + - changes of response param + - `+ virtual_interface.update_time` + - **ListVirtualInterfaces** + - changes of response param + - `+ virtual_interfaces.update_time` + - **CreateVirtualInterface** + - changes of request param + - `- virtual_interface.service_type: enum value [vpc]` + - changes of response param + - `+ virtual_interface.update_time` + +### HuaweiCloud SDK DCS + +- _API Version_ + - V2 +- _Features_ + - Support the following APIs: + - `ShowBandwidths` + - `UpdateBandwidth` + - `ShowInstanceBandwidthAutoScalingPolicy` + - `UpdateInstanceBandwidthAutoScalingPolicy` + - `DeleteInstanceBandwidthAutoScalingPolicy` + - `UpdatePublicIp` + - `DeletePublicIp` + - `ChangeNodesStartStopStatus` + - `ShowInstanceVersion` + - `UpgradeInstanceMinorVersion` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DWS + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ResizeCluster** + - changes of request param + - `+ scale_out.subnet_id` + - **CreateSnapshotPolicy** + - changes of request param + - `* backup_strategies: object -> list` + - `* body: object -> object` + - **ResizeClusterWithExistedNodes** + - changes of request param + - `+ scale_out.subnet_id` + +### HuaweiCloud SDK EVS + +- _API Version_ + - V2 +- _Features_ + - Support the API `UnsubscribePostpaidVolume` +- _Bug Fix_ + - None +- _Change_ + - **CinderListQuotas** + - changes of response param + - `+ quota_set.gigabytes_ESSD` + - `+ quota_set.snapshots_ESSD` + - `+ quota_set.volumes_ESSD` + +### HuaweiCloud SDK GaussDBforopenGauss + +- _API Version_ + - V3 +- _Features_ + - Support the following APIs: + - `ListRestorableInstancesDetails` + - `ListRecycleInstancesDetails` + - `ShowParameterGroupDetail` + - `ShowSourceInstanceDetail` + - `AllowDbRolePrivileges` + - `ListDatabaseRoles` + - `CreateDbRole` + - `ListDatastoresDetails` + - `ListDatabaseInstances` + - `ListParameterGroupTemplates` + - `ShowInstanceParamGroupDetail` + - `ShowUpgradeCandidateVersionsDetails` + - `BatchShowUpgradeCandidateVersions` + - `ListFlavorsDetails` + - `ListBackupsDetails` + - `SyncLimitData` + - `DeleteDatabaseSchema` + - `CreateDatabaseInstance` +- _Bug Fix_ + - None +- _Change_ + - **ShowUpgradeCandidateVersions** + - changes of response param + - `* hotfix_upgrade_infos: object -> list` + - `* hotfix_rollback_infos: object -> list` + +### HuaweiCloud SDK IMS + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ImportImageQuick** + - changes of request param + - `+ license_type` + +### HuaweiCloud SDK IoTEdge + +- _API Version_ + - V2 +- _Features_ + - Support the API `ListPropertyActiveControls` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK OCR + +- _API Version_ + - V1 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **RecognizeAutoClassification** + - changes of request param + - `+ pdf_page_number` + - **RecognizeSmartDocumentRecognizer** + - changes of request param + - `+ erase_seal` + +### HuaweiCloud SDK RDS + +- _API Version_ + - V3 +- _Features_ + - Support the API `ListUpdateBackupEnhancePolicy` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK SCM + +- _API Version_ + - V3 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListCertificates** + - changes of request param + - `+ owned_by_self` + # 3.1.127 2024-12-12 ### HuaweiCloud SDK AOS diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index bbc5481b40..160e0e0253 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,384 @@ +# 3.1.128 2024-12-19 + +### HuaweiCloud SDK AAD + +- _接口版本_ + - V2 +- _新增特性_ + - 支持接口`AddWafWhiteIpRule`、`DeleteWafWhiteIpRule` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK AS + +- _接口版本_ + - V1 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListScalingActivityLogs** + - 响应参数变更 + - `+ scaling_activity_log.status: enum value [DOING]` + - `- scaling_activity_log.status: enum value [DING]` + - **ListScalingActivityV2Logs** + - 响应参数变更 + - `+ scaling_activity_log.status: enum value [DOING]` + - `- scaling_activity_log.status: enum value [DING]` + +### HuaweiCloud SDK CAE + +- _接口版本_ + - V1 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListComponentSnapshots** + - 响应参数变更 + - `+ items.context.runtime: enum value [Java21]` + - **ShowComponent** + - 响应参数变更 + - `+ spec.runtime: enum value [Java21]` + - **UpdateComponent** + - 请求参数变更 + - `+ spec.runtime: enum value [Java21]` + - **CreateComponent** + - 请求参数变更 + - `+ spec.runtime: enum value [Java21]` + - 响应参数变更 + - `+ spec.runtime: enum value [Java21]` + - **ListComponents** + - 响应参数变更 + - `+ items.spec.runtime: enum value [Java21]` + - **CreateComponentWithConfiguration** + - 请求参数变更 + - `+ spec.runtime: enum value [Java21]` + - 响应参数变更 + - `+ spec.runtime: enum value [Java21]` + +### HuaweiCloud SDK CCE + +- _接口版本_ + - V3 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowAddonInstance** + - 响应参数变更 + - `+ status.currentVersion.supportVersions.category` + - **UpdateAddonInstance** + - 响应参数变更 + - `+ status.currentVersion.supportVersions.category` + - **RollbackAddonInstance** + - 响应参数变更 + - `+ status.currentVersion.supportVersions.category` + - **ShowAutopilotAddonInstance** + - 响应参数变更 + - `+ status.currentVersion.supportVersions.category` + - **UpdateAutopilotAddonInstance** + - 响应参数变更 + - `+ status.currentVersion.supportVersions.category` + - **RollbackAutopilotAddonInstance** + - 响应参数变更 + - `+ status.currentVersion.supportVersions.category` + - **CreateAddonInstance** + - 响应参数变更 + - `+ status.currentVersion.supportVersions.category` + - **ListAddonInstances** + - 响应参数变更 + - `+ items.status.currentVersion.supportVersions.category` + - **ListAddonTemplates** + - 响应参数变更 + - `+ items.spec.versions.supportVersions.category` + - **CreateAutopilotAddonInstance** + - 响应参数变更 + - `+ status.currentVersion.supportVersions.category` + - **ListAutopilotAddonInstances** + - 响应参数变更 + - `+ items.status.currentVersion.supportVersions.category` + - **ListAutopilotAddonTemplates** + - 响应参数变更 + - `+ items.spec.versions.supportVersions.category` + +### HuaweiCloud SDK CodeArtsPipeline + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowPipelineRunDetail** + - 响应参数变更 + - `* stages.jobs.async: string -> boolean` + +### HuaweiCloud SDK DataArtsStudio + +- _接口版本_ + - V1 +- _新增特性_ + - 支持接口`RetryFactoryJobInstance` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DC + +- _接口版本_ + - V3 +- _新增特性_ + - 支持接口`ListDirectConnectLocations`、`ShowDirectConnectLocation` +- _解决问题_ + - 无 +- _特性变更_ + - 移除接口`ListRmsGlobalDcGateway`、`ShowRmsGlobalDcGateway` + - **ListGlobalDcGateways** + - 请求参数变更 + - `+ status` + - `- hosting_id` + - **ShowGlobalDcGateway** + - 请求参数变更 + - `+ limit` + - `+ enterprise_project_id` + - **UpdateVifPeer** + - 响应参数变更 + - `- request_id` + - **CreateVifPeer** + - 响应参数变更 + - `- request_id` + - **ListGdgwRouteTables** + - 请求参数变更 + - `- fields` + - `- ext_fields` + - **ListGlobalEips** + - 响应参数变更 + - `+ global_eips.status: enum value [ACTIVE,ERROR]` + - `+ global_eips.type: enum value [IP_ADDRESS,IP_SEGMENT]` + - **BindGlobalEips** + - 响应参数变更 + - `+ global_eips.status: enum value [ACTIVE,ERROR]` + - `+ global_eips.type: enum value [IP_ADDRESS,IP_SEGMENT]` + - **UnbindGlobalEips** + - 响应参数变更 + - `+ global_eips.status: enum value [ACTIVE,ERROR]` + - `+ global_eips.type: enum value [IP_ADDRESS,IP_SEGMENT]` + - **ShowDirectConnect** + - 响应参数变更 + - `+ direct_connect.status: enum value [LEASED_LINE_DELIVERY]` + - **UpdateDirectConnect** + - 请求参数变更 + - `+ direct_connect.status: enum value [APPLY]` + - 响应参数变更 + - `+ direct_connect.status: enum value [LEASED_LINE_DELIVERY]` + - **ListDirectConnects** + - 响应参数变更 + - `+ direct_connects.status: enum value [LEASED_LINE_DELIVERY]` + - **ListHostedDirectConnects** + - 响应参数变更 + - `* hosted_connects.apply_time: string -> date-time` + - `* hosted_connects.create_time: string -> date-time` + - **CreateHostedDirectConnect** + - 响应参数变更 + - `* hosted_connect.apply_time: string -> date-time` + - `* hosted_connect.create_time: string -> date-time` + - **ShowHostedDirectConnect** + - 响应参数变更 + - `* hosted_connect.apply_time: string -> date-time` + - `* hosted_connect.create_time: string -> date-time` + - **UpdateHostedDirectConnect** + - 响应参数变更 + - `* hosted_connect.apply_time: string -> date-time` + - `* hosted_connect.create_time: string -> date-time` + - **ShowVirtualGateway** + - 响应参数变更 + - `+ virtual_gateway.enterprise_router_id` + - **UpdateVirtualGateway** + - 响应参数变更 + - `+ virtual_gateway.enterprise_router_id` + - **ListVirtualGateways** + - 响应参数变更 + - `+ virtual_gateways.enterprise_router_id` + - **CreateVirtualGateway** + - 请求参数变更 + - `+ virtual_gateway.enterprise_router_id` + - 响应参数变更 + - `+ virtual_gateway.enterprise_router_id` + - **ShowVirtualInterface** + - 响应参数变更 + - `+ virtual_interface.update_time` + - **UpdateVirtualInterface** + - 响应参数变更 + - `+ virtual_interface.update_time` + - **ListVirtualInterfaces** + - 响应参数变更 + - `+ virtual_interfaces.update_time` + - **CreateVirtualInterface** + - 请求参数变更 + - `- virtual_interface.service_type: enum value [vpc]` + - 响应参数变更 + - `+ virtual_interface.update_time` + +### HuaweiCloud SDK DCS + +- _接口版本_ + - V2 +- _新增特性_ + - 支持以下接口: + - `ShowBandwidths` + - `UpdateBandwidth` + - `ShowInstanceBandwidthAutoScalingPolicy` + - `UpdateInstanceBandwidthAutoScalingPolicy` + - `DeleteInstanceBandwidthAutoScalingPolicy` + - `UpdatePublicIp` + - `DeletePublicIp` + - `ChangeNodesStartStopStatus` + - `ShowInstanceVersion` + - `UpgradeInstanceMinorVersion` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DWS + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ResizeCluster** + - 请求参数变更 + - `+ scale_out.subnet_id` + - **CreateSnapshotPolicy** + - 请求参数变更 + - `* backup_strategies: object -> list` + - `* body: object -> object` + - **ResizeClusterWithExistedNodes** + - 请求参数变更 + - `+ scale_out.subnet_id` + +### HuaweiCloud SDK EVS + +- _接口版本_ + - V2 +- _新增特性_ + - 支持接口`UnsubscribePostpaidVolume` +- _解决问题_ + - 无 +- _特性变更_ + - **CinderListQuotas** + - 响应参数变更 + - `+ quota_set.gigabytes_ESSD` + - `+ quota_set.snapshots_ESSD` + - `+ quota_set.volumes_ESSD` + +### HuaweiCloud SDK GaussDBforopenGauss + +- _接口版本_ + - V3 +- _新增特性_ + - 支持以下接口: + - `ListRestorableInstancesDetails` + - `ListRecycleInstancesDetails` + - `ShowParameterGroupDetail` + - `ShowSourceInstanceDetail` + - `AllowDbRolePrivileges` + - `ListDatabaseRoles` + - `CreateDbRole` + - `ListDatastoresDetails` + - `ListDatabaseInstances` + - `ListParameterGroupTemplates` + - `ShowInstanceParamGroupDetail` + - `ShowUpgradeCandidateVersionsDetails` + - `BatchShowUpgradeCandidateVersions` + - `ListFlavorsDetails` + - `ListBackupsDetails` + - `SyncLimitData` + - `DeleteDatabaseSchema` + - `CreateDatabaseInstance` +- _解决问题_ + - 无 +- _特性变更_ + - **ShowUpgradeCandidateVersions** + - 响应参数变更 + - `* hotfix_upgrade_infos: object -> list` + - `* hotfix_rollback_infos: object -> list` + +### HuaweiCloud SDK IMS + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ImportImageQuick** + - 请求参数变更 + - `+ license_type` + +### HuaweiCloud SDK IoTEdge + +- _接口版本_ + - V2 +- _新增特性_ + - 支持接口`ListPropertyActiveControls` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK OCR + +- _接口版本_ + - V1 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **RecognizeAutoClassification** + - 请求参数变更 + - `+ pdf_page_number` + - **RecognizeSmartDocumentRecognizer** + - 请求参数变更 + - `+ erase_seal` + +### HuaweiCloud SDK RDS + +- _接口版本_ + - V3 +- _新增特性_ + - 支持接口`ListUpdateBackupEnhancePolicy` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK SCM + +- _接口版本_ + - V3 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListCertificates** + - 请求参数变更 + - `+ owned_by_self` + # 3.1.127 2024-12-12 ### HuaweiCloud SDK AOS diff --git a/VERSION b/VERSION index 635a37622a..4888ce34bc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.127 +3.1.128 diff --git a/all/pom.xml b/all/pom.xml index 912afb9f04..88cbc87005 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.127 + 3.1.128 huaweicloud-sdk 4.0.0 huaweicloud-sdk-all - 3.1.127 + 3.1.128 Huawei Cloud SDK for Java Huawei Cloud SDK for Java provides all services https://github.com/huaweicloud/huaweicloud-sdk-java-v3 @@ -23,896 +23,896 @@ com.huaweicloud.sdk huaweicloud-sdk-dataartsfabric - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-dataartsfabricep - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-mssi - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-orgid - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-cfw - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-antiddos - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-oa - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-aom - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-apig - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-as - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-asm - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-bcs - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-bms - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-bss - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-bssintl - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-cbr - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-cce - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-ces - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-classroom - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-cloudrtc - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-cloudide - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-codeartspipeline - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-cloudpond - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-cloudtest - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-codeartscheck - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-cts - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-das - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-dcs - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-ddm - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-dds - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-dis - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-devstar - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-dlf - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-dgc - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-dli - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-dns - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-drs - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-ecs - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-eihealth - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-eip - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-geip - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-elb - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-eps - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-evs - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-dss - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-functiongraph - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-gaussdbfornosql - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-hss - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-cgs - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-iam - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-iec - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-ief - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-image - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-ims - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-iotda - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-iotdm - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-iotedge - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-kafka - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-kms - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-kps - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-live - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-meeting - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-moderation - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-mpc - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-mrs - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-nat - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-oms - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-osm - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-projectman - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-rabbitmq - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-rds - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-rms - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-roma - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-sa - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-secmaster - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-scm - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-servicestage - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-smn - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-sms - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-swr - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-tms - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-vpc - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-vpcep - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-cdn - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-ugo - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-ocr - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-waf - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-optverse - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-oroas - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-vod - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-lts - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-gaussdb - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-ccm - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-csms - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-codeartsdeploy - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-frs - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-codecraft - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-imagesearch - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-cbs - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-cpts - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-ivs - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-gsl - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-cdm - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-sdrs - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-dbss - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-dsc - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-codeartsinspector - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-nlp - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-gaussdbforopengauss - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-campusgo - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-codehub - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-vas - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-cbh - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-ges - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-sfsturbo - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-sis - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-cloudtable - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-deh - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-res - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-hilens - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-iotanalytics - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-expert - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-css - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-dws - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-vcm - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-cc - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-cse - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-cae - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-rocketmq - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-apm - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-cph - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-eg - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-er - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-ga - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-workspace - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-workspaceapp - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-codeartsartifact - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-koomessage - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-koophone - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-koomap - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-codeartsgovernance - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-dc - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-aos - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-mas - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-dwr - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-dris - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-mapds - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-codeartsbuild - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-lakeformation - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-dataartsinsight - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-organizations - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-ram - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-idme - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-idmeclassicapi - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-metastudio - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-cms - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-msgsms - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-smsapi - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-eds - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-obs - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-dataartsstudio - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-tics - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-config - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-identitycenter - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-identitycenterstore - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-pangulargemodels - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-edgesec - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-ec - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-kvs - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-vpn - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-aad - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-rgc - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-iamaccessanalyzer - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-vias - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-sts - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-coc - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-mastudio - 3.1.127 + 3.1.128 - ${project.artifactId}-3.1.127 + ${project.artifactId}-3.1.128 maven-dependency-plugin diff --git a/bundle/pom.xml b/bundle/pom.xml index a62a34f86e..648f64f565 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.127 + 3.1.128 huaweicloud-sdk 4.0.0 huaweicloud-sdk-bundle - 3.1.127 + 3.1.128 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.127 + 3.1.128 diff --git a/core-bson/pom.xml b/core-bson/pom.xml index 7377b19c98..5f6821b463 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.127 + 3.1.128 huaweicloud-sdk 4.0.0 jar huaweicloud-sdk-core-bson - 3.1.127 + 3.1.128 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.127 + 3.1.128 ch.qos.logback diff --git a/core-xml/pom.xml b/core-xml/pom.xml index 45bd67687a..941bd588db 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.127 + 3.1.128 huaweicloud-sdk 4.0.0 jar huaweicloud-sdk-core-xml - 3.1.127 + 3.1.128 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.127 + 3.1.128 ch.qos.logback diff --git a/core/pom.xml b/core/pom.xml index 15c5bfc1c2..24114e583a 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -5,14 +5,14 @@ com.huaweicloud.sdk - 3.1.127 + 3.1.128 huaweicloud-sdk 4.0.0 jar huaweicloud-sdk-core - 3.1.127 + 3.1.128 Huawei Cloud SDK for Java Core Core library for Huawei Cloud Java SDK https://github.com/huaweicloud/huaweicloud-sdk-java-v3 diff --git a/pom.xml b/pom.xml index faf38af123..e3c1cce2ae 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ pom com.huaweicloud.sdk huaweicloud-sdk - 3.1.127 + 3.1.128 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 f61b7f2999..4df21ec2ac 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-aad - 3.1.127 + 3.1.128 Huawei Cloud SDK for AAD 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/AadAsyncClient.java b/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/AadAsyncClient.java index 7b3309f178..3499a287b2 100644 --- a/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/AadAsyncClient.java +++ b/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/AadAsyncClient.java @@ -1,9 +1,13 @@ package com.huaweicloud.sdk.aad.v2; +import com.huaweicloud.sdk.aad.v2.model.AddWafWhiteIpRuleRequest; +import com.huaweicloud.sdk.aad.v2.model.AddWafWhiteIpRuleResponse; import com.huaweicloud.sdk.aad.v2.model.CreateDomainRequest; import com.huaweicloud.sdk.aad.v2.model.CreateDomainResponse; import com.huaweicloud.sdk.aad.v2.model.DeleteDomainRequest; import com.huaweicloud.sdk.aad.v2.model.DeleteDomainResponse; +import com.huaweicloud.sdk.aad.v2.model.DeleteWafWhiteIpRuleRequest; +import com.huaweicloud.sdk.aad.v2.model.DeleteWafWhiteIpRuleResponse; import com.huaweicloud.sdk.aad.v2.model.ListDDoSAttackEventRequest; import com.huaweicloud.sdk.aad.v2.model.ListDDoSAttackEventResponse; import com.huaweicloud.sdk.aad.v2.model.ListDDoSConnectionNumberRequest; @@ -57,6 +61,35 @@ public static ClientBuilder newBuilder() { return clientBuilder; } + /** + * 防护策略web-cc黑白名单-创建黑白名单规则 + * + * 防护策略web-cc黑白名单-创建黑白名单规则 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddWafWhiteIpRuleRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture addWafWhiteIpRuleAsync(AddWafWhiteIpRuleRequest request) { + return hcClient.asyncInvokeHttp(request, AadMeta.addWafWhiteIpRule); + } + + /** + * 防护策略web-cc黑白名单-创建黑白名单规则 + * + * 防护策略web-cc黑白名单-创建黑白名单规则 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddWafWhiteIpRuleRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker addWafWhiteIpRuleAsyncInvoker( + AddWafWhiteIpRuleRequest request) { + return new AsyncInvoker<>(request, AadMeta.addWafWhiteIpRule, hcClient); + } + /** * 创建防护域名 * @@ -115,6 +148,36 @@ public AsyncInvoker deleteDomainAsync return new AsyncInvoker<>(request, AadMeta.deleteDomain, hcClient); } + /** + * 防护策略web-cc黑白名单-删除黑白名单规则 + * + * 防护策略web-cc黑白名单-删除黑白名单规则 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteWafWhiteIpRuleRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteWafWhiteIpRuleAsync( + DeleteWafWhiteIpRuleRequest request) { + return hcClient.asyncInvokeHttp(request, AadMeta.deleteWafWhiteIpRule); + } + + /** + * 防护策略web-cc黑白名单-删除黑白名单规则 + * + * 防护策略web-cc黑白名单-删除黑白名单规则 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteWafWhiteIpRuleRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteWafWhiteIpRuleAsyncInvoker( + DeleteWafWhiteIpRuleRequest request) { + return new AsyncInvoker<>(request, AadMeta.deleteWafWhiteIpRule, hcClient); + } + /** * 查询DDoS攻击事件列表 * diff --git a/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/AadClient.java b/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/AadClient.java index e808a59f18..d2ed85469c 100644 --- a/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/AadClient.java +++ b/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/AadClient.java @@ -1,9 +1,13 @@ package com.huaweicloud.sdk.aad.v2; +import com.huaweicloud.sdk.aad.v2.model.AddWafWhiteIpRuleRequest; +import com.huaweicloud.sdk.aad.v2.model.AddWafWhiteIpRuleResponse; import com.huaweicloud.sdk.aad.v2.model.CreateDomainRequest; import com.huaweicloud.sdk.aad.v2.model.CreateDomainResponse; import com.huaweicloud.sdk.aad.v2.model.DeleteDomainRequest; import com.huaweicloud.sdk.aad.v2.model.DeleteDomainResponse; +import com.huaweicloud.sdk.aad.v2.model.DeleteWafWhiteIpRuleRequest; +import com.huaweicloud.sdk.aad.v2.model.DeleteWafWhiteIpRuleResponse; import com.huaweicloud.sdk.aad.v2.model.ListDDoSAttackEventRequest; import com.huaweicloud.sdk.aad.v2.model.ListDDoSAttackEventResponse; import com.huaweicloud.sdk.aad.v2.model.ListDDoSConnectionNumberRequest; @@ -55,6 +59,35 @@ public static ClientBuilder newBuilder() { return clientBuilder; } + /** + * 防护策略web-cc黑白名单-创建黑白名单规则 + * + * 防护策略web-cc黑白名单-创建黑白名单规则 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddWafWhiteIpRuleRequest 请求对象 + * @return AddWafWhiteIpRuleResponse + */ + public AddWafWhiteIpRuleResponse addWafWhiteIpRule(AddWafWhiteIpRuleRequest request) { + return hcClient.syncInvokeHttp(request, AadMeta.addWafWhiteIpRule); + } + + /** + * 防护策略web-cc黑白名单-创建黑白名单规则 + * + * 防护策略web-cc黑白名单-创建黑白名单规则 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddWafWhiteIpRuleRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker addWafWhiteIpRuleInvoker( + AddWafWhiteIpRuleRequest request) { + return new SyncInvoker<>(request, AadMeta.addWafWhiteIpRule, hcClient); + } + /** * 创建防护域名 * @@ -111,6 +144,35 @@ public SyncInvoker deleteDomainInvoke return new SyncInvoker<>(request, AadMeta.deleteDomain, hcClient); } + /** + * 防护策略web-cc黑白名单-删除黑白名单规则 + * + * 防护策略web-cc黑白名单-删除黑白名单规则 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteWafWhiteIpRuleRequest 请求对象 + * @return DeleteWafWhiteIpRuleResponse + */ + public DeleteWafWhiteIpRuleResponse deleteWafWhiteIpRule(DeleteWafWhiteIpRuleRequest request) { + return hcClient.syncInvokeHttp(request, AadMeta.deleteWafWhiteIpRule); + } + + /** + * 防护策略web-cc黑白名单-删除黑白名单规则 + * + * 防护策略web-cc黑白名单-删除黑白名单规则 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteWafWhiteIpRuleRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteWafWhiteIpRuleInvoker( + DeleteWafWhiteIpRuleRequest request) { + return new SyncInvoker<>(request, AadMeta.deleteWafWhiteIpRule, hcClient); + } + /** * 查询DDoS攻击事件列表 * diff --git a/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/AadMeta.java b/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/AadMeta.java index fd5d8e3430..5741208035 100644 --- a/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/AadMeta.java +++ b/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/AadMeta.java @@ -1,11 +1,17 @@ package com.huaweicloud.sdk.aad.v2; +import com.huaweicloud.sdk.aad.v2.model.AddWafWhiteIpRuleRequest; +import com.huaweicloud.sdk.aad.v2.model.AddWafWhiteIpRuleResponse; +import com.huaweicloud.sdk.aad.v2.model.AddWafWhiteIpRuleV2RequestBody; import com.huaweicloud.sdk.aad.v2.model.CreateAadDomainRequestBody; import com.huaweicloud.sdk.aad.v2.model.CreateDomainRequest; import com.huaweicloud.sdk.aad.v2.model.CreateDomainResponse; import com.huaweicloud.sdk.aad.v2.model.DeleteDomainRequest; import com.huaweicloud.sdk.aad.v2.model.DeleteDomainResponse; import com.huaweicloud.sdk.aad.v2.model.DeleteDomainV2RequestBody; +import com.huaweicloud.sdk.aad.v2.model.DeleteWafWhiteIpRuleRequest; +import com.huaweicloud.sdk.aad.v2.model.DeleteWafWhiteIpRuleResponse; +import com.huaweicloud.sdk.aad.v2.model.DeleteWafWhiteIpRuleV2RequestBody; import com.huaweicloud.sdk.aad.v2.model.ListDDoSAttackEventRequest; import com.huaweicloud.sdk.aad.v2.model.ListDDoSAttackEventRequestBody; import com.huaweicloud.sdk.aad.v2.model.ListDDoSAttackEventResponse; @@ -51,6 +57,34 @@ @SuppressWarnings("unchecked") public class AadMeta { + public static final HttpRequestDef addWafWhiteIpRule = + genForAddWafWhiteIpRule(); + + private static HttpRequestDef genForAddWafWhiteIpRule() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, AddWafWhiteIpRuleRequest.class, AddWafWhiteIpRuleResponse.class) + .withName("AddWafWhiteIpRule") + .withUri("/v2/aad/policies/waf/blackwhite-list") + .withContentType("application/json"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(AddWafWhiteIpRuleV2RequestBody.class), + f -> f.withMarshaller(AddWafWhiteIpRuleRequest::getBody, AddWafWhiteIpRuleRequest::setBody)); + + // response + builder.withResponseField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(AddWafWhiteIpRuleResponse::getBody, AddWafWhiteIpRuleResponse::setBody)); + + return builder.build(); + } + public static final HttpRequestDef createDomain = genForCreateDomain(); private static HttpRequestDef genForCreateDomain() { @@ -95,6 +129,34 @@ private static HttpRequestDef genForD return builder.build(); } + public static final HttpRequestDef deleteWafWhiteIpRule = + genForDeleteWafWhiteIpRule(); + + private static HttpRequestDef genForDeleteWafWhiteIpRule() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.DELETE, DeleteWafWhiteIpRuleRequest.class, DeleteWafWhiteIpRuleResponse.class) + .withName("DeleteWafWhiteIpRule") + .withUri("/v2/aad/policies/waf/blackwhite-list") + .withContentType("application/json"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(DeleteWafWhiteIpRuleV2RequestBody.class), + f -> f.withMarshaller(DeleteWafWhiteIpRuleRequest::getBody, DeleteWafWhiteIpRuleRequest::setBody)); + + // response + builder.withResponseField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(DeleteWafWhiteIpRuleResponse::getBody, DeleteWafWhiteIpRuleResponse::setBody)); + + return builder.build(); + } + public static final HttpRequestDef listDDoSAttackEvent = genForListDDoSAttackEvent(); diff --git a/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/model/AddWafWhiteIpRuleRequest.java b/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/model/AddWafWhiteIpRuleRequest.java new file mode 100644 index 0000000000..caf3a5b017 --- /dev/null +++ b/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/model/AddWafWhiteIpRuleRequest.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.aad.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class AddWafWhiteIpRuleRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private AddWafWhiteIpRuleV2RequestBody body; + + public AddWafWhiteIpRuleRequest withBody(AddWafWhiteIpRuleV2RequestBody body) { + this.body = body; + return this; + } + + public AddWafWhiteIpRuleRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new AddWafWhiteIpRuleV2RequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public AddWafWhiteIpRuleV2RequestBody getBody() { + return body; + } + + public void setBody(AddWafWhiteIpRuleV2RequestBody 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; + } + AddWafWhiteIpRuleRequest that = (AddWafWhiteIpRuleRequest) 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 AddWafWhiteIpRuleRequest {\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/aad/src/main/java/com/huaweicloud/sdk/aad/v2/model/AddWafWhiteIpRuleResponse.java b/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/model/AddWafWhiteIpRuleResponse.java new file mode 100644 index 0000000000..aa0094b947 --- /dev/null +++ b/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/model/AddWafWhiteIpRuleResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.aad.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class AddWafWhiteIpRuleResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private String body; + + public AddWafWhiteIpRuleResponse 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; + } + AddWafWhiteIpRuleResponse that = (AddWafWhiteIpRuleResponse) 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 AddWafWhiteIpRuleResponse {\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/aad/src/main/java/com/huaweicloud/sdk/aad/v2/model/AddWafWhiteIpRuleV2RequestBody.java b/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/model/AddWafWhiteIpRuleV2RequestBody.java new file mode 100644 index 0000000000..c737fcd578 --- /dev/null +++ b/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/model/AddWafWhiteIpRuleV2RequestBody.java @@ -0,0 +1,161 @@ +package com.huaweicloud.sdk.aad.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; + +/** + * AddWafWhiteIpRuleV2RequestBody + */ +public class AddWafWhiteIpRuleV2RequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "domain_name") + + private String domainName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ips") + + private List ips = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "overseas_type") + + private Integer overseasType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private Integer type; + + public AddWafWhiteIpRuleV2RequestBody withDomainName(String domainName) { + this.domainName = domainName; + return this; + } + + /** + * 域名+端口组合,标准端口80/443无须加端口。 + * @return domainName + */ + public String getDomainName() { + return domainName; + } + + public void setDomainName(String domainName) { + this.domainName = domainName; + } + + public AddWafWhiteIpRuleV2RequestBody withIps(List ips) { + this.ips = ips; + return this; + } + + public AddWafWhiteIpRuleV2RequestBody addIpsItem(String ipsItem) { + if (this.ips == null) { + this.ips = new ArrayList<>(); + } + this.ips.add(ipsItem); + return this; + } + + public AddWafWhiteIpRuleV2RequestBody withIps(Consumer> ipsSetter) { + if (this.ips == null) { + this.ips = new ArrayList<>(); + } + ipsSetter.accept(this.ips); + return this; + } + + /** + * 待添加ip/ip段 + * @return ips + */ + public List getIps() { + return ips; + } + + public void setIps(List ips) { + this.ips = ips; + } + + public AddWafWhiteIpRuleV2RequestBody withOverseasType(Integer overseasType) { + this.overseasType = overseasType; + return this; + } + + /** + * 防护区域,0-大陆,1-海外 + * @return overseasType + */ + public Integer getOverseasType() { + return overseasType; + } + + public void setOverseasType(Integer overseasType) { + this.overseasType = overseasType; + } + + public AddWafWhiteIpRuleV2RequestBody withType(Integer type) { + this.type = type; + return this; + } + + /** + * 0-黑名单,1-白名单 + * @return type + */ + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AddWafWhiteIpRuleV2RequestBody that = (AddWafWhiteIpRuleV2RequestBody) obj; + return Objects.equals(this.domainName, that.domainName) && Objects.equals(this.ips, that.ips) + && Objects.equals(this.overseasType, that.overseasType) && Objects.equals(this.type, that.type); + } + + @Override + public int hashCode() { + return Objects.hash(domainName, ips, overseasType, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddWafWhiteIpRuleV2RequestBody {\n"); + sb.append(" domainName: ").append(toIndentedString(domainName)).append("\n"); + sb.append(" ips: ").append(toIndentedString(ips)).append("\n"); + sb.append(" overseasType: ").append(toIndentedString(overseasType)).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/aad/src/main/java/com/huaweicloud/sdk/aad/v2/model/DeleteWafWhiteIpRuleRequest.java b/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/model/DeleteWafWhiteIpRuleRequest.java new file mode 100644 index 0000000000..7a0e9d38b0 --- /dev/null +++ b/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/model/DeleteWafWhiteIpRuleRequest.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.aad.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class DeleteWafWhiteIpRuleRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private DeleteWafWhiteIpRuleV2RequestBody body; + + public DeleteWafWhiteIpRuleRequest withBody(DeleteWafWhiteIpRuleV2RequestBody body) { + this.body = body; + return this; + } + + public DeleteWafWhiteIpRuleRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new DeleteWafWhiteIpRuleV2RequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public DeleteWafWhiteIpRuleV2RequestBody getBody() { + return body; + } + + public void setBody(DeleteWafWhiteIpRuleV2RequestBody 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; + } + DeleteWafWhiteIpRuleRequest that = (DeleteWafWhiteIpRuleRequest) 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 DeleteWafWhiteIpRuleRequest {\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/aad/src/main/java/com/huaweicloud/sdk/aad/v2/model/DeleteWafWhiteIpRuleResponse.java b/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/model/DeleteWafWhiteIpRuleResponse.java new file mode 100644 index 0000000000..489c7d1402 --- /dev/null +++ b/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/model/DeleteWafWhiteIpRuleResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.aad.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeleteWafWhiteIpRuleResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private String body; + + public DeleteWafWhiteIpRuleResponse 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; + } + DeleteWafWhiteIpRuleResponse that = (DeleteWafWhiteIpRuleResponse) 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 DeleteWafWhiteIpRuleResponse {\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/aad/src/main/java/com/huaweicloud/sdk/aad/v2/model/DeleteWafWhiteIpRuleV2RequestBody.java b/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/model/DeleteWafWhiteIpRuleV2RequestBody.java new file mode 100644 index 0000000000..303d164c9e --- /dev/null +++ b/services/aad/src/main/java/com/huaweicloud/sdk/aad/v2/model/DeleteWafWhiteIpRuleV2RequestBody.java @@ -0,0 +1,138 @@ +package com.huaweicloud.sdk.aad.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; + +/** + * DeleteWafWhiteIpRuleV2RequestBody + */ +public class DeleteWafWhiteIpRuleV2RequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ids") + + private List ids = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "domain_name") + + private String domainName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "overseas_type") + + private Integer overseasType; + + public DeleteWafWhiteIpRuleV2RequestBody withIds(List ids) { + this.ids = ids; + return this; + } + + public DeleteWafWhiteIpRuleV2RequestBody addIdsItem(String idsItem) { + if (this.ids == null) { + this.ids = new ArrayList<>(); + } + this.ids.add(idsItem); + return this; + } + + public DeleteWafWhiteIpRuleV2RequestBody withIds(Consumer> idsSetter) { + if (this.ids == null) { + this.ids = new ArrayList<>(); + } + idsSetter.accept(this.ids); + return this; + } + + /** + * 待删除规则id + * @return ids + */ + public List getIds() { + return ids; + } + + public void setIds(List ids) { + this.ids = ids; + } + + public DeleteWafWhiteIpRuleV2RequestBody withDomainName(String domainName) { + this.domainName = domainName; + return this; + } + + /** + * 域名+端口组合,标准端口80/443无须加端口。 + * @return domainName + */ + public String getDomainName() { + return domainName; + } + + public void setDomainName(String domainName) { + this.domainName = domainName; + } + + public DeleteWafWhiteIpRuleV2RequestBody withOverseasType(Integer overseasType) { + this.overseasType = overseasType; + return this; + } + + /** + * 防护区域 + * @return overseasType + */ + public Integer getOverseasType() { + return overseasType; + } + + public void setOverseasType(Integer overseasType) { + this.overseasType = overseasType; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteWafWhiteIpRuleV2RequestBody that = (DeleteWafWhiteIpRuleV2RequestBody) obj; + return Objects.equals(this.ids, that.ids) && Objects.equals(this.domainName, that.domainName) + && Objects.equals(this.overseasType, that.overseasType); + } + + @Override + public int hashCode() { + return Objects.hash(ids, domainName, overseasType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteWafWhiteIpRuleV2RequestBody {\n"); + sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); + sb.append(" domainName: ").append(toIndentedString(domainName)).append("\n"); + sb.append(" overseasType: ").append(toIndentedString(overseasType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/antiddos/pom.xml b/services/antiddos/pom.xml index 838b2e4116..464a5518a8 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-antiddos - 3.1.127 + 3.1.128 Huawei Cloud SDK for ANTIDDOS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/aom/pom.xml b/services/aom/pom.xml index 8a93dece61..d91362239c 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-aom - 3.1.127 + 3.1.128 Huawei Cloud SDK for AOM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/aos/pom.xml b/services/aos/pom.xml index 7a311ba2fc..949c405e1a 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-aos - 3.1.127 + 3.1.128 Huawei Cloud SDK for AOS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/apig/pom.xml b/services/apig/pom.xml index 228fdc56f9..2c36a94301 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-apig - 3.1.127 + 3.1.128 Huawei Cloud SDK for APIG 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/apm/pom.xml b/services/apm/pom.xml index 6f7b8b40b6..1f38118ae2 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-apm - 3.1.127 + 3.1.128 Huawei Cloud SDK for APM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/as/pom.xml b/services/as/pom.xml index 9d40a3138d..0fef5bf061 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-as - 3.1.127 + 3.1.128 Huawei Cloud SDK for AS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/ScalingActivityLogList.java b/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/ScalingActivityLogList.java index 28365634a7..6b5d5e9d32 100644 --- a/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/ScalingActivityLogList.java +++ b/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/ScalingActivityLogList.java @@ -32,9 +32,9 @@ public static final class StatusEnum { public static final StatusEnum FAIL = new StatusEnum("FAIL"); /** - * Enum DING for value: "DING" + * Enum DOING for value: "DOING" */ - public static final StatusEnum DING = new StatusEnum("DING"); + public static final StatusEnum DOING = new StatusEnum("DOING"); private static final Map STATIC_FIELDS = createStaticFields(); @@ -42,7 +42,7 @@ private static Map createStaticFields() { Map map = new HashMap<>(); map.put("SUCCESS", SUCCESS); map.put("FAIL", FAIL); - map.put("DING", DING); + map.put("DOING", DOING); return Collections.unmodifiableMap(map); } diff --git a/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/ScalingActivityLogV2.java b/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/ScalingActivityLogV2.java index 1a84f70526..b3d893615b 100644 --- a/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/ScalingActivityLogV2.java +++ b/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/ScalingActivityLogV2.java @@ -35,9 +35,9 @@ public static final class StatusEnum { public static final StatusEnum FAIL = new StatusEnum("FAIL"); /** - * Enum DING for value: "DING" + * Enum DOING for value: "DOING" */ - public static final StatusEnum DING = new StatusEnum("DING"); + public static final StatusEnum DOING = new StatusEnum("DOING"); private static final Map STATIC_FIELDS = createStaticFields(); @@ -45,7 +45,7 @@ private static Map createStaticFields() { Map map = new HashMap<>(); map.put("SUCCESS", SUCCESS); map.put("FAIL", FAIL); - map.put("DING", DING); + map.put("DOING", DOING); return Collections.unmodifiableMap(map); } diff --git a/services/asm/pom.xml b/services/asm/pom.xml index d3148cd42b..12d2654def 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-asm - 3.1.127 + 3.1.128 Huawei Cloud SDK for ASM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/bcs/pom.xml b/services/bcs/pom.xml index 2d0f5c911e..bdcc0bdc1b 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-bcs - 3.1.127 + 3.1.128 Huawei Cloud SDK for BCS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/bms/pom.xml b/services/bms/pom.xml index 181d459264..9b7f2749b7 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-bms - 3.1.127 + 3.1.128 Huawei Cloud SDK for BMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/bss/pom.xml b/services/bss/pom.xml index e5f706a224..a60e64a5ab 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-bss - 3.1.127 + 3.1.128 Huawei Cloud SDK for BSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/bssintl/pom.xml b/services/bssintl/pom.xml index b7ed74204b..9955dd6841 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-bssintl - 3.1.127 + 3.1.128 Huawei Cloud SDK for BSSINTL 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/cae/pom.xml b/services/cae/pom.xml index f82b9c333a..77bc40ecb4 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-cae - 3.1.127 + 3.1.128 Huawei Cloud SDK for CAE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ComponentSnapshotContext.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ComponentSnapshotContext.java index 5c7e18a34d..9b275fa6f7 100644 --- a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ComponentSnapshotContext.java +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ComponentSnapshotContext.java @@ -120,6 +120,11 @@ public static final class RuntimeEnum { */ public static final RuntimeEnum JAVA17 = new RuntimeEnum("Java17"); + /** + * Enum JAVA21 for value: "Java21" + */ + public static final RuntimeEnum JAVA21 = new RuntimeEnum("Java21"); + /** * Enum TOMCAT8 for value: "Tomcat8" */ @@ -183,6 +188,7 @@ private static Map createStaticFields() { map.put("Java8", JAVA8); map.put("Java11", JAVA11); map.put("Java17", JAVA17); + map.put("Java21", JAVA21); map.put("Tomcat8", TOMCAT8); map.put("Tomcat9", TOMCAT9); map.put("Python3", PYTHON3); diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ComponentSpec.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ComponentSpec.java index b49569a33c..9f099e85bd 100644 --- a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ComponentSpec.java +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/ComponentSpec.java @@ -43,6 +43,11 @@ public static final class RuntimeEnum { */ public static final RuntimeEnum JAVA17 = new RuntimeEnum("Java17"); + /** + * Enum JAVA21 for value: "Java21" + */ + public static final RuntimeEnum JAVA21 = new RuntimeEnum("Java21"); + /** * Enum TOMCAT8 for value: "Tomcat8" */ @@ -106,6 +111,7 @@ private static Map createStaticFields() { map.put("Java8", JAVA8); map.put("Java11", JAVA11); map.put("Java17", JAVA17); + map.put("Java21", JAVA21); map.put("Tomcat8", TOMCAT8); map.put("Tomcat9", TOMCAT9); map.put("Python3", PYTHON3); diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentSpec.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentSpec.java index be1e0a1297..9408cf027b 100644 --- a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentSpec.java +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentSpec.java @@ -41,6 +41,11 @@ public static final class RuntimeEnum { */ public static final RuntimeEnum JAVA17 = new RuntimeEnum("Java17"); + /** + * Enum JAVA21 for value: "Java21" + */ + public static final RuntimeEnum JAVA21 = new RuntimeEnum("Java21"); + /** * Enum TOMCAT8 for value: "Tomcat8" */ @@ -104,6 +109,7 @@ private static Map createStaticFields() { map.put("Java8", JAVA8); map.put("Java11", JAVA11); map.put("Java17", JAVA17); + map.put("Java21", JAVA21); map.put("Tomcat8", TOMCAT8); map.put("Tomcat9", TOMCAT9); map.put("Python3", PYTHON3); diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentWithConfigurationRequestBodySpec.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentWithConfigurationRequestBodySpec.java index 16bb3be087..ba049fdb23 100644 --- a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentWithConfigurationRequestBodySpec.java +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentWithConfigurationRequestBodySpec.java @@ -41,6 +41,11 @@ public static final class RuntimeEnum { */ public static final RuntimeEnum JAVA17 = new RuntimeEnum("Java17"); + /** + * Enum JAVA21 for value: "Java21" + */ + public static final RuntimeEnum JAVA21 = new RuntimeEnum("Java21"); + /** * Enum TOMCAT8 for value: "Tomcat8" */ @@ -104,6 +109,7 @@ private static Map createStaticFields() { map.put("Java8", JAVA8); map.put("Java11", JAVA11); map.put("Java17", JAVA17); + map.put("Java21", JAVA21); map.put("Tomcat8", TOMCAT8); map.put("Tomcat9", TOMCAT9); map.put("Python3", PYTHON3); diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/UpdateComponentRequestSpec.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/UpdateComponentRequestSpec.java index 32d01c126f..ced8f6ecd2 100644 --- a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/UpdateComponentRequestSpec.java +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/UpdateComponentRequestSpec.java @@ -41,6 +41,11 @@ public static final class RuntimeEnum { */ public static final RuntimeEnum JAVA17 = new RuntimeEnum("Java17"); + /** + * Enum JAVA21 for value: "Java21" + */ + public static final RuntimeEnum JAVA21 = new RuntimeEnum("Java21"); + /** * Enum TOMCAT8 for value: "Tomcat8" */ @@ -104,6 +109,7 @@ private static Map createStaticFields() { map.put("Java8", JAVA8); map.put("Java11", JAVA11); map.put("Java17", JAVA17); + map.put("Java21", JAVA21); map.put("Tomcat8", TOMCAT8); map.put("Tomcat9", TOMCAT9); map.put("Python3", PYTHON3); diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/region/CaeRegion.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/region/CaeRegion.java index e85e5a5473..486300392e 100644 --- a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/region/CaeRegion.java +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/region/CaeRegion.java @@ -14,16 +14,20 @@ public class CaeRegion { - public static final Region CN_NORTH_4 = new Region("cn-north-4", "https://cae.cn-north-4.myhuaweicloud.com"); + public static final Region CN_NORTH_4 = + new Region("cn-north-4", "https://cae.cn-north-4.myhuaweicloud.com", "https://cae.cn-north-4.myhuaweicloud.cn"); - public static final Region CN_EAST_3 = new Region("cn-east-3", "https://cae.cn-east-3.myhuaweicloud.com"); + public static final Region CN_EAST_3 = + new Region("cn-east-3", "https://cae.cn-east-3.myhuaweicloud.com", "https://cae.cn-east-3.myhuaweicloud.cn"); - public static final Region CN_SOUTH_1 = new Region("cn-south-1", "https://cae.cn-south-1.myhuaweicloud.com"); + public static final Region CN_SOUTH_1 = + new Region("cn-south-1", "https://cae.cn-south-1.myhuaweicloud.com", "https://cae.cn-south-1.myhuaweicloud.cn"); - public static final Region AP_SOUTHEAST_3 = - new Region("ap-southeast-3", "https://cae.ap-southeast-3.myhuaweicloud.com"); + public static final Region AP_SOUTHEAST_3 = new Region("ap-southeast-3", + "https://cae.ap-southeast-3.myhuaweicloud.com", "https://cae.ap-southeast-3.myhuaweicloud.cn"); - public static final Region AF_SOUTH_1 = new Region("af-south-1", "https://cae.af-south-1.myhuaweicloud.com"); + public static final Region AF_SOUTH_1 = + new Region("af-south-1", "https://cae.af-south-1.myhuaweicloud.com", "https://cae.af-south-1.myhuaweicloud.cn"); private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("CAE"); diff --git a/services/campusgo/pom.xml b/services/campusgo/pom.xml index f44bd20a7e..43ab2b260b 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-campusgo - 3.1.127 + 3.1.128 Huawei Cloud SDK for CAMPUSGO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/cbh/pom.xml b/services/cbh/pom.xml index f0541d438f..aa6a6e37ff 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-cbh - 3.1.127 + 3.1.128 Huawei Cloud SDK for CBH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/cbr/pom.xml b/services/cbr/pom.xml index 3e6eaf8ab7..7f69b9b57a 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-cbr - 3.1.127 + 3.1.128 Huawei Cloud SDK for CBR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/cbs/pom.xml b/services/cbs/pom.xml index 5f731cae4c..aa8b7a74a8 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-cbs - 3.1.127 + 3.1.128 Huawei Cloud SDK for CBS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/cc/pom.xml b/services/cc/pom.xml index ae74956b90..0c86dbac96 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-cc - 3.1.127 + 3.1.128 Huawei Cloud SDK for CC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/cce/pom.xml b/services/cce/pom.xml index ec902fbe1b..a7ce7bc49d 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-cce - 3.1.127 + 3.1.128 Huawei Cloud SDK for CCE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/SupportVersions.java b/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/SupportVersions.java index a404d683ad..6b51214666 100644 --- a/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/SupportVersions.java +++ b/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/model/SupportVersions.java @@ -23,6 +23,11 @@ public class SupportVersions { private List clusterVersion = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "category") + + private List category = null; + public SupportVersions withClusterType(String clusterType) { this.clusterType = clusterType; return this; @@ -73,6 +78,39 @@ public void setClusterVersion(List clusterVersion) { this.clusterVersion = clusterVersion; } + public SupportVersions withCategory(List category) { + this.category = category; + return this; + } + + public SupportVersions addCategoryItem(String categoryItem) { + if (this.category == null) { + this.category = new ArrayList<>(); + } + this.category.add(categoryItem); + return this; + } + + public SupportVersions withCategory(Consumer> categorySetter) { + if (this.category == null) { + this.category = new ArrayList<>(); + } + categorySetter.accept(this.category); + return this; + } + + /** + * 作用的集群类型 **取值范围:** - CCE:CCE Standard集群 - Turbo:CCE Turbo集群 - Autopilot:CCE Autopilot集群 **默认取值** 为空时默认为CCE Standard,CCE Turbo集群 + * @return category + */ + public List getCategory() { + return category; + } + + public void setCategory(List category) { + this.category = category; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -83,12 +121,12 @@ public boolean equals(java.lang.Object obj) { } SupportVersions that = (SupportVersions) obj; return Objects.equals(this.clusterType, that.clusterType) - && Objects.equals(this.clusterVersion, that.clusterVersion); + && Objects.equals(this.clusterVersion, that.clusterVersion) && Objects.equals(this.category, that.category); } @Override public int hashCode() { - return Objects.hash(clusterType, clusterVersion); + return Objects.hash(clusterType, clusterVersion, category); } @Override @@ -97,6 +135,7 @@ public String toString() { sb.append("class SupportVersions {\n"); sb.append(" clusterType: ").append(toIndentedString(clusterType)).append("\n"); sb.append(" clusterVersion: ").append(toIndentedString(clusterVersion)).append("\n"); + sb.append(" category: ").append(toIndentedString(category)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/region/CceRegion.java b/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/region/CceRegion.java index d97bfba968..ba1f4aa473 100644 --- a/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/region/CceRegion.java +++ b/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/region/CceRegion.java @@ -83,6 +83,9 @@ public class CceRegion { public static final Region CN_EAST_5 = new Region("cn-east-5", "https://cce.cn-east-5.myhuaweicloud.com"); + public static final Region AP_SOUTHEAST_5 = + new Region("ap-southeast-5", "https://cce.ap-southeast-5.myhuaweicloud.com"); + private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("CCE"); private static final Map STATIC_FIELDS = createStaticFields(); @@ -120,6 +123,7 @@ private static Map createStaticFields() { map.put("cn-east-4", CN_EAST_4); map.put("af-north-1", AF_NORTH_1); map.put("cn-east-5", CN_EAST_5); + map.put("ap-southeast-5", AP_SOUTHEAST_5); return Collections.unmodifiableMap(map); } diff --git a/services/ccm/pom.xml b/services/ccm/pom.xml index 5cc256f013..1c1e74e8c4 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-ccm - 3.1.127 + 3.1.128 Huawei Cloud SDK for CCM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/cdm/pom.xml b/services/cdm/pom.xml index a72ad6d77c..9d80331f7c 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-cdm - 3.1.127 + 3.1.128 Huawei Cloud SDK for CDM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/cdn/pom.xml b/services/cdn/pom.xml index 43b3d42828..77b4cce2ed 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-cdn - 3.1.127 + 3.1.128 Huawei Cloud SDK for CDN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/ces/pom.xml b/services/ces/pom.xml index 77bee4527e..912713cdd7 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-ces - 3.1.127 + 3.1.128 Huawei Cloud SDK for CES 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/cfw/pom.xml b/services/cfw/pom.xml index 6595066dff..c551074f69 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-cfw - 3.1.127 + 3.1.128 Huawei Cloud SDK for CFW 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/cgs/pom.xml b/services/cgs/pom.xml index 5197599544..9fd61d5a71 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-cgs - 3.1.127 + 3.1.128 Huawei Cloud SDK for CGS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/classroom/pom.xml b/services/classroom/pom.xml index 76ea037016..168b4d55aa 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-classroom - 3.1.127 + 3.1.128 Huawei Cloud SDK for CLASSROOM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/cloudide/pom.xml b/services/cloudide/pom.xml index a9a86b2142..4b72b01996 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-cloudide - 3.1.127 + 3.1.128 Huawei Cloud SDK for CLOUDIDE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 junit diff --git a/services/cloudpond/pom.xml b/services/cloudpond/pom.xml index 34be4fcd2a..9c4fea8149 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-cloudpond - 3.1.127 + 3.1.128 Huawei Cloud SDK for CLOUDPOND 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/cloudrtc/pom.xml b/services/cloudrtc/pom.xml index 9f77abaf0f..0535d24328 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-cloudrtc - 3.1.127 + 3.1.128 Huawei Cloud SDK for CLOUDRTC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/cloudtable/pom.xml b/services/cloudtable/pom.xml index 2c533639ec..3a3c1ac2c6 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-cloudtable - 3.1.127 + 3.1.128 Huawei Cloud SDK for CLOUDTABLE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/cloudtest/pom.xml b/services/cloudtest/pom.xml index ece163fe54..47ae72b852 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-cloudtest - 3.1.127 + 3.1.128 Huawei Cloud SDK for CLOUDTEST 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/cms/pom.xml b/services/cms/pom.xml index beedf52c8f..b56738ede4 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-cms - 3.1.127 + 3.1.128 Huawei Cloud SDK for CMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/coc/pom.xml b/services/coc/pom.xml index cffb354d0f..1b5fd56a70 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-coc - 3.1.127 + 3.1.128 Huawei Cloud SDK for COC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/codeartsartifact/pom.xml b/services/codeartsartifact/pom.xml index 8ef8d686c4..4e27750007 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsartifact - 3.1.127 + 3.1.128 Huawei Cloud SDK for CODEARTSARTIFACT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/codeartsbuild/pom.xml b/services/codeartsbuild/pom.xml index fe1755f000..a235a14c81 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsbuild - 3.1.127 + 3.1.128 Huawei Cloud SDK for CODEARTSBUILD 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/codeartscheck/pom.xml b/services/codeartscheck/pom.xml index 303f5881e3..72786ca762 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-codeartscheck - 3.1.127 + 3.1.128 Huawei Cloud SDK for CODEARTSCHECK 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/codeartsdeploy/pom.xml b/services/codeartsdeploy/pom.xml index 152700b49e..1310bf22c7 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsdeploy - 3.1.127 + 3.1.128 Huawei Cloud SDK for CODEARTSDEPLOY 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/codeartsgovernance/pom.xml b/services/codeartsgovernance/pom.xml index 3a62458e46..adc141b1a8 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsgovernance - 3.1.127 + 3.1.128 Huawei Cloud SDK for CODEARTSGOVERNANCE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/codeartsinspector/pom.xml b/services/codeartsinspector/pom.xml index 5c8ef94c4f..08ffa46a3b 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsinspector - 3.1.127 + 3.1.128 Huawei Cloud SDK for CODEARTSINSPECTOR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/codeartspipeline/pom.xml b/services/codeartspipeline/pom.xml index 16d0bdc913..8a23b82c53 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-codeartspipeline - 3.1.127 + 3.1.128 Huawei Cloud SDK for CODEARTSPIPELINE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/codeartspipeline/src/main/java/com/huaweicloud/sdk/codeartspipeline/v2/model/JobRun.java b/services/codeartspipeline/src/main/java/com/huaweicloud/sdk/codeartspipeline/v2/model/JobRun.java index bba80a9c9f..0734301777 100644 --- a/services/codeartspipeline/src/main/java/com/huaweicloud/sdk/codeartspipeline/v2/model/JobRun.java +++ b/services/codeartspipeline/src/main/java/com/huaweicloud/sdk/codeartspipeline/v2/model/JobRun.java @@ -31,7 +31,7 @@ public class JobRun { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "async") - private String async; + private Boolean async; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "name") @@ -154,7 +154,7 @@ public void setSequence(Integer sequence) { this.sequence = sequence; } - public JobRun withAsync(String async) { + public JobRun withAsync(Boolean async) { this.async = async; return this; } @@ -163,11 +163,11 @@ public JobRun withAsync(String async) { * 是否异步 * @return async */ - public String getAsync() { + public Boolean getAsync() { return async; } - public void setAsync(String async) { + public void setAsync(Boolean async) { this.async = async; } diff --git a/services/codecraft/pom.xml b/services/codecraft/pom.xml index 115be12315..78758631ee 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-codecraft - 3.1.127 + 3.1.128 Huawei Cloud SDK for CODECRAFT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/codehub/pom.xml b/services/codehub/pom.xml index eead30e835..276bf564c0 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-codehub - 3.1.127 + 3.1.128 Huawei Cloud SDK for CODEHUB 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/config/pom.xml b/services/config/pom.xml index 1036d1f27c..6745113a5c 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-config - 3.1.127 + 3.1.128 Huawei Cloud SDK for CONFIG 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/cph/pom.xml b/services/cph/pom.xml index 1b35d0b82b..8b23504d60 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-cph - 3.1.127 + 3.1.128 Huawei Cloud SDK for CPH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/cpts/pom.xml b/services/cpts/pom.xml index 6e22cb8966..4cc9b58413 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-cpts - 3.1.127 + 3.1.128 Huawei Cloud SDK for CPTS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/cse/pom.xml b/services/cse/pom.xml index 6148b7b6fb..65a2df9846 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-cse - 3.1.127 + 3.1.128 Huawei Cloud SDK for CSE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/csms/pom.xml b/services/csms/pom.xml index e3aad1e304..d8d3ccb4a5 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-csms - 3.1.127 + 3.1.128 Huawei Cloud SDK for CSMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/css/pom.xml b/services/css/pom.xml index 3f6838f368..c3297a9e76 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-css - 3.1.127 + 3.1.128 Huawei Cloud SDK for CSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/cts/pom.xml b/services/cts/pom.xml index 736239a859..ebde2bcba9 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-cts - 3.1.127 + 3.1.128 Huawei Cloud SDK for CTS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/das/pom.xml b/services/das/pom.xml index 6b79ab1cad..d3f279fc99 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-das - 3.1.127 + 3.1.128 Huawei Cloud SDK for DAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/dataartsfabric/pom.xml b/services/dataartsfabric/pom.xml index 4c02802725..d68f0f9521 100644 --- a/services/dataartsfabric/pom.xml +++ b/services/dataartsfabric/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-dataartsfabric - 3.1.127 + 3.1.128 Huawei Cloud SDK for DATAARTSFABRIC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/dataartsfabric/src/main/java/com/huaweicloud/sdk/dataartsfabric/v1/region/DataArtsFabricRegion.java b/services/dataartsfabric/src/main/java/com/huaweicloud/sdk/dataartsfabric/v1/region/DataArtsFabricRegion.java new file mode 100644 index 0000000000..2e03e7f7b7 --- /dev/null +++ b/services/dataartsfabric/src/main/java/com/huaweicloud/sdk/dataartsfabric/v1/region/DataArtsFabricRegion.java @@ -0,0 +1,53 @@ +package com.huaweicloud.sdk.dataartsfabric.v1.region; + +import com.huaweicloud.sdk.core.region.IRegionProvider; +import com.huaweicloud.sdk.core.region.Region; +import com.huaweicloud.sdk.core.region.RegionProviderChain; +import com.huaweicloud.sdk.core.utils.StringUtils; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Locale; +import java.util.Map; +import java.util.Objects; +import java.util.stream.Collectors; + +public class DataArtsFabricRegion { + + public static final Region CN_NORTH_4 = new Region("cn-north-4", "https://fabric.cn-north-4.myhuaweicloud.com"); + + public static final Region CN_SOUTHWEST_2 = + new Region("cn-southwest-2", "https://fabric.cn-southwest-2.myhuaweicloud.com"); + + private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("DATAARTSFABRIC"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("cn-north-4", CN_NORTH_4); + map.put("cn-southwest-2", CN_SOUTHWEST_2); + return Collections.unmodifiableMap(map); + } + + public static Region valueOf(String regionId) { + if (StringUtils.isEmpty(regionId)) { + throw new IllegalArgumentException("Unexpected empty parameter: regionId."); + } + + Region result = PROVIDER.getRegion(regionId); + if (Objects.nonNull(result)) { + return result; + } + + result = STATIC_FIELDS.get(regionId); + if (Objects.nonNull(result)) { + return result; + } + + throw new IllegalArgumentException(String.format(Locale.ROOT, + "region id '%s' is not in the following supported regions of service DataArtsFabric: [%s]", + regionId, + STATIC_FIELDS.keySet().stream().sorted().collect(Collectors.joining(", ")))); + } +} diff --git a/services/dataartsfabricep/pom.xml b/services/dataartsfabricep/pom.xml index b90802b96c..106f87d5b8 100644 --- a/services/dataartsfabricep/pom.xml +++ b/services/dataartsfabricep/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-dataartsfabricep - 3.1.127 + 3.1.128 Huawei Cloud SDK for DATAARTSFABRICEP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/dataartsfabricep/src/main/java/com/huaweicloud/sdk/dataartsfabricep/v1/region/DataArtsFabricEpRegion.java b/services/dataartsfabricep/src/main/java/com/huaweicloud/sdk/dataartsfabricep/v1/region/DataArtsFabricEpRegion.java new file mode 100644 index 0000000000..9700b606dc --- /dev/null +++ b/services/dataartsfabricep/src/main/java/com/huaweicloud/sdk/dataartsfabricep/v1/region/DataArtsFabricEpRegion.java @@ -0,0 +1,54 @@ +package com.huaweicloud.sdk.dataartsfabricep.v1.region; + +import com.huaweicloud.sdk.core.region.IRegionProvider; +import com.huaweicloud.sdk.core.region.Region; +import com.huaweicloud.sdk.core.region.RegionProviderChain; +import com.huaweicloud.sdk.core.utils.StringUtils; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Locale; +import java.util.Map; +import java.util.Objects; +import java.util.stream.Collectors; + +public class DataArtsFabricEpRegion { + + public static final Region CN_NORTH_4 = new Region("cn-north-4", "https://fabric-ep.cn-north-4.myhuaweicloud.com"); + + public static final Region CN_SOUTHWEST_2 = + new Region("cn-southwest-2", "https://fabric-ep.cn-southwest-2.myhuaweicloud.com"); + + private static final IRegionProvider PROVIDER = + RegionProviderChain.getDefaultRegionProviderChain("DATAARTSFABRICEP"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("cn-north-4", CN_NORTH_4); + map.put("cn-southwest-2", CN_SOUTHWEST_2); + return Collections.unmodifiableMap(map); + } + + public static Region valueOf(String regionId) { + if (StringUtils.isEmpty(regionId)) { + throw new IllegalArgumentException("Unexpected empty parameter: regionId."); + } + + Region result = PROVIDER.getRegion(regionId); + if (Objects.nonNull(result)) { + return result; + } + + result = STATIC_FIELDS.get(regionId); + if (Objects.nonNull(result)) { + return result; + } + + throw new IllegalArgumentException(String.format(Locale.ROOT, + "region id '%s' is not in the following supported regions of service DataArtsFabricEp: [%s]", + regionId, + STATIC_FIELDS.keySet().stream().sorted().collect(Collectors.joining(", ")))); + } +} diff --git a/services/dataartsinsight/pom.xml b/services/dataartsinsight/pom.xml index 4f87258865..1c482c9779 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-dataartsinsight - 3.1.127 + 3.1.128 Huawei Cloud SDK for DATAARTSINSIGHT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/dataartsstudio/pom.xml b/services/dataartsstudio/pom.xml index bf05fe70fa..599ec6a249 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-dataartsstudio - 3.1.127 + 3.1.128 Huawei Cloud SDK for DATAARTSSTUDIO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioAsyncClient.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioAsyncClient.java index bd5cacdc43..523573104d 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioAsyncClient.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioAsyncClient.java @@ -421,6 +421,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.RenewDataProfileResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ResetLinkAttributeAndStandardRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ResetLinkAttributeAndStandardResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.RetryFactoryJobInstanceRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.RetryFactoryJobInstanceResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.RollbackApprovalRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.RollbackApprovalResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.SearchApprovalsRequest; @@ -6455,6 +6457,36 @@ public AsyncInvoker(request, DataArtsStudioMeta.resetLinkAttributeAndStandard, hcClient); } + /** + * 重跑作业实例 + * + * 支持重跑作业实例以及上下游的作业实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RetryFactoryJobInstanceRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture retryFactoryJobInstanceAsync( + RetryFactoryJobInstanceRequest request) { + return hcClient.asyncInvokeHttp(request, DataArtsStudioMeta.retryFactoryJobInstance); + } + + /** + * 重跑作业实例 + * + * 支持重跑作业实例以及上下游的作业实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RetryFactoryJobInstanceRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker retryFactoryJobInstanceAsyncInvoker( + RetryFactoryJobInstanceRequest request) { + return new AsyncInvoker<>(request, DataArtsStudioMeta.retryFactoryJobInstance, hcClient); + } + /** * 撤回审批单 * diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioClient.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioClient.java index 1dfe18b1ef..43ee986a83 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioClient.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioClient.java @@ -421,6 +421,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.RenewDataProfileResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ResetLinkAttributeAndStandardRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ResetLinkAttributeAndStandardResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.RetryFactoryJobInstanceRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.RetryFactoryJobInstanceResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.RollbackApprovalRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.RollbackApprovalResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.SearchApprovalsRequest; @@ -6378,6 +6380,35 @@ public SyncInvoker(request, DataArtsStudioMeta.resetLinkAttributeAndStandard, hcClient); } + /** + * 重跑作业实例 + * + * 支持重跑作业实例以及上下游的作业实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RetryFactoryJobInstanceRequest 请求对象 + * @return RetryFactoryJobInstanceResponse + */ + public RetryFactoryJobInstanceResponse retryFactoryJobInstance(RetryFactoryJobInstanceRequest request) { + return hcClient.syncInvokeHttp(request, DataArtsStudioMeta.retryFactoryJobInstance); + } + + /** + * 重跑作业实例 + * + * 支持重跑作业实例以及上下游的作业实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RetryFactoryJobInstanceRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker retryFactoryJobInstanceInvoker( + RetryFactoryJobInstanceRequest request) { + return new SyncInvoker<>(request, DataArtsStudioMeta.retryFactoryJobInstance, hcClient); + } + /** * 撤回审批单 * diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioMeta.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioMeta.java index 990f26aba0..876af7f5a2 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioMeta.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioMeta.java @@ -514,6 +514,9 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.RenewDataProfileResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ResetLinkAttributeAndStandardRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ResetLinkAttributeAndStandardResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.RetryFactoryJobInstanceBody; +import com.huaweicloud.sdk.dataartsstudio.v1.model.RetryFactoryJobInstanceRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.RetryFactoryJobInstanceResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.RoleActionQueryDTO; import com.huaweicloud.sdk.dataartsstudio.v1.model.RollbackApprovalRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.RollbackApprovalResponse; @@ -9154,6 +9157,47 @@ private static HttpRequestDef retryFactoryJobInstance = + genForRetryFactoryJobInstance(); + + private static HttpRequestDef genForRetryFactoryJobInstance() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, RetryFactoryJobInstanceRequest.class, RetryFactoryJobInstanceResponse.class) + .withName("RetryFactoryJobInstance") + .withUri("/v2/{project_id}/factory/jobs/{job_name}/instances/retry") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("job_name", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(RetryFactoryJobInstanceRequest::getJobName, + RetryFactoryJobInstanceRequest::setJobName)); + builder.withRequestField("workspace", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(RetryFactoryJobInstanceRequest::getWorkspace, + RetryFactoryJobInstanceRequest::setWorkspace)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(RetryFactoryJobInstanceRequest::getXProjectId, + RetryFactoryJobInstanceRequest::setXProjectId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(RetryFactoryJobInstanceBody.class), + f -> f.withMarshaller(RetryFactoryJobInstanceRequest::getBody, RetryFactoryJobInstanceRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef rollbackApproval = genForRollbackApproval(); diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RetryFactoryJobInstanceBody.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RetryFactoryJobInstanceBody.java new file mode 100644 index 0000000000..9a1126b535 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RetryFactoryJobInstanceBody.java @@ -0,0 +1,305 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * RetryFactoryJobInstanceBody + */ +public class RetryFactoryJobInstanceBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "retry_location") + + private String retryLocation; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "node_name") + + private String nodeName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "retry_task_version") + + private String retryTaskVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ignore_obs_monitor") + + private Boolean ignoreObsMonitor; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_retrys") + + private List taskRetrys = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "begin_time") + + private Long beginTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "end_time") + + private Long endTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "jobs") + + private List jobs = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "concurrent") + + private Integer concurrent; + + public RetryFactoryJobInstanceBody withRetryLocation(String retryLocation) { + this.retryLocation = retryLocation; + return this; + } + + /** + * 重跑开始位置,取值有firstNode、errorNode和specifiedNode。 + * @return retryLocation + */ + public String getRetryLocation() { + return retryLocation; + } + + public void setRetryLocation(String retryLocation) { + this.retryLocation = retryLocation; + } + + public RetryFactoryJobInstanceBody withNodeName(String nodeName) { + this.nodeName = nodeName; + return this; + } + + /** + * 节点名称。 + * @return nodeName + */ + public String getNodeName() { + return nodeName; + } + + public void setNodeName(String nodeName) { + this.nodeName = nodeName; + } + + public RetryFactoryJobInstanceBody withRetryTaskVersion(String retryTaskVersion) { + this.retryTaskVersion = retryTaskVersion; + return this; + } + + /** + * 使用的作业参数,取值有original_version和current_version。 + * @return retryTaskVersion + */ + public String getRetryTaskVersion() { + return retryTaskVersion; + } + + public void setRetryTaskVersion(String retryTaskVersion) { + this.retryTaskVersion = retryTaskVersion; + } + + public RetryFactoryJobInstanceBody withIgnoreObsMonitor(Boolean ignoreObsMonitor) { + this.ignoreObsMonitor = ignoreObsMonitor; + return this; + } + + /** + * 是否忽略obs监听,默认为true。 + * @return ignoreObsMonitor + */ + public Boolean getIgnoreObsMonitor() { + return ignoreObsMonitor; + } + + public void setIgnoreObsMonitor(Boolean ignoreObsMonitor) { + this.ignoreObsMonitor = ignoreObsMonitor; + } + + public RetryFactoryJobInstanceBody withTaskRetrys(List taskRetrys) { + this.taskRetrys = taskRetrys; + return this; + } + + public RetryFactoryJobInstanceBody addTaskRetrysItem(RetryFactoryJobInstanceBodyTaskRetrys taskRetrysItem) { + if (this.taskRetrys == null) { + this.taskRetrys = new ArrayList<>(); + } + this.taskRetrys.add(taskRetrysItem); + return this; + } + + public RetryFactoryJobInstanceBody withTaskRetrys( + Consumer> taskRetrysSetter) { + if (this.taskRetrys == null) { + this.taskRetrys = new ArrayList<>(); + } + taskRetrysSetter.accept(this.taskRetrys); + return this; + } + + /** + * 作业实例重跑参数,当重跑当前实例类型时,需要指定该参数的重跑信息,重跑当前作业及其上下游作业实例类型不需要指定该参数。 + * @return taskRetrys + */ + public List getTaskRetrys() { + return taskRetrys; + } + + public void setTaskRetrys(List taskRetrys) { + this.taskRetrys = taskRetrys; + } + + public RetryFactoryJobInstanceBody withBeginTime(Long beginTime) { + this.beginTime = beginTime; + return this; + } + + /** + * 实例开始时间,当重跑当前作业及其上下游作业实例类型时,该参数有效。 + * @return beginTime + */ + public Long getBeginTime() { + return beginTime; + } + + public void setBeginTime(Long beginTime) { + this.beginTime = beginTime; + } + + public RetryFactoryJobInstanceBody withEndTime(Long endTime) { + this.endTime = endTime; + return this; + } + + /** + * 实例结束时间,当重跑当前作业及其上下游作业实例类型时,该参数有效。 + * @return endTime + */ + public Long getEndTime() { + return endTime; + } + + public void setEndTime(Long endTime) { + this.endTime = endTime; + } + + public RetryFactoryJobInstanceBody withJobs(List jobs) { + this.jobs = jobs; + return this; + } + + public RetryFactoryJobInstanceBody addJobsItem(RetryFactoryJobInstanceBodyJobs jobsItem) { + if (this.jobs == null) { + this.jobs = new ArrayList<>(); + } + this.jobs.add(jobsItem); + return this; + } + + public RetryFactoryJobInstanceBody withJobs(Consumer> jobsSetter) { + if (this.jobs == null) { + this.jobs = new ArrayList<>(); + } + jobsSetter.accept(this.jobs); + return this; + } + + /** + * 作业实例重跑参数,当重跑当前作业及其上下游作业实例类型时,需要指定该参数的重跑信息,重跑当前实例类型不需要指定该参数。 + * @return jobs + */ + public List getJobs() { + return jobs; + } + + public void setJobs(List jobs) { + this.jobs = jobs; + } + + public RetryFactoryJobInstanceBody withConcurrent(Integer concurrent) { + this.concurrent = concurrent; + return this; + } + + /** + * 并行度,当重跑当前作业及其上下游作业实例类型时,该参数有效,默认值为1,取值范围为1到128。 + * @return concurrent + */ + public Integer getConcurrent() { + return concurrent; + } + + public void setConcurrent(Integer concurrent) { + this.concurrent = concurrent; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RetryFactoryJobInstanceBody that = (RetryFactoryJobInstanceBody) obj; + return Objects.equals(this.retryLocation, that.retryLocation) && Objects.equals(this.nodeName, that.nodeName) + && Objects.equals(this.retryTaskVersion, that.retryTaskVersion) + && Objects.equals(this.ignoreObsMonitor, that.ignoreObsMonitor) + && Objects.equals(this.taskRetrys, that.taskRetrys) && Objects.equals(this.beginTime, that.beginTime) + && Objects.equals(this.endTime, that.endTime) && Objects.equals(this.jobs, that.jobs) + && Objects.equals(this.concurrent, that.concurrent); + } + + @Override + public int hashCode() { + return Objects.hash(retryLocation, + nodeName, + retryTaskVersion, + ignoreObsMonitor, + taskRetrys, + beginTime, + endTime, + jobs, + concurrent); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RetryFactoryJobInstanceBody {\n"); + sb.append(" retryLocation: ").append(toIndentedString(retryLocation)).append("\n"); + sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); + sb.append(" retryTaskVersion: ").append(toIndentedString(retryTaskVersion)).append("\n"); + sb.append(" ignoreObsMonitor: ").append(toIndentedString(ignoreObsMonitor)).append("\n"); + sb.append(" taskRetrys: ").append(toIndentedString(taskRetrys)).append("\n"); + sb.append(" beginTime: ").append(toIndentedString(beginTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" jobs: ").append(toIndentedString(jobs)).append("\n"); + sb.append(" concurrent: ").append(toIndentedString(concurrent)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RetryFactoryJobInstanceBodyJobs.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RetryFactoryJobInstanceBodyJobs.java new file mode 100644 index 0000000000..e52039252d --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RetryFactoryJobInstanceBodyJobs.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * RetryFactoryJobInstanceBodyJobs + */ +public class RetryFactoryJobInstanceBodyJobs { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_name") + + private String jobName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "workspace_id") + + private String workspaceId; + + public RetryFactoryJobInstanceBodyJobs withJobName(String jobName) { + this.jobName = jobName; + return this; + } + + /** + * 重跑的作业名称。 + * @return jobName + */ + public String getJobName() { + return jobName; + } + + public void setJobName(String jobName) { + this.jobName = jobName; + } + + public RetryFactoryJobInstanceBodyJobs withWorkspaceId(String workspaceId) { + this.workspaceId = workspaceId; + return this; + } + + /** + * 工作空间id + * @return workspaceId + */ + public String getWorkspaceId() { + return workspaceId; + } + + public void setWorkspaceId(String workspaceId) { + this.workspaceId = workspaceId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RetryFactoryJobInstanceBodyJobs that = (RetryFactoryJobInstanceBodyJobs) obj; + return Objects.equals(this.jobName, that.jobName) && Objects.equals(this.workspaceId, that.workspaceId); + } + + @Override + public int hashCode() { + return Objects.hash(jobName, workspaceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RetryFactoryJobInstanceBodyJobs {\n"); + sb.append(" jobName: ").append(toIndentedString(jobName)).append("\n"); + sb.append(" workspaceId: ").append(toIndentedString(workspaceId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RetryFactoryJobInstanceBodyTaskRetrys.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RetryFactoryJobInstanceBodyTaskRetrys.java new file mode 100644 index 0000000000..8d4a63bb12 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RetryFactoryJobInstanceBodyTaskRetrys.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * RetryFactoryJobInstanceBodyTaskRetrys + */ +public class RetryFactoryJobInstanceBodyTaskRetrys { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private Long jobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "plan_time") + + private Long planTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "submit_time") + + private Long submitTime; + + public RetryFactoryJobInstanceBodyTaskRetrys withJobId(Long jobId) { + this.jobId = jobId; + return this; + } + + /** + * 作业id,当前重跑实例的作业id。 + * @return jobId + */ + public Long getJobId() { + return jobId; + } + + public void setJobId(Long jobId) { + this.jobId = jobId; + } + + public RetryFactoryJobInstanceBodyTaskRetrys withPlanTime(Long planTime) { + this.planTime = planTime; + return this; + } + + /** + * 实例计划时间,13位时间戳,可通过查询作业实例列表接口获取。 + * @return planTime + */ + public Long getPlanTime() { + return planTime; + } + + public void setPlanTime(Long planTime) { + this.planTime = planTime; + } + + public RetryFactoryJobInstanceBodyTaskRetrys withSubmitTime(Long submitTime) { + this.submitTime = submitTime; + return this; + } + + /** + * 实例提交时间,13位时间戳,可通过查询作业实例列表接口获取。 + * @return submitTime + */ + public Long getSubmitTime() { + return submitTime; + } + + public void setSubmitTime(Long submitTime) { + this.submitTime = submitTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RetryFactoryJobInstanceBodyTaskRetrys that = (RetryFactoryJobInstanceBodyTaskRetrys) obj; + return Objects.equals(this.jobId, that.jobId) && Objects.equals(this.planTime, that.planTime) + && Objects.equals(this.submitTime, that.submitTime); + } + + @Override + public int hashCode() { + return Objects.hash(jobId, planTime, submitTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RetryFactoryJobInstanceBodyTaskRetrys {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" planTime: ").append(toIndentedString(planTime)).append("\n"); + sb.append(" submitTime: ").append(toIndentedString(submitTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RetryFactoryJobInstanceRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RetryFactoryJobInstanceRequest.java new file mode 100644 index 0000000000..0431a5a72a --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RetryFactoryJobInstanceRequest.java @@ -0,0 +1,154 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class RetryFactoryJobInstanceRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_name") + + private String jobName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "workspace") + + private String workspace; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private RetryFactoryJobInstanceBody body; + + public RetryFactoryJobInstanceRequest withJobName(String jobName) { + this.jobName = jobName; + return this; + } + + /** + * 当前作业名称 + * @return jobName + */ + public String getJobName() { + return jobName; + } + + public void setJobName(String jobName) { + this.jobName = jobName; + } + + public RetryFactoryJobInstanceRequest withWorkspace(String workspace) { + this.workspace = workspace; + return this; + } + + /** + * 工作空间ID,获取方法请参见[实例ID和工作空间ID](dataartsstudio_02_0350.xml)。 + * @return workspace + */ + public String getWorkspace() { + return workspace; + } + + public void setWorkspace(String workspace) { + this.workspace = workspace; + } + + public RetryFactoryJobInstanceRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 项目ID,获取方法请参见[项目ID和账号ID](projectid_accountid.xml)。 多project场景采用AK/SK认证的接口请求,则该字段必选。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public RetryFactoryJobInstanceRequest withBody(RetryFactoryJobInstanceBody body) { + this.body = body; + return this; + } + + public RetryFactoryJobInstanceRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new RetryFactoryJobInstanceBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public RetryFactoryJobInstanceBody getBody() { + return body; + } + + public void setBody(RetryFactoryJobInstanceBody 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; + } + RetryFactoryJobInstanceRequest that = (RetryFactoryJobInstanceRequest) obj; + return Objects.equals(this.jobName, that.jobName) && Objects.equals(this.workspace, that.workspace) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(jobName, workspace, xProjectId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RetryFactoryJobInstanceRequest {\n"); + sb.append(" jobName: ").append(toIndentedString(jobName)).append("\n"); + sb.append(" workspace: ").append(toIndentedString(workspace)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RetryFactoryJobInstanceResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RetryFactoryJobInstanceResponse.java new file mode 100644 index 0000000000..5cb72ef060 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RetryFactoryJobInstanceResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class RetryFactoryJobInstanceResponse 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 RetryFactoryJobInstanceResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/dbss/pom.xml b/services/dbss/pom.xml index fc4e08b14a..150112b226 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-dbss - 3.1.127 + 3.1.128 Huawei Cloud SDK for DBSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/dc/pom.xml b/services/dc/pom.xml index e72a4d1a31..e8ff9df36b 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-dc - 3.1.127 + 3.1.128 Huawei Cloud SDK for DC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/DcAsyncClient.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/DcAsyncClient.java index 93af63899f..af667ac93e 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/DcAsyncClient.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/DcAsyncClient.java @@ -43,12 +43,14 @@ import com.huaweicloud.sdk.dc.v3.model.DeleteVirtualInterfaceResponse; import com.huaweicloud.sdk.dc.v3.model.ListConnectGatewaysRequest; import com.huaweicloud.sdk.dc.v3.model.ListConnectGatewaysResponse; +import com.huaweicloud.sdk.dc.v3.model.ListDirectConnectLocationsRequest; +import com.huaweicloud.sdk.dc.v3.model.ListDirectConnectLocationsResponse; import com.huaweicloud.sdk.dc.v3.model.ListDirectConnectsRequest; import com.huaweicloud.sdk.dc.v3.model.ListDirectConnectsResponse; import com.huaweicloud.sdk.dc.v3.model.ListGdgwRouteTablesRequest; import com.huaweicloud.sdk.dc.v3.model.ListGdgwRouteTablesResponse; -import com.huaweicloud.sdk.dc.v3.model.ListGlobalDcGatewayRequest; -import com.huaweicloud.sdk.dc.v3.model.ListGlobalDcGatewayResponse; +import com.huaweicloud.sdk.dc.v3.model.ListGlobalDcGatewaysRequest; +import com.huaweicloud.sdk.dc.v3.model.ListGlobalDcGatewaysResponse; import com.huaweicloud.sdk.dc.v3.model.ListGlobalEipsRequest; import com.huaweicloud.sdk.dc.v3.model.ListGlobalEipsResponse; import com.huaweicloud.sdk.dc.v3.model.ListHostedDirectConnectsRequest; @@ -57,8 +59,6 @@ import com.huaweicloud.sdk.dc.v3.model.ListPeerLinksResponse; import com.huaweicloud.sdk.dc.v3.model.ListProjectTagsRequest; import com.huaweicloud.sdk.dc.v3.model.ListProjectTagsResponse; -import com.huaweicloud.sdk.dc.v3.model.ListRmsGlobalDcGatewayRequest; -import com.huaweicloud.sdk.dc.v3.model.ListRmsGlobalDcGatewayResponse; import com.huaweicloud.sdk.dc.v3.model.ListSwitchoverTestRecordsRequest; import com.huaweicloud.sdk.dc.v3.model.ListSwitchoverTestRecordsResponse; import com.huaweicloud.sdk.dc.v3.model.ListTagResourceInstancesRequest; @@ -69,6 +69,8 @@ import com.huaweicloud.sdk.dc.v3.model.ListVirtualInterfacesResponse; import com.huaweicloud.sdk.dc.v3.model.ShowConnectGatewayRequest; import com.huaweicloud.sdk.dc.v3.model.ShowConnectGatewayResponse; +import com.huaweicloud.sdk.dc.v3.model.ShowDirectConnectLocationRequest; +import com.huaweicloud.sdk.dc.v3.model.ShowDirectConnectLocationResponse; import com.huaweicloud.sdk.dc.v3.model.ShowDirectConnectRequest; import com.huaweicloud.sdk.dc.v3.model.ShowDirectConnectResponse; import com.huaweicloud.sdk.dc.v3.model.ShowGlobalDcGatewayRequest; @@ -81,8 +83,6 @@ import com.huaweicloud.sdk.dc.v3.model.ShowQuotasResponse; import com.huaweicloud.sdk.dc.v3.model.ShowResourceTagRequest; import com.huaweicloud.sdk.dc.v3.model.ShowResourceTagResponse; -import com.huaweicloud.sdk.dc.v3.model.ShowRmsGlobalDcGatewayRequest; -import com.huaweicloud.sdk.dc.v3.model.ShowRmsGlobalDcGatewayResponse; import com.huaweicloud.sdk.dc.v3.model.ShowVirtualGatewayRequest; import com.huaweicloud.sdk.dc.v3.model.ShowVirtualGatewayResponse; import com.huaweicloud.sdk.dc.v3.model.ShowVirtualInterfaceRequest; @@ -629,9 +629,69 @@ public AsyncInvoker + */ + public CompletableFuture listDirectConnectLocationsAsync( + ListDirectConnectLocationsRequest request) { + return hcClient.asyncInvokeHttp(request, DcMeta.listDirectConnectLocations); + } + + /** + * 查询专线接入点位置列表 + * + * 查询本区域下所有专线的接入点的信息,分页查询使用的参数为marker、limit。marker和limit一起使用时才会生效,单独使用无效。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDirectConnectLocationsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listDirectConnectLocationsAsyncInvoker( + ListDirectConnectLocationsRequest request) { + return new AsyncInvoker<>(request, DcMeta.listDirectConnectLocations, hcClient); + } + + /** + * 查询指定专线接入点详情 + * + * 查询指定的专线接入点详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowDirectConnectLocationRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showDirectConnectLocationAsync( + ShowDirectConnectLocationRequest request) { + return hcClient.asyncInvokeHttp(request, DcMeta.showDirectConnectLocation); + } + + /** + * 查询指定专线接入点详情 + * + * 查询指定的专线接入点详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowDirectConnectLocationRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showDirectConnectLocationAsyncInvoker( + ShowDirectConnectLocationRequest request) { + return new AsyncInvoker<>(request, DcMeta.showDirectConnectLocation, hcClient); + } + + /** + * 查询全域接入网关路由表 + * + * 查询全域接入网关路由表 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -643,9 +703,9 @@ public CompletableFuture listGdgwRouteTablesAsync(L } /** - * 查询全球接入网关路由表 + * 查询全域接入网关路由表 * - * 查询全球接入网关路由表,返回查询到的全球接入网关路由表的详细信息。 + * 查询全域接入网关路由表 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -658,9 +718,13 @@ public AsyncInvoker lis } /** - * 修改全球接入网关路由表 + * 修改全域接入网关路由表 * - * 修改全球接入网关路由表,返回修改全球接入网关路由表的结果。 + * # 支持的修改操作: + * **注意:新增、删除、修改操作互斥,一次请求只能执行其中一类操作** + * + 1. 新增下一跳路由 + * + 2. 删除下一跳路由 + * + 3. 修改路由描述 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -673,9 +737,13 @@ public CompletableFuture updateGdgwRouteTableAsync } /** - * 修改全球接入网关路由表 + * 修改全域接入网关路由表 * - * 修改全球接入网关路由表,返回修改全球接入网关路由表的结果。 + * # 支持的修改操作: + * **注意:新增、删除、修改操作互斥,一次请求只能执行其中一类操作** + * + 1. 新增下一跳路由 + * + 2. 删除下一跳路由 + * + 3. 修改路由描述 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -688,9 +756,9 @@ public AsyncInvoker u } /** - * 创建全球接入网关 + * 创建专线全域接入网关 * - * 创建全球接入网关,返回创建全球接入网关的结果。 + * 创建专线全域接入网关实例(global-dc-gateway),用于接入全球的ER实例 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -703,9 +771,9 @@ public CompletableFuture createGlobalDcGatewayAsy } /** - * 创建全球接入网关 + * 创建专线全域接入网关 * - * 创建全球接入网关,返回创建全球接入网关的结果。 + * 创建专线全域接入网关实例(global-dc-gateway),用于接入全球的ER实例 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -718,38 +786,9 @@ public AsyncInvoker } /** - * 创建全球接入网关对等链接 - * - * 创建全球接入网关对等链接,返回创建全球接入网关对等链接的结果。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request CreatePeerLinkRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture createPeerLinkAsync(CreatePeerLinkRequest request) { - return hcClient.asyncInvokeHttp(request, DcMeta.createPeerLink); - } - - /** - * 创建全球接入网关对等链接 + * 删除专线全域接入网关 * - * 创建全球接入网关对等链接,返回创建全球接入网关对等链接的结果。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request CreatePeerLinkRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker createPeerLinkAsyncInvoker( - CreatePeerLinkRequest request) { - return new AsyncInvoker<>(request, DcMeta.createPeerLink, hcClient); - } - - /** - * 删除全球接入网关 - * - * 根据ID删除全球接入网关,返回删除全球接入网关的结果。 + * 删除专线全域接入网关global-dc-gateway实例 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -762,9 +801,9 @@ public CompletableFuture deleteGlobalDcGatewayAsy } /** - * 删除全球接入网关 + * 删除专线全域接入网关 * - * 根据ID删除全球接入网关,返回删除全球接入网关的结果。 + * 删除专线全域接入网关global-dc-gateway实例 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -777,244 +816,214 @@ public AsyncInvoker } /** - * 删除全球接入网关对等链接 + * 查询专线全域接入网关列表 * - * 根据ID删除全球接入网关对等链接,返回删除全球接入网关对等链接的结果。 + * 查询专线全域接入网关列表,建议使用分页查询 分页查询使用的参数为marker、limit。marker和limit一起使用时才会生效,单独使用无效 * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request DeletePeerLinkRequest 请求对象 - * @return CompletableFuture + * @param request ListGlobalDcGatewaysRequest 请求对象 + * @return CompletableFuture */ - public CompletableFuture deletePeerLinkAsync(DeletePeerLinkRequest request) { - return hcClient.asyncInvokeHttp(request, DcMeta.deletePeerLink); + public CompletableFuture listGlobalDcGatewaysAsync( + ListGlobalDcGatewaysRequest request) { + return hcClient.asyncInvokeHttp(request, DcMeta.listGlobalDcGateways); } /** - * 删除全球接入网关对等链接 + * 查询专线全域接入网关列表 * - * 根据ID删除全球接入网关对等链接,返回删除全球接入网关对等链接的结果。 + * 查询专线全域接入网关列表,建议使用分页查询 分页查询使用的参数为marker、limit。marker和limit一起使用时才会生效,单独使用无效 * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request DeletePeerLinkRequest 请求对象 - * @return AsyncInvoker + * @param request ListGlobalDcGatewaysRequest 请求对象 + * @return AsyncInvoker */ - public AsyncInvoker deletePeerLinkAsyncInvoker( - DeletePeerLinkRequest request) { - return new AsyncInvoker<>(request, DcMeta.deletePeerLink, hcClient); + public AsyncInvoker listGlobalDcGatewaysAsyncInvoker( + ListGlobalDcGatewaysRequest request) { + return new AsyncInvoker<>(request, DcMeta.listGlobalDcGateways, hcClient); } /** - * 查询全球接入网关列表 + * 查询专线全域接入网关详情 * - * 查询 全球接入网关列表,返回列表中包含全球接入网关的详细信息。 + * 查询专线全域接入网关实例详情信息 * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ListGlobalDcGatewayRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture listGlobalDcGatewayAsync(ListGlobalDcGatewayRequest request) { - return hcClient.asyncInvokeHttp(request, DcMeta.listGlobalDcGateway); - } - - /** - * 查询全球接入网关列表 - * - * 查询 全球接入网关列表,返回列表中包含全球接入网关的详细信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListGlobalDcGatewayRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker listGlobalDcGatewayAsyncInvoker( - ListGlobalDcGatewayRequest request) { - return new AsyncInvoker<>(request, DcMeta.listGlobalDcGateway, hcClient); - } - - /** - * 查询全球接入网关对等链接 - * - * 查询全球接入网关对等链接,返回查询到的全球接入网关对等链接的详细信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListPeerLinksRequest 请求对象 - * @return CompletableFuture + * @param request ShowGlobalDcGatewayRequest 请求对象 + * @return CompletableFuture */ - public CompletableFuture listPeerLinksAsync(ListPeerLinksRequest request) { - return hcClient.asyncInvokeHttp(request, DcMeta.listPeerLinks); + public CompletableFuture showGlobalDcGatewayAsync(ShowGlobalDcGatewayRequest request) { + return hcClient.asyncInvokeHttp(request, DcMeta.showGlobalDcGateway); } /** - * 查询全球接入网关对等链接 + * 查询专线全域接入网关详情 * - * 查询全球接入网关对等链接,返回查询到的全球接入网关对等链接的详细信息。 + * 查询专线全域接入网关实例详情信息 * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ListPeerLinksRequest 请求对象 - * @return AsyncInvoker + * @param request ShowGlobalDcGatewayRequest 请求对象 + * @return AsyncInvoker */ - public AsyncInvoker listPeerLinksAsyncInvoker( - ListPeerLinksRequest request) { - return new AsyncInvoker<>(request, DcMeta.listPeerLinks, hcClient); + public AsyncInvoker showGlobalDcGatewayAsyncInvoker( + ShowGlobalDcGatewayRequest request) { + return new AsyncInvoker<>(request, DcMeta.showGlobalDcGateway, hcClient); } /** - * 查询RMS全球接入网关 + * 更新专线全域接入网关 * - * 根据类型、domain_id、region_id,资源类型查询资源,返回查询到的资源的详细信息。 + * 更新专线全域接入网关global-dc-gateway的名字,描述等信息 * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ListRmsGlobalDcGatewayRequest 请求对象 - * @return CompletableFuture + * @param request UpdateGlobalDcGatewayRequest 请求对象 + * @return CompletableFuture */ - public CompletableFuture listRmsGlobalDcGatewayAsync( - ListRmsGlobalDcGatewayRequest request) { - return hcClient.asyncInvokeHttp(request, DcMeta.listRmsGlobalDcGateway); + public CompletableFuture updateGlobalDcGatewayAsync( + UpdateGlobalDcGatewayRequest request) { + return hcClient.asyncInvokeHttp(request, DcMeta.updateGlobalDcGateway); } /** - * 查询RMS全球接入网关 + * 更新专线全域接入网关 * - * 根据类型、domain_id、region_id,资源类型查询资源,返回查询到的资源的详细信息。 + * 更新专线全域接入网关global-dc-gateway的名字,描述等信息 * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ListRmsGlobalDcGatewayRequest 请求对象 - * @return AsyncInvoker + * @param request UpdateGlobalDcGatewayRequest 请求对象 + * @return AsyncInvoker */ - public AsyncInvoker listRmsGlobalDcGatewayAsyncInvoker( - ListRmsGlobalDcGatewayRequest request) { - return new AsyncInvoker<>(request, DcMeta.listRmsGlobalDcGateway, hcClient); + public AsyncInvoker updateGlobalDcGatewayAsyncInvoker( + UpdateGlobalDcGatewayRequest request) { + return new AsyncInvoker<>(request, DcMeta.updateGlobalDcGateway, hcClient); } /** - * 查询全球接入网关详情 + * 创建专线关联连接 * - * 根据ID查询全球接入网关,返回查询到的全球接入网关的详细信息。 + * 创建专线全域接入网关的关联连接peer-link对象,用于连接企业路由器或者其他接入网关 * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ShowGlobalDcGatewayRequest 请求对象 - * @return CompletableFuture + * @param request CreatePeerLinkRequest 请求对象 + * @return CompletableFuture */ - public CompletableFuture showGlobalDcGatewayAsync(ShowGlobalDcGatewayRequest request) { - return hcClient.asyncInvokeHttp(request, DcMeta.showGlobalDcGateway); + public CompletableFuture createPeerLinkAsync(CreatePeerLinkRequest request) { + return hcClient.asyncInvokeHttp(request, DcMeta.createPeerLink); } /** - * 查询全球接入网关详情 + * 创建专线关联连接 * - * 根据ID查询全球接入网关,返回查询到的全球接入网关的详细信息。 + * 创建专线全域接入网关的关联连接peer-link对象,用于连接企业路由器或者其他接入网关 * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ShowGlobalDcGatewayRequest 请求对象 - * @return AsyncInvoker + * @param request CreatePeerLinkRequest 请求对象 + * @return AsyncInvoker */ - public AsyncInvoker showGlobalDcGatewayAsyncInvoker( - ShowGlobalDcGatewayRequest request) { - return new AsyncInvoker<>(request, DcMeta.showGlobalDcGateway, hcClient); + public AsyncInvoker createPeerLinkAsyncInvoker( + CreatePeerLinkRequest request) { + return new AsyncInvoker<>(request, DcMeta.createPeerLink, hcClient); } /** - * 查询全球接入网关对等链接 + * 删除专线关联连接 * - * 根据ID查询全球接入网关对等链接,返回查询到的全球接入网关对等链接的详细信息。 + * 删除全域接入网关与ER的关联连接peer-link * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ShowPeerLinkRequest 请求对象 - * @return CompletableFuture + * @param request DeletePeerLinkRequest 请求对象 + * @return CompletableFuture */ - public CompletableFuture showPeerLinkAsync(ShowPeerLinkRequest request) { - return hcClient.asyncInvokeHttp(request, DcMeta.showPeerLink); + public CompletableFuture deletePeerLinkAsync(DeletePeerLinkRequest request) { + return hcClient.asyncInvokeHttp(request, DcMeta.deletePeerLink); } /** - * 查询全球接入网关对等链接 + * 删除专线关联连接 * - * 根据ID查询全球接入网关对等链接,返回查询到的全球接入网关对等链接的详细信息。 + * 删除全域接入网关与ER的关联连接peer-link * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ShowPeerLinkRequest 请求对象 - * @return AsyncInvoker + * @param request DeletePeerLinkRequest 请求对象 + * @return AsyncInvoker */ - public AsyncInvoker showPeerLinkAsyncInvoker( - ShowPeerLinkRequest request) { - return new AsyncInvoker<>(request, DcMeta.showPeerLink, hcClient); + public AsyncInvoker deletePeerLinkAsyncInvoker( + DeletePeerLinkRequest request) { + return new AsyncInvoker<>(request, DcMeta.deletePeerLink, hcClient); } /** - * 查询RMS全球接入网关 + * 查询专线关联连接列表 * - * 根据类型、domain_id、region_id,资源类型,全球接入网关ID查询资源,返回查询到的资源的详细信息。 + * 查询全域接入网关与ER等对象的关联连接列表,分页查询使用的参数为marker、limit。marker和limit一起使用时才会生效,单独使用无效 * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ShowRmsGlobalDcGatewayRequest 请求对象 - * @return CompletableFuture + * @param request ListPeerLinksRequest 请求对象 + * @return CompletableFuture */ - public CompletableFuture showRmsGlobalDcGatewayAsync( - ShowRmsGlobalDcGatewayRequest request) { - return hcClient.asyncInvokeHttp(request, DcMeta.showRmsGlobalDcGateway); + public CompletableFuture listPeerLinksAsync(ListPeerLinksRequest request) { + return hcClient.asyncInvokeHttp(request, DcMeta.listPeerLinks); } /** - * 查询RMS全球接入网关 + * 查询专线关联连接列表 * - * 根据类型、domain_id、region_id,资源类型,全球接入网关ID查询资源,返回查询到的资源的详细信息。 + * 查询全域接入网关与ER等对象的关联连接列表,分页查询使用的参数为marker、limit。marker和limit一起使用时才会生效,单独使用无效 * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ShowRmsGlobalDcGatewayRequest 请求对象 - * @return AsyncInvoker + * @param request ListPeerLinksRequest 请求对象 + * @return AsyncInvoker */ - public AsyncInvoker showRmsGlobalDcGatewayAsyncInvoker( - ShowRmsGlobalDcGatewayRequest request) { - return new AsyncInvoker<>(request, DcMeta.showRmsGlobalDcGateway, hcClient); + public AsyncInvoker listPeerLinksAsyncInvoker( + ListPeerLinksRequest request) { + return new AsyncInvoker<>(request, DcMeta.listPeerLinks, hcClient); } /** - * 修改全球接入网关 + * 查询专线关联连接详情 * - * 根据ID修改全球接入网关,返回修改全球接入网关的结果。 + * 查询指定接入网关的指定的关联连接(peer link)详情 * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request UpdateGlobalDcGatewayRequest 请求对象 - * @return CompletableFuture + * @param request ShowPeerLinkRequest 请求对象 + * @return CompletableFuture */ - public CompletableFuture updateGlobalDcGatewayAsync( - UpdateGlobalDcGatewayRequest request) { - return hcClient.asyncInvokeHttp(request, DcMeta.updateGlobalDcGateway); + public CompletableFuture showPeerLinkAsync(ShowPeerLinkRequest request) { + return hcClient.asyncInvokeHttp(request, DcMeta.showPeerLink); } /** - * 修改全球接入网关 + * 查询专线关联连接详情 * - * 根据ID修改全球接入网关,返回修改全球接入网关的结果。 + * 查询指定接入网关的指定的关联连接(peer link)详情 * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request UpdateGlobalDcGatewayRequest 请求对象 - * @return AsyncInvoker + * @param request ShowPeerLinkRequest 请求对象 + * @return AsyncInvoker */ - public AsyncInvoker updateGlobalDcGatewayAsyncInvoker( - UpdateGlobalDcGatewayRequest request) { - return new AsyncInvoker<>(request, DcMeta.updateGlobalDcGateway, hcClient); + public AsyncInvoker showPeerLinkAsyncInvoker( + ShowPeerLinkRequest request) { + return new AsyncInvoker<>(request, DcMeta.showPeerLink, hcClient); } /** - * 修改全球接入网关对等链接 + * 更新专线关联连接 * - * 根据ID修改全球接入网关对等链接,返回修改全球接入网关对等链接的结果。 + * 更新接入网关与ER对接的关联连接peer-link * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1026,9 +1035,9 @@ public CompletableFuture updatePeerLinkAsync(UpdatePeerL } /** - * 修改全球接入网关对等链接 + * 更新专线关联连接 * - * 根据ID修改全球接入网关对等链接,返回修改全球接入网关对等链接的结果。 + * 更新接入网关与ER对接的关联连接peer-link * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1464,7 +1473,7 @@ public AsyncInvoker deleteVifPeerAsync(DeleteVifPeer /** * 删除虚拟接口对应的对等体 * - * 删除虚拟接口对等体信息,虚拟接口到少要含一个对等体,最后一个对等体不能删除 本接口只在支持Ipv6的区域开放,如需要使用请联系客服 + * 删除虚拟接口对等体信息,虚拟接口至少要含一个对等体,最后一个对等体不能删除 本接口只在支持Ipv6的区域开放,如需要使用请联系客服 * * Please refer to HUAWEI cloud API Explorer for details. * diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/DcClient.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/DcClient.java index 4f7f04f03a..cae03cdc07 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/DcClient.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/DcClient.java @@ -43,12 +43,14 @@ import com.huaweicloud.sdk.dc.v3.model.DeleteVirtualInterfaceResponse; import com.huaweicloud.sdk.dc.v3.model.ListConnectGatewaysRequest; import com.huaweicloud.sdk.dc.v3.model.ListConnectGatewaysResponse; +import com.huaweicloud.sdk.dc.v3.model.ListDirectConnectLocationsRequest; +import com.huaweicloud.sdk.dc.v3.model.ListDirectConnectLocationsResponse; import com.huaweicloud.sdk.dc.v3.model.ListDirectConnectsRequest; import com.huaweicloud.sdk.dc.v3.model.ListDirectConnectsResponse; import com.huaweicloud.sdk.dc.v3.model.ListGdgwRouteTablesRequest; import com.huaweicloud.sdk.dc.v3.model.ListGdgwRouteTablesResponse; -import com.huaweicloud.sdk.dc.v3.model.ListGlobalDcGatewayRequest; -import com.huaweicloud.sdk.dc.v3.model.ListGlobalDcGatewayResponse; +import com.huaweicloud.sdk.dc.v3.model.ListGlobalDcGatewaysRequest; +import com.huaweicloud.sdk.dc.v3.model.ListGlobalDcGatewaysResponse; import com.huaweicloud.sdk.dc.v3.model.ListGlobalEipsRequest; import com.huaweicloud.sdk.dc.v3.model.ListGlobalEipsResponse; import com.huaweicloud.sdk.dc.v3.model.ListHostedDirectConnectsRequest; @@ -57,8 +59,6 @@ import com.huaweicloud.sdk.dc.v3.model.ListPeerLinksResponse; import com.huaweicloud.sdk.dc.v3.model.ListProjectTagsRequest; import com.huaweicloud.sdk.dc.v3.model.ListProjectTagsResponse; -import com.huaweicloud.sdk.dc.v3.model.ListRmsGlobalDcGatewayRequest; -import com.huaweicloud.sdk.dc.v3.model.ListRmsGlobalDcGatewayResponse; import com.huaweicloud.sdk.dc.v3.model.ListSwitchoverTestRecordsRequest; import com.huaweicloud.sdk.dc.v3.model.ListSwitchoverTestRecordsResponse; import com.huaweicloud.sdk.dc.v3.model.ListTagResourceInstancesRequest; @@ -69,6 +69,8 @@ import com.huaweicloud.sdk.dc.v3.model.ListVirtualInterfacesResponse; import com.huaweicloud.sdk.dc.v3.model.ShowConnectGatewayRequest; import com.huaweicloud.sdk.dc.v3.model.ShowConnectGatewayResponse; +import com.huaweicloud.sdk.dc.v3.model.ShowDirectConnectLocationRequest; +import com.huaweicloud.sdk.dc.v3.model.ShowDirectConnectLocationResponse; import com.huaweicloud.sdk.dc.v3.model.ShowDirectConnectRequest; import com.huaweicloud.sdk.dc.v3.model.ShowDirectConnectResponse; import com.huaweicloud.sdk.dc.v3.model.ShowGlobalDcGatewayRequest; @@ -81,8 +83,6 @@ import com.huaweicloud.sdk.dc.v3.model.ShowQuotasResponse; import com.huaweicloud.sdk.dc.v3.model.ShowResourceTagRequest; import com.huaweicloud.sdk.dc.v3.model.ShowResourceTagResponse; -import com.huaweicloud.sdk.dc.v3.model.ShowRmsGlobalDcGatewayRequest; -import com.huaweicloud.sdk.dc.v3.model.ShowRmsGlobalDcGatewayResponse; import com.huaweicloud.sdk.dc.v3.model.ShowVirtualGatewayRequest; import com.huaweicloud.sdk.dc.v3.model.ShowVirtualGatewayResponse; import com.huaweicloud.sdk.dc.v3.model.ShowVirtualInterfaceRequest; @@ -619,9 +619,67 @@ public SyncInvoker + */ + public SyncInvoker listDirectConnectLocationsInvoker( + ListDirectConnectLocationsRequest request) { + return new SyncInvoker<>(request, DcMeta.listDirectConnectLocations, hcClient); + } + + /** + * 查询指定专线接入点详情 + * + * 查询指定的专线接入点详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowDirectConnectLocationRequest 请求对象 + * @return ShowDirectConnectLocationResponse + */ + public ShowDirectConnectLocationResponse showDirectConnectLocation(ShowDirectConnectLocationRequest request) { + return hcClient.syncInvokeHttp(request, DcMeta.showDirectConnectLocation); + } + + /** + * 查询指定专线接入点详情 + * + * 查询指定的专线接入点详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowDirectConnectLocationRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showDirectConnectLocationInvoker( + ShowDirectConnectLocationRequest request) { + return new SyncInvoker<>(request, DcMeta.showDirectConnectLocation, hcClient); + } + + /** + * 查询全域接入网关路由表 + * + * 查询全域接入网关路由表 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -633,9 +691,9 @@ public ListGdgwRouteTablesResponse listGdgwRouteTables(ListGdgwRouteTablesReques } /** - * 查询全球接入网关路由表 + * 查询全域接入网关路由表 * - * 查询全球接入网关路由表,返回查询到的全球接入网关路由表的详细信息。 + * 查询全域接入网关路由表 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -648,9 +706,13 @@ public SyncInvoker list } /** - * 修改全球接入网关路由表 + * 修改全域接入网关路由表 * - * 修改全球接入网关路由表,返回修改全球接入网关路由表的结果。 + * # 支持的修改操作: + * **注意:新增、删除、修改操作互斥,一次请求只能执行其中一类操作** + * + 1. 新增下一跳路由 + * + 2. 删除下一跳路由 + * + 3. 修改路由描述 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -662,9 +724,13 @@ public UpdateGdgwRouteTableResponse updateGdgwRouteTable(UpdateGdgwRouteTableReq } /** - * 修改全球接入网关路由表 + * 修改全域接入网关路由表 * - * 修改全球接入网关路由表,返回修改全球接入网关路由表的结果。 + * # 支持的修改操作: + * **注意:新增、删除、修改操作互斥,一次请求只能执行其中一类操作** + * + 1. 新增下一跳路由 + * + 2. 删除下一跳路由 + * + 3. 修改路由描述 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -677,9 +743,9 @@ public SyncInvoker up } /** - * 创建全球接入网关 + * 创建专线全域接入网关 * - * 创建全球接入网关,返回创建全球接入网关的结果。 + * 创建专线全域接入网关实例(global-dc-gateway),用于接入全球的ER实例 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -691,9 +757,9 @@ public CreateGlobalDcGatewayResponse createGlobalDcGateway(CreateGlobalDcGateway } /** - * 创建全球接入网关 + * 创建专线全域接入网关 * - * 创建全球接入网关,返回创建全球接入网关的结果。 + * 创建专线全域接入网关实例(global-dc-gateway),用于接入全球的ER实例 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -706,38 +772,9 @@ public SyncInvoker } /** - * 创建全球接入网关对等链接 - * - * 创建全球接入网关对等链接,返回创建全球接入网关对等链接的结果。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request CreatePeerLinkRequest 请求对象 - * @return CreatePeerLinkResponse - */ - public CreatePeerLinkResponse createPeerLink(CreatePeerLinkRequest request) { - return hcClient.syncInvokeHttp(request, DcMeta.createPeerLink); - } - - /** - * 创建全球接入网关对等链接 + * 删除专线全域接入网关 * - * 创建全球接入网关对等链接,返回创建全球接入网关对等链接的结果。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request CreatePeerLinkRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker createPeerLinkInvoker( - CreatePeerLinkRequest request) { - return new SyncInvoker<>(request, DcMeta.createPeerLink, hcClient); - } - - /** - * 删除全球接入网关 - * - * 根据ID删除全球接入网关,返回删除全球接入网关的结果。 + * 删除专线全域接入网关global-dc-gateway实例 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -749,9 +786,9 @@ public DeleteGlobalDcGatewayResponse deleteGlobalDcGateway(DeleteGlobalDcGateway } /** - * 删除全球接入网关 + * 删除专线全域接入网关 * - * 根据ID删除全球接入网关,返回删除全球接入网关的结果。 + * 删除专线全域接入网关global-dc-gateway实例 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -764,239 +801,210 @@ public SyncInvoker } /** - * 删除全球接入网关对等链接 - * - * 根据ID删除全球接入网关对等链接,返回删除全球接入网关对等链接的结果。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request DeletePeerLinkRequest 请求对象 - * @return DeletePeerLinkResponse - */ - public DeletePeerLinkResponse deletePeerLink(DeletePeerLinkRequest request) { - return hcClient.syncInvokeHttp(request, DcMeta.deletePeerLink); - } - - /** - * 删除全球接入网关对等链接 + * 查询专线全域接入网关列表 * - * 根据ID删除全球接入网关对等链接,返回删除全球接入网关对等链接的结果。 + * 查询专线全域接入网关列表,建议使用分页查询 分页查询使用的参数为marker、limit。marker和limit一起使用时才会生效,单独使用无效 * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request DeletePeerLinkRequest 请求对象 - * @return SyncInvoker + * @param request ListGlobalDcGatewaysRequest 请求对象 + * @return ListGlobalDcGatewaysResponse */ - public SyncInvoker deletePeerLinkInvoker( - DeletePeerLinkRequest request) { - return new SyncInvoker<>(request, DcMeta.deletePeerLink, hcClient); + public ListGlobalDcGatewaysResponse listGlobalDcGateways(ListGlobalDcGatewaysRequest request) { + return hcClient.syncInvokeHttp(request, DcMeta.listGlobalDcGateways); } /** - * 查询全球接入网关列表 + * 查询专线全域接入网关列表 * - * 查询 全球接入网关列表,返回列表中包含全球接入网关的详细信息。 + * 查询专线全域接入网关列表,建议使用分页查询 分页查询使用的参数为marker、limit。marker和limit一起使用时才会生效,单独使用无效 * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ListGlobalDcGatewayRequest 请求对象 - * @return ListGlobalDcGatewayResponse + * @param request ListGlobalDcGatewaysRequest 请求对象 + * @return SyncInvoker */ - public ListGlobalDcGatewayResponse listGlobalDcGateway(ListGlobalDcGatewayRequest request) { - return hcClient.syncInvokeHttp(request, DcMeta.listGlobalDcGateway); + public SyncInvoker listGlobalDcGatewaysInvoker( + ListGlobalDcGatewaysRequest request) { + return new SyncInvoker<>(request, DcMeta.listGlobalDcGateways, hcClient); } /** - * 查询全球接入网关列表 + * 查询专线全域接入网关详情 * - * 查询 全球接入网关列表,返回列表中包含全球接入网关的详细信息。 + * 查询专线全域接入网关实例详情信息 * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ListGlobalDcGatewayRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker listGlobalDcGatewayInvoker( - ListGlobalDcGatewayRequest request) { - return new SyncInvoker<>(request, DcMeta.listGlobalDcGateway, hcClient); - } - - /** - * 查询全球接入网关对等链接 - * - * 查询全球接入网关对等链接,返回查询到的全球接入网关对等链接的详细信息。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ListPeerLinksRequest 请求对象 - * @return ListPeerLinksResponse + * @param request ShowGlobalDcGatewayRequest 请求对象 + * @return ShowGlobalDcGatewayResponse */ - public ListPeerLinksResponse listPeerLinks(ListPeerLinksRequest request) { - return hcClient.syncInvokeHttp(request, DcMeta.listPeerLinks); + public ShowGlobalDcGatewayResponse showGlobalDcGateway(ShowGlobalDcGatewayRequest request) { + return hcClient.syncInvokeHttp(request, DcMeta.showGlobalDcGateway); } /** - * 查询全球接入网关对等链接 + * 查询专线全域接入网关详情 * - * 查询全球接入网关对等链接,返回查询到的全球接入网关对等链接的详细信息。 + * 查询专线全域接入网关实例详情信息 * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ListPeerLinksRequest 请求对象 - * @return SyncInvoker + * @param request ShowGlobalDcGatewayRequest 请求对象 + * @return SyncInvoker */ - public SyncInvoker listPeerLinksInvoker(ListPeerLinksRequest request) { - return new SyncInvoker<>(request, DcMeta.listPeerLinks, hcClient); + public SyncInvoker showGlobalDcGatewayInvoker( + ShowGlobalDcGatewayRequest request) { + return new SyncInvoker<>(request, DcMeta.showGlobalDcGateway, hcClient); } /** - * 查询RMS全球接入网关 + * 更新专线全域接入网关 * - * 根据类型、domain_id、region_id,资源类型查询资源,返回查询到的资源的详细信息。 + * 更新专线全域接入网关global-dc-gateway的名字,描述等信息 * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ListRmsGlobalDcGatewayRequest 请求对象 - * @return ListRmsGlobalDcGatewayResponse + * @param request UpdateGlobalDcGatewayRequest 请求对象 + * @return UpdateGlobalDcGatewayResponse */ - public ListRmsGlobalDcGatewayResponse listRmsGlobalDcGateway(ListRmsGlobalDcGatewayRequest request) { - return hcClient.syncInvokeHttp(request, DcMeta.listRmsGlobalDcGateway); + public UpdateGlobalDcGatewayResponse updateGlobalDcGateway(UpdateGlobalDcGatewayRequest request) { + return hcClient.syncInvokeHttp(request, DcMeta.updateGlobalDcGateway); } /** - * 查询RMS全球接入网关 + * 更新专线全域接入网关 * - * 根据类型、domain_id、region_id,资源类型查询资源,返回查询到的资源的详细信息。 + * 更新专线全域接入网关global-dc-gateway的名字,描述等信息 * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ListRmsGlobalDcGatewayRequest 请求对象 - * @return SyncInvoker + * @param request UpdateGlobalDcGatewayRequest 请求对象 + * @return SyncInvoker */ - public SyncInvoker listRmsGlobalDcGatewayInvoker( - ListRmsGlobalDcGatewayRequest request) { - return new SyncInvoker<>(request, DcMeta.listRmsGlobalDcGateway, hcClient); + public SyncInvoker updateGlobalDcGatewayInvoker( + UpdateGlobalDcGatewayRequest request) { + return new SyncInvoker<>(request, DcMeta.updateGlobalDcGateway, hcClient); } /** - * 查询全球接入网关详情 + * 创建专线关联连接 * - * 根据ID查询全球接入网关,返回查询到的全球接入网关的详细信息。 + * 创建专线全域接入网关的关联连接peer-link对象,用于连接企业路由器或者其他接入网关 * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ShowGlobalDcGatewayRequest 请求对象 - * @return ShowGlobalDcGatewayResponse + * @param request CreatePeerLinkRequest 请求对象 + * @return CreatePeerLinkResponse */ - public ShowGlobalDcGatewayResponse showGlobalDcGateway(ShowGlobalDcGatewayRequest request) { - return hcClient.syncInvokeHttp(request, DcMeta.showGlobalDcGateway); + public CreatePeerLinkResponse createPeerLink(CreatePeerLinkRequest request) { + return hcClient.syncInvokeHttp(request, DcMeta.createPeerLink); } /** - * 查询全球接入网关详情 + * 创建专线关联连接 * - * 根据ID查询全球接入网关,返回查询到的全球接入网关的详细信息。 + * 创建专线全域接入网关的关联连接peer-link对象,用于连接企业路由器或者其他接入网关 * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ShowGlobalDcGatewayRequest 请求对象 - * @return SyncInvoker + * @param request CreatePeerLinkRequest 请求对象 + * @return SyncInvoker */ - public SyncInvoker showGlobalDcGatewayInvoker( - ShowGlobalDcGatewayRequest request) { - return new SyncInvoker<>(request, DcMeta.showGlobalDcGateway, hcClient); + public SyncInvoker createPeerLinkInvoker( + CreatePeerLinkRequest request) { + return new SyncInvoker<>(request, DcMeta.createPeerLink, hcClient); } /** - * 查询全球接入网关对等链接 + * 删除专线关联连接 * - * 根据ID查询全球接入网关对等链接,返回查询到的全球接入网关对等链接的详细信息。 + * 删除全域接入网关与ER的关联连接peer-link * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ShowPeerLinkRequest 请求对象 - * @return ShowPeerLinkResponse + * @param request DeletePeerLinkRequest 请求对象 + * @return DeletePeerLinkResponse */ - public ShowPeerLinkResponse showPeerLink(ShowPeerLinkRequest request) { - return hcClient.syncInvokeHttp(request, DcMeta.showPeerLink); + public DeletePeerLinkResponse deletePeerLink(DeletePeerLinkRequest request) { + return hcClient.syncInvokeHttp(request, DcMeta.deletePeerLink); } /** - * 查询全球接入网关对等链接 + * 删除专线关联连接 * - * 根据ID查询全球接入网关对等链接,返回查询到的全球接入网关对等链接的详细信息。 + * 删除全域接入网关与ER的关联连接peer-link * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ShowPeerLinkRequest 请求对象 - * @return SyncInvoker + * @param request DeletePeerLinkRequest 请求对象 + * @return SyncInvoker */ - public SyncInvoker showPeerLinkInvoker(ShowPeerLinkRequest request) { - return new SyncInvoker<>(request, DcMeta.showPeerLink, hcClient); + public SyncInvoker deletePeerLinkInvoker( + DeletePeerLinkRequest request) { + return new SyncInvoker<>(request, DcMeta.deletePeerLink, hcClient); } /** - * 查询RMS全球接入网关 + * 查询专线关联连接列表 * - * 根据类型、domain_id、region_id,资源类型,全球接入网关ID查询资源,返回查询到的资源的详细信息。 + * 查询全域接入网关与ER等对象的关联连接列表,分页查询使用的参数为marker、limit。marker和limit一起使用时才会生效,单独使用无效 * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ShowRmsGlobalDcGatewayRequest 请求对象 - * @return ShowRmsGlobalDcGatewayResponse + * @param request ListPeerLinksRequest 请求对象 + * @return ListPeerLinksResponse */ - public ShowRmsGlobalDcGatewayResponse showRmsGlobalDcGateway(ShowRmsGlobalDcGatewayRequest request) { - return hcClient.syncInvokeHttp(request, DcMeta.showRmsGlobalDcGateway); + public ListPeerLinksResponse listPeerLinks(ListPeerLinksRequest request) { + return hcClient.syncInvokeHttp(request, DcMeta.listPeerLinks); } /** - * 查询RMS全球接入网关 + * 查询专线关联连接列表 * - * 根据类型、domain_id、region_id,资源类型,全球接入网关ID查询资源,返回查询到的资源的详细信息。 + * 查询全域接入网关与ER等对象的关联连接列表,分页查询使用的参数为marker、limit。marker和limit一起使用时才会生效,单独使用无效 * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ShowRmsGlobalDcGatewayRequest 请求对象 - * @return SyncInvoker + * @param request ListPeerLinksRequest 请求对象 + * @return SyncInvoker */ - public SyncInvoker showRmsGlobalDcGatewayInvoker( - ShowRmsGlobalDcGatewayRequest request) { - return new SyncInvoker<>(request, DcMeta.showRmsGlobalDcGateway, hcClient); + public SyncInvoker listPeerLinksInvoker(ListPeerLinksRequest request) { + return new SyncInvoker<>(request, DcMeta.listPeerLinks, hcClient); } /** - * 修改全球接入网关 + * 查询专线关联连接详情 * - * 根据ID修改全球接入网关,返回修改全球接入网关的结果。 + * 查询指定接入网关的指定的关联连接(peer link)详情 * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request UpdateGlobalDcGatewayRequest 请求对象 - * @return UpdateGlobalDcGatewayResponse + * @param request ShowPeerLinkRequest 请求对象 + * @return ShowPeerLinkResponse */ - public UpdateGlobalDcGatewayResponse updateGlobalDcGateway(UpdateGlobalDcGatewayRequest request) { - return hcClient.syncInvokeHttp(request, DcMeta.updateGlobalDcGateway); + public ShowPeerLinkResponse showPeerLink(ShowPeerLinkRequest request) { + return hcClient.syncInvokeHttp(request, DcMeta.showPeerLink); } /** - * 修改全球接入网关 + * 查询专线关联连接详情 * - * 根据ID修改全球接入网关,返回修改全球接入网关的结果。 + * 查询指定接入网关的指定的关联连接(peer link)详情 * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request UpdateGlobalDcGatewayRequest 请求对象 - * @return SyncInvoker + * @param request ShowPeerLinkRequest 请求对象 + * @return SyncInvoker */ - public SyncInvoker updateGlobalDcGatewayInvoker( - UpdateGlobalDcGatewayRequest request) { - return new SyncInvoker<>(request, DcMeta.updateGlobalDcGateway, hcClient); + public SyncInvoker showPeerLinkInvoker(ShowPeerLinkRequest request) { + return new SyncInvoker<>(request, DcMeta.showPeerLink, hcClient); } /** - * 修改全球接入网关对等链接 + * 更新专线关联连接 * - * 根据ID修改全球接入网关对等链接,返回修改全球接入网关对等链接的结果。 + * 更新接入网关与ER对接的关联连接peer-link * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1008,9 +1016,9 @@ public UpdatePeerLinkResponse updatePeerLink(UpdatePeerLinkRequest request) { } /** - * 修改全球接入网关对等链接 + * 更新专线关联连接 * - * 根据ID修改全球接入网关对等链接,返回修改全球接入网关对等链接的结果。 + * 更新接入网关与ER对接的关联连接peer-link * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1439,7 +1447,7 @@ public SyncInvoker gen // response - builder.withResponseField("X-Request-Id", - LocationType.Header, - FieldExistence.NULL_IGNORE, - String.class, - f -> f.withMarshaller(BindGlobalEipsResponse::getXRequestId, BindGlobalEipsResponse::setXRequestId)); return builder.build(); } @@ -250,11 +245,6 @@ private static HttpRequestDef gen // response - builder.withResponseField("X-Request-Id", - LocationType.Header, - FieldExistence.NULL_IGNORE, - String.class, - f -> f.withMarshaller(ListGlobalEipsResponse::getXRequestId, ListGlobalEipsResponse::setXRequestId)); return builder.build(); } @@ -284,11 +274,6 @@ private static HttpRequestDef // response - builder.withResponseField("X-Request-Id", - LocationType.Header, - FieldExistence.NULL_IGNORE, - String.class, - f -> f.withMarshaller(UnbindGlobalEipsResponse::getXRequestId, UnbindGlobalEipsResponse::setXRequestId)); return builder.build(); } @@ -823,6 +808,95 @@ private static HttpRequestDef listDirectConnectLocations = + genForListDirectConnectLocations(); + + private static HttpRequestDef genForListDirectConnectLocations() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ListDirectConnectLocationsRequest.class, + ListDirectConnectLocationsResponse.class) + .withName("ListDirectConnectLocations") + .withUri("/v3/{project_id}/dcaas/direct-connect-locations") + .withContentType("application/json"); + + // requests + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListDirectConnectLocationsRequest::getLimit, + ListDirectConnectLocationsRequest::setLimit)); + builder.withRequestField("marker", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDirectConnectLocationsRequest::getMarker, + ListDirectConnectLocationsRequest::setMarker)); + builder.withRequestField("sort_key", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDirectConnectLocationsRequest::getSortKey, + ListDirectConnectLocationsRequest::setSortKey)); + builder.>withRequestField("sort_dir", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(List.class), + f -> f.withMarshaller(ListDirectConnectLocationsRequest::getSortDir, + ListDirectConnectLocationsRequest::setSortDir)); + builder.>withRequestField("id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(List.class), + f -> f.withMarshaller(ListDirectConnectLocationsRequest::getId, ListDirectConnectLocationsRequest::setId)); + builder.>withRequestField("name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(List.class), + f -> f.withMarshaller(ListDirectConnectLocationsRequest::getName, + ListDirectConnectLocationsRequest::setName)); + builder.>withRequestField("status", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(List.class), + f -> f.withMarshaller(ListDirectConnectLocationsRequest::getStatus, + ListDirectConnectLocationsRequest::setStatus)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef showDirectConnectLocation = + genForShowDirectConnectLocation(); + + private static HttpRequestDef genForShowDirectConnectLocation() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ShowDirectConnectLocationRequest.class, + ShowDirectConnectLocationResponse.class) + .withName("ShowDirectConnectLocation") + .withUri("/v3/{project_id}/dcaas/direct-connect-locations/{direct_connect_location_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("direct_connect_location_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowDirectConnectLocationRequest::getDirectConnectLocationId, + ShowDirectConnectLocationRequest::setDirectConnectLocationId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listGdgwRouteTables = genForListGdgwRouteTables(); @@ -840,16 +914,12 @@ private static HttpRequestDef f.withMarshaller(ListGdgwRouteTablesRequest::getGdgwId, ListGdgwRouteTablesRequest::setGdgwId)); - builder.>withRequestField("fields", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListGdgwRouteTablesRequest::getFields, ListGdgwRouteTablesRequest::setFields)); - builder.>withRequestField("ext_fields", + builder.>withRequestField("address_family", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListGdgwRouteTablesRequest::getExtFields, ListGdgwRouteTablesRequest::setExtFields)); + f -> f.withMarshaller(ListGdgwRouteTablesRequest::getAddressFamily, + ListGdgwRouteTablesRequest::setAddressFamily)); builder.>withRequestField("nexthop", LocationType.Query, FieldExistence.NULL_IGNORE, @@ -861,21 +931,9 @@ private static HttpRequestDef f.withMarshaller(ListGdgwRouteTablesRequest::getDestination, ListGdgwRouteTablesRequest::setDestination)); - builder.>withRequestField("address_family", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListGdgwRouteTablesRequest::getAddressFamily, - ListGdgwRouteTablesRequest::setAddressFamily)); // response - builder.withResponseField("X-Request-Id", - LocationType.Header, - FieldExistence.NULL_IGNORE, - String.class, - f -> f.withMarshaller(ListGdgwRouteTablesResponse::getXRequestId, - ListGdgwRouteTablesResponse::setXRequestId)); return builder.build(); } @@ -898,18 +956,12 @@ private static HttpRequestDef f.withMarshaller(UpdateGdgwRouteTableRequest::getGdgwId, UpdateGdgwRouteTableRequest::setGdgwId)); builder.withRequestField("body", LocationType.Body, - FieldExistence.NON_NULL_NON_EMPTY, + FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(UpdateGdgwRoutetableRequestBody.class), f -> f.withMarshaller(UpdateGdgwRouteTableRequest::getBody, UpdateGdgwRouteTableRequest::setBody)); // response - builder.withResponseField("X-Request-Id", - LocationType.Header, - FieldExistence.NULL_IGNORE, - String.class, - f -> f.withMarshaller(UpdateGdgwRouteTableResponse::getXRequestId, - UpdateGdgwRouteTableResponse::setXRequestId)); return builder.build(); } @@ -922,7 +974,7 @@ private static HttpRequestDefwithRequestField("body", @@ -933,46 +985,6 @@ private static HttpRequestDefwithResponseField("X-Request-Id", - LocationType.Header, - FieldExistence.NULL_IGNORE, - String.class, - f -> f.withMarshaller(CreateGlobalDcGatewayResponse::getXRequestId, - CreateGlobalDcGatewayResponse::setXRequestId)); - return builder.build(); - } - - public static final HttpRequestDef createPeerLink = - genForCreatePeerLink(); - - private static HttpRequestDef genForCreatePeerLink() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.POST, CreatePeerLinkRequest.class, CreatePeerLinkResponse.class) - .withName("CreatePeerLink") - .withUri("/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}/peer-links") - .withContentType("application/json; charset=utf-8"); - - // requests - builder.withRequestField("global_dc_gateway_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(CreatePeerLinkRequest::getGlobalDcGatewayId, - CreatePeerLinkRequest::setGlobalDcGatewayId)); - builder.withRequestField("body", - LocationType.Body, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(CreatePeerLinkRequestBody.class), - f -> f.withMarshaller(CreatePeerLinkRequest::getBody, CreatePeerLinkRequest::setBody)); - - // response - - builder.withResponseField("X-Request-Id", - LocationType.Header, - FieldExistence.NULL_IGNORE, - String.class, - f -> f.withMarshaller(CreatePeerLinkResponse::getXRequestId, CreatePeerLinkResponse::setXRequestId)); return builder.build(); } @@ -997,146 +1009,100 @@ private static HttpRequestDefwithResponseField("X-Request-Id", - LocationType.Header, - FieldExistence.NULL_IGNORE, - String.class, - f -> f.withMarshaller(DeleteGlobalDcGatewayResponse::getXRequestId, - DeleteGlobalDcGatewayResponse::setXRequestId)); - return builder.build(); - } - - public static final HttpRequestDef deletePeerLink = - genForDeletePeerLink(); - - private static HttpRequestDef genForDeletePeerLink() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.DELETE, DeletePeerLinkRequest.class, DeletePeerLinkResponse.class) - .withName("DeletePeerLink") - .withUri("/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}/peer-links/{peer_link_id}") - .withContentType("application/json"); - - // requests - builder.withRequestField("global_dc_gateway_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(DeletePeerLinkRequest::getGlobalDcGatewayId, - DeletePeerLinkRequest::setGlobalDcGatewayId)); - builder.withRequestField("peer_link_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(DeletePeerLinkRequest::getPeerLinkId, DeletePeerLinkRequest::setPeerLinkId)); - - // response - - builder.withResponseField("X-Request-Id", - LocationType.Header, - FieldExistence.NULL_IGNORE, - String.class, - f -> f.withMarshaller(DeletePeerLinkResponse::getXRequestId, DeletePeerLinkResponse::setXRequestId)); return builder.build(); } - public static final HttpRequestDef listGlobalDcGateway = - genForListGlobalDcGateway(); + public static final HttpRequestDef listGlobalDcGateways = + genForListGlobalDcGateways(); - private static HttpRequestDef genForListGlobalDcGateway() { + private static HttpRequestDef genForListGlobalDcGateways() { // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.GET, ListGlobalDcGatewayRequest.class, ListGlobalDcGatewayResponse.class) - .withName("ListGlobalDcGateway") - .withUri("/v3/{project_id}/dcaas/global-dc-gateways") - .withContentType("application/json"); + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ListGlobalDcGatewaysRequest.class, ListGlobalDcGatewaysResponse.class) + .withName("ListGlobalDcGateways") + .withUri("/v3/{project_id}/dcaas/global-dc-gateways") + .withContentType("application/json"); // requests builder.withRequestField("limit", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(Integer.class), - f -> f.withMarshaller(ListGlobalDcGatewayRequest::getLimit, ListGlobalDcGatewayRequest::setLimit)); - builder.withRequestField("marker", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListGlobalDcGatewayRequest::getMarker, ListGlobalDcGatewayRequest::setMarker)); + f -> f.withMarshaller(ListGlobalDcGatewaysRequest::getLimit, ListGlobalDcGatewaysRequest::setLimit)); builder.>withRequestField("fields", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListGlobalDcGatewayRequest::getFields, ListGlobalDcGatewayRequest::setFields)); + f -> f.withMarshaller(ListGlobalDcGatewaysRequest::getFields, ListGlobalDcGatewaysRequest::setFields)); + builder.withRequestField("marker", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListGlobalDcGatewaysRequest::getMarker, ListGlobalDcGatewaysRequest::setMarker)); builder.withRequestField("sort_key", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListGlobalDcGatewayRequest::getSortKey, ListGlobalDcGatewayRequest::setSortKey)); - builder.>withRequestField("sort_dir", + f -> f.withMarshaller(ListGlobalDcGatewaysRequest::getSortKey, ListGlobalDcGatewaysRequest::setSortKey)); + builder.>withRequestField("sort_dir", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListGlobalDcGatewayRequest::getSortDir, ListGlobalDcGatewayRequest::setSortDir)); - builder.>withRequestField("hosting_id", + f -> f.withMarshaller(ListGlobalDcGatewaysRequest::getSortDir, ListGlobalDcGatewaysRequest::setSortDir)); + builder.>withRequestField("id", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListGlobalDcGatewayRequest::getHostingId, ListGlobalDcGatewayRequest::setHostingId)); - builder.>withRequestField("enterprise_project_id", + f -> f.withMarshaller(ListGlobalDcGatewaysRequest::getId, ListGlobalDcGatewaysRequest::setId)); + builder.>withRequestField("name", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListGlobalDcGatewayRequest::getEnterpriseProjectId, - ListGlobalDcGatewayRequest::setEnterpriseProjectId)); - builder.>withRequestField("id", + f -> f.withMarshaller(ListGlobalDcGatewaysRequest::getName, ListGlobalDcGatewaysRequest::setName)); + builder.>withRequestField("enterprise_project_id", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListGlobalDcGatewayRequest::getId, ListGlobalDcGatewayRequest::setId)); - builder.>withRequestField("name", + f -> f.withMarshaller(ListGlobalDcGatewaysRequest::getEnterpriseProjectId, + ListGlobalDcGatewaysRequest::setEnterpriseProjectId)); + builder.>withRequestField("site_network_id", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListGlobalDcGatewayRequest::getName, ListGlobalDcGatewayRequest::setName)); - builder.>withRequestField("global_center_network_id", + f -> f.withMarshaller(ListGlobalDcGatewaysRequest::getSiteNetworkId, + ListGlobalDcGatewaysRequest::setSiteNetworkId)); + builder.>withRequestField("cloud_connection_id", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListGlobalDcGatewayRequest::getGlobalCenterNetworkId, - ListGlobalDcGatewayRequest::setGlobalCenterNetworkId)); - builder.>withRequestField("site_network_id", + f -> f.withMarshaller(ListGlobalDcGatewaysRequest::getCloudConnectionId, + ListGlobalDcGatewaysRequest::setCloudConnectionId)); + builder.>withRequestField("status", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListGlobalDcGatewayRequest::getSiteNetworkId, - ListGlobalDcGatewayRequest::setSiteNetworkId)); - builder.>withRequestField("cloud_connection_id", + f -> f.withMarshaller(ListGlobalDcGatewaysRequest::getStatus, ListGlobalDcGatewaysRequest::setStatus)); + builder.>withRequestField("global_center_network_id", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListGlobalDcGatewayRequest::getCloudConnectionId, - ListGlobalDcGatewayRequest::setCloudConnectionId)); + f -> f.withMarshaller(ListGlobalDcGatewaysRequest::getGlobalCenterNetworkId, + ListGlobalDcGatewaysRequest::setGlobalCenterNetworkId)); // response - builder.withResponseField("X-Request-Id", - LocationType.Header, - FieldExistence.NULL_IGNORE, - String.class, - f -> f.withMarshaller(ListGlobalDcGatewayResponse::getXRequestId, - ListGlobalDcGatewayResponse::setXRequestId)); return builder.build(); } - public static final HttpRequestDef listPeerLinks = - genForListPeerLinks(); + public static final HttpRequestDef showGlobalDcGateway = + genForShowGlobalDcGateway(); - private static HttpRequestDef genForListPeerLinks() { + private static HttpRequestDef genForShowGlobalDcGateway() { // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.GET, ListPeerLinksRequest.class, ListPeerLinksResponse.class) - .withName("ListPeerLinks") - .withUri("/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}/peer-links") + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowGlobalDcGatewayRequest.class, ShowGlobalDcGatewayResponse.class) + .withName("ShowGlobalDcGateway") + .withUri("/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}") .withContentType("application/json"); // requests @@ -1144,236 +1110,193 @@ private static HttpRequestDef genFo LocationType.Path, FieldExistence.NON_NULL_NON_EMPTY, TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListPeerLinksRequest::getGlobalDcGatewayId, - ListPeerLinksRequest::setGlobalDcGatewayId)); + f -> f.withMarshaller(ShowGlobalDcGatewayRequest::getGlobalDcGatewayId, + ShowGlobalDcGatewayRequest::setGlobalDcGatewayId)); builder.withRequestField("limit", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(Integer.class), - f -> f.withMarshaller(ListPeerLinksRequest::getLimit, ListPeerLinksRequest::setLimit)); - builder.withRequestField("offset", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Integer.class), - f -> f.withMarshaller(ListPeerLinksRequest::getOffset, ListPeerLinksRequest::setOffset)); - builder.withRequestField("marker", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListPeerLinksRequest::getMarker, ListPeerLinksRequest::setMarker)); - builder.withRequestField("page_reverse", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Boolean.class), - f -> f.withMarshaller(ListPeerLinksRequest::getPageReverse, ListPeerLinksRequest::setPageReverse)); + f -> f.withMarshaller(ShowGlobalDcGatewayRequest::getLimit, ShowGlobalDcGatewayRequest::setLimit)); builder.>withRequestField("fields", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListPeerLinksRequest::getFields, ListPeerLinksRequest::setFields)); + f -> f.withMarshaller(ShowGlobalDcGatewayRequest::getFields, ShowGlobalDcGatewayRequest::setFields)); builder.>withRequestField("ext_fields", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListPeerLinksRequest::getExtFields, ListPeerLinksRequest::setExtFields)); - builder.withRequestField("sort_key", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListPeerLinksRequest::getSortKey, ListPeerLinksRequest::setSortKey)); - builder.>withRequestField("sort_dir", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListPeerLinksRequest::getSortDir, ListPeerLinksRequest::setSortDir)); - builder.>withRequestField("id", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListPeerLinksRequest::getId, ListPeerLinksRequest::setId)); - builder.>withRequestField("name", + f -> f.withMarshaller(ShowGlobalDcGatewayRequest::getExtFields, ShowGlobalDcGatewayRequest::setExtFields)); + builder.>withRequestField("enterprise_project_id", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListPeerLinksRequest::getName, ListPeerLinksRequest::setName)); + f -> f.withMarshaller(ShowGlobalDcGatewayRequest::getEnterpriseProjectId, + ShowGlobalDcGatewayRequest::setEnterpriseProjectId)); // response - builder.withResponseField("X-Request-Id", - LocationType.Header, - FieldExistence.NULL_IGNORE, - String.class, - f -> f.withMarshaller(ListPeerLinksResponse::getXRequestId, ListPeerLinksResponse::setXRequestId)); return builder.build(); } - public static final HttpRequestDef listRmsGlobalDcGateway = - genForListRmsGlobalDcGateway(); + public static final HttpRequestDef updateGlobalDcGateway = + genForUpdateGlobalDcGateway(); - private static HttpRequestDef genForListRmsGlobalDcGateway() { + private static HttpRequestDef genForUpdateGlobalDcGateway() { // basic - HttpRequestDef.Builder builder = HttpRequestDef - .builder(HttpMethod.GET, ListRmsGlobalDcGatewayRequest.class, ListRmsGlobalDcGatewayResponse.class) - .withName("ListRmsGlobalDcGateway") - .withUri("/v3/providers/{rp_name}/domains/{domain_id}/regions/{region_id}/{resource_type}") + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.PUT, UpdateGlobalDcGatewayRequest.class, UpdateGlobalDcGatewayResponse.class) + .withName("UpdateGlobalDcGateway") + .withUri("/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}") .withContentType("application/json"); // requests - builder.withRequestField("rp_name", + builder.withRequestField("global_dc_gateway_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateGlobalDcGatewayRequest::getGlobalDcGatewayId, + UpdateGlobalDcGatewayRequest::setGlobalDcGatewayId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateGlobalDcGatewayRequestBody.class), + f -> f.withMarshaller(UpdateGlobalDcGatewayRequest::getBody, UpdateGlobalDcGatewayRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef createPeerLink = + genForCreatePeerLink(); + + private static HttpRequestDef genForCreatePeerLink() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, CreatePeerLinkRequest.class, CreatePeerLinkResponse.class) + .withName("CreatePeerLink") + .withUri("/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}/peer-links") + .withContentType("application/json"); + + // requests + builder.withRequestField("global_dc_gateway_id", LocationType.Path, FieldExistence.NON_NULL_NON_EMPTY, TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListRmsGlobalDcGatewayRequest::getRpName, ListRmsGlobalDcGatewayRequest::setRpName)); - builder.withRequestField("domain_id", + f -> f.withMarshaller(CreatePeerLinkRequest::getGlobalDcGatewayId, + CreatePeerLinkRequest::setGlobalDcGatewayId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateExternalPeerLinkRequestBody.class), + f -> f.withMarshaller(CreatePeerLinkRequest::getBody, CreatePeerLinkRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef deletePeerLink = + genForDeletePeerLink(); + + private static HttpRequestDef genForDeletePeerLink() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.DELETE, DeletePeerLinkRequest.class, DeletePeerLinkResponse.class) + .withName("DeletePeerLink") + .withUri("/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}/peer-links/{peer_link_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("global_dc_gateway_id", LocationType.Path, FieldExistence.NON_NULL_NON_EMPTY, TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListRmsGlobalDcGatewayRequest::getDomainId, - ListRmsGlobalDcGatewayRequest::setDomainId)); - builder.withRequestField("region_id", + f -> f.withMarshaller(DeletePeerLinkRequest::getGlobalDcGatewayId, + DeletePeerLinkRequest::setGlobalDcGatewayId)); + builder.withRequestField("peer_link_id", LocationType.Path, FieldExistence.NON_NULL_NON_EMPTY, TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListRmsGlobalDcGatewayRequest::getRegionId, - ListRmsGlobalDcGatewayRequest::setRegionId)); - builder.withRequestField("resource_type", + f -> f.withMarshaller(DeletePeerLinkRequest::getPeerLinkId, DeletePeerLinkRequest::setPeerLinkId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listPeerLinks = + genForListPeerLinks(); + + private static HttpRequestDef genForListPeerLinks() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListPeerLinksRequest.class, ListPeerLinksResponse.class) + .withName("ListPeerLinks") + .withUri("/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}/peer-links") + .withContentType("application/json"); + + // requests + builder.withRequestField("global_dc_gateway_id", LocationType.Path, FieldExistence.NON_NULL_NON_EMPTY, TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListRmsGlobalDcGatewayRequest::getResourceType, - ListRmsGlobalDcGatewayRequest::setResourceType)); + f -> f.withMarshaller(ListPeerLinksRequest::getGlobalDcGatewayId, + ListPeerLinksRequest::setGlobalDcGatewayId)); builder.withRequestField("limit", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(Integer.class), - f -> f.withMarshaller(ListRmsGlobalDcGatewayRequest::getLimit, ListRmsGlobalDcGatewayRequest::setLimit)); + f -> f.withMarshaller(ListPeerLinksRequest::getLimit, ListPeerLinksRequest::setLimit)); builder.withRequestField("offset", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(Integer.class), - f -> f.withMarshaller(ListRmsGlobalDcGatewayRequest::getOffset, ListRmsGlobalDcGatewayRequest::setOffset)); + f -> f.withMarshaller(ListPeerLinksRequest::getOffset, ListPeerLinksRequest::setOffset)); builder.withRequestField("marker", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListRmsGlobalDcGatewayRequest::getMarker, ListRmsGlobalDcGatewayRequest::setMarker)); + f -> f.withMarshaller(ListPeerLinksRequest::getMarker, ListPeerLinksRequest::setMarker)); builder.withRequestField("page_reverse", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(Boolean.class), - f -> f.withMarshaller(ListRmsGlobalDcGatewayRequest::getPageReverse, - ListRmsGlobalDcGatewayRequest::setPageReverse)); + f -> f.withMarshaller(ListPeerLinksRequest::getPageReverse, ListPeerLinksRequest::setPageReverse)); builder.>withRequestField("fields", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListRmsGlobalDcGatewayRequest::getFields, ListRmsGlobalDcGatewayRequest::setFields)); + f -> f.withMarshaller(ListPeerLinksRequest::getFields, ListPeerLinksRequest::setFields)); builder.>withRequestField("ext_fields", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListRmsGlobalDcGatewayRequest::getExtFields, - ListRmsGlobalDcGatewayRequest::setExtFields)); + f -> f.withMarshaller(ListPeerLinksRequest::getExtFields, ListPeerLinksRequest::setExtFields)); builder.withRequestField("sort_key", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListRmsGlobalDcGatewayRequest::getSortKey, - ListRmsGlobalDcGatewayRequest::setSortKey)); - builder.>withRequestField("sort_dir", + f -> f.withMarshaller(ListPeerLinksRequest::getSortKey, ListPeerLinksRequest::setSortKey)); + builder.>withRequestField("sort_dir", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListRmsGlobalDcGatewayRequest::getSortDir, - ListRmsGlobalDcGatewayRequest::setSortDir)); + f -> f.withMarshaller(ListPeerLinksRequest::getSortDir, ListPeerLinksRequest::setSortDir)); builder.>withRequestField("id", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListRmsGlobalDcGatewayRequest::getId, ListRmsGlobalDcGatewayRequest::setId)); + f -> f.withMarshaller(ListPeerLinksRequest::getId, ListPeerLinksRequest::setId)); builder.>withRequestField("name", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListRmsGlobalDcGatewayRequest::getName, ListRmsGlobalDcGatewayRequest::setName)); - builder.>withRequestField("status", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListRmsGlobalDcGatewayRequest::getStatus, ListRmsGlobalDcGatewayRequest::setStatus)); - builder.>withRequestField("enterprise_project_id", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListRmsGlobalDcGatewayRequest::getEnterpriseProjectId, - ListRmsGlobalDcGatewayRequest::setEnterpriseProjectId)); - builder.>withRequestField("global_center_network_id", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListRmsGlobalDcGatewayRequest::getGlobalCenterNetworkId, - ListRmsGlobalDcGatewayRequest::setGlobalCenterNetworkId)); - builder.>withRequestField("site_network_id", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListRmsGlobalDcGatewayRequest::getSiteNetworkId, - ListRmsGlobalDcGatewayRequest::setSiteNetworkId)); - builder.>withRequestField("cloud_connection_id", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ListRmsGlobalDcGatewayRequest::getCloudConnectionId, - ListRmsGlobalDcGatewayRequest::setCloudConnectionId)); - - // response - - builder.withResponseField("X-Request-Id", - LocationType.Header, - FieldExistence.NULL_IGNORE, - String.class, - f -> f.withMarshaller(ListRmsGlobalDcGatewayResponse::getXRequestId, - ListRmsGlobalDcGatewayResponse::setXRequestId)); - return builder.build(); - } - - public static final HttpRequestDef showGlobalDcGateway = - genForShowGlobalDcGateway(); - - private static HttpRequestDef genForShowGlobalDcGateway() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.GET, ShowGlobalDcGatewayRequest.class, ShowGlobalDcGatewayResponse.class) - .withName("ShowGlobalDcGateway") - .withUri("/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}") - .withContentType("application/json"); - - // requests - builder.withRequestField("global_dc_gateway_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ShowGlobalDcGatewayRequest::getGlobalDcGatewayId, - ShowGlobalDcGatewayRequest::setGlobalDcGatewayId)); - builder.>withRequestField("fields", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ShowGlobalDcGatewayRequest::getFields, ShowGlobalDcGatewayRequest::setFields)); - builder.>withRequestField("ext_fields", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ShowGlobalDcGatewayRequest::getExtFields, ShowGlobalDcGatewayRequest::setExtFields)); + f -> f.withMarshaller(ListPeerLinksRequest::getName, ListPeerLinksRequest::setName)); // response - builder.withResponseField("X-Request-Id", - LocationType.Header, - FieldExistence.NULL_IGNORE, - String.class, - f -> f.withMarshaller(ShowGlobalDcGatewayResponse::getXRequestId, - ShowGlobalDcGatewayResponse::setXRequestId)); return builder.build(); } @@ -1412,111 +1335,6 @@ private static HttpRequestDef genForS // response - builder.withResponseField("X-Request-Id", - LocationType.Header, - FieldExistence.NULL_IGNORE, - String.class, - f -> f.withMarshaller(ShowPeerLinkResponse::getXRequestId, ShowPeerLinkResponse::setXRequestId)); - return builder.build(); - } - - public static final HttpRequestDef showRmsGlobalDcGateway = - genForShowRmsGlobalDcGateway(); - - private static HttpRequestDef genForShowRmsGlobalDcGateway() { - // basic - HttpRequestDef.Builder builder = HttpRequestDef - .builder(HttpMethod.GET, ShowRmsGlobalDcGatewayRequest.class, ShowRmsGlobalDcGatewayResponse.class) - .withName("ShowRmsGlobalDcGateway") - .withUri( - "/v3/providers/{rp_name}/domains/{domain_id}/regions/{region_id}/{resource_type}/{global_dc_gateway_id}") - .withContentType("application/json"); - - // requests - builder.withRequestField("rp_name", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ShowRmsGlobalDcGatewayRequest::getRpName, ShowRmsGlobalDcGatewayRequest::setRpName)); - builder.withRequestField("domain_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ShowRmsGlobalDcGatewayRequest::getDomainId, - ShowRmsGlobalDcGatewayRequest::setDomainId)); - builder.withRequestField("region_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ShowRmsGlobalDcGatewayRequest::getRegionId, - ShowRmsGlobalDcGatewayRequest::setRegionId)); - builder.withRequestField("resource_type", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ShowRmsGlobalDcGatewayRequest::getResourceType, - ShowRmsGlobalDcGatewayRequest::setResourceType)); - builder.withRequestField("global_dc_gateway_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ShowRmsGlobalDcGatewayRequest::getGlobalDcGatewayId, - ShowRmsGlobalDcGatewayRequest::setGlobalDcGatewayId)); - builder.>withRequestField("fields", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ShowRmsGlobalDcGatewayRequest::getFields, ShowRmsGlobalDcGatewayRequest::setFields)); - builder.>withRequestField("ext_fields", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(List.class), - f -> f.withMarshaller(ShowRmsGlobalDcGatewayRequest::getExtFields, - ShowRmsGlobalDcGatewayRequest::setExtFields)); - - // response - - builder.withResponseField("X-Request-Id", - LocationType.Header, - FieldExistence.NULL_IGNORE, - String.class, - f -> f.withMarshaller(ShowRmsGlobalDcGatewayResponse::getXRequestId, - ShowRmsGlobalDcGatewayResponse::setXRequestId)); - return builder.build(); - } - - public static final HttpRequestDef updateGlobalDcGateway = - genForUpdateGlobalDcGateway(); - - private static HttpRequestDef genForUpdateGlobalDcGateway() { - // basic - HttpRequestDef.Builder builder = HttpRequestDef - .builder(HttpMethod.PUT, UpdateGlobalDcGatewayRequest.class, UpdateGlobalDcGatewayResponse.class) - .withName("UpdateGlobalDcGateway") - .withUri("/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}") - .withContentType("application/json; charset=utf-8"); - - // requests - builder.withRequestField("global_dc_gateway_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(UpdateGlobalDcGatewayRequest::getGlobalDcGatewayId, - UpdateGlobalDcGatewayRequest::setGlobalDcGatewayId)); - builder.withRequestField("body", - LocationType.Body, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(UpdateGlobalDcGatewayRequestBody.class), - f -> f.withMarshaller(UpdateGlobalDcGatewayRequest::getBody, UpdateGlobalDcGatewayRequest::setBody)); - - // response - - builder.withResponseField("X-Request-Id", - LocationType.Header, - FieldExistence.NULL_IGNORE, - String.class, - f -> f.withMarshaller(UpdateGlobalDcGatewayResponse::getXRequestId, - UpdateGlobalDcGatewayResponse::setXRequestId)); return builder.build(); } @@ -1529,7 +1347,7 @@ private static HttpRequestDef gen HttpRequestDef.builder(HttpMethod.PUT, UpdatePeerLinkRequest.class, UpdatePeerLinkResponse.class) .withName("UpdatePeerLink") .withUri("/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}/peer-links/{peer_link_id}") - .withContentType("application/json; charset=utf-8"); + .withContentType("application/json"); // requests builder.withRequestField("global_dc_gateway_id", @@ -1543,19 +1361,14 @@ private static HttpRequestDef gen FieldExistence.NON_NULL_NON_EMPTY, TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(UpdatePeerLinkRequest::getPeerLinkId, UpdatePeerLinkRequest::setPeerLinkId)); - builder.withRequestField("body", + builder.withRequestField("body", LocationType.Body, FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(UpdatePeerLinkRequestBody.class), + TypeCasts.uncheckedConversion(UpdateExternalPeerLinkRequestBody.class), f -> f.withMarshaller(UpdatePeerLinkRequest::getBody, UpdatePeerLinkRequest::setBody)); // response - builder.withResponseField("X-Request-Id", - LocationType.Header, - FieldExistence.NULL_IGNORE, - String.class, - f -> f.withMarshaller(UpdatePeerLinkResponse::getXRequestId, UpdatePeerLinkResponse::setXRequestId)); return builder.build(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/AddGdgwRouteAction.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/AddGdgwRouteAction.java new file mode 100644 index 0000000000..a643d583a6 --- /dev/null +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/AddGdgwRouteAction.java @@ -0,0 +1,142 @@ +package com.huaweicloud.sdk.dc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * AddGdgwRouteAction + */ +public class AddGdgwRouteAction { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "destination") + + private String destination; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "nexthop") + + private String nexthop; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private RouteTypeOfGdgw type; + + public AddGdgwRouteAction withDestination(String destination) { + this.destination = destination; + return this; + } + + /** + * 路由子网 + * @return destination + */ + public String getDestination() { + return destination; + } + + public void setDestination(String destination) { + this.destination = destination; + } + + public AddGdgwRouteAction withNexthop(String nexthop) { + this.nexthop = nexthop; + return this; + } + + /** + * 下一跳id + * @return nexthop + */ + public String getNexthop() { + return nexthop; + } + + public void setNexthop(String nexthop) { + this.nexthop = nexthop; + } + + public AddGdgwRouteAction withDescription(String description) { + this.description = description; + return this; + } + + /** + * 路由描述 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public AddGdgwRouteAction withType(RouteTypeOfGdgw type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + public RouteTypeOfGdgw getType() { + return type; + } + + public void setType(RouteTypeOfGdgw 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; + } + AddGdgwRouteAction that = (AddGdgwRouteAction) obj; + return Objects.equals(this.destination, that.destination) && Objects.equals(this.nexthop, that.nexthop) + && Objects.equals(this.description, that.description) && Objects.equals(this.type, that.type); + } + + @Override + public int hashCode() { + return Objects.hash(destination, nexthop, description, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddGdgwRouteAction {\n"); + sb.append(" destination: ").append(toIndentedString(destination)).append("\n"); + sb.append(" nexthop: ").append(toIndentedString(nexthop)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).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/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/Locale.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/AddressBody.java similarity index 86% rename from services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/Locale.java rename to services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/AddressBody.java index 980c67bd65..f3823acf4c 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/Locale.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/AddressBody.java @@ -6,9 +6,9 @@ import java.util.Objects; /** - * Locale + * 专线接入点的位置信息。 */ -public class Locale { +public class AddressBody { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "en_us") @@ -20,13 +20,13 @@ public class Locale { private String zhCn; - public Locale withEnUs(String enUs) { + public AddressBody withEnUs(String enUs) { this.enUs = enUs; return this; } /** - * English name + * 英文名称。 * @return enUs */ public String getEnUs() { @@ -37,13 +37,13 @@ public void setEnUs(String enUs) { this.enUs = enUs; } - public Locale withZhCn(String zhCn) { + public AddressBody withZhCn(String zhCn) { this.zhCn = zhCn; return this; } /** - * Chinese name + * 中文信息。 * @return zhCn */ public String getZhCn() { @@ -62,7 +62,7 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - Locale that = (Locale) obj; + AddressBody that = (AddressBody) obj; return Objects.equals(this.enUs, that.enUs) && Objects.equals(this.zhCn, that.zhCn); } @@ -74,7 +74,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class Locale {\n"); + sb.append("class AddressBody {\n"); sb.append(" enUs: ").append(toIndentedString(enUs)).append("\n"); sb.append(" zhCn: ").append(toIndentedString(zhCn)).append("\n"); sb.append("}"); diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/AddressFamily.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/AddressFamily.java new file mode 100644 index 0000000000..937d63bc8d --- /dev/null +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/AddressFamily.java @@ -0,0 +1,78 @@ +package com.huaweicloud.sdk.dc.v3.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; + +/** + * 地址族类型: - ipv4: ipv4 - ipv6: ipv6 + */ +public class AddressFamily { + + /** + * Enum IPV4 for value: "ipv4" + */ + public static final AddressFamily IPV4 = new AddressFamily("ipv4"); + + /** + * Enum IPV6 for value: "ipv6" + */ + public static final AddressFamily IPV6 = new AddressFamily("ipv6"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("ipv4", IPV4); + map.put("ipv6", IPV6); + return Collections.unmodifiableMap(map); + } + + private String value; + + AddressFamily(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AddressFamily fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new AddressFamily(value)); + } + + public static AddressFamily 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 AddressFamily) { + return this.value.equals(((AddressFamily) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } +} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/BandWidthInfo.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/BandWidthInfo.java new file mode 100644 index 0000000000..92c1d8c676 --- /dev/null +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/BandWidthInfo.java @@ -0,0 +1,97 @@ +package com.huaweicloud.sdk.dc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 带宽信息 + */ +public class BandWidthInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bandwidth_size") + + private Integer bandwidthSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "gcb_id") + + private String gcbId; + + public BandWidthInfo withBandwidthSize(Integer bandwidthSize) { + this.bandwidthSize = bandwidthSize; + return this; + } + + /** + * 带宽值 + * minimum: 0 + * maximum: 268435455 + * @return bandwidthSize + */ + public Integer getBandwidthSize() { + return bandwidthSize; + } + + public void setBandwidthSize(Integer bandwidthSize) { + this.bandwidthSize = bandwidthSize; + } + + public BandWidthInfo withGcbId(String gcbId) { + this.gcbId = gcbId; + return this; + } + + /** + * 购买全域互连带宽包ID + * @return gcbId + */ + public String getGcbId() { + return gcbId; + } + + public void setGcbId(String gcbId) { + this.gcbId = gcbId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BandWidthInfo that = (BandWidthInfo) obj; + return Objects.equals(this.bandwidthSize, that.bandwidthSize) && Objects.equals(this.gcbId, that.gcbId); + } + + @Override + public int hashCode() { + return Objects.hash(bandwidthSize, gcbId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BandWidthInfo {\n"); + sb.append(" bandwidthSize: ").append(toIndentedString(bandwidthSize)).append("\n"); + sb.append(" gcbId: ").append(toIndentedString(gcbId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/BandwidthInfoExternal.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/BandwidthInfoExternal.java index c895ab1f9a..6f55f16937 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/BandwidthInfoExternal.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/BandwidthInfoExternal.java @@ -20,11 +20,6 @@ public class BandwidthInfoExternal { private String gcbId; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "freeze_status") - - private String freezeStatus; - public BandwidthInfoExternal withBandwidthSize(Long bandwidthSize) { this.bandwidthSize = bandwidthSize; return this; @@ -59,23 +54,6 @@ public void setGcbId(String gcbId) { this.gcbId = gcbId; } - public BandwidthInfoExternal withFreezeStatus(String freezeStatus) { - this.freezeStatus = freezeStatus; - return this; - } - - /** - * 冻结状态 - * @return freezeStatus - */ - public String getFreezeStatus() { - return freezeStatus; - } - - public void setFreezeStatus(String freezeStatus) { - this.freezeStatus = freezeStatus; - } - @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -85,13 +63,12 @@ public boolean equals(java.lang.Object obj) { return false; } BandwidthInfoExternal that = (BandwidthInfoExternal) obj; - return Objects.equals(this.bandwidthSize, that.bandwidthSize) && Objects.equals(this.gcbId, that.gcbId) - && Objects.equals(this.freezeStatus, that.freezeStatus); + return Objects.equals(this.bandwidthSize, that.bandwidthSize) && Objects.equals(this.gcbId, that.gcbId); } @Override public int hashCode() { - return Objects.hash(bandwidthSize, gcbId, freezeStatus); + return Objects.hash(bandwidthSize, gcbId); } @Override @@ -100,7 +77,6 @@ public String toString() { sb.append("class BandwidthInfoExternal {\n"); sb.append(" bandwidthSize: ").append(toIndentedString(bandwidthSize)).append("\n"); sb.append(" gcbId: ").append(toIndentedString(gcbId)).append("\n"); - sb.append(" freezeStatus: ").append(toIndentedString(freezeStatus)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/BaseAddRouteAction.java similarity index 77% rename from services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes.java rename to services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/BaseAddRouteAction.java index 07ddb8b363..deba93e8c7 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/BaseAddRouteAction.java @@ -6,9 +6,9 @@ import java.util.Objects; /** - * UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes + * BaseAddRouteAction */ -public class UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes { +public class BaseAddRouteAction { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "destination") @@ -25,13 +25,13 @@ public class UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes { private String description; - public UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes withDestination(String destination) { + public BaseAddRouteAction withDestination(String destination) { this.destination = destination; return this; } /** - * 目的地址 + * 路由子网 * @return destination */ public String getDestination() { @@ -42,13 +42,13 @@ public void setDestination(String destination) { this.destination = destination; } - public UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes withNexthop(String nexthop) { + public BaseAddRouteAction withNexthop(String nexthop) { this.nexthop = nexthop; return this; } /** - * 下一跳 + * 下一跳id * @return nexthop */ public String getNexthop() { @@ -59,13 +59,13 @@ public void setNexthop(String nexthop) { this.nexthop = nexthop; } - public UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes withDescription(String description) { + public BaseAddRouteAction withDescription(String description) { this.description = description; return this; } /** - * 描述信息 + * 路由描述 * @return description */ public String getDescription() { @@ -84,8 +84,7 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes that = - (UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes) obj; + BaseAddRouteAction that = (BaseAddRouteAction) obj; return Objects.equals(this.destination, that.destination) && Objects.equals(this.nexthop, that.nexthop) && Objects.equals(this.description, that.description); } @@ -98,7 +97,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes {\n"); + sb.append("class BaseAddRouteAction {\n"); sb.append(" destination: ").append(toIndentedString(destination)).append("\n"); sb.append(" nexthop: ").append(toIndentedString(nexthop)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/BaseDeleteRouteAction.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/BaseDeleteRouteAction.java new file mode 100644 index 0000000000..ebd1ee63c9 --- /dev/null +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/BaseDeleteRouteAction.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.dc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * BaseDeleteRouteAction + */ +public class BaseDeleteRouteAction { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "destination") + + private String destination; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "nexthop") + + private String nexthop; + + public BaseDeleteRouteAction withDestination(String destination) { + this.destination = destination; + return this; + } + + /** + * 路由子网 + * @return destination + */ + public String getDestination() { + return destination; + } + + public void setDestination(String destination) { + this.destination = destination; + } + + public BaseDeleteRouteAction withNexthop(String nexthop) { + this.nexthop = nexthop; + return this; + } + + /** + * 下一跳id + * @return nexthop + */ + public String getNexthop() { + return nexthop; + } + + public void setNexthop(String nexthop) { + this.nexthop = nexthop; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BaseDeleteRouteAction that = (BaseDeleteRouteAction) obj; + return Objects.equals(this.destination, that.destination) && Objects.equals(this.nexthop, that.nexthop); + } + + @Override + public int hashCode() { + return Objects.hash(destination, nexthop); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BaseDeleteRouteAction {\n"); + sb.append(" destination: ").append(toIndentedString(destination)).append("\n"); + sb.append(" nexthop: ").append(toIndentedString(nexthop)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/BindGlobalEipsResponse.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/BindGlobalEipsResponse.java index a68e710fce..21f5d27807 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/BindGlobalEipsResponse.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/BindGlobalEipsResponse.java @@ -22,11 +22,6 @@ public class BindGlobalEipsResponse extends SdkResponse { private ListBindingGeip globalEips; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - - private String xRequestId; - public BindGlobalEipsResponse withRequestId(String requestId) { this.requestId = requestId; return this; @@ -70,25 +65,6 @@ public void setGlobalEips(ListBindingGeip globalEips) { this.globalEips = globalEips; } - public BindGlobalEipsResponse withXRequestId(String xRequestId) { - this.xRequestId = xRequestId; - return this; - } - - /** - * Get xRequestId - * @return xRequestId - */ - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - public String getXRequestId() { - return xRequestId; - } - - public void setXRequestId(String xRequestId) { - this.xRequestId = xRequestId; - } - @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -98,13 +74,12 @@ public boolean equals(java.lang.Object obj) { return false; } BindGlobalEipsResponse that = (BindGlobalEipsResponse) obj; - return Objects.equals(this.requestId, that.requestId) && Objects.equals(this.globalEips, that.globalEips) - && Objects.equals(this.xRequestId, that.xRequestId); + return Objects.equals(this.requestId, that.requestId) && Objects.equals(this.globalEips, that.globalEips); } @Override public int hashCode() { - return Objects.hash(requestId, globalEips, xRequestId); + return Objects.hash(requestId, globalEips); } @Override @@ -113,7 +88,6 @@ public String toString() { sb.append("class BindGlobalEipsResponse {\n"); sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" globalEips: ").append(toIndentedString(globalEips)).append("\n"); - sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CommonRoutetable.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CommonRoutetable.java new file mode 100644 index 0000000000..d0c96fdc9b --- /dev/null +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CommonRoutetable.java @@ -0,0 +1,418 @@ +package com.huaweicloud.sdk.dc.v3.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * 路由明细 + */ +public class CommonRoutetable { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tenant_id") + + private String tenantId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "gateway_id") + + private String gatewayId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "destination") + + private String destination; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "nexthop") + + private String nexthop; + + /** + * 路由类型: - customized: 默认路由 - specific: 自定义路由 - bgp: 动态路由 + */ + public static final class ObtainModeEnum { + + /** + * Enum CUSTOMIZED for value: "customized" + */ + public static final ObtainModeEnum CUSTOMIZED = new ObtainModeEnum("customized"); + + /** + * Enum SPECIFIC for value: "specific" + */ + public static final ObtainModeEnum SPECIFIC = new ObtainModeEnum("specific"); + + /** + * Enum BGP for value: "bgp" + */ + public static final ObtainModeEnum BGP = new ObtainModeEnum("bgp"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("customized", CUSTOMIZED); + map.put("specific", SPECIFIC); + map.put("bgp", BGP); + return Collections.unmodifiableMap(map); + } + + private String value; + + ObtainModeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ObtainModeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ObtainModeEnum(value)); + } + + public static ObtainModeEnum 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 ObtainModeEnum) { + return this.value.equals(((ObtainModeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "obtain_mode") + + private ObtainModeEnum obtainMode; + + /** + * 路由状态: - ACTIVE: 下发正常 - ERROR: 下发失败 - PENDING_CREATE: 待下发 + */ + public static final class StatusEnum { + + /** + * Enum ACTIVE for value: "ACTIVE" + */ + public static final StatusEnum ACTIVE = new StatusEnum("ACTIVE"); + + /** + * Enum ERROR for value: "ERROR" + */ + public static final StatusEnum ERROR = new StatusEnum("ERROR"); + + /** + * Enum PENDING_CREATE for value: "PENDING_CREATE" + */ + public static final StatusEnum PENDING_CREATE = new StatusEnum("PENDING_CREATE"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("ACTIVE", ACTIVE); + map.put("ERROR", ERROR); + map.put("PENDING_CREATE", PENDING_CREATE); + 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 = "address_family") + + private AddressFamily addressFamily; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + public CommonRoutetable 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 CommonRoutetable withTenantId(String tenantId) { + this.tenantId = tenantId; + return this; + } + + /** + * 租户id + * @return tenantId + */ + public String getTenantId() { + return tenantId; + } + + public void setTenantId(String tenantId) { + this.tenantId = tenantId; + } + + public CommonRoutetable withGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + return this; + } + + /** + * 网关id + * @return gatewayId + */ + public String getGatewayId() { + return gatewayId; + } + + public void setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + } + + public CommonRoutetable withDestination(String destination) { + this.destination = destination; + return this; + } + + /** + * 路由子网 + * @return destination + */ + public String getDestination() { + return destination; + } + + public void setDestination(String destination) { + this.destination = destination; + } + + public CommonRoutetable withNexthop(String nexthop) { + this.nexthop = nexthop; + return this; + } + + /** + * 下一跳id + * @return nexthop + */ + public String getNexthop() { + return nexthop; + } + + public void setNexthop(String nexthop) { + this.nexthop = nexthop; + } + + public CommonRoutetable withObtainMode(ObtainModeEnum obtainMode) { + this.obtainMode = obtainMode; + return this; + } + + /** + * 路由类型: - customized: 默认路由 - specific: 自定义路由 - bgp: 动态路由 + * @return obtainMode + */ + public ObtainModeEnum getObtainMode() { + return obtainMode; + } + + public void setObtainMode(ObtainModeEnum obtainMode) { + this.obtainMode = obtainMode; + } + + public CommonRoutetable withStatus(StatusEnum status) { + this.status = status; + return this; + } + + /** + * 路由状态: - ACTIVE: 下发正常 - ERROR: 下发失败 - PENDING_CREATE: 待下发 + * @return status + */ + public StatusEnum getStatus() { + return status; + } + + public void setStatus(StatusEnum status) { + this.status = status; + } + + public CommonRoutetable withAddressFamily(AddressFamily addressFamily) { + this.addressFamily = addressFamily; + return this; + } + + /** + * Get addressFamily + * @return addressFamily + */ + public AddressFamily getAddressFamily() { + return addressFamily; + } + + public void setAddressFamily(AddressFamily addressFamily) { + this.addressFamily = addressFamily; + } + + public CommonRoutetable 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; + } + CommonRoutetable that = (CommonRoutetable) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.tenantId, that.tenantId) + && Objects.equals(this.gatewayId, that.gatewayId) && Objects.equals(this.destination, that.destination) + && Objects.equals(this.nexthop, that.nexthop) && Objects.equals(this.obtainMode, that.obtainMode) + && Objects.equals(this.status, that.status) && Objects.equals(this.addressFamily, that.addressFamily) + && Objects.equals(this.description, that.description); + } + + @Override + public int hashCode() { + return Objects + .hash(id, tenantId, gatewayId, destination, nexthop, obtainMode, status, addressFamily, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CommonRoutetable {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); + sb.append(" gatewayId: ").append(toIndentedString(gatewayId)).append("\n"); + sb.append(" destination: ").append(toIndentedString(destination)).append("\n"); + sb.append(" nexthop: ").append(toIndentedString(nexthop)).append("\n"); + sb.append(" obtainMode: ").append(toIndentedString(obtainMode)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" addressFamily: ").append(toIndentedString(addressFamily)).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/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreatePeerLinkRequestBody.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateExternalPeerLinkRequestBody.java similarity index 51% rename from services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreatePeerLinkRequestBody.java rename to services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateExternalPeerLinkRequestBody.java index 986b7d3ed8..4536917fb4 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreatePeerLinkRequestBody.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateExternalPeerLinkRequestBody.java @@ -7,45 +7,24 @@ import java.util.function.Consumer; /** - * CreatePeerLinkRequestBody + * 创建参数请求体 */ -public class CreatePeerLinkRequestBody { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "dry_run") - - private Boolean dryRun; +public class CreateExternalPeerLinkRequestBody { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "peer_link") - private CreatePeerLinkRequestBodyPeerLink peerLink; - - public CreatePeerLinkRequestBody withDryRun(Boolean dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * 空运行 - true 是 - false 否 - * @return dryRun - */ - public Boolean getDryRun() { - return dryRun; - } - - public void setDryRun(Boolean dryRun) { - this.dryRun = dryRun; - } + private CreateExternalPeerLinkRequestBodyPeerLink peerLink; - public CreatePeerLinkRequestBody withPeerLink(CreatePeerLinkRequestBodyPeerLink peerLink) { + public CreateExternalPeerLinkRequestBody withPeerLink(CreateExternalPeerLinkRequestBodyPeerLink peerLink) { this.peerLink = peerLink; return this; } - public CreatePeerLinkRequestBody withPeerLink(Consumer peerLinkSetter) { + public CreateExternalPeerLinkRequestBody withPeerLink( + Consumer peerLinkSetter) { if (this.peerLink == null) { - this.peerLink = new CreatePeerLinkRequestBodyPeerLink(); + this.peerLink = new CreateExternalPeerLinkRequestBodyPeerLink(); peerLinkSetter.accept(this.peerLink); } @@ -56,11 +35,11 @@ public CreatePeerLinkRequestBody withPeerLink(Consumer peerSiteSetter) { + public CreateExternalPeerLinkRequestBodyPeerLink withPeerSite( + Consumer peerSiteSetter) { if (this.peerSite == null) { - this.peerSite = new CreatePeerLinkRequestBodyPeerLinkPeerSite(); + this.peerSite = new CreateExternalPeerLinkRequestBodyPeerLinkPeerSite(); peerSiteSetter.accept(this.peerSite); } @@ -79,11 +80,11 @@ public CreatePeerLinkRequestBodyPeerLink withPeerSite( * Get peerSite * @return peerSite */ - public CreatePeerLinkRequestBodyPeerLinkPeerSite getPeerSite() { + public CreateExternalPeerLinkRequestBodyPeerLinkPeerSite getPeerSite() { return peerSite; } - public void setPeerSite(CreatePeerLinkRequestBodyPeerLinkPeerSite peerSite) { + public void setPeerSite(CreateExternalPeerLinkRequestBodyPeerLinkPeerSite peerSite) { this.peerSite = peerSite; } @@ -95,7 +96,7 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - CreatePeerLinkRequestBodyPeerLink that = (CreatePeerLinkRequestBodyPeerLink) obj; + CreateExternalPeerLinkRequestBodyPeerLink that = (CreateExternalPeerLinkRequestBodyPeerLink) obj; return Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) && Objects.equals(this.peerSite, that.peerSite); } @@ -108,7 +109,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreatePeerLinkRequestBodyPeerLink {\n"); + sb.append("class CreateExternalPeerLinkRequestBodyPeerLink {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" peerSite: ").append(toIndentedString(peerSite)).append("\n"); diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateExternalPeerLinkRequestBodyPeerLinkPeerSite.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateExternalPeerLinkRequestBodyPeerLinkPeerSite.java new file mode 100644 index 0000000000..ea3fddd258 --- /dev/null +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateExternalPeerLinkRequestBodyPeerLinkPeerSite.java @@ -0,0 +1,120 @@ +package com.huaweicloud.sdk.dc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * CreateExternalPeerLinkRequestBodyPeerLinkPeerSite + */ +public class CreateExternalPeerLinkRequestBodyPeerLinkPeerSite { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "gateway_id") + + private String gatewayId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "region_id") + + private String regionId; + + public CreateExternalPeerLinkRequestBodyPeerLinkPeerSite withGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + return this; + } + + /** + * 接入网关连接对端的实例(当前ER实例)ID + * @return gatewayId + */ + public String getGatewayId() { + return gatewayId; + } + + public void setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + } + + public CreateExternalPeerLinkRequestBodyPeerLinkPeerSite withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 对端实例(ER实例)归属的项目ID + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public CreateExternalPeerLinkRequestBodyPeerLinkPeerSite withRegionId(String regionId) { + this.regionId = regionId; + return this; + } + + /** + * 归属的区域ID + * @return regionId + */ + public String getRegionId() { + return regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateExternalPeerLinkRequestBodyPeerLinkPeerSite that = + (CreateExternalPeerLinkRequestBodyPeerLinkPeerSite) obj; + return Objects.equals(this.gatewayId, that.gatewayId) && Objects.equals(this.projectId, that.projectId) + && Objects.equals(this.regionId, that.regionId); + } + + @Override + public int hashCode() { + return Objects.hash(gatewayId, projectId, regionId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateExternalPeerLinkRequestBodyPeerLinkPeerSite {\n"); + sb.append(" gatewayId: ").append(toIndentedString(gatewayId)).append("\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" regionId: ").append(toIndentedString(regionId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateGlobalDcGatewayRequestBodyGlobalDcGateway.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateGlobalDcGateway.java similarity index 80% rename from services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateGlobalDcGatewayRequestBodyGlobalDcGateway.java rename to services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateGlobalDcGateway.java index 2f5041c805..a0d7e52d1c 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateGlobalDcGatewayRequestBodyGlobalDcGateway.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateGlobalDcGateway.java @@ -14,9 +14,9 @@ import java.util.function.Consumer; /** - * CreateGlobalDcGatewayRequestBodyGlobalDcGateway + * 创建global-dc-gateway的属性详情。 */ -public class CreateGlobalDcGatewayRequestBodyGlobalDcGateway { +public class CreateGlobalDcGateway { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "tenant_id") @@ -44,7 +44,7 @@ public class CreateGlobalDcGatewayRequestBodyGlobalDcGateway { private String enterpriseProjectId; /** - * 地址簇类型 + * 网关的地址簇,IPv4或者ipv6和IPv4双栈 - ipv4 - dual */ public static final class AddressFamilyEnum { @@ -121,15 +121,15 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "tags") - private List tags = null; + private List tags = null; - public CreateGlobalDcGatewayRequestBodyGlobalDcGateway withTenantId(String tenantId) { + public CreateGlobalDcGateway withTenantId(String tenantId) { this.tenantId = tenantId; return this; } /** - * 租户ID + * 项目ID。 * @return tenantId */ public String getTenantId() { @@ -140,13 +140,13 @@ public void setTenantId(String tenantId) { this.tenantId = tenantId; } - public CreateGlobalDcGatewayRequestBodyGlobalDcGateway withName(String name) { + public CreateGlobalDcGateway withName(String name) { this.name = name; return this; } /** - * 全球接入网关名称 + * global-dc-gateway名字。 * @return name */ public String getName() { @@ -157,13 +157,13 @@ public void setName(String name) { this.name = name; } - public CreateGlobalDcGatewayRequestBodyGlobalDcGateway withDescription(String description) { + public CreateGlobalDcGateway withDescription(String description) { this.description = description; return this; } /** - * 描述信息 + * 描述信息。 * @return description */ public String getDescription() { @@ -174,13 +174,15 @@ public void setDescription(String description) { this.description = description; } - public CreateGlobalDcGatewayRequestBodyGlobalDcGateway withBgpAsn(Long bgpAsn) { + public CreateGlobalDcGateway withBgpAsn(Long bgpAsn) { this.bgpAsn = bgpAsn; return this; } /** - * BGP模式的AS号 + * global-dc-gateway对应的ASN号 + * minimum: 1 + * maximum: 4294967295 * @return bgpAsn */ public Long getBgpAsn() { @@ -191,13 +193,13 @@ public void setBgpAsn(Long bgpAsn) { this.bgpAsn = bgpAsn; } - public CreateGlobalDcGatewayRequestBodyGlobalDcGateway withEnterpriseProjectId(String enterpriseProjectId) { + public CreateGlobalDcGateway withEnterpriseProjectId(String enterpriseProjectId) { this.enterpriseProjectId = enterpriseProjectId; return this; } /** - * 企业项目ID + * global-dc-gateway所属的企业项目ID。 * @return enterpriseProjectId */ public String getEnterpriseProjectId() { @@ -208,13 +210,13 @@ public void setEnterpriseProjectId(String enterpriseProjectId) { this.enterpriseProjectId = enterpriseProjectId; } - public CreateGlobalDcGatewayRequestBodyGlobalDcGateway withAddressFamily(AddressFamilyEnum addressFamily) { + public CreateGlobalDcGateway withAddressFamily(AddressFamilyEnum addressFamily) { this.addressFamily = addressFamily; return this; } /** - * 地址簇类型 + * 网关的地址簇,IPv4或者ipv6和IPv4双栈 - ipv4 - dual * @return addressFamily */ public AddressFamilyEnum getAddressFamily() { @@ -225,14 +227,12 @@ public void setAddressFamily(AddressFamilyEnum addressFamily) { this.addressFamily = addressFamily; } - public CreateGlobalDcGatewayRequestBodyGlobalDcGateway withTags( - List tags) { + public CreateGlobalDcGateway withTags(List tags) { this.tags = tags; return this; } - public CreateGlobalDcGatewayRequestBodyGlobalDcGateway addTagsItem( - CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags tagsItem) { + public CreateGlobalDcGateway addTagsItem(Tag tagsItem) { if (this.tags == null) { this.tags = new ArrayList<>(); } @@ -240,8 +240,7 @@ public CreateGlobalDcGatewayRequestBodyGlobalDcGateway addTagsItem( return this; } - public CreateGlobalDcGatewayRequestBodyGlobalDcGateway withTags( - Consumer> tagsSetter) { + public CreateGlobalDcGateway withTags(Consumer> tagsSetter) { if (this.tags == null) { this.tags = new ArrayList<>(); } @@ -250,14 +249,14 @@ public CreateGlobalDcGatewayRequestBodyGlobalDcGateway withTags( } /** - * 标签 + * global-dc-gateway关联TAG。 * @return tags */ - public List getTags() { + public List getTags() { return tags; } - public void setTags(List tags) { + public void setTags(List tags) { this.tags = tags; } @@ -269,7 +268,7 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - CreateGlobalDcGatewayRequestBodyGlobalDcGateway that = (CreateGlobalDcGatewayRequestBodyGlobalDcGateway) obj; + CreateGlobalDcGateway that = (CreateGlobalDcGateway) obj; return Objects.equals(this.tenantId, that.tenantId) && Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) && Objects.equals(this.bgpAsn, that.bgpAsn) && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) @@ -284,7 +283,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateGlobalDcGatewayRequestBodyGlobalDcGateway {\n"); + sb.append("class CreateGlobalDcGateway {\n"); sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/RmsShowGlobalDcGateway.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateGlobalDcGatewayEntry.java similarity index 60% rename from services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/RmsShowGlobalDcGateway.java rename to services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateGlobalDcGatewayEntry.java index c1e14b3807..befe13eef7 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/RmsShowGlobalDcGateway.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateGlobalDcGatewayEntry.java @@ -1,18 +1,23 @@ package com.huaweicloud.sdk.dc.v3.model; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Collections; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; import java.util.function.Consumer; /** - * RmsShowGlobalDcGateway + * global-dc-gateway详情。 */ -public class RmsShowGlobalDcGateway { +public class CreateGlobalDcGatewayEntry { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") @@ -44,16 +49,6 @@ public class RmsShowGlobalDcGateway { private String globalCenterNetworkId; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "site_network_id") - - private String siteNetworkId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "cloud_connection_id") - - private String cloudConnectionId; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "bgp_asn") @@ -70,19 +65,19 @@ public class RmsShowGlobalDcGateway { private String locationName; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "locales") + @JsonProperty(value = "current_peer_link_count") - private Locale locales; + private String currentPeerLinkCount; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "current_peer_link_count") + @JsonProperty(value = "available_peer_link_count") - private Integer currentPeerLinkCount; + private String availablePeerLinkCount; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "available_peer_link_count") + @JsonProperty(value = "tags") - private Integer availablePeerLinkCount; + private List tags = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "admin_state_up") @@ -92,30 +87,95 @@ public class RmsShowGlobalDcGateway { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "status") - private String status; + private GlobalDcGatewayStatus status; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "created_time") private OffsetDateTime createdTime; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "updated_time") + /** + * 网关的地址簇,IPv4或者ipv6和IPv4双栈 - ipv4 - dual + */ + public static final class AddressFamilyEnum { + + /** + * Enum IPV4 for value: "ipv4" + */ + public static final AddressFamilyEnum IPV4 = new AddressFamilyEnum("ipv4"); + + /** + * Enum DUAL for value: "dual" + */ + public static final AddressFamilyEnum DUAL = new AddressFamilyEnum("dual"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("ipv4", IPV4); + map.put("dual", DUAL); + return Collections.unmodifiableMap(map); + } + + private String value; + + AddressFamilyEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AddressFamilyEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new AddressFamilyEnum(value)); + } + + public static AddressFamilyEnum 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 AddressFamilyEnum) { + return this.value.equals(((AddressFamilyEnum) obj).value); + } + return false; + } - private OffsetDateTime updatedTime; + @Override + public int hashCode() { + return this.value.hashCode(); + } + } @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "tags") + @JsonProperty(value = "address_family") - private Map tags = null; + private AddressFamilyEnum addressFamily; - public RmsShowGlobalDcGateway withId(String id) { + public CreateGlobalDcGatewayEntry withId(String id) { this.id = id; return this; } /** - * 唯一ID + * 专线全域接入网关(global-dc-gateway)ID * @return id */ public String getId() { @@ -126,13 +186,13 @@ public void setId(String id) { this.id = id; } - public RmsShowGlobalDcGateway withTenantId(String tenantId) { + public CreateGlobalDcGatewayEntry withTenantId(String tenantId) { this.tenantId = tenantId; return this; } /** - * 租户ID + * 项目ID。 * @return tenantId */ public String getTenantId() { @@ -143,13 +203,13 @@ public void setTenantId(String tenantId) { this.tenantId = tenantId; } - public RmsShowGlobalDcGateway withName(String name) { + public CreateGlobalDcGatewayEntry withName(String name) { this.name = name; return this; } /** - * 名称 + * global-dc-gateway名字。 * @return name */ public String getName() { @@ -160,7 +220,7 @@ public void setName(String name) { this.name = name; } - public RmsShowGlobalDcGateway withDescription(String description) { + public CreateGlobalDcGatewayEntry withDescription(String description) { this.description = description; return this; } @@ -177,13 +237,13 @@ public void setDescription(String description) { this.description = description; } - public RmsShowGlobalDcGateway withEnterpriseProjectId(String enterpriseProjectId) { + public CreateGlobalDcGatewayEntry withEnterpriseProjectId(String enterpriseProjectId) { this.enterpriseProjectId = enterpriseProjectId; return this; } /** - * 企业项目ID + * global-dc-gateway所属的企业项目ID。 * @return enterpriseProjectId */ public String getEnterpriseProjectId() { @@ -194,13 +254,13 @@ public void setEnterpriseProjectId(String enterpriseProjectId) { this.enterpriseProjectId = enterpriseProjectId; } - public RmsShowGlobalDcGateway withGlobalCenterNetworkId(String globalCenterNetworkId) { + public CreateGlobalDcGatewayEntry withGlobalCenterNetworkId(String globalCenterNetworkId) { this.globalCenterNetworkId = globalCenterNetworkId; return this; } /** - * 全球中心网路ID + * DGW加载的全球中心网络实例的ID * @return globalCenterNetworkId */ public String getGlobalCenterNetworkId() { @@ -211,47 +271,15 @@ public void setGlobalCenterNetworkId(String globalCenterNetworkId) { this.globalCenterNetworkId = globalCenterNetworkId; } - public RmsShowGlobalDcGateway withSiteNetworkId(String siteNetworkId) { - this.siteNetworkId = siteNetworkId; - return this; - } - - /** - * 站点网络ID - * @return siteNetworkId - */ - public String getSiteNetworkId() { - return siteNetworkId; - } - - public void setSiteNetworkId(String siteNetworkId) { - this.siteNetworkId = siteNetworkId; - } - - public RmsShowGlobalDcGateway withCloudConnectionId(String cloudConnectionId) { - this.cloudConnectionId = cloudConnectionId; - return this; - } - - /** - * 云连接ID - * @return cloudConnectionId - */ - public String getCloudConnectionId() { - return cloudConnectionId; - } - - public void setCloudConnectionId(String cloudConnectionId) { - this.cloudConnectionId = cloudConnectionId; - } - - public RmsShowGlobalDcGateway withBgpAsn(Long bgpAsn) { + public CreateGlobalDcGatewayEntry withBgpAsn(Long bgpAsn) { this.bgpAsn = bgpAsn; return this; } /** - * BGP模式AS号 + * DGW对应BGP的ASN编号 + * minimum: 0 + * maximum: 65535 * @return bgpAsn */ public Long getBgpAsn() { @@ -262,13 +290,13 @@ public void setBgpAsn(Long bgpAsn) { this.bgpAsn = bgpAsn; } - public RmsShowGlobalDcGateway withRegionId(String regionId) { + public CreateGlobalDcGatewayEntry withRegionId(String regionId) { this.regionId = regionId; return this; } /** - * 局点ID + * DGW所属Region * @return regionId */ public String getRegionId() { @@ -279,13 +307,13 @@ public void setRegionId(String regionId) { this.regionId = regionId; } - public RmsShowGlobalDcGateway withLocationName(String locationName) { + public CreateGlobalDcGatewayEntry withLocationName(String locationName) { this.locationName = locationName; return this; } /** - * 位置名称 + * DGW创建网关设备归属的位置 * @return locationName */ public String getLocationName() { @@ -296,73 +324,80 @@ public void setLocationName(String locationName) { this.locationName = locationName; } - public RmsShowGlobalDcGateway withLocales(Locale locales) { - this.locales = locales; - return this; - } - - public RmsShowGlobalDcGateway withLocales(Consumer localesSetter) { - if (this.locales == null) { - this.locales = new Locale(); - localesSetter.accept(this.locales); - } - + public CreateGlobalDcGatewayEntry withCurrentPeerLinkCount(String currentPeerLinkCount) { + this.currentPeerLinkCount = currentPeerLinkCount; return this; } /** - * Get locales - * @return locales + * 全域接入网关(GDGW)上关联连接的数量,表示DGW挂载ER的数量 + * @return currentPeerLinkCount */ - public Locale getLocales() { - return locales; + public String getCurrentPeerLinkCount() { + return currentPeerLinkCount; } - public void setLocales(Locale locales) { - this.locales = locales; + public void setCurrentPeerLinkCount(String currentPeerLinkCount) { + this.currentPeerLinkCount = currentPeerLinkCount; } - public RmsShowGlobalDcGateway withCurrentPeerLinkCount(Integer currentPeerLinkCount) { - this.currentPeerLinkCount = currentPeerLinkCount; + public CreateGlobalDcGatewayEntry withAvailablePeerLinkCount(String availablePeerLinkCount) { + this.availablePeerLinkCount = availablePeerLinkCount; return this; } /** - * 当前对等体数量 - * @return currentPeerLinkCount + * 该全域接入网关上GDGW允许创建关联连接(PeerLink)的数量 + * @return availablePeerLinkCount */ - public Integer getCurrentPeerLinkCount() { - return currentPeerLinkCount; + public String getAvailablePeerLinkCount() { + return availablePeerLinkCount; } - public void setCurrentPeerLinkCount(Integer currentPeerLinkCount) { - this.currentPeerLinkCount = currentPeerLinkCount; + public void setAvailablePeerLinkCount(String availablePeerLinkCount) { + this.availablePeerLinkCount = availablePeerLinkCount; } - public RmsShowGlobalDcGateway withAvailablePeerLinkCount(Integer availablePeerLinkCount) { - this.availablePeerLinkCount = availablePeerLinkCount; + public CreateGlobalDcGatewayEntry withTags(List tags) { + this.tags = tags; + return this; + } + + public CreateGlobalDcGatewayEntry addTagsItem(Tag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public CreateGlobalDcGatewayEntry withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); return this; } /** - * 有效对等体数量 - * @return availablePeerLinkCount + * global-dc-gateway关联TAG。 + * @return tags */ - public Integer getAvailablePeerLinkCount() { - return availablePeerLinkCount; + public List getTags() { + return tags; } - public void setAvailablePeerLinkCount(Integer availablePeerLinkCount) { - this.availablePeerLinkCount = availablePeerLinkCount; + public void setTags(List tags) { + this.tags = tags; } - public RmsShowGlobalDcGateway withAdminStateUp(Boolean adminStateUp) { + public CreateGlobalDcGatewayEntry withAdminStateUp(Boolean adminStateUp) { this.adminStateUp = adminStateUp; return this; } /** - * 是否冻结:true-是,false-否 + * 该GDGW的管理状态,true为激活状态、false为冻结状态 * @return adminStateUp */ public Boolean getAdminStateUp() { @@ -373,30 +408,30 @@ public void setAdminStateUp(Boolean adminStateUp) { this.adminStateUp = adminStateUp; } - public RmsShowGlobalDcGateway withStatus(String status) { + public CreateGlobalDcGatewayEntry withStatus(GlobalDcGatewayStatus status) { this.status = status; return this; } /** - * 状态:ACTIVE-正常,ERROR-异常 + * Get status * @return status */ - public String getStatus() { + public GlobalDcGatewayStatus getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(GlobalDcGatewayStatus status) { this.status = status; } - public RmsShowGlobalDcGateway withCreatedTime(OffsetDateTime createdTime) { + public CreateGlobalDcGatewayEntry withCreatedTime(OffsetDateTime createdTime) { this.createdTime = createdTime; return this; } /** - * 创建时间 + * 创建时间。 * @return createdTime */ public OffsetDateTime getCreatedTime() { @@ -407,54 +442,21 @@ public void setCreatedTime(OffsetDateTime createdTime) { this.createdTime = createdTime; } - public RmsShowGlobalDcGateway withUpdatedTime(OffsetDateTime updatedTime) { - this.updatedTime = updatedTime; + public CreateGlobalDcGatewayEntry withAddressFamily(AddressFamilyEnum addressFamily) { + this.addressFamily = addressFamily; return this; } /** - * 更新时间 - * @return updatedTime + * 网关的地址簇,IPv4或者ipv6和IPv4双栈 - ipv4 - dual + * @return addressFamily */ - public OffsetDateTime getUpdatedTime() { - return updatedTime; - } - - public void setUpdatedTime(OffsetDateTime updatedTime) { - this.updatedTime = updatedTime; + public AddressFamilyEnum getAddressFamily() { + return addressFamily; } - public RmsShowGlobalDcGateway withTags(Map tags) { - this.tags = tags; - return this; - } - - public RmsShowGlobalDcGateway putTagsItem(String key, String tagsItem) { - if (this.tags == null) { - this.tags = new HashMap<>(); - } - this.tags.put(key, tagsItem); - return this; - } - - public RmsShowGlobalDcGateway withTags(Consumer> tagsSetter) { - if (this.tags == null) { - this.tags = new HashMap<>(); - } - tagsSetter.accept(this.tags); - return this; - } - - /** - * 返回给RMS的资源标签 - * @return tags - */ - public Map getTags() { - return tags; - } - - public void setTags(Map tags) { - this.tags = tags; + public void setAddressFamily(AddressFamilyEnum addressFamily) { + this.addressFamily = addressFamily; } @Override @@ -465,20 +467,18 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - RmsShowGlobalDcGateway that = (RmsShowGlobalDcGateway) obj; + CreateGlobalDcGatewayEntry that = (CreateGlobalDcGatewayEntry) obj; return Objects.equals(this.id, that.id) && Objects.equals(this.tenantId, that.tenantId) && Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) && Objects.equals(this.globalCenterNetworkId, that.globalCenterNetworkId) - && Objects.equals(this.siteNetworkId, that.siteNetworkId) - && Objects.equals(this.cloudConnectionId, that.cloudConnectionId) && Objects.equals(this.bgpAsn, that.bgpAsn) && Objects.equals(this.regionId, that.regionId) - && Objects.equals(this.locationName, that.locationName) && Objects.equals(this.locales, that.locales) + && Objects.equals(this.locationName, that.locationName) && Objects.equals(this.currentPeerLinkCount, that.currentPeerLinkCount) && Objects.equals(this.availablePeerLinkCount, that.availablePeerLinkCount) - && Objects.equals(this.adminStateUp, that.adminStateUp) && Objects.equals(this.status, that.status) - && Objects.equals(this.createdTime, that.createdTime) && Objects.equals(this.updatedTime, that.updatedTime) - && Objects.equals(this.tags, that.tags); + && Objects.equals(this.tags, that.tags) && Objects.equals(this.adminStateUp, that.adminStateUp) + && Objects.equals(this.status, that.status) && Objects.equals(this.createdTime, that.createdTime) + && Objects.equals(this.addressFamily, that.addressFamily); } @Override @@ -489,44 +489,38 @@ public int hashCode() { description, enterpriseProjectId, globalCenterNetworkId, - siteNetworkId, - cloudConnectionId, bgpAsn, regionId, locationName, - locales, currentPeerLinkCount, availablePeerLinkCount, + tags, adminStateUp, status, createdTime, - updatedTime, - tags); + addressFamily); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RmsShowGlobalDcGateway {\n"); + sb.append("class CreateGlobalDcGatewayEntry {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); sb.append(" globalCenterNetworkId: ").append(toIndentedString(globalCenterNetworkId)).append("\n"); - sb.append(" siteNetworkId: ").append(toIndentedString(siteNetworkId)).append("\n"); - sb.append(" cloudConnectionId: ").append(toIndentedString(cloudConnectionId)).append("\n"); sb.append(" bgpAsn: ").append(toIndentedString(bgpAsn)).append("\n"); sb.append(" regionId: ").append(toIndentedString(regionId)).append("\n"); sb.append(" locationName: ").append(toIndentedString(locationName)).append("\n"); - sb.append(" locales: ").append(toIndentedString(locales)).append("\n"); sb.append(" currentPeerLinkCount: ").append(toIndentedString(currentPeerLinkCount)).append("\n"); sb.append(" availablePeerLinkCount: ").append(toIndentedString(availablePeerLinkCount)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" adminStateUp: ").append(toIndentedString(adminStateUp)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" createdTime: ").append(toIndentedString(createdTime)).append("\n"); - sb.append(" updatedTime: ").append(toIndentedString(updatedTime)).append("\n"); - sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" addressFamily: ").append(toIndentedString(addressFamily)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateGlobalDcGatewayRequestBody.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateGlobalDcGatewayRequestBody.java index 1ee7fd74d5..bcb4721766 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateGlobalDcGatewayRequestBody.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateGlobalDcGatewayRequestBody.java @@ -7,47 +7,23 @@ import java.util.function.Consumer; /** - * 全球接入网关响应体 + * 创建global-dc-gateway的请求体。 */ public class CreateGlobalDcGatewayRequestBody { - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "dry_run") - - private Boolean dryRun; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "global_dc_gateway") - private CreateGlobalDcGatewayRequestBodyGlobalDcGateway globalDcGateway; - - public CreateGlobalDcGatewayRequestBody withDryRun(Boolean dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * 空运行 - true 是 - false 否 - * @return dryRun - */ - public Boolean getDryRun() { - return dryRun; - } - - public void setDryRun(Boolean dryRun) { - this.dryRun = dryRun; - } + private CreateGlobalDcGateway globalDcGateway; - public CreateGlobalDcGatewayRequestBody withGlobalDcGateway( - CreateGlobalDcGatewayRequestBodyGlobalDcGateway globalDcGateway) { + public CreateGlobalDcGatewayRequestBody withGlobalDcGateway(CreateGlobalDcGateway globalDcGateway) { this.globalDcGateway = globalDcGateway; return this; } - public CreateGlobalDcGatewayRequestBody withGlobalDcGateway( - Consumer globalDcGatewaySetter) { + public CreateGlobalDcGatewayRequestBody withGlobalDcGateway(Consumer globalDcGatewaySetter) { if (this.globalDcGateway == null) { - this.globalDcGateway = new CreateGlobalDcGatewayRequestBodyGlobalDcGateway(); + this.globalDcGateway = new CreateGlobalDcGateway(); globalDcGatewaySetter.accept(this.globalDcGateway); } @@ -58,11 +34,11 @@ public CreateGlobalDcGatewayRequestBody withGlobalDcGateway( * Get globalDcGateway * @return globalDcGateway */ - public CreateGlobalDcGatewayRequestBodyGlobalDcGateway getGlobalDcGateway() { + public CreateGlobalDcGateway getGlobalDcGateway() { return globalDcGateway; } - public void setGlobalDcGateway(CreateGlobalDcGatewayRequestBodyGlobalDcGateway globalDcGateway) { + public void setGlobalDcGateway(CreateGlobalDcGateway globalDcGateway) { this.globalDcGateway = globalDcGateway; } @@ -75,19 +51,18 @@ public boolean equals(java.lang.Object obj) { return false; } CreateGlobalDcGatewayRequestBody that = (CreateGlobalDcGatewayRequestBody) obj; - return Objects.equals(this.dryRun, that.dryRun) && Objects.equals(this.globalDcGateway, that.globalDcGateway); + return Objects.equals(this.globalDcGateway, that.globalDcGateway); } @Override public int hashCode() { - return Objects.hash(dryRun, globalDcGateway); + return Objects.hash(globalDcGateway); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateGlobalDcGatewayRequestBody {\n"); - sb.append(" dryRun: ").append(toIndentedString(dryRun)).append("\n"); sb.append(" globalDcGateway: ").append(toIndentedString(globalDcGateway)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags.java deleted file mode 100644 index ee4002b9c7..0000000000 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.huaweicloud.sdk.dc.v3.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags - */ -public class CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "key") - - private String key; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "value") - - private String value; - - public CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags withKey(String key) { - this.key = key; - return this; - } - - /** - * 键 - * @return key - */ - public String getKey() { - return key; - } - - public void setKey(String key) { - this.key = key; - } - - public CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags withValue(String value) { - this.value = value; - return this; - } - - /** - * 值 - * @return value - */ - public String getValue() { - return value; - } - - public void setValue(String value) { - this.value = value; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags that = - (CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags) obj; - return Objects.equals(this.key, that.key) && Objects.equals(this.value, that.value); - } - - @Override - public int hashCode() { - return Objects.hash(key, value); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags {\n"); - sb.append(" key: ").append(toIndentedString(key)).append("\n"); - sb.append(" value: ").append(toIndentedString(value)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateGlobalDcGatewayResponse.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateGlobalDcGatewayResponse.java index 61560453dc..d32ee07ed1 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateGlobalDcGatewayResponse.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateGlobalDcGatewayResponse.java @@ -12,47 +12,25 @@ */ public class CreateGlobalDcGatewayResponse extends SdkResponse { - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "request_id") - - private String requestId; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "global_dc_gateway") - private ExternalCreateGlobalDcGateway globalDcGateway; + private CreateGlobalDcGatewayEntry globalDcGateway; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - - private String xRequestId; - - public CreateGlobalDcGatewayResponse withRequestId(String requestId) { - this.requestId = requestId; - return this; - } - - /** - * 请求ID - * @return requestId - */ - public String getRequestId() { - return requestId; - } + @JsonProperty(value = "request_id") - public void setRequestId(String requestId) { - this.requestId = requestId; - } + private String requestId; - public CreateGlobalDcGatewayResponse withGlobalDcGateway(ExternalCreateGlobalDcGateway globalDcGateway) { + public CreateGlobalDcGatewayResponse withGlobalDcGateway(CreateGlobalDcGatewayEntry globalDcGateway) { this.globalDcGateway = globalDcGateway; return this; } public CreateGlobalDcGatewayResponse withGlobalDcGateway( - Consumer globalDcGatewaySetter) { + Consumer globalDcGatewaySetter) { if (this.globalDcGateway == null) { - this.globalDcGateway = new ExternalCreateGlobalDcGateway(); + this.globalDcGateway = new CreateGlobalDcGatewayEntry(); globalDcGatewaySetter.accept(this.globalDcGateway); } @@ -63,31 +41,29 @@ public CreateGlobalDcGatewayResponse withGlobalDcGateway( * Get globalDcGateway * @return globalDcGateway */ - public ExternalCreateGlobalDcGateway getGlobalDcGateway() { + public CreateGlobalDcGatewayEntry getGlobalDcGateway() { return globalDcGateway; } - public void setGlobalDcGateway(ExternalCreateGlobalDcGateway globalDcGateway) { + public void setGlobalDcGateway(CreateGlobalDcGatewayEntry globalDcGateway) { this.globalDcGateway = globalDcGateway; } - public CreateGlobalDcGatewayResponse withXRequestId(String xRequestId) { - this.xRequestId = xRequestId; + public CreateGlobalDcGatewayResponse withRequestId(String requestId) { + this.requestId = requestId; return this; } /** - * Get xRequestId - * @return xRequestId + * 请求ID。 + * @return requestId */ - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - public String getXRequestId() { - return xRequestId; + public String getRequestId() { + return requestId; } - public void setXRequestId(String xRequestId) { - this.xRequestId = xRequestId; + public void setRequestId(String requestId) { + this.requestId = requestId; } @Override @@ -99,23 +75,21 @@ public boolean equals(java.lang.Object obj) { return false; } CreateGlobalDcGatewayResponse that = (CreateGlobalDcGatewayResponse) obj; - return Objects.equals(this.requestId, that.requestId) - && Objects.equals(this.globalDcGateway, that.globalDcGateway) - && Objects.equals(this.xRequestId, that.xRequestId); + return Objects.equals(this.globalDcGateway, that.globalDcGateway) + && Objects.equals(this.requestId, that.requestId); } @Override public int hashCode() { - return Objects.hash(requestId, globalDcGateway, xRequestId); + return Objects.hash(globalDcGateway, requestId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateGlobalDcGatewayResponse {\n"); - sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" globalDcGateway: ").append(toIndentedString(globalDcGateway)).append("\n"); - sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreatePeerLinkRequest.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreatePeerLinkRequest.java index a4c4a7f576..c420c069da 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreatePeerLinkRequest.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreatePeerLinkRequest.java @@ -19,7 +19,7 @@ public class CreatePeerLinkRequest { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "body") - private CreatePeerLinkRequestBody body; + private CreateExternalPeerLinkRequestBody body; public CreatePeerLinkRequest withGlobalDcGatewayId(String globalDcGatewayId) { this.globalDcGatewayId = globalDcGatewayId; @@ -27,7 +27,7 @@ public CreatePeerLinkRequest withGlobalDcGatewayId(String globalDcGatewayId) { } /** - * 全球接入网关ID + * 全域接入网关ID * @return globalDcGatewayId */ public String getGlobalDcGatewayId() { @@ -38,14 +38,14 @@ public void setGlobalDcGatewayId(String globalDcGatewayId) { this.globalDcGatewayId = globalDcGatewayId; } - public CreatePeerLinkRequest withBody(CreatePeerLinkRequestBody body) { + public CreatePeerLinkRequest withBody(CreateExternalPeerLinkRequestBody body) { this.body = body; return this; } - public CreatePeerLinkRequest withBody(Consumer bodySetter) { + public CreatePeerLinkRequest withBody(Consumer bodySetter) { if (this.body == null) { - this.body = new CreatePeerLinkRequestBody(); + this.body = new CreateExternalPeerLinkRequestBody(); bodySetter.accept(this.body); } @@ -56,11 +56,11 @@ public CreatePeerLinkRequest withBody(Consumer bodySe * Get body * @return body */ - public CreatePeerLinkRequestBody getBody() { + public CreateExternalPeerLinkRequestBody getBody() { return body; } - public void setBody(CreatePeerLinkRequestBody body) { + public void setBody(CreateExternalPeerLinkRequestBody body) { this.body = body; } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreatePeerLinkResponse.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreatePeerLinkResponse.java index c3c9ff6504..e61e6efc3a 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreatePeerLinkResponse.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreatePeerLinkResponse.java @@ -22,18 +22,13 @@ public class CreatePeerLinkResponse extends SdkResponse { private ExternalCreatePeerLink peerLink; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - - private String xRequestId; - public CreatePeerLinkResponse withRequestId(String requestId) { this.requestId = requestId; return this; } /** - * Get requestId + * 请求ID * @return requestId */ public String getRequestId() { @@ -70,25 +65,6 @@ public void setPeerLink(ExternalCreatePeerLink peerLink) { this.peerLink = peerLink; } - public CreatePeerLinkResponse withXRequestId(String xRequestId) { - this.xRequestId = xRequestId; - return this; - } - - /** - * Get xRequestId - * @return xRequestId - */ - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - public String getXRequestId() { - return xRequestId; - } - - public void setXRequestId(String xRequestId) { - this.xRequestId = xRequestId; - } - @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -98,13 +74,12 @@ public boolean equals(java.lang.Object obj) { return false; } CreatePeerLinkResponse that = (CreatePeerLinkResponse) obj; - return Objects.equals(this.requestId, that.requestId) && Objects.equals(this.peerLink, that.peerLink) - && Objects.equals(this.xRequestId, that.xRequestId); + return Objects.equals(this.requestId, that.requestId) && Objects.equals(this.peerLink, that.peerLink); } @Override public int hashCode() { - return Objects.hash(requestId, peerLink, xRequestId); + return Objects.hash(requestId, peerLink); } @Override @@ -113,7 +88,6 @@ public String toString() { sb.append("class CreatePeerLinkResponse {\n"); sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" peerLink: ").append(toIndentedString(peerLink)).append("\n"); - sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateVifPeerResponse.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateVifPeerResponse.java index 416786d898..8a4e6f9fd7 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateVifPeerResponse.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateVifPeerResponse.java @@ -12,33 +12,11 @@ */ public class CreateVifPeerResponse extends SdkResponse { - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "request_id") - - private String requestId; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "vif_peer") private VifPeer vifPeer; - public CreateVifPeerResponse withRequestId(String requestId) { - this.requestId = requestId; - return this; - } - - /** - * 请求ID - * @return requestId - */ - public String getRequestId() { - return requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - public CreateVifPeerResponse withVifPeer(VifPeer vifPeer) { this.vifPeer = vifPeer; return this; @@ -74,19 +52,18 @@ public boolean equals(java.lang.Object obj) { return false; } CreateVifPeerResponse that = (CreateVifPeerResponse) obj; - return Objects.equals(this.requestId, that.requestId) && Objects.equals(this.vifPeer, that.vifPeer); + return Objects.equals(this.vifPeer, that.vifPeer); } @Override public int hashCode() { - return Objects.hash(requestId, vifPeer); + return Objects.hash(vifPeer); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateVifPeerResponse {\n"); - sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" vifPeer: ").append(toIndentedString(vifPeer)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateVirtualGateway.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateVirtualGateway.java index 18e1fa49e2..5ef405ce3d 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateVirtualGateway.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateVirtualGateway.java @@ -18,6 +18,11 @@ public class CreateVirtualGateway { private String vpcId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_router_id") + + private String enterpriseRouterId; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "name") @@ -59,7 +64,7 @@ public CreateVirtualGateway withVpcId(String vpcId) { } /** - * 虚拟网关接入的VPC的ID + * 虚拟网关接入的VPC的ID[,当选择创建接入VPC的虚拟网关时必选。](tag:dt) * @return vpcId */ public String getVpcId() { @@ -70,6 +75,23 @@ public void setVpcId(String vpcId) { this.vpcId = vpcId; } + public CreateVirtualGateway withEnterpriseRouterId(String enterpriseRouterId) { + this.enterpriseRouterId = enterpriseRouterId; + return this; + } + + /** + * 虚拟网关接入的ER的ID,当选择创建接入ER的虚拟网关时必选。 + * @return enterpriseRouterId + */ + public String getEnterpriseRouterId() { + return enterpriseRouterId; + } + + public void setEnterpriseRouterId(String enterpriseRouterId) { + this.enterpriseRouterId = enterpriseRouterId; + } + public CreateVirtualGateway withName(String name) { this.name = name; return this; @@ -126,7 +148,7 @@ public CreateVirtualGateway withLocalEpGroup(Consumer> localEpGroup } /** - * 虚拟网关到访问云上服务IPv4子网列表,通常是vpc的cidrs + * 虚拟网关到访问云上服务IPv4子网列表,通常是vpc的cidrs[,当选择创建接入VPC的虚拟网关时必选。](tag:dt) * @return localEpGroup */ public List getLocalEpGroup() { @@ -176,7 +198,7 @@ public CreateVirtualGateway withBgpAsn(Integer bgpAsn) { } /** - * 虚拟网关本地的BGP自冶域号(asn) + * 虚拟网关本地的BGP自治域号(asn) * minimum: 1 * maximum: 4294967295 * @return bgpAsn @@ -248,7 +270,8 @@ public boolean equals(java.lang.Object obj) { return false; } CreateVirtualGateway that = (CreateVirtualGateway) obj; - return Objects.equals(this.vpcId, that.vpcId) && Objects.equals(this.name, that.name) + return Objects.equals(this.vpcId, that.vpcId) + && Objects.equals(this.enterpriseRouterId, that.enterpriseRouterId) && Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) && Objects.equals(this.localEpGroup, that.localEpGroup) && Objects.equals(this.localEpGroupIpv6, that.localEpGroupIpv6) && Objects.equals(this.bgpAsn, that.bgpAsn) @@ -258,8 +281,15 @@ public boolean equals(java.lang.Object obj) { @Override public int hashCode() { - return Objects - .hash(vpcId, name, description, localEpGroup, localEpGroupIpv6, bgpAsn, enterpriseProjectId, tags); + return Objects.hash(vpcId, + enterpriseRouterId, + name, + description, + localEpGroup, + localEpGroupIpv6, + bgpAsn, + enterpriseProjectId, + tags); } @Override @@ -267,6 +297,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateVirtualGateway {\n"); sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n"); + sb.append(" enterpriseRouterId: ").append(toIndentedString(enterpriseRouterId)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" localEpGroup: ").append(toIndentedString(localEpGroup)).append("\n"); diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateVirtualInterface.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateVirtualInterface.java index df34309404..5a3397e705 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateVirtualInterface.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreateVirtualInterface.java @@ -113,11 +113,6 @@ public int hashCode() { */ public static final class ServiceTypeEnum { - /** - * Enum VPC for value: "vpc" - */ - public static final ServiceTypeEnum VPC = new ServiceTypeEnum("vpc"); - /** * Enum VGW for value: "VGW" */ @@ -137,7 +132,6 @@ public static final class ServiceTypeEnum { private static Map createStaticFields() { Map map = new HashMap<>(); - map.put("vpc", VPC); map.put("VGW", VGW); map.put("GDGW", GDGW); map.put("LGW", LGW); @@ -400,7 +394,7 @@ public CreateVirtualInterface withDirectConnectId(String directConnectId) { } /** - * 虚拟接口关联的物理专线ID + * 虚拟接口关联的物理专线ID。在创建虚拟接口时,需要关联direct_connect_id或lag_id,当LAG功能在当前局点不支持时,该参数为必选。 * @return directConnectId */ public String getDirectConnectId() { @@ -451,7 +445,7 @@ public CreateVirtualInterface withVlan(Integer vlan) { } /** - * 对接客户侧vlan + * 对接客户侧vlan。当关联物理连接选择托管专线时,vlan需要和托管专线保持一致。 * minimum: 0 * maximum: 3999 * @return vlan @@ -574,7 +568,7 @@ public CreateVirtualInterface withVgwId(String vgwId) { } /** - * 虚拟风关连接的虚拟网关的ID + * 虚拟接口连接的虚拟网关的ID * @return vgwId */ public String getVgwId() { @@ -710,7 +704,7 @@ public CreateVirtualInterface withEnableBfd(Boolean enableBfd) { } /** - * 是否使能bfd功能:true或false + * 是否使能bfd功能:true或false。[(预留字段暂不支持)](tag:dt) * @return enableBfd */ public Boolean getEnableBfd() { @@ -727,7 +721,7 @@ public CreateVirtualInterface withEnableNqa(Boolean enableNqa) { } /** - * 是否使能nqa功能:true或false + * 是否使能nqa功能:true或false。[(预留字段暂不支持)](tag:dt) * @return enableNqa */ public Boolean getEnableNqa() { diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DeleteGdgwRouteAction.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DeleteGdgwRouteAction.java new file mode 100644 index 0000000000..beb3527d5b --- /dev/null +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DeleteGdgwRouteAction.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.dc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * DeleteGdgwRouteAction + */ +public class DeleteGdgwRouteAction { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "destination") + + private String destination; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "nexthop") + + private String nexthop; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private RouteTypeOfGdgw type; + + public DeleteGdgwRouteAction withDestination(String destination) { + this.destination = destination; + return this; + } + + /** + * 路由子网 + * @return destination + */ + public String getDestination() { + return destination; + } + + public void setDestination(String destination) { + this.destination = destination; + } + + public DeleteGdgwRouteAction withNexthop(String nexthop) { + this.nexthop = nexthop; + return this; + } + + /** + * 下一跳id + * @return nexthop + */ + public String getNexthop() { + return nexthop; + } + + public void setNexthop(String nexthop) { + this.nexthop = nexthop; + } + + public DeleteGdgwRouteAction withType(RouteTypeOfGdgw type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + public RouteTypeOfGdgw getType() { + return type; + } + + public void setType(RouteTypeOfGdgw 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; + } + DeleteGdgwRouteAction that = (DeleteGdgwRouteAction) obj; + return Objects.equals(this.destination, that.destination) && Objects.equals(this.nexthop, that.nexthop) + && Objects.equals(this.type, that.type); + } + + @Override + public int hashCode() { + return Objects.hash(destination, nexthop, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteGdgwRouteAction {\n"); + sb.append(" destination: ").append(toIndentedString(destination)).append("\n"); + sb.append(" nexthop: ").append(toIndentedString(nexthop)).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/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DeleteGlobalDcGatewayRequest.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DeleteGlobalDcGatewayRequest.java index 41dc3a1810..2e59ddc801 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DeleteGlobalDcGatewayRequest.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DeleteGlobalDcGatewayRequest.java @@ -21,7 +21,7 @@ public DeleteGlobalDcGatewayRequest withGlobalDcGatewayId(String globalDcGateway } /** - * 全球接入网关ID + * 全域接入网关ID * @return globalDcGatewayId */ public String getGlobalDcGatewayId() { diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DeleteGlobalDcGatewayResponse.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DeleteGlobalDcGatewayResponse.java index a3b0d5888f..286f4fb6d2 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DeleteGlobalDcGatewayResponse.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DeleteGlobalDcGatewayResponse.java @@ -1,7 +1,5 @@ package com.huaweicloud.sdk.dc.v3.model; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; @@ -11,30 +9,6 @@ */ public class DeleteGlobalDcGatewayResponse extends SdkResponse { - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - - private String xRequestId; - - public DeleteGlobalDcGatewayResponse withXRequestId(String xRequestId) { - this.xRequestId = xRequestId; - return this; - } - - /** - * Get xRequestId - * @return xRequestId - */ - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - public String getXRequestId() { - return xRequestId; - } - - public void setXRequestId(String xRequestId) { - this.xRequestId = xRequestId; - } - @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -43,33 +17,20 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - DeleteGlobalDcGatewayResponse that = (DeleteGlobalDcGatewayResponse) obj; - return Objects.equals(this.xRequestId, that.xRequestId); + return true; } @Override public int hashCode() { - return Objects.hash(xRequestId); + return Objects.hash(); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeleteGlobalDcGatewayResponse {\n"); - sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DeletePeerLinkRequest.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DeletePeerLinkRequest.java index ec7444a9d2..08f4c41eb4 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DeletePeerLinkRequest.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DeletePeerLinkRequest.java @@ -26,7 +26,7 @@ public DeletePeerLinkRequest withGlobalDcGatewayId(String globalDcGatewayId) { } /** - * 全球接入网关ID + * 全域接入网关ID * @return globalDcGatewayId */ public String getGlobalDcGatewayId() { @@ -43,7 +43,7 @@ public DeletePeerLinkRequest withPeerLinkId(String peerLinkId) { } /** - * 全球接入网关对等体 + * 全域接入网关对等体 * @return peerLinkId */ public String getPeerLinkId() { diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DeletePeerLinkResponse.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DeletePeerLinkResponse.java index 29212ec6d2..598b18bce7 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DeletePeerLinkResponse.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DeletePeerLinkResponse.java @@ -1,7 +1,5 @@ package com.huaweicloud.sdk.dc.v3.model; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; @@ -11,30 +9,6 @@ */ public class DeletePeerLinkResponse extends SdkResponse { - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - - private String xRequestId; - - public DeletePeerLinkResponse withXRequestId(String xRequestId) { - this.xRequestId = xRequestId; - return this; - } - - /** - * Get xRequestId - * @return xRequestId - */ - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - public String getXRequestId() { - return xRequestId; - } - - public void setXRequestId(String xRequestId) { - this.xRequestId = xRequestId; - } - @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -43,33 +17,20 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - DeletePeerLinkResponse that = (DeletePeerLinkResponse) obj; - return Objects.equals(this.xRequestId, that.xRequestId); + return true; } @Override public int hashCode() { - return Objects.hash(xRequestId); + return Objects.hash(); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeletePeerLinkResponse {\n"); - sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DirectConnect.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DirectConnect.java index 03a561aca3..56a97f5927 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DirectConnect.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DirectConnect.java @@ -341,7 +341,7 @@ public int hashCode() { private Integer vlan; /** - * 资源状态,合法值是: ACTIVE:专线已经开通完成且线路处于正常状态 DOWN:专线对应的端口处于down的状态,可能存在线路故障等异常。 BUILD:申请专线正在施工建设中 ERROR:专线配置异常,请联系客服解决相关问题。 PENDING_DELETE:正在删除 DELETED:已删除 APPLY:申请开通 DENY:客户需求无法满足,拒绝工勘。 PENDING_PAY:待支付 PAID:已支付 PENDING_SURVEY:待工勘 + * 资源状态,合法值是: ACTIVE:专线已经开通完成且线路处于正常状态 DOWN:专线对应的端口处于down的状态,可能存在线路故障等异常。 BUILD:申请专线正在施工建设中 ERROR:专线配置异常,请联系客服解决相关问题。 PENDING_DELETE:正在删除 DELETED:已删除 APPLY:申请开通 DENY:客户需求无法满足,拒绝工勘。 PENDING_PAY:待支付 PAID:已支付 PENDING_SURVEY:待工勘 LEASED_LINE_DELIVERY:运营商施工 */ public static final class StatusEnum { @@ -400,6 +400,11 @@ public static final class StatusEnum { */ public static final StatusEnum PENDING_PAY = new StatusEnum("PENDING_PAY"); + /** + * Enum LEASED_LINE_DELIVERY for value: "LEASED_LINE_DELIVERY" + */ + public static final StatusEnum LEASED_LINE_DELIVERY = new StatusEnum("LEASED_LINE_DELIVERY"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { @@ -415,6 +420,7 @@ private static Map createStaticFields() { map.put("DELETED", DELETED); map.put("DENY", DENY); map.put("PENDING_PAY", PENDING_PAY); + map.put("LEASED_LINE_DELIVERY", LEASED_LINE_DELIVERY); return Collections.unmodifiableMap(map); } @@ -664,7 +670,7 @@ public int hashCode() { private String lagId; /** - * 专线协议的签暑状态 + * 专线协议的签署状态 */ public static final class SignedAgreementStatusEnum { @@ -1087,7 +1093,7 @@ public DirectConnect withStatus(StatusEnum status) { } /** - * 资源状态,合法值是: ACTIVE:专线已经开通完成且线路处于正常状态 DOWN:专线对应的端口处于down的状态,可能存在线路故障等异常。 BUILD:申请专线正在施工建设中 ERROR:专线配置异常,请联系客服解决相关问题。 PENDING_DELETE:正在删除 DELETED:已删除 APPLY:申请开通 DENY:客户需求无法满足,拒绝工勘。 PENDING_PAY:待支付 PAID:已支付 PENDING_SURVEY:待工勘 + * 资源状态,合法值是: ACTIVE:专线已经开通完成且线路处于正常状态 DOWN:专线对应的端口处于down的状态,可能存在线路故障等异常。 BUILD:申请专线正在施工建设中 ERROR:专线配置异常,请联系客服解决相关问题。 PENDING_DELETE:正在删除 DELETED:已删除 APPLY:申请开通 DENY:客户需求无法满足,拒绝工勘。 PENDING_PAY:待支付 PAID:已支付 PENDING_SURVEY:待工勘 LEASED_LINE_DELIVERY:运营商施工 * @return status */ public StatusEnum getStatus() { @@ -1104,7 +1110,7 @@ public DirectConnect withApplyTime(OffsetDateTime applyTime) { } /** - * 物理专线的申请时间 + * 物理专线的申请时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ * @return applyTime */ public OffsetDateTime getApplyTime() { @@ -1121,7 +1127,7 @@ public DirectConnect withCreateTime(OffsetDateTime createTime) { } /** - * 物理专线的创建时间 + * 物理专线的创建时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ * @return createTime */ public OffsetDateTime getCreateTime() { @@ -1291,7 +1297,7 @@ public DirectConnect withLagId(String lagId) { } /** - * 物理专线归属的链路聚合组(lag)的ID + * 物理专线归属的链路聚合组(lag)的ID * @return lagId */ public String getLagId() { @@ -1308,7 +1314,7 @@ public DirectConnect withSignedAgreementStatus(SignedAgreementStatusEnum signedA } /** - * 专线协议的签暑状态 + * 专线协议的签署状态 * @return signedAgreementStatus */ public SignedAgreementStatusEnum getSignedAgreementStatus() { @@ -1325,7 +1331,7 @@ public DirectConnect withSignedAgreementTime(OffsetDateTime signedAgreementTime) } /** - * 专线协议的签暑时间 + * 专线协议的签署时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ * @return signedAgreementTime */ public OffsetDateTime getSignedAgreementTime() { @@ -1451,7 +1457,7 @@ public DirectConnect withIesId(String iesId) { } /** - * 归属的IES站点的ID[(功能暂不支持)](tag:dt) + * 归属的CloudPond站点的ID[(功能暂不支持)](tag:dt) * @return iesId */ public String getIesId() { diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DirectConnectLocationEntry.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DirectConnectLocationEntry.java new file mode 100644 index 0000000000..3cce7b4063 --- /dev/null +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/DirectConnectLocationEntry.java @@ -0,0 +1,446 @@ +package com.huaweicloud.sdk.dc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * direct-connect-location专线接入点详情 + */ +public class DirectConnectLocationEntry { + + @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 = "region_id") + + private String regionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "site_code") + + private String siteCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "address") + + private AddressBody address; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "locales") + + private LocalesBody locales; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "provider_list") + + private List providerList = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "public_border_group") + + private String publicBorderGroup; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "latitude") + + private String latitude; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "longitude") + + private String longitude; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "created_time") + + private OffsetDateTime createdTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "updated_time") + + private OffsetDateTime updatedTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "available_port_speeds") + + private List availablePortSpeeds = null; + + public DirectConnectLocationEntry 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 DirectConnectLocationEntry withName(String name) { + this.name = name; + return this; + } + + /** + * 专线接入点的名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public DirectConnectLocationEntry withRegionId(String regionId) { + this.regionId = regionId; + return this; + } + + /** + * Location所属Region + * @return regionId + */ + public String getRegionId() { + return regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public DirectConnectLocationEntry withSiteCode(String siteCode) { + this.siteCode = siteCode; + return this; + } + + /** + * 专线接入点对应的站点编码 + * @return siteCode + */ + public String getSiteCode() { + return siteCode; + } + + public void setSiteCode(String siteCode) { + this.siteCode = siteCode; + } + + public DirectConnectLocationEntry withAddress(AddressBody address) { + this.address = address; + return this; + } + + public DirectConnectLocationEntry withAddress(Consumer addressSetter) { + if (this.address == null) { + this.address = new AddressBody(); + addressSetter.accept(this.address); + } + + return this; + } + + /** + * Get address + * @return address + */ + public AddressBody getAddress() { + return address; + } + + public void setAddress(AddressBody address) { + this.address = address; + } + + public DirectConnectLocationEntry withLocales(LocalesBody locales) { + this.locales = locales; + return this; + } + + public DirectConnectLocationEntry withLocales(Consumer localesSetter) { + if (this.locales == null) { + this.locales = new LocalesBody(); + localesSetter.accept(this.locales); + } + + return this; + } + + /** + * Get locales + * @return locales + */ + public LocalesBody getLocales() { + return locales; + } + + public void setLocales(LocalesBody locales) { + this.locales = locales; + } + + public DirectConnectLocationEntry withProviderList(List providerList) { + this.providerList = providerList; + return this; + } + + public DirectConnectLocationEntry addProviderListItem(ProviderResponseBody providerListItem) { + if (this.providerList == null) { + this.providerList = new ArrayList<>(); + } + this.providerList.add(providerListItem); + return this; + } + + public DirectConnectLocationEntry withProviderList(Consumer> providerListSetter) { + if (this.providerList == null) { + this.providerList = new ArrayList<>(); + } + providerListSetter.accept(this.providerList); + return this; + } + + /** + * 可支持的运营商列表。 + * @return providerList + */ + public List getProviderList() { + return providerList; + } + + public void setProviderList(List providerList) { + this.providerList = providerList; + } + + public DirectConnectLocationEntry withPublicBorderGroup(String publicBorderGroup) { + this.publicBorderGroup = publicBorderGroup; + return this; + } + + /** + * 专线接入点所属public_border_group + * @return publicBorderGroup + */ + public String getPublicBorderGroup() { + return publicBorderGroup; + } + + public void setPublicBorderGroup(String publicBorderGroup) { + this.publicBorderGroup = publicBorderGroup; + } + + public DirectConnectLocationEntry withLatitude(String latitude) { + this.latitude = latitude; + return this; + } + + /** + * 地理位置纬度 + * @return latitude + */ + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public DirectConnectLocationEntry withLongitude(String longitude) { + this.longitude = longitude; + return this; + } + + /** + * 地理位置经度 + * @return longitude + */ + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public DirectConnectLocationEntry withDescription(String description) { + this.description = description; + return this; + } + + /** + * 描述信息。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public DirectConnectLocationEntry withCreatedTime(OffsetDateTime createdTime) { + this.createdTime = createdTime; + return this; + } + + /** + * 创建时间。 + * @return createdTime + */ + public OffsetDateTime getCreatedTime() { + return createdTime; + } + + public void setCreatedTime(OffsetDateTime createdTime) { + this.createdTime = createdTime; + } + + public DirectConnectLocationEntry withUpdatedTime(OffsetDateTime updatedTime) { + this.updatedTime = updatedTime; + return this; + } + + /** + * 更新时间。 + * @return updatedTime + */ + public OffsetDateTime getUpdatedTime() { + return updatedTime; + } + + public void setUpdatedTime(OffsetDateTime updatedTime) { + this.updatedTime = updatedTime; + } + + public DirectConnectLocationEntry withAvailablePortSpeeds(List availablePortSpeeds) { + this.availablePortSpeeds = availablePortSpeeds; + return this; + } + + public DirectConnectLocationEntry addAvailablePortSpeedsItem(String availablePortSpeedsItem) { + if (this.availablePortSpeeds == null) { + this.availablePortSpeeds = new ArrayList<>(); + } + this.availablePortSpeeds.add(availablePortSpeedsItem); + return this; + } + + public DirectConnectLocationEntry withAvailablePortSpeeds(Consumer> availablePortSpeedsSetter) { + if (this.availablePortSpeeds == null) { + this.availablePortSpeeds = new ArrayList<>(); + } + availablePortSpeedsSetter.accept(this.availablePortSpeeds); + return this; + } + + /** + * 接入点内设备可选的端口类型 + * @return availablePortSpeeds + */ + public List getAvailablePortSpeeds() { + return availablePortSpeeds; + } + + public void setAvailablePortSpeeds(List availablePortSpeeds) { + this.availablePortSpeeds = availablePortSpeeds; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DirectConnectLocationEntry that = (DirectConnectLocationEntry) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.regionId, that.regionId) && Objects.equals(this.siteCode, that.siteCode) + && Objects.equals(this.address, that.address) && Objects.equals(this.locales, that.locales) + && Objects.equals(this.providerList, that.providerList) + && Objects.equals(this.publicBorderGroup, that.publicBorderGroup) + && Objects.equals(this.latitude, that.latitude) && Objects.equals(this.longitude, that.longitude) + && Objects.equals(this.description, that.description) && Objects.equals(this.createdTime, that.createdTime) + && Objects.equals(this.updatedTime, that.updatedTime) + && Objects.equals(this.availablePortSpeeds, that.availablePortSpeeds); + } + + @Override + public int hashCode() { + return Objects.hash(id, + name, + regionId, + siteCode, + address, + locales, + providerList, + publicBorderGroup, + latitude, + longitude, + description, + createdTime, + updatedTime, + availablePortSpeeds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DirectConnectLocationEntry {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" regionId: ").append(toIndentedString(regionId)).append("\n"); + sb.append(" siteCode: ").append(toIndentedString(siteCode)).append("\n"); + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" locales: ").append(toIndentedString(locales)).append("\n"); + sb.append(" providerList: ").append(toIndentedString(providerList)).append("\n"); + sb.append(" publicBorderGroup: ").append(toIndentedString(publicBorderGroup)).append("\n"); + sb.append(" latitude: ").append(toIndentedString(latitude)).append("\n"); + sb.append(" longitude: ").append(toIndentedString(longitude)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" createdTime: ").append(toIndentedString(createdTime)).append("\n"); + sb.append(" updatedTime: ").append(toIndentedString(updatedTime)).append("\n"); + sb.append(" availablePortSpeeds: ").append(toIndentedString(availablePortSpeeds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalCreateGlobalDcGateway.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalCreateGlobalDcGateway.java deleted file mode 100644 index 9cb1e98151..0000000000 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalCreateGlobalDcGateway.java +++ /dev/null @@ -1,493 +0,0 @@ -package com.huaweicloud.sdk.dc.v3.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.time.OffsetDateTime; -import java.util.Objects; - -/** - * 创建成功返回响应体 - */ -public class ExternalCreateGlobalDcGateway { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "id") - - private String id; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "tenant_id") - - private String tenantId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "name") - - private String name; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "description") - - private String description; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "enterprise_project_id") - - private String enterpriseProjectId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "address_family") - - private String addressFamily; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "global_center_network_id") - - private String globalCenterNetworkId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "site_network_id") - - private String siteNetworkId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "cloud_connection_id") - - private String cloudConnectionId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "bgp_asn") - - private Long bgpAsn; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "region_id") - - private String regionId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "location_name") - - private String locationName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "current_peer_link_count") - - private Integer currentPeerLinkCount; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "available_peer_link_count") - - private Integer availablePeerLinkCount; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "admin_state_up") - - private Boolean adminStateUp; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "status") - - private String status; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "created_time") - - private OffsetDateTime createdTime; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "updated_time") - - private OffsetDateTime updatedTime; - - public ExternalCreateGlobalDcGateway 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 ExternalCreateGlobalDcGateway withTenantId(String tenantId) { - this.tenantId = tenantId; - return this; - } - - /** - * 租户ID - * @return tenantId - */ - public String getTenantId() { - return tenantId; - } - - public void setTenantId(String tenantId) { - this.tenantId = tenantId; - } - - public ExternalCreateGlobalDcGateway withName(String name) { - this.name = name; - return this; - } - - /** - * 全球接入网关ID - * @return name - */ - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public ExternalCreateGlobalDcGateway withDescription(String description) { - this.description = description; - return this; - } - - /** - * 描述信息 - * @return description - */ - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public ExternalCreateGlobalDcGateway withEnterpriseProjectId(String enterpriseProjectId) { - this.enterpriseProjectId = enterpriseProjectId; - return this; - } - - /** - * 企业项目ID - * @return enterpriseProjectId - */ - public String getEnterpriseProjectId() { - return enterpriseProjectId; - } - - public void setEnterpriseProjectId(String enterpriseProjectId) { - this.enterpriseProjectId = enterpriseProjectId; - } - - public ExternalCreateGlobalDcGateway withAddressFamily(String addressFamily) { - this.addressFamily = addressFamily; - return this; - } - - /** - * 地址簇 - * @return addressFamily - */ - public String getAddressFamily() { - return addressFamily; - } - - public void setAddressFamily(String addressFamily) { - this.addressFamily = addressFamily; - } - - public ExternalCreateGlobalDcGateway withGlobalCenterNetworkId(String globalCenterNetworkId) { - this.globalCenterNetworkId = globalCenterNetworkId; - return this; - } - - /** - * 全球中心网络ID - * @return globalCenterNetworkId - */ - public String getGlobalCenterNetworkId() { - return globalCenterNetworkId; - } - - public void setGlobalCenterNetworkId(String globalCenterNetworkId) { - this.globalCenterNetworkId = globalCenterNetworkId; - } - - public ExternalCreateGlobalDcGateway withSiteNetworkId(String siteNetworkId) { - this.siteNetworkId = siteNetworkId; - return this; - } - - /** - * 站点网络ID - * @return siteNetworkId - */ - public String getSiteNetworkId() { - return siteNetworkId; - } - - public void setSiteNetworkId(String siteNetworkId) { - this.siteNetworkId = siteNetworkId; - } - - public ExternalCreateGlobalDcGateway withCloudConnectionId(String cloudConnectionId) { - this.cloudConnectionId = cloudConnectionId; - return this; - } - - /** - * 云连接ID - * @return cloudConnectionId - */ - public String getCloudConnectionId() { - return cloudConnectionId; - } - - public void setCloudConnectionId(String cloudConnectionId) { - this.cloudConnectionId = cloudConnectionId; - } - - public ExternalCreateGlobalDcGateway withBgpAsn(Long bgpAsn) { - this.bgpAsn = bgpAsn; - return this; - } - - /** - * BGP的AS号 - * @return bgpAsn - */ - public Long getBgpAsn() { - return bgpAsn; - } - - public void setBgpAsn(Long bgpAsn) { - this.bgpAsn = bgpAsn; - } - - public ExternalCreateGlobalDcGateway withRegionId(String regionId) { - this.regionId = regionId; - return this; - } - - /** - * 局点ID - * @return regionId - */ - public String getRegionId() { - return regionId; - } - - public void setRegionId(String regionId) { - this.regionId = regionId; - } - - public ExternalCreateGlobalDcGateway withLocationName(String locationName) { - this.locationName = locationName; - return this; - } - - /** - * 位置名称 - * @return locationName - */ - public String getLocationName() { - return locationName; - } - - public void setLocationName(String locationName) { - this.locationName = locationName; - } - - public ExternalCreateGlobalDcGateway withCurrentPeerLinkCount(Integer currentPeerLinkCount) { - this.currentPeerLinkCount = currentPeerLinkCount; - return this; - } - - /** - * 当前对等体数量 - * @return currentPeerLinkCount - */ - public Integer getCurrentPeerLinkCount() { - return currentPeerLinkCount; - } - - public void setCurrentPeerLinkCount(Integer currentPeerLinkCount) { - this.currentPeerLinkCount = currentPeerLinkCount; - } - - public ExternalCreateGlobalDcGateway withAvailablePeerLinkCount(Integer availablePeerLinkCount) { - this.availablePeerLinkCount = availablePeerLinkCount; - return this; - } - - /** - * 有效对等体数量 - * @return availablePeerLinkCount - */ - public Integer getAvailablePeerLinkCount() { - return availablePeerLinkCount; - } - - public void setAvailablePeerLinkCount(Integer availablePeerLinkCount) { - this.availablePeerLinkCount = availablePeerLinkCount; - } - - public ExternalCreateGlobalDcGateway withAdminStateUp(Boolean adminStateUp) { - this.adminStateUp = adminStateUp; - return this; - } - - /** - * 是否冻结 - true 是 - false 否 - * @return adminStateUp - */ - public Boolean getAdminStateUp() { - return adminStateUp; - } - - public void setAdminStateUp(Boolean adminStateUp) { - this.adminStateUp = adminStateUp; - } - - public ExternalCreateGlobalDcGateway withStatus(String status) { - this.status = status; - return this; - } - - /** - * 状态值 - ACTIVE 正常 - ERROR 异常 - * @return status - */ - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public ExternalCreateGlobalDcGateway withCreatedTime(OffsetDateTime createdTime) { - this.createdTime = createdTime; - return this; - } - - /** - * 创建时间 - * @return createdTime - */ - public OffsetDateTime getCreatedTime() { - return createdTime; - } - - public void setCreatedTime(OffsetDateTime createdTime) { - this.createdTime = createdTime; - } - - public ExternalCreateGlobalDcGateway withUpdatedTime(OffsetDateTime updatedTime) { - this.updatedTime = updatedTime; - return this; - } - - /** - * 修改时间 - * @return updatedTime - */ - public OffsetDateTime getUpdatedTime() { - return updatedTime; - } - - public void setUpdatedTime(OffsetDateTime updatedTime) { - this.updatedTime = updatedTime; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ExternalCreateGlobalDcGateway that = (ExternalCreateGlobalDcGateway) obj; - return Objects.equals(this.id, that.id) && Objects.equals(this.tenantId, that.tenantId) - && Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) - && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) - && Objects.equals(this.addressFamily, that.addressFamily) - && Objects.equals(this.globalCenterNetworkId, that.globalCenterNetworkId) - && Objects.equals(this.siteNetworkId, that.siteNetworkId) - && Objects.equals(this.cloudConnectionId, that.cloudConnectionId) - && Objects.equals(this.bgpAsn, that.bgpAsn) && Objects.equals(this.regionId, that.regionId) - && Objects.equals(this.locationName, that.locationName) - && Objects.equals(this.currentPeerLinkCount, that.currentPeerLinkCount) - && Objects.equals(this.availablePeerLinkCount, that.availablePeerLinkCount) - && Objects.equals(this.adminStateUp, that.adminStateUp) && Objects.equals(this.status, that.status) - && Objects.equals(this.createdTime, that.createdTime) && Objects.equals(this.updatedTime, that.updatedTime); - } - - @Override - public int hashCode() { - return Objects.hash(id, - tenantId, - name, - description, - enterpriseProjectId, - addressFamily, - globalCenterNetworkId, - siteNetworkId, - cloudConnectionId, - bgpAsn, - regionId, - locationName, - currentPeerLinkCount, - availablePeerLinkCount, - adminStateUp, - status, - createdTime, - updatedTime); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ExternalCreateGlobalDcGateway {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); - sb.append(" addressFamily: ").append(toIndentedString(addressFamily)).append("\n"); - sb.append(" globalCenterNetworkId: ").append(toIndentedString(globalCenterNetworkId)).append("\n"); - sb.append(" siteNetworkId: ").append(toIndentedString(siteNetworkId)).append("\n"); - sb.append(" cloudConnectionId: ").append(toIndentedString(cloudConnectionId)).append("\n"); - sb.append(" bgpAsn: ").append(toIndentedString(bgpAsn)).append("\n"); - sb.append(" regionId: ").append(toIndentedString(regionId)).append("\n"); - sb.append(" locationName: ").append(toIndentedString(locationName)).append("\n"); - sb.append(" currentPeerLinkCount: ").append(toIndentedString(currentPeerLinkCount)).append("\n"); - sb.append(" availablePeerLinkCount: ").append(toIndentedString(availablePeerLinkCount)).append("\n"); - sb.append(" adminStateUp: ").append(toIndentedString(adminStateUp)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" createdTime: ").append(toIndentedString(createdTime)).append("\n"); - sb.append(" updatedTime: ").append(toIndentedString(updatedTime)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalCreatePeerLink.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalCreatePeerLink.java index 7c4b2c7641..b3efcfd020 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalCreatePeerLink.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalCreatePeerLink.java @@ -37,11 +37,6 @@ public class ExternalCreatePeerLink { private String globalDcGatewayId; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "instance_id") - - private String instanceId; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "bandwidth_info") @@ -78,7 +73,7 @@ public ExternalCreatePeerLink withId(String id) { } /** - * 唯一ID + * 专线对等连接 * @return id */ public String getId() { @@ -129,7 +124,7 @@ public ExternalCreatePeerLink withDescription(String description) { } /** - * 描述 + * 描述信息 * @return description */ public String getDescription() { @@ -146,7 +141,7 @@ public ExternalCreatePeerLink withGlobalDcGatewayId(String globalDcGatewayId) { } /** - * 全球接入网关ID + * 全域接入网关ID * @return globalDcGatewayId */ public String getGlobalDcGatewayId() { @@ -157,23 +152,6 @@ public void setGlobalDcGatewayId(String globalDcGatewayId) { this.globalDcGatewayId = globalDcGatewayId; } - public ExternalCreatePeerLink withInstanceId(String instanceId) { - this.instanceId = instanceId; - return this; - } - - /** - * 实例ID - * @return instanceId - */ - public String getInstanceId() { - return instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - } - public ExternalCreatePeerLink withBandwidthInfo(BandwidthInfoExternal bandwidthInfo) { this.bandwidthInfo = bandwidthInfo; return this; @@ -232,7 +210,7 @@ public ExternalCreatePeerLink withStatus(String status) { } /** - * 状态: ACTIVE-正常 + * '状态信息' - ACTIVE 正常 - ERROR 异常 * @return status */ public String getStatus() { @@ -249,7 +227,7 @@ public ExternalCreatePeerLink withReason(String reason) { } /** - * 原因 + * 失败原因 * @return reason */ public String getReason() { @@ -283,7 +261,7 @@ public ExternalCreatePeerLink withUpdatedTime(OffsetDateTime updatedTime) { } /** - * 修改时间 + * 更新时间 * @return updatedTime */ public OffsetDateTime getUpdatedTime() { @@ -306,7 +284,6 @@ public boolean equals(java.lang.Object obj) { return Objects.equals(this.id, that.id) && Objects.equals(this.tenantId, that.tenantId) && Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) && Objects.equals(this.globalDcGatewayId, that.globalDcGatewayId) - && Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.bandwidthInfo, that.bandwidthInfo) && Objects.equals(this.peerSite, that.peerSite) && Objects.equals(this.status, that.status) && Objects.equals(this.reason, that.reason) && Objects.equals(this.createdTime, that.createdTime) && Objects.equals(this.updatedTime, that.updatedTime); @@ -319,7 +296,6 @@ public int hashCode() { name, description, globalDcGatewayId, - instanceId, bandwidthInfo, peerSite, status, @@ -337,7 +313,6 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" globalDcGatewayId: ").append(toIndentedString(globalDcGatewayId)).append("\n"); - sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); sb.append(" bandwidthInfo: ").append(toIndentedString(bandwidthInfo)).append("\n"); sb.append(" peerSite: ").append(toIndentedString(peerSite)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalListPeerLinks.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalListPeerLinks.java deleted file mode 100644 index dd2d95b423..0000000000 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalListPeerLinks.java +++ /dev/null @@ -1,386 +0,0 @@ -package com.huaweicloud.sdk.dc.v3.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.time.OffsetDateTime; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * ExternalListPeerLinks - */ -public class ExternalListPeerLinks { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "id") - - private String id; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "tenant_id") - - private String tenantId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "name") - - private String name; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "description") - - private String description; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "global_dc_gateway_id") - - private String globalDcGatewayId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "instance_id") - - private String instanceId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "create_owner") - - private String createOwner; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "bandwidth_info") - - private BandwidthInfoExternal bandwidthInfo; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "peer_site") - - private PeerSiteExternal peerSite; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "status") - - private String status; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "reason") - - private String reason; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "created_time") - - private OffsetDateTime createdTime; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "updated_time") - - private OffsetDateTime updatedTime; - - public ExternalListPeerLinks withId(String id) { - this.id = id; - return this; - } - - /** - * Get id - * @return id - */ - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public ExternalListPeerLinks withTenantId(String tenantId) { - this.tenantId = tenantId; - return this; - } - - /** - * Get tenantId - * @return tenantId - */ - public String getTenantId() { - return tenantId; - } - - public void setTenantId(String tenantId) { - this.tenantId = tenantId; - } - - public ExternalListPeerLinks withName(String name) { - this.name = name; - return this; - } - - /** - * Get name - * @return name - */ - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public ExternalListPeerLinks withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get description - * @return description - */ - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public ExternalListPeerLinks withGlobalDcGatewayId(String globalDcGatewayId) { - this.globalDcGatewayId = globalDcGatewayId; - return this; - } - - /** - * Get globalDcGatewayId - * @return globalDcGatewayId - */ - public String getGlobalDcGatewayId() { - return globalDcGatewayId; - } - - public void setGlobalDcGatewayId(String globalDcGatewayId) { - this.globalDcGatewayId = globalDcGatewayId; - } - - public ExternalListPeerLinks withInstanceId(String instanceId) { - this.instanceId = instanceId; - return this; - } - - /** - * Get instanceId - * @return instanceId - */ - public String getInstanceId() { - return instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - } - - public ExternalListPeerLinks withCreateOwner(String createOwner) { - this.createOwner = createOwner; - return this; - } - - /** - * Get createOwner - * @return createOwner - */ - public String getCreateOwner() { - return createOwner; - } - - public void setCreateOwner(String createOwner) { - this.createOwner = createOwner; - } - - public ExternalListPeerLinks withBandwidthInfo(BandwidthInfoExternal bandwidthInfo) { - this.bandwidthInfo = bandwidthInfo; - return this; - } - - public ExternalListPeerLinks withBandwidthInfo(Consumer bandwidthInfoSetter) { - if (this.bandwidthInfo == null) { - this.bandwidthInfo = new BandwidthInfoExternal(); - bandwidthInfoSetter.accept(this.bandwidthInfo); - } - - return this; - } - - /** - * Get bandwidthInfo - * @return bandwidthInfo - */ - public BandwidthInfoExternal getBandwidthInfo() { - return bandwidthInfo; - } - - public void setBandwidthInfo(BandwidthInfoExternal bandwidthInfo) { - this.bandwidthInfo = bandwidthInfo; - } - - public ExternalListPeerLinks withPeerSite(PeerSiteExternal peerSite) { - this.peerSite = peerSite; - return this; - } - - public ExternalListPeerLinks withPeerSite(Consumer peerSiteSetter) { - if (this.peerSite == null) { - this.peerSite = new PeerSiteExternal(); - peerSiteSetter.accept(this.peerSite); - } - - return this; - } - - /** - * Get peerSite - * @return peerSite - */ - public PeerSiteExternal getPeerSite() { - return peerSite; - } - - public void setPeerSite(PeerSiteExternal peerSite) { - this.peerSite = peerSite; - } - - public ExternalListPeerLinks withStatus(String status) { - this.status = status; - return this; - } - - /** - * Get status - * @return status - */ - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public ExternalListPeerLinks withReason(String reason) { - this.reason = reason; - return this; - } - - /** - * Get reason - * @return reason - */ - public String getReason() { - return reason; - } - - public void setReason(String reason) { - this.reason = reason; - } - - public ExternalListPeerLinks withCreatedTime(OffsetDateTime createdTime) { - this.createdTime = createdTime; - return this; - } - - /** - * Get createdTime - * @return createdTime - */ - public OffsetDateTime getCreatedTime() { - return createdTime; - } - - public void setCreatedTime(OffsetDateTime createdTime) { - this.createdTime = createdTime; - } - - public ExternalListPeerLinks withUpdatedTime(OffsetDateTime updatedTime) { - this.updatedTime = updatedTime; - return this; - } - - /** - * Get updatedTime - * @return updatedTime - */ - public OffsetDateTime getUpdatedTime() { - return updatedTime; - } - - public void setUpdatedTime(OffsetDateTime updatedTime) { - this.updatedTime = updatedTime; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ExternalListPeerLinks that = (ExternalListPeerLinks) obj; - return Objects.equals(this.id, that.id) && Objects.equals(this.tenantId, that.tenantId) - && Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) - && Objects.equals(this.globalDcGatewayId, that.globalDcGatewayId) - && Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.createOwner, that.createOwner) - && Objects.equals(this.bandwidthInfo, that.bandwidthInfo) && Objects.equals(this.peerSite, that.peerSite) - && Objects.equals(this.status, that.status) && Objects.equals(this.reason, that.reason) - && Objects.equals(this.createdTime, that.createdTime) && Objects.equals(this.updatedTime, that.updatedTime); - } - - @Override - public int hashCode() { - return Objects.hash(id, - tenantId, - name, - description, - globalDcGatewayId, - instanceId, - createOwner, - bandwidthInfo, - peerSite, - status, - reason, - createdTime, - updatedTime); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ExternalListPeerLinks {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" globalDcGatewayId: ").append(toIndentedString(globalDcGatewayId)).append("\n"); - sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); - sb.append(" createOwner: ").append(toIndentedString(createOwner)).append("\n"); - sb.append(" bandwidthInfo: ").append(toIndentedString(bandwidthInfo)).append("\n"); - sb.append(" peerSite: ").append(toIndentedString(peerSite)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); - sb.append(" createdTime: ").append(toIndentedString(createdTime)).append("\n"); - sb.append(" updatedTime: ").append(toIndentedString(updatedTime)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalShowGlobalDcGateway.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalShowGlobalDcGateway.java deleted file mode 100644 index 049b8481c6..0000000000 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalShowGlobalDcGateway.java +++ /dev/null @@ -1,545 +0,0 @@ -package com.huaweicloud.sdk.dc.v3.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * ExternalShowGlobalDcGateway - */ -public class ExternalShowGlobalDcGateway { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "id") - - private String id; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "tenant_id") - - private String tenantId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "name") - - private String name; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "description") - - private String description; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "enterprise_project_id") - - private String enterpriseProjectId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "global_center_network_id") - - private String globalCenterNetworkId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "site_network_id") - - private String siteNetworkId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "cloud_connection_id") - - private String cloudConnectionId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "bgp_asn") - - private Long bgpAsn; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "region_id") - - private String regionId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "location_name") - - private String locationName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "locales") - - private Locale locales; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "current_peer_link_count") - - private Integer currentPeerLinkCount; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "available_peer_link_count") - - private Integer availablePeerLinkCount; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "admin_state_up") - - private Boolean adminStateUp; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "status") - - private String status; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "created_time") - - private OffsetDateTime createdTime; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "updated_time") - - private OffsetDateTime updatedTime; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "tags") - - private Map tags = null; - - public ExternalShowGlobalDcGateway 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 ExternalShowGlobalDcGateway withTenantId(String tenantId) { - this.tenantId = tenantId; - return this; - } - - /** - * 租户ID - * @return tenantId - */ - public String getTenantId() { - return tenantId; - } - - public void setTenantId(String tenantId) { - this.tenantId = tenantId; - } - - public ExternalShowGlobalDcGateway withName(String name) { - this.name = name; - return this; - } - - /** - * 名称 - * @return name - */ - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public ExternalShowGlobalDcGateway withDescription(String description) { - this.description = description; - return this; - } - - /** - * 描述信息 - * @return description - */ - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public ExternalShowGlobalDcGateway withEnterpriseProjectId(String enterpriseProjectId) { - this.enterpriseProjectId = enterpriseProjectId; - return this; - } - - /** - * 企业项目ID - * @return enterpriseProjectId - */ - public String getEnterpriseProjectId() { - return enterpriseProjectId; - } - - public void setEnterpriseProjectId(String enterpriseProjectId) { - this.enterpriseProjectId = enterpriseProjectId; - } - - public ExternalShowGlobalDcGateway withGlobalCenterNetworkId(String globalCenterNetworkId) { - this.globalCenterNetworkId = globalCenterNetworkId; - return this; - } - - /** - * 全球中心网路ID - * @return globalCenterNetworkId - */ - public String getGlobalCenterNetworkId() { - return globalCenterNetworkId; - } - - public void setGlobalCenterNetworkId(String globalCenterNetworkId) { - this.globalCenterNetworkId = globalCenterNetworkId; - } - - public ExternalShowGlobalDcGateway withSiteNetworkId(String siteNetworkId) { - this.siteNetworkId = siteNetworkId; - return this; - } - - /** - * 站点网络ID - * @return siteNetworkId - */ - public String getSiteNetworkId() { - return siteNetworkId; - } - - public void setSiteNetworkId(String siteNetworkId) { - this.siteNetworkId = siteNetworkId; - } - - public ExternalShowGlobalDcGateway withCloudConnectionId(String cloudConnectionId) { - this.cloudConnectionId = cloudConnectionId; - return this; - } - - /** - * 云连接ID - * @return cloudConnectionId - */ - public String getCloudConnectionId() { - return cloudConnectionId; - } - - public void setCloudConnectionId(String cloudConnectionId) { - this.cloudConnectionId = cloudConnectionId; - } - - public ExternalShowGlobalDcGateway withBgpAsn(Long bgpAsn) { - this.bgpAsn = bgpAsn; - return this; - } - - /** - * BGP模式AS号 - * @return bgpAsn - */ - public Long getBgpAsn() { - return bgpAsn; - } - - public void setBgpAsn(Long bgpAsn) { - this.bgpAsn = bgpAsn; - } - - public ExternalShowGlobalDcGateway withRegionId(String regionId) { - this.regionId = regionId; - return this; - } - - /** - * 局点ID - * @return regionId - */ - public String getRegionId() { - return regionId; - } - - public void setRegionId(String regionId) { - this.regionId = regionId; - } - - public ExternalShowGlobalDcGateway withLocationName(String locationName) { - this.locationName = locationName; - return this; - } - - /** - * 位置名称 - * @return locationName - */ - public String getLocationName() { - return locationName; - } - - public void setLocationName(String locationName) { - this.locationName = locationName; - } - - public ExternalShowGlobalDcGateway withLocales(Locale locales) { - this.locales = locales; - return this; - } - - public ExternalShowGlobalDcGateway withLocales(Consumer localesSetter) { - if (this.locales == null) { - this.locales = new Locale(); - localesSetter.accept(this.locales); - } - - return this; - } - - /** - * Get locales - * @return locales - */ - public Locale getLocales() { - return locales; - } - - public void setLocales(Locale locales) { - this.locales = locales; - } - - public ExternalShowGlobalDcGateway withCurrentPeerLinkCount(Integer currentPeerLinkCount) { - this.currentPeerLinkCount = currentPeerLinkCount; - return this; - } - - /** - * 当前对等体数量 - * @return currentPeerLinkCount - */ - public Integer getCurrentPeerLinkCount() { - return currentPeerLinkCount; - } - - public void setCurrentPeerLinkCount(Integer currentPeerLinkCount) { - this.currentPeerLinkCount = currentPeerLinkCount; - } - - public ExternalShowGlobalDcGateway withAvailablePeerLinkCount(Integer availablePeerLinkCount) { - this.availablePeerLinkCount = availablePeerLinkCount; - return this; - } - - /** - * 有效对等体数量 - * @return availablePeerLinkCount - */ - public Integer getAvailablePeerLinkCount() { - return availablePeerLinkCount; - } - - public void setAvailablePeerLinkCount(Integer availablePeerLinkCount) { - this.availablePeerLinkCount = availablePeerLinkCount; - } - - public ExternalShowGlobalDcGateway withAdminStateUp(Boolean adminStateUp) { - this.adminStateUp = adminStateUp; - return this; - } - - /** - * 是否冻结:true-是,false-否 - * @return adminStateUp - */ - public Boolean getAdminStateUp() { - return adminStateUp; - } - - public void setAdminStateUp(Boolean adminStateUp) { - this.adminStateUp = adminStateUp; - } - - public ExternalShowGlobalDcGateway withStatus(String status) { - this.status = status; - return this; - } - - /** - * 状态:ACTIVE-正常,ERROR-异常 - * @return status - */ - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public ExternalShowGlobalDcGateway withCreatedTime(OffsetDateTime createdTime) { - this.createdTime = createdTime; - return this; - } - - /** - * 创建时间 - * @return createdTime - */ - public OffsetDateTime getCreatedTime() { - return createdTime; - } - - public void setCreatedTime(OffsetDateTime createdTime) { - this.createdTime = createdTime; - } - - public ExternalShowGlobalDcGateway withUpdatedTime(OffsetDateTime updatedTime) { - this.updatedTime = updatedTime; - return this; - } - - /** - * 更新时间 - * @return updatedTime - */ - public OffsetDateTime getUpdatedTime() { - return updatedTime; - } - - public void setUpdatedTime(OffsetDateTime updatedTime) { - this.updatedTime = updatedTime; - } - - public ExternalShowGlobalDcGateway withTags(Map tags) { - this.tags = tags; - return this; - } - - public ExternalShowGlobalDcGateway putTagsItem(String key, String tagsItem) { - if (this.tags == null) { - this.tags = new HashMap<>(); - } - this.tags.put(key, tagsItem); - return this; - } - - public ExternalShowGlobalDcGateway withTags(Consumer> tagsSetter) { - if (this.tags == null) { - this.tags = new HashMap<>(); - } - tagsSetter.accept(this.tags); - return this; - } - - /** - * 返回给RMS的资源标签 - * @return tags - */ - public Map getTags() { - return tags; - } - - public void setTags(Map tags) { - this.tags = tags; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ExternalShowGlobalDcGateway that = (ExternalShowGlobalDcGateway) obj; - return Objects.equals(this.id, that.id) && Objects.equals(this.tenantId, that.tenantId) - && Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) - && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) - && Objects.equals(this.globalCenterNetworkId, that.globalCenterNetworkId) - && Objects.equals(this.siteNetworkId, that.siteNetworkId) - && Objects.equals(this.cloudConnectionId, that.cloudConnectionId) - && Objects.equals(this.bgpAsn, that.bgpAsn) && Objects.equals(this.regionId, that.regionId) - && Objects.equals(this.locationName, that.locationName) && Objects.equals(this.locales, that.locales) - && Objects.equals(this.currentPeerLinkCount, that.currentPeerLinkCount) - && Objects.equals(this.availablePeerLinkCount, that.availablePeerLinkCount) - && Objects.equals(this.adminStateUp, that.adminStateUp) && Objects.equals(this.status, that.status) - && Objects.equals(this.createdTime, that.createdTime) && Objects.equals(this.updatedTime, that.updatedTime) - && Objects.equals(this.tags, that.tags); - } - - @Override - public int hashCode() { - return Objects.hash(id, - tenantId, - name, - description, - enterpriseProjectId, - globalCenterNetworkId, - siteNetworkId, - cloudConnectionId, - bgpAsn, - regionId, - locationName, - locales, - currentPeerLinkCount, - availablePeerLinkCount, - adminStateUp, - status, - createdTime, - updatedTime, - tags); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ExternalShowGlobalDcGateway {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); - sb.append(" globalCenterNetworkId: ").append(toIndentedString(globalCenterNetworkId)).append("\n"); - sb.append(" siteNetworkId: ").append(toIndentedString(siteNetworkId)).append("\n"); - sb.append(" cloudConnectionId: ").append(toIndentedString(cloudConnectionId)).append("\n"); - sb.append(" bgpAsn: ").append(toIndentedString(bgpAsn)).append("\n"); - sb.append(" regionId: ").append(toIndentedString(regionId)).append("\n"); - sb.append(" locationName: ").append(toIndentedString(locationName)).append("\n"); - sb.append(" locales: ").append(toIndentedString(locales)).append("\n"); - sb.append(" currentPeerLinkCount: ").append(toIndentedString(currentPeerLinkCount)).append("\n"); - sb.append(" availablePeerLinkCount: ").append(toIndentedString(availablePeerLinkCount)).append("\n"); - sb.append(" adminStateUp: ").append(toIndentedString(adminStateUp)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" createdTime: ").append(toIndentedString(createdTime)).append("\n"); - sb.append(" updatedTime: ").append(toIndentedString(updatedTime)).append("\n"); - sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalUpdateGlobalDcGateway.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalUpdateGlobalDcGateway.java deleted file mode 100644 index 8aaafd0f58..0000000000 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalUpdateGlobalDcGateway.java +++ /dev/null @@ -1,468 +0,0 @@ -package com.huaweicloud.sdk.dc.v3.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.time.OffsetDateTime; -import java.util.Objects; - -/** - * 修改响应体对象 - */ -public class ExternalUpdateGlobalDcGateway { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "id") - - private String id; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "tenant_id") - - private String tenantId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "name") - - private String name; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "description") - - private String description; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "enterprise_project_id") - - private String enterpriseProjectId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "global_center_network_id") - - private String globalCenterNetworkId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "site_network_id") - - private String siteNetworkId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "cloud_connection_id") - - private String cloudConnectionId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "bgp_asn") - - private Long bgpAsn; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "region_id") - - private String regionId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "location_name") - - private String locationName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "current_peer_link_count") - - private Integer currentPeerLinkCount; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "available_peer_link_count") - - private Integer availablePeerLinkCount; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "admin_state_up") - - private Boolean adminStateUp; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "status") - - private String status; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "created_time") - - private OffsetDateTime createdTime; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "updated_time") - - private OffsetDateTime updatedTime; - - public ExternalUpdateGlobalDcGateway 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 ExternalUpdateGlobalDcGateway withTenantId(String tenantId) { - this.tenantId = tenantId; - return this; - } - - /** - * 租户ID - * @return tenantId - */ - public String getTenantId() { - return tenantId; - } - - public void setTenantId(String tenantId) { - this.tenantId = tenantId; - } - - public ExternalUpdateGlobalDcGateway withName(String name) { - this.name = name; - return this; - } - - /** - * 名称 - * @return name - */ - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public ExternalUpdateGlobalDcGateway withDescription(String description) { - this.description = description; - return this; - } - - /** - * 描述信息 - * @return description - */ - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public ExternalUpdateGlobalDcGateway withEnterpriseProjectId(String enterpriseProjectId) { - this.enterpriseProjectId = enterpriseProjectId; - return this; - } - - /** - * 企业项目ID - * @return enterpriseProjectId - */ - public String getEnterpriseProjectId() { - return enterpriseProjectId; - } - - public void setEnterpriseProjectId(String enterpriseProjectId) { - this.enterpriseProjectId = enterpriseProjectId; - } - - public ExternalUpdateGlobalDcGateway withGlobalCenterNetworkId(String globalCenterNetworkId) { - this.globalCenterNetworkId = globalCenterNetworkId; - return this; - } - - /** - * 全球中心网络ID - * @return globalCenterNetworkId - */ - public String getGlobalCenterNetworkId() { - return globalCenterNetworkId; - } - - public void setGlobalCenterNetworkId(String globalCenterNetworkId) { - this.globalCenterNetworkId = globalCenterNetworkId; - } - - public ExternalUpdateGlobalDcGateway withSiteNetworkId(String siteNetworkId) { - this.siteNetworkId = siteNetworkId; - return this; - } - - /** - * 站点网络ID - * @return siteNetworkId - */ - public String getSiteNetworkId() { - return siteNetworkId; - } - - public void setSiteNetworkId(String siteNetworkId) { - this.siteNetworkId = siteNetworkId; - } - - public ExternalUpdateGlobalDcGateway withCloudConnectionId(String cloudConnectionId) { - this.cloudConnectionId = cloudConnectionId; - return this; - } - - /** - * 云连接ID - * @return cloudConnectionId - */ - public String getCloudConnectionId() { - return cloudConnectionId; - } - - public void setCloudConnectionId(String cloudConnectionId) { - this.cloudConnectionId = cloudConnectionId; - } - - public ExternalUpdateGlobalDcGateway withBgpAsn(Long bgpAsn) { - this.bgpAsn = bgpAsn; - return this; - } - - /** - * BGP模式的AS号 - * @return bgpAsn - */ - public Long getBgpAsn() { - return bgpAsn; - } - - public void setBgpAsn(Long bgpAsn) { - this.bgpAsn = bgpAsn; - } - - public ExternalUpdateGlobalDcGateway withRegionId(String regionId) { - this.regionId = regionId; - return this; - } - - /** - * 租户ID - * @return regionId - */ - public String getRegionId() { - return regionId; - } - - public void setRegionId(String regionId) { - this.regionId = regionId; - } - - public ExternalUpdateGlobalDcGateway withLocationName(String locationName) { - this.locationName = locationName; - return this; - } - - /** - * 位置名称 - * @return locationName - */ - public String getLocationName() { - return locationName; - } - - public void setLocationName(String locationName) { - this.locationName = locationName; - } - - public ExternalUpdateGlobalDcGateway withCurrentPeerLinkCount(Integer currentPeerLinkCount) { - this.currentPeerLinkCount = currentPeerLinkCount; - return this; - } - - /** - * 当前对等体数量 - * @return currentPeerLinkCount - */ - public Integer getCurrentPeerLinkCount() { - return currentPeerLinkCount; - } - - public void setCurrentPeerLinkCount(Integer currentPeerLinkCount) { - this.currentPeerLinkCount = currentPeerLinkCount; - } - - public ExternalUpdateGlobalDcGateway withAvailablePeerLinkCount(Integer availablePeerLinkCount) { - this.availablePeerLinkCount = availablePeerLinkCount; - return this; - } - - /** - * 有效对等体数量 - * @return availablePeerLinkCount - */ - public Integer getAvailablePeerLinkCount() { - return availablePeerLinkCount; - } - - public void setAvailablePeerLinkCount(Integer availablePeerLinkCount) { - this.availablePeerLinkCount = availablePeerLinkCount; - } - - public ExternalUpdateGlobalDcGateway withAdminStateUp(Boolean adminStateUp) { - this.adminStateUp = adminStateUp; - return this; - } - - /** - * 是否冻结:true-是,false-否 - * @return adminStateUp - */ - public Boolean getAdminStateUp() { - return adminStateUp; - } - - public void setAdminStateUp(Boolean adminStateUp) { - this.adminStateUp = adminStateUp; - } - - public ExternalUpdateGlobalDcGateway withStatus(String status) { - this.status = status; - return this; - } - - /** - * 状态: ACTIVE-正常,ERROR-异常 - * @return status - */ - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public ExternalUpdateGlobalDcGateway withCreatedTime(OffsetDateTime createdTime) { - this.createdTime = createdTime; - return this; - } - - /** - * 创建时间 - * @return createdTime - */ - public OffsetDateTime getCreatedTime() { - return createdTime; - } - - public void setCreatedTime(OffsetDateTime createdTime) { - this.createdTime = createdTime; - } - - public ExternalUpdateGlobalDcGateway withUpdatedTime(OffsetDateTime updatedTime) { - this.updatedTime = updatedTime; - return this; - } - - /** - * 修改时间 - * @return updatedTime - */ - public OffsetDateTime getUpdatedTime() { - return updatedTime; - } - - public void setUpdatedTime(OffsetDateTime updatedTime) { - this.updatedTime = updatedTime; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ExternalUpdateGlobalDcGateway that = (ExternalUpdateGlobalDcGateway) obj; - return Objects.equals(this.id, that.id) && Objects.equals(this.tenantId, that.tenantId) - && Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) - && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) - && Objects.equals(this.globalCenterNetworkId, that.globalCenterNetworkId) - && Objects.equals(this.siteNetworkId, that.siteNetworkId) - && Objects.equals(this.cloudConnectionId, that.cloudConnectionId) - && Objects.equals(this.bgpAsn, that.bgpAsn) && Objects.equals(this.regionId, that.regionId) - && Objects.equals(this.locationName, that.locationName) - && Objects.equals(this.currentPeerLinkCount, that.currentPeerLinkCount) - && Objects.equals(this.availablePeerLinkCount, that.availablePeerLinkCount) - && Objects.equals(this.adminStateUp, that.adminStateUp) && Objects.equals(this.status, that.status) - && Objects.equals(this.createdTime, that.createdTime) && Objects.equals(this.updatedTime, that.updatedTime); - } - - @Override - public int hashCode() { - return Objects.hash(id, - tenantId, - name, - description, - enterpriseProjectId, - globalCenterNetworkId, - siteNetworkId, - cloudConnectionId, - bgpAsn, - regionId, - locationName, - currentPeerLinkCount, - availablePeerLinkCount, - adminStateUp, - status, - createdTime, - updatedTime); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ExternalUpdateGlobalDcGateway {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); - sb.append(" globalCenterNetworkId: ").append(toIndentedString(globalCenterNetworkId)).append("\n"); - sb.append(" siteNetworkId: ").append(toIndentedString(siteNetworkId)).append("\n"); - sb.append(" cloudConnectionId: ").append(toIndentedString(cloudConnectionId)).append("\n"); - sb.append(" bgpAsn: ").append(toIndentedString(bgpAsn)).append("\n"); - sb.append(" regionId: ").append(toIndentedString(regionId)).append("\n"); - sb.append(" locationName: ").append(toIndentedString(locationName)).append("\n"); - sb.append(" currentPeerLinkCount: ").append(toIndentedString(currentPeerLinkCount)).append("\n"); - sb.append(" availablePeerLinkCount: ").append(toIndentedString(availablePeerLinkCount)).append("\n"); - sb.append(" adminStateUp: ").append(toIndentedString(adminStateUp)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" createdTime: ").append(toIndentedString(createdTime)).append("\n"); - sb.append(" updatedTime: ").append(toIndentedString(updatedTime)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalUpdatePeerLink.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalUpdatePeerLink.java index 20d4744708..1378887aa9 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalUpdatePeerLink.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalUpdatePeerLink.java @@ -8,7 +8,7 @@ import java.util.function.Consumer; /** - * ExternalUpdatePeerLink + * 更新的请求体信息 */ public class ExternalUpdatePeerLink { @@ -73,7 +73,7 @@ public ExternalUpdatePeerLink withId(String id) { } /** - * Get id + * 关联连接的ID * @return id */ public String getId() { @@ -90,7 +90,7 @@ public ExternalUpdatePeerLink withTenantId(String tenantId) { } /** - * Get tenantId + * 关联连接归属的租户ID * @return tenantId */ public String getTenantId() { @@ -107,7 +107,7 @@ public ExternalUpdatePeerLink withName(String name) { } /** - * Get name + * 关联连接的名字 * @return name */ public String getName() { @@ -124,7 +124,7 @@ public ExternalUpdatePeerLink withDescription(String description) { } /** - * Get description + * 关联连接的描述信息 * @return description */ public String getDescription() { @@ -141,7 +141,7 @@ public ExternalUpdatePeerLink withGlobalDcGatewayId(String globalDcGatewayId) { } /** - * Get globalDcGatewayId + * 关联连接归属的接入网关ID * @return globalDcGatewayId */ public String getGlobalDcGatewayId() { @@ -210,7 +210,7 @@ public ExternalUpdatePeerLink withStatus(String status) { } /** - * Get status + * 关联连接的状态 * @return status */ public String getStatus() { @@ -227,7 +227,7 @@ public ExternalUpdatePeerLink withReason(String reason) { } /** - * Get reason + * 失败原因 * @return reason */ public String getReason() { @@ -244,7 +244,7 @@ public ExternalUpdatePeerLink withCreatedTime(OffsetDateTime createdTime) { } /** - * Get createdTime + * 创建时间 * @return createdTime */ public OffsetDateTime getCreatedTime() { @@ -261,7 +261,7 @@ public ExternalUpdatePeerLink withUpdatedTime(OffsetDateTime updatedTime) { } /** - * Get updatedTime + * 更新时间 * @return updatedTime */ public OffsetDateTime getUpdatedTime() { diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGdgwRoutetableRequestBodyGdgwRoutetable.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/GdgwRouteTableRequest.java similarity index 54% rename from services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGdgwRoutetableRequestBodyGdgwRoutetable.java rename to services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/GdgwRouteTableRequest.java index 0ed215857e..9ea645001c 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGdgwRoutetableRequestBodyGdgwRoutetable.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/GdgwRouteTableRequest.java @@ -9,33 +9,31 @@ import java.util.function.Consumer; /** - * UpdateGdgwRoutetableRequestBodyGdgwRoutetable + * GdgwRouteTableRequest */ -public class UpdateGdgwRoutetableRequestBodyGdgwRoutetable { +public class GdgwRouteTableRequest { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "add_routes") - private List addRoutes = null; + private List addRoutes = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "del_routes") - private List delRoutes = null; + private List delRoutes = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "update_routes") - private List updateRoutes = null; + private List updateRoutes = null; - public UpdateGdgwRoutetableRequestBodyGdgwRoutetable withAddRoutes( - List addRoutes) { + public GdgwRouteTableRequest withAddRoutes(List addRoutes) { this.addRoutes = addRoutes; return this; } - public UpdateGdgwRoutetableRequestBodyGdgwRoutetable addAddRoutesItem( - UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes addRoutesItem) { + public GdgwRouteTableRequest addAddRoutesItem(AddGdgwRouteAction addRoutesItem) { if (this.addRoutes == null) { this.addRoutes = new ArrayList<>(); } @@ -43,8 +41,7 @@ public UpdateGdgwRoutetableRequestBodyGdgwRoutetable addAddRoutesItem( return this; } - public UpdateGdgwRoutetableRequestBodyGdgwRoutetable withAddRoutes( - Consumer> addRoutesSetter) { + public GdgwRouteTableRequest withAddRoutes(Consumer> addRoutesSetter) { if (this.addRoutes == null) { this.addRoutes = new ArrayList<>(); } @@ -53,25 +50,23 @@ public UpdateGdgwRoutetableRequestBodyGdgwRoutetable withAddRoutes( } /** - * Get addRoutes + * 需要添加的路由 * @return addRoutes */ - public List getAddRoutes() { + public List getAddRoutes() { return addRoutes; } - public void setAddRoutes(List addRoutes) { + public void setAddRoutes(List addRoutes) { this.addRoutes = addRoutes; } - public UpdateGdgwRoutetableRequestBodyGdgwRoutetable withDelRoutes( - List delRoutes) { + public GdgwRouteTableRequest withDelRoutes(List delRoutes) { this.delRoutes = delRoutes; return this; } - public UpdateGdgwRoutetableRequestBodyGdgwRoutetable addDelRoutesItem( - UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes delRoutesItem) { + public GdgwRouteTableRequest addDelRoutesItem(DeleteGdgwRouteAction delRoutesItem) { if (this.delRoutes == null) { this.delRoutes = new ArrayList<>(); } @@ -79,8 +74,7 @@ public UpdateGdgwRoutetableRequestBodyGdgwRoutetable addDelRoutesItem( return this; } - public UpdateGdgwRoutetableRequestBodyGdgwRoutetable withDelRoutes( - Consumer> delRoutesSetter) { + public GdgwRouteTableRequest withDelRoutes(Consumer> delRoutesSetter) { if (this.delRoutes == null) { this.delRoutes = new ArrayList<>(); } @@ -89,25 +83,23 @@ public UpdateGdgwRoutetableRequestBodyGdgwRoutetable withDelRoutes( } /** - * 删除的路由 + * 需要删除的路由 * @return delRoutes */ - public List getDelRoutes() { + public List getDelRoutes() { return delRoutes; } - public void setDelRoutes(List delRoutes) { + public void setDelRoutes(List delRoutes) { this.delRoutes = delRoutes; } - public UpdateGdgwRoutetableRequestBodyGdgwRoutetable withUpdateRoutes( - List updateRoutes) { + public GdgwRouteTableRequest withUpdateRoutes(List updateRoutes) { this.updateRoutes = updateRoutes; return this; } - public UpdateGdgwRoutetableRequestBodyGdgwRoutetable addUpdateRoutesItem( - UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes updateRoutesItem) { + public GdgwRouteTableRequest addUpdateRoutesItem(UpdateRouteAction updateRoutesItem) { if (this.updateRoutes == null) { this.updateRoutes = new ArrayList<>(); } @@ -115,8 +107,7 @@ public UpdateGdgwRoutetableRequestBodyGdgwRoutetable addUpdateRoutesItem( return this; } - public UpdateGdgwRoutetableRequestBodyGdgwRoutetable withUpdateRoutes( - Consumer> updateRoutesSetter) { + public GdgwRouteTableRequest withUpdateRoutes(Consumer> updateRoutesSetter) { if (this.updateRoutes == null) { this.updateRoutes = new ArrayList<>(); } @@ -125,14 +116,14 @@ public UpdateGdgwRoutetableRequestBodyGdgwRoutetable withUpdateRoutes( } /** - * 仅更新该条路由的附加信息,不执行交换机的路由更新操作。当前支持更新:路由描述-description信息 + * 需要更新的路 **仅更新该条路由的附加信息,不执行交换机的路由更新操作。当前支持更新:路由描述-description信息** * @return updateRoutes */ - public List getUpdateRoutes() { + public List getUpdateRoutes() { return updateRoutes; } - public void setUpdateRoutes(List updateRoutes) { + public void setUpdateRoutes(List updateRoutes) { this.updateRoutes = updateRoutes; } @@ -144,7 +135,7 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - UpdateGdgwRoutetableRequestBodyGdgwRoutetable that = (UpdateGdgwRoutetableRequestBodyGdgwRoutetable) obj; + GdgwRouteTableRequest that = (GdgwRouteTableRequest) obj; return Objects.equals(this.addRoutes, that.addRoutes) && Objects.equals(this.delRoutes, that.delRoutes) && Objects.equals(this.updateRoutes, that.updateRoutes); } @@ -157,7 +148,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UpdateGdgwRoutetableRequestBodyGdgwRoutetable {\n"); + sb.append("class GdgwRouteTableRequest {\n"); sb.append(" addRoutes: ").append(toIndentedString(addRoutes)).append("\n"); sb.append(" delRoutes: ").append(toIndentedString(delRoutes)).append("\n"); sb.append(" updateRoutes: ").append(toIndentedString(updateRoutes)).append("\n"); diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalListGlobalDcGateways.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/GlobalDcGatewayEntry.java similarity index 65% rename from services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalListGlobalDcGateways.java rename to services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/GlobalDcGatewayEntry.java index 7b476d2790..d362b822e3 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalListGlobalDcGateways.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/GlobalDcGatewayEntry.java @@ -1,18 +1,23 @@ package com.huaweicloud.sdk.dc.v3.model; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Consumer; /** - * ExternalListGlobalDcGateways + * global-dc-gateway详情。 */ -public class ExternalListGlobalDcGateways { +public class GlobalDcGatewayEntry { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") @@ -44,16 +49,6 @@ public class ExternalListGlobalDcGateways { private String globalCenterNetworkId; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "site_network_id") - - private String siteNetworkId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "cloud_connection_id") - - private String cloudConnectionId; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "bgp_asn") @@ -69,40 +64,35 @@ public class ExternalListGlobalDcGateways { private String locationName; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "address_family") - - private String addressFamily; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "locales") - private Locale locales; + private LocalesBody locales; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "current_peer_link_count") - private Integer currentPeerLinkCount; + private String currentPeerLinkCount; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "available_peer_link_count") - private Integer availablePeerLinkCount; + private String availablePeerLinkCount; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "admin_state_up") + @JsonProperty(value = "tags") - private Boolean adminStateUp; + private List tags = null; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "status") + @JsonProperty(value = "admin_state_up") - private String status; + private Boolean adminStateUp; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "reason") + @JsonProperty(value = "status") - private String reason; + private GlobalDcGatewayStatus status; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "created_time") @@ -114,18 +104,88 @@ public class ExternalListGlobalDcGateways { private OffsetDateTime updatedTime; + /** + * 网关的地址簇,IPv4或者ipv6和IPv4双栈 - ipv4 - dual + */ + public static final class AddressFamilyEnum { + + /** + * Enum IPV4 for value: "ipv4" + */ + public static final AddressFamilyEnum IPV4 = new AddressFamilyEnum("ipv4"); + + /** + * Enum DUAL for value: "dual" + */ + public static final AddressFamilyEnum DUAL = new AddressFamilyEnum("dual"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("ipv4", IPV4); + map.put("dual", DUAL); + return Collections.unmodifiableMap(map); + } + + private String value; + + AddressFamilyEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AddressFamilyEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new AddressFamilyEnum(value)); + } + + public static AddressFamilyEnum 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 AddressFamilyEnum) { + return this.value.equals(((AddressFamilyEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "tags") + @JsonProperty(value = "address_family") - private List tags = null; + private AddressFamilyEnum addressFamily; - public ExternalListGlobalDcGateways withId(String id) { + public GlobalDcGatewayEntry withId(String id) { this.id = id; return this; } /** - * 唯一ID + * 专线全域接入网关(global-dc-gateway)ID * @return id */ public String getId() { @@ -136,13 +196,13 @@ public void setId(String id) { this.id = id; } - public ExternalListGlobalDcGateways withTenantId(String tenantId) { + public GlobalDcGatewayEntry withTenantId(String tenantId) { this.tenantId = tenantId; return this; } /** - * 租户ID + * 项目ID。 * @return tenantId */ public String getTenantId() { @@ -153,13 +213,13 @@ public void setTenantId(String tenantId) { this.tenantId = tenantId; } - public ExternalListGlobalDcGateways withName(String name) { + public GlobalDcGatewayEntry withName(String name) { this.name = name; return this; } /** - * 名称 + * global-dc-gateway名字。 * @return name */ public String getName() { @@ -170,7 +230,7 @@ public void setName(String name) { this.name = name; } - public ExternalListGlobalDcGateways withDescription(String description) { + public GlobalDcGatewayEntry withDescription(String description) { this.description = description; return this; } @@ -187,13 +247,13 @@ public void setDescription(String description) { this.description = description; } - public ExternalListGlobalDcGateways withEnterpriseProjectId(String enterpriseProjectId) { + public GlobalDcGatewayEntry withEnterpriseProjectId(String enterpriseProjectId) { this.enterpriseProjectId = enterpriseProjectId; return this; } /** - * 企业项目ID + * global-dc-gateway所属的企业项目ID。 * @return enterpriseProjectId */ public String getEnterpriseProjectId() { @@ -204,13 +264,13 @@ public void setEnterpriseProjectId(String enterpriseProjectId) { this.enterpriseProjectId = enterpriseProjectId; } - public ExternalListGlobalDcGateways withGlobalCenterNetworkId(String globalCenterNetworkId) { + public GlobalDcGatewayEntry withGlobalCenterNetworkId(String globalCenterNetworkId) { this.globalCenterNetworkId = globalCenterNetworkId; return this; } /** - * 全球中心网络ID + * DGW加载的全球中心网络实例的ID * @return globalCenterNetworkId */ public String getGlobalCenterNetworkId() { @@ -221,47 +281,15 @@ public void setGlobalCenterNetworkId(String globalCenterNetworkId) { this.globalCenterNetworkId = globalCenterNetworkId; } - public ExternalListGlobalDcGateways withSiteNetworkId(String siteNetworkId) { - this.siteNetworkId = siteNetworkId; - return this; - } - - /** - * 站点网络ID - * @return siteNetworkId - */ - public String getSiteNetworkId() { - return siteNetworkId; - } - - public void setSiteNetworkId(String siteNetworkId) { - this.siteNetworkId = siteNetworkId; - } - - public ExternalListGlobalDcGateways withCloudConnectionId(String cloudConnectionId) { - this.cloudConnectionId = cloudConnectionId; - return this; - } - - /** - * 云连接ID - * @return cloudConnectionId - */ - public String getCloudConnectionId() { - return cloudConnectionId; - } - - public void setCloudConnectionId(String cloudConnectionId) { - this.cloudConnectionId = cloudConnectionId; - } - - public ExternalListGlobalDcGateways withBgpAsn(Long bgpAsn) { + public GlobalDcGatewayEntry withBgpAsn(Long bgpAsn) { this.bgpAsn = bgpAsn; return this; } /** - * BGP模式的AS号 + * DGW对应BGP的ASN编号 + * minimum: 0 + * maximum: 65535 * @return bgpAsn */ public Long getBgpAsn() { @@ -272,13 +300,13 @@ public void setBgpAsn(Long bgpAsn) { this.bgpAsn = bgpAsn; } - public ExternalListGlobalDcGateways withRegionId(String regionId) { + public GlobalDcGatewayEntry withRegionId(String regionId) { this.regionId = regionId; return this; } /** - * 局点ID + * DGW所属Region * @return regionId */ public String getRegionId() { @@ -289,13 +317,13 @@ public void setRegionId(String regionId) { this.regionId = regionId; } - public ExternalListGlobalDcGateways withLocationName(String locationName) { + public GlobalDcGatewayEntry withLocationName(String locationName) { this.locationName = locationName; return this; } /** - * 位置名称 + * DGW创建网关设备归属的位置 * @return locationName */ public String getLocationName() { @@ -306,31 +334,14 @@ public void setLocationName(String locationName) { this.locationName = locationName; } - public ExternalListGlobalDcGateways withAddressFamily(String addressFamily) { - this.addressFamily = addressFamily; - return this; - } - - /** - * 地址簇 - * @return addressFamily - */ - public String getAddressFamily() { - return addressFamily; - } - - public void setAddressFamily(String addressFamily) { - this.addressFamily = addressFamily; - } - - public ExternalListGlobalDcGateways withLocales(Locale locales) { + public GlobalDcGatewayEntry withLocales(LocalesBody locales) { this.locales = locales; return this; } - public ExternalListGlobalDcGateways withLocales(Consumer localesSetter) { + public GlobalDcGatewayEntry withLocales(Consumer localesSetter) { if (this.locales == null) { - this.locales = new Locale(); + this.locales = new LocalesBody(); localesSetter.accept(this.locales); } @@ -341,55 +352,88 @@ public ExternalListGlobalDcGateways withLocales(Consumer localesSetter) * Get locales * @return locales */ - public Locale getLocales() { + public LocalesBody getLocales() { return locales; } - public void setLocales(Locale locales) { + public void setLocales(LocalesBody locales) { this.locales = locales; } - public ExternalListGlobalDcGateways withCurrentPeerLinkCount(Integer currentPeerLinkCount) { + public GlobalDcGatewayEntry withCurrentPeerLinkCount(String currentPeerLinkCount) { this.currentPeerLinkCount = currentPeerLinkCount; return this; } /** - * 当前对等体数量 + * 全域接入网关(GDGW)上关联连接的数量,表示DGW挂载ER的数量 * @return currentPeerLinkCount */ - public Integer getCurrentPeerLinkCount() { + public String getCurrentPeerLinkCount() { return currentPeerLinkCount; } - public void setCurrentPeerLinkCount(Integer currentPeerLinkCount) { + public void setCurrentPeerLinkCount(String currentPeerLinkCount) { this.currentPeerLinkCount = currentPeerLinkCount; } - public ExternalListGlobalDcGateways withAvailablePeerLinkCount(Integer availablePeerLinkCount) { + public GlobalDcGatewayEntry withAvailablePeerLinkCount(String availablePeerLinkCount) { this.availablePeerLinkCount = availablePeerLinkCount; return this; } /** - * 有效对等体数量 + * 该全域接入网关上GDGW允许创建关联连接(PeerLink)的数量 * @return availablePeerLinkCount */ - public Integer getAvailablePeerLinkCount() { + public String getAvailablePeerLinkCount() { return availablePeerLinkCount; } - public void setAvailablePeerLinkCount(Integer availablePeerLinkCount) { + public void setAvailablePeerLinkCount(String availablePeerLinkCount) { this.availablePeerLinkCount = availablePeerLinkCount; } - public ExternalListGlobalDcGateways withAdminStateUp(Boolean adminStateUp) { + public GlobalDcGatewayEntry withTags(List tags) { + this.tags = tags; + return this; + } + + public GlobalDcGatewayEntry addTagsItem(Tag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public GlobalDcGatewayEntry withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * global-dc-gateway关联TAG。 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public GlobalDcGatewayEntry withAdminStateUp(Boolean adminStateUp) { this.adminStateUp = adminStateUp; return this; } /** - * 是否冻结: true-是,false-否 + * 该GDGW的管理状态,true为激活状态、false为冻结状态 * @return adminStateUp */ public Boolean getAdminStateUp() { @@ -400,47 +444,30 @@ public void setAdminStateUp(Boolean adminStateUp) { this.adminStateUp = adminStateUp; } - public ExternalListGlobalDcGateways withStatus(String status) { + public GlobalDcGatewayEntry withStatus(GlobalDcGatewayStatus status) { this.status = status; return this; } /** - * 状态: ACTIVE-正常,ERROR-异常 + * Get status * @return status */ - public String getStatus() { + public GlobalDcGatewayStatus getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(GlobalDcGatewayStatus status) { this.status = status; } - public ExternalListGlobalDcGateways withReason(String reason) { - this.reason = reason; - return this; - } - - /** - * 失败原因 - * @return reason - */ - public String getReason() { - return reason; - } - - public void setReason(String reason) { - this.reason = reason; - } - - public ExternalListGlobalDcGateways withCreatedTime(OffsetDateTime createdTime) { + public GlobalDcGatewayEntry withCreatedTime(OffsetDateTime createdTime) { this.createdTime = createdTime; return this; } /** - * 创建时间 + * 创建时间。 * @return createdTime */ public OffsetDateTime getCreatedTime() { @@ -451,13 +478,13 @@ public void setCreatedTime(OffsetDateTime createdTime) { this.createdTime = createdTime; } - public ExternalListGlobalDcGateways withUpdatedTime(OffsetDateTime updatedTime) { + public GlobalDcGatewayEntry withUpdatedTime(OffsetDateTime updatedTime) { this.updatedTime = updatedTime; return this; } /** - * 修改时间 + * 更新时间。 * @return updatedTime */ public OffsetDateTime getUpdatedTime() { @@ -468,37 +495,21 @@ public void setUpdatedTime(OffsetDateTime updatedTime) { this.updatedTime = updatedTime; } - public ExternalListGlobalDcGateways withTags(List tags) { - this.tags = tags; - return this; - } - - public ExternalListGlobalDcGateways addTagsItem(Tag tagsItem) { - if (this.tags == null) { - this.tags = new ArrayList<>(); - } - this.tags.add(tagsItem); - return this; - } - - public ExternalListGlobalDcGateways withTags(Consumer> tagsSetter) { - if (this.tags == null) { - this.tags = new ArrayList<>(); - } - tagsSetter.accept(this.tags); + public GlobalDcGatewayEntry withAddressFamily(AddressFamilyEnum addressFamily) { + this.addressFamily = addressFamily; return this; } /** - * 标签 - * @return tags + * 网关的地址簇,IPv4或者ipv6和IPv4双栈 - ipv4 - dual + * @return addressFamily */ - public List getTags() { - return tags; + public AddressFamilyEnum getAddressFamily() { + return addressFamily; } - public void setTags(List tags) { - this.tags = tags; + public void setAddressFamily(AddressFamilyEnum addressFamily) { + this.addressFamily = addressFamily; } @Override @@ -509,21 +520,19 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - ExternalListGlobalDcGateways that = (ExternalListGlobalDcGateways) obj; + GlobalDcGatewayEntry that = (GlobalDcGatewayEntry) obj; return Objects.equals(this.id, that.id) && Objects.equals(this.tenantId, that.tenantId) && Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) && Objects.equals(this.globalCenterNetworkId, that.globalCenterNetworkId) - && Objects.equals(this.siteNetworkId, that.siteNetworkId) - && Objects.equals(this.cloudConnectionId, that.cloudConnectionId) && Objects.equals(this.bgpAsn, that.bgpAsn) && Objects.equals(this.regionId, that.regionId) - && Objects.equals(this.locationName, that.locationName) - && Objects.equals(this.addressFamily, that.addressFamily) && Objects.equals(this.locales, that.locales) + && Objects.equals(this.locationName, that.locationName) && Objects.equals(this.locales, that.locales) && Objects.equals(this.currentPeerLinkCount, that.currentPeerLinkCount) && Objects.equals(this.availablePeerLinkCount, that.availablePeerLinkCount) - && Objects.equals(this.adminStateUp, that.adminStateUp) && Objects.equals(this.status, that.status) - && Objects.equals(this.reason, that.reason) && Objects.equals(this.createdTime, that.createdTime) - && Objects.equals(this.updatedTime, that.updatedTime) && Objects.equals(this.tags, that.tags); + && Objects.equals(this.tags, that.tags) && Objects.equals(this.adminStateUp, that.adminStateUp) + && Objects.equals(this.status, that.status) && Objects.equals(this.createdTime, that.createdTime) + && Objects.equals(this.updatedTime, that.updatedTime) + && Objects.equals(this.addressFamily, that.addressFamily); } @Override @@ -534,48 +543,42 @@ public int hashCode() { description, enterpriseProjectId, globalCenterNetworkId, - siteNetworkId, - cloudConnectionId, bgpAsn, regionId, locationName, - addressFamily, locales, currentPeerLinkCount, availablePeerLinkCount, + tags, adminStateUp, status, - reason, createdTime, updatedTime, - tags); + addressFamily); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ExternalListGlobalDcGateways {\n"); + sb.append("class GlobalDcGatewayEntry {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); sb.append(" globalCenterNetworkId: ").append(toIndentedString(globalCenterNetworkId)).append("\n"); - sb.append(" siteNetworkId: ").append(toIndentedString(siteNetworkId)).append("\n"); - sb.append(" cloudConnectionId: ").append(toIndentedString(cloudConnectionId)).append("\n"); sb.append(" bgpAsn: ").append(toIndentedString(bgpAsn)).append("\n"); sb.append(" regionId: ").append(toIndentedString(regionId)).append("\n"); sb.append(" locationName: ").append(toIndentedString(locationName)).append("\n"); - sb.append(" addressFamily: ").append(toIndentedString(addressFamily)).append("\n"); sb.append(" locales: ").append(toIndentedString(locales)).append("\n"); sb.append(" currentPeerLinkCount: ").append(toIndentedString(currentPeerLinkCount)).append("\n"); sb.append(" availablePeerLinkCount: ").append(toIndentedString(availablePeerLinkCount)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" adminStateUp: ").append(toIndentedString(adminStateUp)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" createdTime: ").append(toIndentedString(createdTime)).append("\n"); sb.append(" updatedTime: ").append(toIndentedString(updatedTime)).append("\n"); - sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" addressFamily: ").append(toIndentedString(addressFamily)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/GlobalDcGatewayStatus.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/GlobalDcGatewayStatus.java new file mode 100644 index 0000000000..4634481d14 --- /dev/null +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/GlobalDcGatewayStatus.java @@ -0,0 +1,90 @@ +package com.huaweicloud.sdk.dc.v3.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; + +/** + * GDGW资源状态,DOWN (未连接状态), PENDING_UPDATE(连接状态更新中),ACTIVE (已连接状态), ERROR (出错)。 + */ +public class GlobalDcGatewayStatus { + + /** + * Enum DOWN for value: "DOWN" + */ + public static final GlobalDcGatewayStatus DOWN = new GlobalDcGatewayStatus("DOWN"); + + /** + * Enum PENDING_UPDATE for value: "PENDING_UPDATE" + */ + public static final GlobalDcGatewayStatus PENDING_UPDATE = new GlobalDcGatewayStatus("PENDING_UPDATE"); + + /** + * Enum ACTIVE for value: "ACTIVE" + */ + public static final GlobalDcGatewayStatus ACTIVE = new GlobalDcGatewayStatus("ACTIVE"); + + /** + * Enum ERROR for value: "ERROR" + */ + public static final GlobalDcGatewayStatus ERROR = new GlobalDcGatewayStatus("ERROR"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("DOWN", DOWN); + map.put("PENDING_UPDATE", PENDING_UPDATE); + map.put("ACTIVE", ACTIVE); + map.put("ERROR", ERROR); + return Collections.unmodifiableMap(map); + } + + private String value; + + GlobalDcGatewayStatus(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static GlobalDcGatewayStatus fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new GlobalDcGatewayStatus(value)); + } + + public static GlobalDcGatewayStatus 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 GlobalDcGatewayStatus) { + return this.value.equals(((GlobalDcGatewayStatus) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } +} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/HostedDirectConnect.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/HostedDirectConnect.java index d8ca81c6fd..a6c501b4ec 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/HostedDirectConnect.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/HostedDirectConnect.java @@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; import java.util.Collections; import java.util.HashMap; import java.util.Map; @@ -71,7 +72,7 @@ public class HostedDirectConnect { private Integer vlan; /** - * 操作状态,合法值是: BUILD:已开通 ACTIVE:虚拟网关正常 DOWN:专线对应的端口处于down的状态,可能存在线路故障等异常。 ERROR:虚拟网关异常 PENDING_DELETE:删除中 PENDING_UPDATE:更新中 PENDING_CREATE:创建中 + * 操作状态,合法值是: BUILD:已开通 ACTIVE:托管专线正常 DOWN:专线对应的端口处于down的状态,可能存在线路故障等异常。 ERROR:托管专线异常 PENDING_DELETE:删除中 PENDING_UPDATE:更新中 PENDING_CREATE:创建中 */ public static final class StatusEnum { @@ -178,15 +179,15 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "apply_time") - private String applyTime; + private OffsetDateTime applyTime; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "create_time") - private String createTime; + private OffsetDateTime createTime; /** - * 物理专线的运营商操作状态,合法值是:ACTIVE, DOWN + * 托管专线的运营商操作状态,合法值是:ACTIVE, DOWN */ public static final class ProviderStatusEnum { @@ -261,7 +262,7 @@ public int hashCode() { private ProviderStatusEnum providerStatus; /** - * 物理专线接入接口的类型,支持1G 10G 40G 100G + * 托管专线接入接口的类型,支持1G 10G 40G 100G */ public static final class PortTypeEnum { @@ -348,7 +349,7 @@ public int hashCode() { private PortTypeEnum portType; /** - * 物理专线的类型,类型包括标准(standard),运营专线(hosting),托管专线(hosted)[,一站式标准(onestop_standard),一站式托管(onestop_hosted)](tag:hws)。 + * 托管专线的类型,类型包括标准(standard),运营专线(hosting),托管专线(hosted)[,一站式标准(onestop_standard),一站式托管(onestop_hosted)](tag:hws)。 */ public static final class TypeEnum { @@ -480,7 +481,7 @@ public HostedDirectConnect withName(String name) { } /** - * 物理专线名字 + * 托管专线名字 * @return name */ public String getName() { @@ -497,7 +498,7 @@ public HostedDirectConnect withDescription(String description) { } /** - * 物理专线的描述信息 + * 托管专线的描述信息 * @return description */ public String getDescription() { @@ -514,7 +515,7 @@ public HostedDirectConnect withBandwidth(Integer bandwidth) { } /** - * 物理专线接入带宽,单位Mbps。 + * 托管专线接入带宽,单位Mbps。 * minimum: 2 * maximum: 400000 * @return bandwidth @@ -550,7 +551,7 @@ public HostedDirectConnect withPeerLocation(String peerLocation) { } /** - * 物理专线对端所在的物理位置,省/市/街道或IDC名字。 + * 托管专线对端所在的物理位置,省/市/街道或IDC名字。 * @return peerLocation */ public String getPeerLocation() { @@ -637,7 +638,7 @@ public HostedDirectConnect withStatus(StatusEnum status) { } /** - * 操作状态,合法值是: BUILD:已开通 ACTIVE:虚拟网关正常 DOWN:专线对应的端口处于down的状态,可能存在线路故障等异常。 ERROR:虚拟网关异常 PENDING_DELETE:删除中 PENDING_UPDATE:更新中 PENDING_CREATE:创建中 + * 操作状态,合法值是: BUILD:已开通 ACTIVE:托管专线正常 DOWN:专线对应的端口处于down的状态,可能存在线路故障等异常。 ERROR:托管专线异常 PENDING_DELETE:删除中 PENDING_UPDATE:更新中 PENDING_CREATE:创建中 * @return status */ public StatusEnum getStatus() { @@ -648,37 +649,37 @@ public void setStatus(StatusEnum status) { this.status = status; } - public HostedDirectConnect withApplyTime(String applyTime) { + public HostedDirectConnect withApplyTime(OffsetDateTime applyTime) { this.applyTime = applyTime; return this; } /** - * 物理专线申请时间 + * 托管专线申请时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ * @return applyTime */ - public String getApplyTime() { + public OffsetDateTime getApplyTime() { return applyTime; } - public void setApplyTime(String applyTime) { + public void setApplyTime(OffsetDateTime applyTime) { this.applyTime = applyTime; } - public HostedDirectConnect withCreateTime(String createTime) { + public HostedDirectConnect withCreateTime(OffsetDateTime createTime) { this.createTime = createTime; return this; } /** - * 物理专线创建时间 + * 托管专线创建时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ * @return createTime */ - public String getCreateTime() { + public OffsetDateTime getCreateTime() { return createTime; } - public void setCreateTime(String createTime) { + public void setCreateTime(OffsetDateTime createTime) { this.createTime = createTime; } @@ -688,7 +689,7 @@ public HostedDirectConnect withProviderStatus(ProviderStatusEnum providerStatus) } /** - * 物理专线的运营商操作状态,合法值是:ACTIVE, DOWN + * 托管专线的运营商操作状态,合法值是:ACTIVE, DOWN * @return providerStatus */ public ProviderStatusEnum getProviderStatus() { @@ -705,7 +706,7 @@ public HostedDirectConnect withPortType(PortTypeEnum portType) { } /** - * 物理专线接入接口的类型,支持1G 10G 40G 100G + * 托管专线接入接口的类型,支持1G 10G 40G 100G * @return portType */ public PortTypeEnum getPortType() { @@ -722,7 +723,7 @@ public HostedDirectConnect withType(TypeEnum type) { } /** - * 物理专线的类型,类型包括标准(standard),运营专线(hosting),托管专线(hosted)[,一站式标准(onestop_standard),一站式托管(onestop_hosted)](tag:hws)。 + * 托管专线的类型,类型包括标准(standard),运营专线(hosting),托管专线(hosted)[,一站式标准(onestop_standard),一站式托管(onestop_hosted)](tag:hws)。 * @return type */ public TypeEnum getType() { diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListBindingGeip.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListBindingGeip.java index 87e098ba5d..b0458913bc 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListBindingGeip.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListBindingGeip.java @@ -1,8 +1,13 @@ package com.huaweicloud.sdk.dc.v3.model; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -20,15 +25,155 @@ public class ListBindingGeip { private String globalEipSegmentId; + /** + * geip的绑定状态 + */ + public static final class StatusEnum { + + /** + * Enum ACTIVE for value: "ACTIVE" + */ + public static final StatusEnum ACTIVE = new StatusEnum("ACTIVE"); + + /** + * Enum ERROR for value: "ERROR" + */ + public static final StatusEnum ERROR = new StatusEnum("ERROR"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("ACTIVE", ACTIVE); + map.put("ERROR", ERROR); + 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; + + /** + * geip类型:IP_ADDRESS/IP_SEGMENT + */ + public static final class TypeEnum { + + /** + * Enum IP_ADDRESS for value: "IP_ADDRESS" + */ + public static final TypeEnum IP_ADDRESS = new TypeEnum("IP_ADDRESS"); + + /** + * Enum IP_SEGMENT for value: "IP_SEGMENT" + */ + public static final TypeEnum IP_SEGMENT = new TypeEnum("IP_SEGMENT"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("IP_ADDRESS", IP_ADDRESS); + map.put("IP_SEGMENT", IP_SEGMENT); + return Collections.unmodifiableMap(map); + } + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new TypeEnum(value)); + } + + public static TypeEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof TypeEnum) { + return this.value.equals(((TypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "type") - private String type; + private TypeEnum type; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "error_message") @@ -94,7 +239,7 @@ public void setGlobalEipSegmentId(String globalEipSegmentId) { this.globalEipSegmentId = globalEipSegmentId; } - public ListBindingGeip withStatus(String status) { + public ListBindingGeip withStatus(StatusEnum status) { this.status = status; return this; } @@ -103,15 +248,15 @@ public ListBindingGeip withStatus(String status) { * geip的绑定状态 * @return status */ - public String getStatus() { + public StatusEnum getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(StatusEnum status) { this.status = status; } - public ListBindingGeip withType(String type) { + public ListBindingGeip withType(TypeEnum type) { this.type = type; return this; } @@ -120,11 +265,11 @@ public ListBindingGeip withType(String type) { * geip类型:IP_ADDRESS/IP_SEGMENT * @return type */ - public String getType() { + public TypeEnum getType() { return type; } - public void setType(String type) { + public void setType(TypeEnum type) { this.type = type; } @@ -185,7 +330,7 @@ public ListBindingGeip withIeVtepIp(String ieVtepIp) { } /** - * IES的集群vtepIp + * CloudPond的集群vtepIp * @return ieVtepIp */ public String getIeVtepIp() { diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListConnectGatewaysRequest.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListConnectGatewaysRequest.java index 3008bd04c2..fb01f6ffda 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListConnectGatewaysRequest.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListConnectGatewaysRequest.java @@ -168,7 +168,9 @@ public ListConnectGatewaysRequest withOffset(Integer offset) { } /** - * Get offset + * 分页偏移量 + * minimum: 1 + * maximum: 1000 * @return offset */ public Integer getOffset() { @@ -202,7 +204,7 @@ public ListConnectGatewaysRequest withPageReverse(Boolean pageReverse) { } /** - * Get pageReverse + * 分页参数 * @return pageReverse */ public Boolean getPageReverse() { diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListDirectConnectLocationsRequest.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListDirectConnectLocationsRequest.java new file mode 100644 index 0000000000..6e52440b85 --- /dev/null +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListDirectConnectLocationsRequest.java @@ -0,0 +1,357 @@ +package com.huaweicloud.sdk.dc.v3.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class ListDirectConnectLocationsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "marker") + + private String marker; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sort_key") + + private String sortKey; + + /** + * Gets or Sets sortDir + */ + public static final class SortDirEnum { + + /** + * Enum ASC for value: "asc" + */ + public static final SortDirEnum ASC = new SortDirEnum("asc"); + + /** + * Enum DESC for value: "desc" + */ + public static final SortDirEnum DESC = new SortDirEnum("desc"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("asc", ASC); + map.put("desc", DESC); + return Collections.unmodifiableMap(map); + } + + private String value; + + SortDirEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static SortDirEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new SortDirEnum(value)); + } + + public static SortDirEnum 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 SortDirEnum) { + return this.value.equals(((SortDirEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sort_dir") + + private List sortDir = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private List id = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private List name = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private List status = null; + + public ListDirectConnectLocationsRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 每页返回的个数。 取值范围:1~2000。 + * minimum: 1 + * maximum: 2000 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListDirectConnectLocationsRequest withMarker(String marker) { + this.marker = marker; + return this; + } + + /** + * 上一页最后一条资源记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。 + * @return marker + */ + public String getMarker() { + return marker; + } + + public void setMarker(String marker) { + this.marker = marker; + } + + public ListDirectConnectLocationsRequest withSortKey(String sortKey) { + this.sortKey = sortKey; + return this; + } + + /** + * 排序字段。 + * @return sortKey + */ + public String getSortKey() { + return sortKey; + } + + public void setSortKey(String sortKey) { + this.sortKey = sortKey; + } + + public ListDirectConnectLocationsRequest withSortDir(List sortDir) { + this.sortDir = sortDir; + return this; + } + + public ListDirectConnectLocationsRequest addSortDirItem(SortDirEnum sortDirItem) { + if (this.sortDir == null) { + this.sortDir = new ArrayList<>(); + } + this.sortDir.add(sortDirItem); + return this; + } + + public ListDirectConnectLocationsRequest withSortDir(Consumer> sortDirSetter) { + if (this.sortDir == null) { + this.sortDir = new ArrayList<>(); + } + sortDirSetter.accept(this.sortDir); + return this; + } + + /** + * 返回结果按照升序(asc)或降序(desc)排列,默认为asc + * @return sortDir + */ + public List getSortDir() { + return sortDir; + } + + public void setSortDir(List sortDir) { + this.sortDir = sortDir; + } + + public ListDirectConnectLocationsRequest withId(List id) { + this.id = id; + return this; + } + + public ListDirectConnectLocationsRequest addIdItem(String idItem) { + if (this.id == null) { + this.id = new ArrayList<>(); + } + this.id.add(idItem); + return this; + } + + public ListDirectConnectLocationsRequest withId(Consumer> idSetter) { + if (this.id == null) { + this.id = new ArrayList<>(); + } + idSetter.accept(this.id); + return this; + } + + /** + * 根据资源ID过滤实例 + * @return id + */ + public List getId() { + return id; + } + + public void setId(List id) { + this.id = id; + } + + public ListDirectConnectLocationsRequest withName(List name) { + this.name = name; + return this; + } + + public ListDirectConnectLocationsRequest addNameItem(String nameItem) { + if (this.name == null) { + this.name = new ArrayList<>(); + } + this.name.add(nameItem); + return this; + } + + public ListDirectConnectLocationsRequest withName(Consumer> nameSetter) { + if (this.name == null) { + this.name = new ArrayList<>(); + } + nameSetter.accept(this.name); + return this; + } + + /** + * 根据名字过滤查询,可查询多个名字。 + * @return name + */ + public List getName() { + return name; + } + + public void setName(List name) { + this.name = name; + } + + public ListDirectConnectLocationsRequest withStatus(List status) { + this.status = status; + return this; + } + + public ListDirectConnectLocationsRequest addStatusItem(String statusItem) { + if (this.status == null) { + this.status = new ArrayList<>(); + } + this.status.add(statusItem); + return this; + } + + public ListDirectConnectLocationsRequest withStatus(Consumer> statusSetter) { + if (this.status == null) { + this.status = new ArrayList<>(); + } + statusSetter.accept(this.status); + return this; + } + + /** + * 根椐资源状态过淲实例 + * @return status + */ + public List getStatus() { + return status; + } + + public void setStatus(List 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; + } + ListDirectConnectLocationsRequest that = (ListDirectConnectLocationsRequest) obj; + return Objects.equals(this.limit, that.limit) && Objects.equals(this.marker, that.marker) + && Objects.equals(this.sortKey, that.sortKey) && Objects.equals(this.sortDir, that.sortDir) + && Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.status, that.status); + } + + @Override + public int hashCode() { + return Objects.hash(limit, marker, sortKey, sortDir, id, name, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDirectConnectLocationsRequest {\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" marker: ").append(toIndentedString(marker)).append("\n"); + sb.append(" sortKey: ").append(toIndentedString(sortKey)).append("\n"); + sb.append(" sortDir: ").append(toIndentedString(sortDir)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).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/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListDirectConnectLocationsResponse.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListDirectConnectLocationsResponse.java new file mode 100644 index 0000000000..4eeca081d5 --- /dev/null +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListDirectConnectLocationsResponse.java @@ -0,0 +1,151 @@ +package com.huaweicloud.sdk.dc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListDirectConnectLocationsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "direct_connect_locations") + + private List directConnectLocations = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_info") + + private PageInfo pageInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "request_id") + + private String requestId; + + public ListDirectConnectLocationsResponse withDirectConnectLocations( + List directConnectLocations) { + this.directConnectLocations = directConnectLocations; + return this; + } + + public ListDirectConnectLocationsResponse addDirectConnectLocationsItem( + DirectConnectLocationEntry directConnectLocationsItem) { + if (this.directConnectLocations == null) { + this.directConnectLocations = new ArrayList<>(); + } + this.directConnectLocations.add(directConnectLocationsItem); + return this; + } + + public ListDirectConnectLocationsResponse withDirectConnectLocations( + Consumer> directConnectLocationsSetter) { + if (this.directConnectLocations == null) { + this.directConnectLocations = new ArrayList<>(); + } + directConnectLocationsSetter.accept(this.directConnectLocations); + return this; + } + + /** + * 专线接入点列表 + * @return directConnectLocations + */ + public List getDirectConnectLocations() { + return directConnectLocations; + } + + public void setDirectConnectLocations(List directConnectLocations) { + this.directConnectLocations = directConnectLocations; + } + + public ListDirectConnectLocationsResponse withPageInfo(PageInfo pageInfo) { + this.pageInfo = pageInfo; + return this; + } + + public ListDirectConnectLocationsResponse withPageInfo(Consumer pageInfoSetter) { + if (this.pageInfo == null) { + this.pageInfo = new PageInfo(); + pageInfoSetter.accept(this.pageInfo); + } + + return this; + } + + /** + * Get pageInfo + * @return pageInfo + */ + public PageInfo getPageInfo() { + return pageInfo; + } + + public void setPageInfo(PageInfo pageInfo) { + this.pageInfo = pageInfo; + } + + public ListDirectConnectLocationsResponse withRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * 请求ID。 + * @return requestId + */ + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListDirectConnectLocationsResponse that = (ListDirectConnectLocationsResponse) obj; + return Objects.equals(this.directConnectLocations, that.directConnectLocations) + && Objects.equals(this.pageInfo, that.pageInfo) && Objects.equals(this.requestId, that.requestId); + } + + @Override + public int hashCode() { + return Objects.hash(directConnectLocations, pageInfo, requestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDirectConnectLocationsResponse {\n"); + sb.append(" directConnectLocations: ").append(toIndentedString(directConnectLocations)).append("\n"); + sb.append(" pageInfo: ").append(toIndentedString(pageInfo)).append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGdgwRouteTablesRequest.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGdgwRouteTablesRequest.java index 365b9d48a2..ab6a5b0b09 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGdgwRouteTablesRequest.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGdgwRouteTablesRequest.java @@ -23,26 +23,6 @@ public class ListGdgwRouteTablesRequest { private String gdgwId; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "fields") - - private List fields = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "ext_fields") - - private List extFields = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "nexthop") - - private List nexthop = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "destination") - - private List destination = null; - /** * Gets or Sets addressFamily */ @@ -118,13 +98,23 @@ public int hashCode() { private List addressFamily = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "nexthop") + + private List nexthop = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "destination") + + private List destination = null; + public ListGdgwRouteTablesRequest withGdgwId(String gdgwId) { this.gdgwId = gdgwId; return this; } /** - * 全球接入网关ID + * 全域接入网关ID * @return gdgwId */ public String getGdgwId() { @@ -135,70 +125,37 @@ public void setGdgwId(String gdgwId) { this.gdgwId = gdgwId; } - public ListGdgwRouteTablesRequest withFields(List fields) { - this.fields = fields; - return this; - } - - public ListGdgwRouteTablesRequest addFieldsItem(String fieldsItem) { - if (this.fields == null) { - this.fields = new ArrayList<>(); - } - this.fields.add(fieldsItem); - return this; - } - - public ListGdgwRouteTablesRequest withFields(Consumer> fieldsSetter) { - if (this.fields == null) { - this.fields = new ArrayList<>(); - } - fieldsSetter.accept(this.fields); - return this; - } - - /** - * 显示字段列表 - * @return fields - */ - public List getFields() { - return fields; - } - - public void setFields(List fields) { - this.fields = fields; - } - - public ListGdgwRouteTablesRequest withExtFields(List extFields) { - this.extFields = extFields; + public ListGdgwRouteTablesRequest withAddressFamily(List addressFamily) { + this.addressFamily = addressFamily; return this; } - public ListGdgwRouteTablesRequest addExtFieldsItem(String extFieldsItem) { - if (this.extFields == null) { - this.extFields = new ArrayList<>(); + public ListGdgwRouteTablesRequest addAddressFamilyItem(AddressFamilyEnum addressFamilyItem) { + if (this.addressFamily == null) { + this.addressFamily = new ArrayList<>(); } - this.extFields.add(extFieldsItem); + this.addressFamily.add(addressFamilyItem); return this; } - public ListGdgwRouteTablesRequest withExtFields(Consumer> extFieldsSetter) { - if (this.extFields == null) { - this.extFields = new ArrayList<>(); + public ListGdgwRouteTablesRequest withAddressFamily(Consumer> addressFamilySetter) { + if (this.addressFamily == null) { + this.addressFamily = new ArrayList<>(); } - extFieldsSetter.accept(this.extFields); + addressFamilySetter.accept(this.addressFamily); return this; } /** - * show response ext-fields - * @return extFields + * 地址簇 + * @return addressFamily */ - public List getExtFields() { - return extFields; + public List getAddressFamily() { + return addressFamily; } - public void setExtFields(List extFields) { - this.extFields = extFields; + public void setAddressFamily(List addressFamily) { + this.addressFamily = addressFamily; } public ListGdgwRouteTablesRequest withNexthop(List nexthop) { @@ -223,7 +180,7 @@ public ListGdgwRouteTablesRequest withNexthop(Consumer> nexthopSett } /** - * 下一条ID + * 下一跳ID * @return nexthop */ public List getNexthop() { @@ -267,39 +224,6 @@ public void setDestination(List destination) { this.destination = destination; } - public ListGdgwRouteTablesRequest withAddressFamily(List addressFamily) { - this.addressFamily = addressFamily; - return this; - } - - public ListGdgwRouteTablesRequest addAddressFamilyItem(AddressFamilyEnum addressFamilyItem) { - if (this.addressFamily == null) { - this.addressFamily = new ArrayList<>(); - } - this.addressFamily.add(addressFamilyItem); - return this; - } - - public ListGdgwRouteTablesRequest withAddressFamily(Consumer> addressFamilySetter) { - if (this.addressFamily == null) { - this.addressFamily = new ArrayList<>(); - } - addressFamilySetter.accept(this.addressFamily); - return this; - } - - /** - * 地址簇 - * @return addressFamily - */ - public List getAddressFamily() { - return addressFamily; - } - - public void setAddressFamily(List addressFamily) { - this.addressFamily = addressFamily; - } - @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -309,15 +233,13 @@ public boolean equals(java.lang.Object obj) { return false; } ListGdgwRouteTablesRequest that = (ListGdgwRouteTablesRequest) obj; - return Objects.equals(this.gdgwId, that.gdgwId) && Objects.equals(this.fields, that.fields) - && Objects.equals(this.extFields, that.extFields) && Objects.equals(this.nexthop, that.nexthop) - && Objects.equals(this.destination, that.destination) - && Objects.equals(this.addressFamily, that.addressFamily); + return Objects.equals(this.gdgwId, that.gdgwId) && Objects.equals(this.addressFamily, that.addressFamily) + && Objects.equals(this.nexthop, that.nexthop) && Objects.equals(this.destination, that.destination); } @Override public int hashCode() { - return Objects.hash(gdgwId, fields, extFields, nexthop, destination, addressFamily); + return Objects.hash(gdgwId, addressFamily, nexthop, destination); } @Override @@ -325,11 +247,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListGdgwRouteTablesRequest {\n"); sb.append(" gdgwId: ").append(toIndentedString(gdgwId)).append("\n"); - sb.append(" fields: ").append(toIndentedString(fields)).append("\n"); - sb.append(" extFields: ").append(toIndentedString(extFields)).append("\n"); + sb.append(" addressFamily: ").append(toIndentedString(addressFamily)).append("\n"); sb.append(" nexthop: ").append(toIndentedString(nexthop)).append("\n"); sb.append(" destination: ").append(toIndentedString(destination)).append("\n"); - sb.append(" addressFamily: ").append(toIndentedString(addressFamily)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGdgwRouteTablesResponse.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGdgwRouteTablesResponse.java index d491630853..39729abdb3 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGdgwRouteTablesResponse.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGdgwRouteTablesResponse.java @@ -24,18 +24,13 @@ public class ListGdgwRouteTablesResponse extends SdkResponse { private List gdgwRoutetable = null; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - - private String xRequestId; - public ListGdgwRouteTablesResponse withRequestId(String requestId) { this.requestId = requestId; return this; } /** - * 请求ID + * 请求id * @return requestId */ public String getRequestId() { @@ -68,7 +63,7 @@ public ListGdgwRouteTablesResponse withGdgwRoutetable(Consumer getGdgwRoutetable() { @@ -79,25 +74,6 @@ public void setGdgwRoutetable(List gdgwRoutetable) { this.gdgwRoutetable = gdgwRoutetable; } - public ListGdgwRouteTablesResponse withXRequestId(String xRequestId) { - this.xRequestId = xRequestId; - return this; - } - - /** - * Get xRequestId - * @return xRequestId - */ - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - public String getXRequestId() { - return xRequestId; - } - - public void setXRequestId(String xRequestId) { - this.xRequestId = xRequestId; - } - @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -108,13 +84,12 @@ public boolean equals(java.lang.Object obj) { } ListGdgwRouteTablesResponse that = (ListGdgwRouteTablesResponse) obj; return Objects.equals(this.requestId, that.requestId) - && Objects.equals(this.gdgwRoutetable, that.gdgwRoutetable) - && Objects.equals(this.xRequestId, that.xRequestId); + && Objects.equals(this.gdgwRoutetable, that.gdgwRoutetable); } @Override public int hashCode() { - return Objects.hash(requestId, gdgwRoutetable, xRequestId); + return Objects.hash(requestId, gdgwRoutetable); } @Override @@ -123,7 +98,6 @@ public String toString() { sb.append("class ListGdgwRouteTablesResponse {\n"); sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" gdgwRoutetable: ").append(toIndentedString(gdgwRoutetable)).append("\n"); - sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGlobalDcGatewayRequest.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGlobalDcGatewaysRequest.java similarity index 77% rename from services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGlobalDcGatewayRequest.java rename to services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGlobalDcGatewaysRequest.java index bb459fe11e..fc8136a2ca 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGlobalDcGatewayRequest.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGlobalDcGatewaysRequest.java @@ -16,7 +16,7 @@ /** * Request Object */ -public class ListGlobalDcGatewayRequest { +public class ListGlobalDcGatewaysRequest { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "limit") @@ -24,14 +24,14 @@ public class ListGlobalDcGatewayRequest { private Integer limit; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "marker") + @JsonProperty(value = "fields") - private String marker; + private List fields = null; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "fields") + @JsonProperty(value = "marker") - private List fields = null; + private String marker; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "sort_key") @@ -113,16 +113,6 @@ public int hashCode() { private List sortDir = null; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "hosting_id") - - private List hostingId = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "enterprise_project_id") - - private List enterpriseProjectId = null; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") @@ -134,9 +124,9 @@ public int hashCode() { private List name = null; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "global_center_network_id") + @JsonProperty(value = "enterprise_project_id") - private List globalCenterNetworkId = null; + private List enterpriseProjectId = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "site_network_id") @@ -148,7 +138,17 @@ public int hashCode() { private List cloudConnectionId = null; - public ListGlobalDcGatewayRequest withLimit(Integer limit) { + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private List status = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "global_center_network_id") + + private List globalCenterNetworkId = null; + + public ListGlobalDcGatewaysRequest withLimit(Integer limit) { this.limit = limit; return this; } @@ -167,29 +167,12 @@ public void setLimit(Integer limit) { this.limit = limit; } - public ListGlobalDcGatewayRequest withMarker(String marker) { - this.marker = marker; - return this; - } - - /** - * 上一页最后一条资源记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。 - * @return marker - */ - public String getMarker() { - return marker; - } - - public void setMarker(String marker) { - this.marker = marker; - } - - public ListGlobalDcGatewayRequest withFields(List fields) { + public ListGlobalDcGatewaysRequest withFields(List fields) { this.fields = fields; return this; } - public ListGlobalDcGatewayRequest addFieldsItem(String fieldsItem) { + public ListGlobalDcGatewaysRequest addFieldsItem(String fieldsItem) { if (this.fields == null) { this.fields = new ArrayList<>(); } @@ -197,7 +180,7 @@ public ListGlobalDcGatewayRequest addFieldsItem(String fieldsItem) { return this; } - public ListGlobalDcGatewayRequest withFields(Consumer> fieldsSetter) { + public ListGlobalDcGatewaysRequest withFields(Consumer> fieldsSetter) { if (this.fields == null) { this.fields = new ArrayList<>(); } @@ -217,7 +200,24 @@ public void setFields(List fields) { this.fields = fields; } - public ListGlobalDcGatewayRequest withSortKey(String sortKey) { + public ListGlobalDcGatewaysRequest withMarker(String marker) { + this.marker = marker; + return this; + } + + /** + * 上一页最后一条资源记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。 + * @return marker + */ + public String getMarker() { + return marker; + } + + public void setMarker(String marker) { + this.marker = marker; + } + + public ListGlobalDcGatewaysRequest withSortKey(String sortKey) { this.sortKey = sortKey; return this; } @@ -234,12 +234,12 @@ public void setSortKey(String sortKey) { this.sortKey = sortKey; } - public ListGlobalDcGatewayRequest withSortDir(List sortDir) { + public ListGlobalDcGatewaysRequest withSortDir(List sortDir) { this.sortDir = sortDir; return this; } - public ListGlobalDcGatewayRequest addSortDirItem(SortDirEnum sortDirItem) { + public ListGlobalDcGatewaysRequest addSortDirItem(SortDirEnum sortDirItem) { if (this.sortDir == null) { this.sortDir = new ArrayList<>(); } @@ -247,7 +247,7 @@ public ListGlobalDcGatewayRequest addSortDirItem(SortDirEnum sortDirItem) { return this; } - public ListGlobalDcGatewayRequest withSortDir(Consumer> sortDirSetter) { + public ListGlobalDcGatewaysRequest withSortDir(Consumer> sortDirSetter) { if (this.sortDir == null) { this.sortDir = new ArrayList<>(); } @@ -267,78 +267,12 @@ public void setSortDir(List sortDir) { this.sortDir = sortDir; } - public ListGlobalDcGatewayRequest withHostingId(List hostingId) { - this.hostingId = hostingId; - return this; - } - - public ListGlobalDcGatewayRequest addHostingIdItem(String hostingIdItem) { - if (this.hostingId == null) { - this.hostingId = new ArrayList<>(); - } - this.hostingId.add(hostingIdItem); - return this; - } - - public ListGlobalDcGatewayRequest withHostingId(Consumer> hostingIdSetter) { - if (this.hostingId == null) { - this.hostingId = new ArrayList<>(); - } - hostingIdSetter.accept(this.hostingId); - return this; - } - - /** - * 根椐运营专线ID过滤托管专线列表 - * @return hostingId - */ - public List getHostingId() { - return hostingId; - } - - public void setHostingId(List hostingId) { - this.hostingId = hostingId; - } - - public ListGlobalDcGatewayRequest withEnterpriseProjectId(List enterpriseProjectId) { - this.enterpriseProjectId = enterpriseProjectId; - return this; - } - - public ListGlobalDcGatewayRequest addEnterpriseProjectIdItem(String enterpriseProjectIdItem) { - if (this.enterpriseProjectId == null) { - this.enterpriseProjectId = new ArrayList<>(); - } - this.enterpriseProjectId.add(enterpriseProjectIdItem); - return this; - } - - public ListGlobalDcGatewayRequest withEnterpriseProjectId(Consumer> enterpriseProjectIdSetter) { - if (this.enterpriseProjectId == null) { - this.enterpriseProjectId = new ArrayList<>(); - } - enterpriseProjectIdSetter.accept(this.enterpriseProjectId); - return this; - } - - /** - * 根据企业项目ID过滤资源实例 - * @return enterpriseProjectId - */ - public List getEnterpriseProjectId() { - return enterpriseProjectId; - } - - public void setEnterpriseProjectId(List enterpriseProjectId) { - this.enterpriseProjectId = enterpriseProjectId; - } - - public ListGlobalDcGatewayRequest withId(List id) { + public ListGlobalDcGatewaysRequest withId(List id) { this.id = id; return this; } - public ListGlobalDcGatewayRequest addIdItem(String idItem) { + public ListGlobalDcGatewaysRequest addIdItem(String idItem) { if (this.id == null) { this.id = new ArrayList<>(); } @@ -346,7 +280,7 @@ public ListGlobalDcGatewayRequest addIdItem(String idItem) { return this; } - public ListGlobalDcGatewayRequest withId(Consumer> idSetter) { + public ListGlobalDcGatewaysRequest withId(Consumer> idSetter) { if (this.id == null) { this.id = new ArrayList<>(); } @@ -366,12 +300,12 @@ public void setId(List id) { this.id = id; } - public ListGlobalDcGatewayRequest withName(List name) { + public ListGlobalDcGatewaysRequest withName(List name) { this.name = name; return this; } - public ListGlobalDcGatewayRequest addNameItem(String nameItem) { + public ListGlobalDcGatewaysRequest addNameItem(String nameItem) { if (this.name == null) { this.name = new ArrayList<>(); } @@ -379,7 +313,7 @@ public ListGlobalDcGatewayRequest addNameItem(String nameItem) { return this; } - public ListGlobalDcGatewayRequest withName(Consumer> nameSetter) { + public ListGlobalDcGatewaysRequest withName(Consumer> nameSetter) { if (this.name == null) { this.name = new ArrayList<>(); } @@ -399,45 +333,45 @@ public void setName(List name) { this.name = name; } - public ListGlobalDcGatewayRequest withGlobalCenterNetworkId(List globalCenterNetworkId) { - this.globalCenterNetworkId = globalCenterNetworkId; + public ListGlobalDcGatewaysRequest withEnterpriseProjectId(List enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; return this; } - public ListGlobalDcGatewayRequest addGlobalCenterNetworkIdItem(String globalCenterNetworkIdItem) { - if (this.globalCenterNetworkId == null) { - this.globalCenterNetworkId = new ArrayList<>(); + public ListGlobalDcGatewaysRequest addEnterpriseProjectIdItem(String enterpriseProjectIdItem) { + if (this.enterpriseProjectId == null) { + this.enterpriseProjectId = new ArrayList<>(); } - this.globalCenterNetworkId.add(globalCenterNetworkIdItem); + this.enterpriseProjectId.add(enterpriseProjectIdItem); return this; } - public ListGlobalDcGatewayRequest withGlobalCenterNetworkId(Consumer> globalCenterNetworkIdSetter) { - if (this.globalCenterNetworkId == null) { - this.globalCenterNetworkId = new ArrayList<>(); + public ListGlobalDcGatewaysRequest withEnterpriseProjectId(Consumer> enterpriseProjectIdSetter) { + if (this.enterpriseProjectId == null) { + this.enterpriseProjectId = new ArrayList<>(); } - globalCenterNetworkIdSetter.accept(this.globalCenterNetworkId); + enterpriseProjectIdSetter.accept(this.enterpriseProjectId); return this; } /** - * 全球中心网络ID - * @return globalCenterNetworkId + * 根据企业项目ID过滤资源实例 + * @return enterpriseProjectId */ - public List getGlobalCenterNetworkId() { - return globalCenterNetworkId; + public List getEnterpriseProjectId() { + return enterpriseProjectId; } - public void setGlobalCenterNetworkId(List globalCenterNetworkId) { - this.globalCenterNetworkId = globalCenterNetworkId; + public void setEnterpriseProjectId(List enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; } - public ListGlobalDcGatewayRequest withSiteNetworkId(List siteNetworkId) { + public ListGlobalDcGatewaysRequest withSiteNetworkId(List siteNetworkId) { this.siteNetworkId = siteNetworkId; return this; } - public ListGlobalDcGatewayRequest addSiteNetworkIdItem(String siteNetworkIdItem) { + public ListGlobalDcGatewaysRequest addSiteNetworkIdItem(String siteNetworkIdItem) { if (this.siteNetworkId == null) { this.siteNetworkId = new ArrayList<>(); } @@ -445,7 +379,7 @@ public ListGlobalDcGatewayRequest addSiteNetworkIdItem(String siteNetworkIdItem) return this; } - public ListGlobalDcGatewayRequest withSiteNetworkId(Consumer> siteNetworkIdSetter) { + public ListGlobalDcGatewaysRequest withSiteNetworkId(Consumer> siteNetworkIdSetter) { if (this.siteNetworkId == null) { this.siteNetworkId = new ArrayList<>(); } @@ -465,12 +399,12 @@ public void setSiteNetworkId(List siteNetworkId) { this.siteNetworkId = siteNetworkId; } - public ListGlobalDcGatewayRequest withCloudConnectionId(List cloudConnectionId) { + public ListGlobalDcGatewaysRequest withCloudConnectionId(List cloudConnectionId) { this.cloudConnectionId = cloudConnectionId; return this; } - public ListGlobalDcGatewayRequest addCloudConnectionIdItem(String cloudConnectionIdItem) { + public ListGlobalDcGatewaysRequest addCloudConnectionIdItem(String cloudConnectionIdItem) { if (this.cloudConnectionId == null) { this.cloudConnectionId = new ArrayList<>(); } @@ -478,7 +412,7 @@ public ListGlobalDcGatewayRequest addCloudConnectionIdItem(String cloudConnectio return this; } - public ListGlobalDcGatewayRequest withCloudConnectionId(Consumer> cloudConnectionIdSetter) { + public ListGlobalDcGatewaysRequest withCloudConnectionId(Consumer> cloudConnectionIdSetter) { if (this.cloudConnectionId == null) { this.cloudConnectionId = new ArrayList<>(); } @@ -498,6 +432,72 @@ public void setCloudConnectionId(List cloudConnectionId) { this.cloudConnectionId = cloudConnectionId; } + public ListGlobalDcGatewaysRequest withStatus(List status) { + this.status = status; + return this; + } + + public ListGlobalDcGatewaysRequest addStatusItem(String statusItem) { + if (this.status == null) { + this.status = new ArrayList<>(); + } + this.status.add(statusItem); + return this; + } + + public ListGlobalDcGatewaysRequest withStatus(Consumer> statusSetter) { + if (this.status == null) { + this.status = new ArrayList<>(); + } + statusSetter.accept(this.status); + return this; + } + + /** + * 根椐资源状态过淲实例 + * @return status + */ + public List getStatus() { + return status; + } + + public void setStatus(List status) { + this.status = status; + } + + public ListGlobalDcGatewaysRequest withGlobalCenterNetworkId(List globalCenterNetworkId) { + this.globalCenterNetworkId = globalCenterNetworkId; + return this; + } + + public ListGlobalDcGatewaysRequest addGlobalCenterNetworkIdItem(String globalCenterNetworkIdItem) { + if (this.globalCenterNetworkId == null) { + this.globalCenterNetworkId = new ArrayList<>(); + } + this.globalCenterNetworkId.add(globalCenterNetworkIdItem); + return this; + } + + public ListGlobalDcGatewaysRequest withGlobalCenterNetworkId(Consumer> globalCenterNetworkIdSetter) { + if (this.globalCenterNetworkId == null) { + this.globalCenterNetworkId = new ArrayList<>(); + } + globalCenterNetworkIdSetter.accept(this.globalCenterNetworkId); + return this; + } + + /** + * 全球中心网络ID + * @return globalCenterNetworkId + */ + public List getGlobalCenterNetworkId() { + return globalCenterNetworkId; + } + + public void setGlobalCenterNetworkId(List globalCenterNetworkId) { + this.globalCenterNetworkId = globalCenterNetworkId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -506,49 +506,50 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - ListGlobalDcGatewayRequest that = (ListGlobalDcGatewayRequest) obj; - return Objects.equals(this.limit, that.limit) && Objects.equals(this.marker, that.marker) - && Objects.equals(this.fields, that.fields) && Objects.equals(this.sortKey, that.sortKey) - && Objects.equals(this.sortDir, that.sortDir) && Objects.equals(this.hostingId, that.hostingId) - && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) && Objects.equals(this.id, that.id) + ListGlobalDcGatewaysRequest that = (ListGlobalDcGatewaysRequest) obj; + return Objects.equals(this.limit, that.limit) && Objects.equals(this.fields, that.fields) + && Objects.equals(this.marker, that.marker) && Objects.equals(this.sortKey, that.sortKey) + && Objects.equals(this.sortDir, that.sortDir) && Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) - && Objects.equals(this.globalCenterNetworkId, that.globalCenterNetworkId) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) && Objects.equals(this.siteNetworkId, that.siteNetworkId) - && Objects.equals(this.cloudConnectionId, that.cloudConnectionId); + && Objects.equals(this.cloudConnectionId, that.cloudConnectionId) + && Objects.equals(this.status, that.status) + && Objects.equals(this.globalCenterNetworkId, that.globalCenterNetworkId); } @Override public int hashCode() { return Objects.hash(limit, - marker, fields, + marker, sortKey, sortDir, - hostingId, - enterpriseProjectId, id, name, - globalCenterNetworkId, + enterpriseProjectId, siteNetworkId, - cloudConnectionId); + cloudConnectionId, + status, + globalCenterNetworkId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ListGlobalDcGatewayRequest {\n"); + sb.append("class ListGlobalDcGatewaysRequest {\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); - sb.append(" marker: ").append(toIndentedString(marker)).append("\n"); sb.append(" fields: ").append(toIndentedString(fields)).append("\n"); + sb.append(" marker: ").append(toIndentedString(marker)).append("\n"); sb.append(" sortKey: ").append(toIndentedString(sortKey)).append("\n"); sb.append(" sortDir: ").append(toIndentedString(sortDir)).append("\n"); - sb.append(" hostingId: ").append(toIndentedString(hostingId)).append("\n"); - sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" globalCenterNetworkId: ").append(toIndentedString(globalCenterNetworkId)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); sb.append(" siteNetworkId: ").append(toIndentedString(siteNetworkId)).append("\n"); sb.append(" cloudConnectionId: ").append(toIndentedString(cloudConnectionId)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" globalCenterNetworkId: ").append(toIndentedString(globalCenterNetworkId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGlobalDcGatewayResponse.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGlobalDcGatewaysResponse.java similarity index 60% rename from services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGlobalDcGatewayResponse.java rename to services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGlobalDcGatewaysResponse.java index 1efdd41776..62a6a3c4ed 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGlobalDcGatewayResponse.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGlobalDcGatewaysResponse.java @@ -12,17 +12,12 @@ /** * Response Object */ -public class ListGlobalDcGatewayResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "request_id") - - private String requestId; +public class ListGlobalDcGatewaysResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "global_dc_gateways") - private List globalDcGateways = null; + private List globalDcGateways = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "page_info") @@ -30,33 +25,16 @@ public class ListGlobalDcGatewayResponse extends SdkResponse { private PageInfo pageInfo; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - - private String xRequestId; - - public ListGlobalDcGatewayResponse withRequestId(String requestId) { - this.requestId = requestId; - return this; - } - - /** - * 请求ID - * @return requestId - */ - public String getRequestId() { - return requestId; - } + @JsonProperty(value = "request_id") - public void setRequestId(String requestId) { - this.requestId = requestId; - } + private String requestId; - public ListGlobalDcGatewayResponse withGlobalDcGateways(List globalDcGateways) { + public ListGlobalDcGatewaysResponse withGlobalDcGateways(List globalDcGateways) { this.globalDcGateways = globalDcGateways; return this; } - public ListGlobalDcGatewayResponse addGlobalDcGatewaysItem(ExternalListGlobalDcGateways globalDcGatewaysItem) { + public ListGlobalDcGatewaysResponse addGlobalDcGatewaysItem(GlobalDcGatewayEntry globalDcGatewaysItem) { if (this.globalDcGateways == null) { this.globalDcGateways = new ArrayList<>(); } @@ -64,8 +42,8 @@ public ListGlobalDcGatewayResponse addGlobalDcGatewaysItem(ExternalListGlobalDcG return this; } - public ListGlobalDcGatewayResponse withGlobalDcGateways( - Consumer> globalDcGatewaysSetter) { + public ListGlobalDcGatewaysResponse withGlobalDcGateways( + Consumer> globalDcGatewaysSetter) { if (this.globalDcGateways == null) { this.globalDcGateways = new ArrayList<>(); } @@ -74,23 +52,23 @@ public ListGlobalDcGatewayResponse withGlobalDcGateways( } /** - * Get globalDcGateways + * 全域接入网关列表。 * @return globalDcGateways */ - public List getGlobalDcGateways() { + public List getGlobalDcGateways() { return globalDcGateways; } - public void setGlobalDcGateways(List globalDcGateways) { + public void setGlobalDcGateways(List globalDcGateways) { this.globalDcGateways = globalDcGateways; } - public ListGlobalDcGatewayResponse withPageInfo(PageInfo pageInfo) { + public ListGlobalDcGatewaysResponse withPageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; return this; } - public ListGlobalDcGatewayResponse withPageInfo(Consumer pageInfoSetter) { + public ListGlobalDcGatewaysResponse withPageInfo(Consumer pageInfoSetter) { if (this.pageInfo == null) { this.pageInfo = new PageInfo(); pageInfoSetter.accept(this.pageInfo); @@ -111,23 +89,21 @@ public void setPageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; } - public ListGlobalDcGatewayResponse withXRequestId(String xRequestId) { - this.xRequestId = xRequestId; + public ListGlobalDcGatewaysResponse withRequestId(String requestId) { + this.requestId = requestId; return this; } /** - * Get xRequestId - * @return xRequestId + * 请求ID。 + * @return requestId */ - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - public String getXRequestId() { - return xRequestId; + public String getRequestId() { + return requestId; } - public void setXRequestId(String xRequestId) { - this.xRequestId = xRequestId; + public void setRequestId(String requestId) { + this.requestId = requestId; } @Override @@ -138,25 +114,23 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - ListGlobalDcGatewayResponse that = (ListGlobalDcGatewayResponse) obj; - return Objects.equals(this.requestId, that.requestId) - && Objects.equals(this.globalDcGateways, that.globalDcGateways) - && Objects.equals(this.pageInfo, that.pageInfo) && Objects.equals(this.xRequestId, that.xRequestId); + ListGlobalDcGatewaysResponse that = (ListGlobalDcGatewaysResponse) obj; + return Objects.equals(this.globalDcGateways, that.globalDcGateways) + && Objects.equals(this.pageInfo, that.pageInfo) && Objects.equals(this.requestId, that.requestId); } @Override public int hashCode() { - return Objects.hash(requestId, globalDcGateways, pageInfo, xRequestId); + return Objects.hash(globalDcGateways, pageInfo, requestId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ListGlobalDcGatewayResponse {\n"); - sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append("class ListGlobalDcGatewaysResponse {\n"); sb.append(" globalDcGateways: ").append(toIndentedString(globalDcGateways)).append("\n"); sb.append(" pageInfo: ").append(toIndentedString(pageInfo)).append("\n"); - sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGlobalEipsRequest.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGlobalEipsRequest.java index 7ae2c2b20b..34d914aa90 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGlobalEipsRequest.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGlobalEipsRequest.java @@ -173,7 +173,9 @@ public ListGlobalEipsRequest withOffset(Integer offset) { } /** - * Get offset + * 分页偏移量 + * minimum: 1 + * maximum: 1000 * @return offset */ public Integer getOffset() { @@ -207,7 +209,7 @@ public ListGlobalEipsRequest withPageReverse(Boolean pageReverse) { } /** - * Get pageReverse + * 分页参数 * @return pageReverse */ public Boolean getPageReverse() { diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGlobalEipsResponse.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGlobalEipsResponse.java index e10b6066f1..db38210789 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGlobalEipsResponse.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListGlobalEipsResponse.java @@ -24,11 +24,6 @@ public class ListGlobalEipsResponse extends SdkResponse { private List globalEips = null; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - - private String xRequestId; - public ListGlobalEipsResponse withRequestId(String requestId) { this.requestId = requestId; return this; @@ -79,25 +74,6 @@ public void setGlobalEips(List globalEips) { this.globalEips = globalEips; } - public ListGlobalEipsResponse withXRequestId(String xRequestId) { - this.xRequestId = xRequestId; - return this; - } - - /** - * Get xRequestId - * @return xRequestId - */ - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - public String getXRequestId() { - return xRequestId; - } - - public void setXRequestId(String xRequestId) { - this.xRequestId = xRequestId; - } - @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -107,13 +83,12 @@ public boolean equals(java.lang.Object obj) { return false; } ListGlobalEipsResponse that = (ListGlobalEipsResponse) obj; - return Objects.equals(this.requestId, that.requestId) && Objects.equals(this.globalEips, that.globalEips) - && Objects.equals(this.xRequestId, that.xRequestId); + return Objects.equals(this.requestId, that.requestId) && Objects.equals(this.globalEips, that.globalEips); } @Override public int hashCode() { - return Objects.hash(requestId, globalEips, xRequestId); + return Objects.hash(requestId, globalEips); } @Override @@ -122,7 +97,6 @@ public String toString() { sb.append("class ListGlobalEipsResponse {\n"); sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" globalEips: ").append(toIndentedString(globalEips)).append("\n"); - sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListPeerLinksRequest.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListPeerLinksRequest.java index a055d05161..260765eafb 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListPeerLinksRequest.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListPeerLinksRequest.java @@ -18,6 +18,11 @@ */ public class ListPeerLinksRequest { + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "global_dc_gateway_id") + + private String globalDcGatewayId; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "limit") @@ -128,11 +133,6 @@ public int hashCode() { private List sortDir = null; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "global_dc_gateway_id") - - private String globalDcGatewayId; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") @@ -143,6 +143,23 @@ public int hashCode() { private List name = null; + public ListPeerLinksRequest withGlobalDcGatewayId(String globalDcGatewayId) { + this.globalDcGatewayId = globalDcGatewayId; + return this; + } + + /** + * 全域接入网关ID + * @return globalDcGatewayId + */ + public String getGlobalDcGatewayId() { + return globalDcGatewayId; + } + + public void setGlobalDcGatewayId(String globalDcGatewayId) { + this.globalDcGatewayId = globalDcGatewayId; + } + public ListPeerLinksRequest withLimit(Integer limit) { this.limit = limit; return this; @@ -168,7 +185,9 @@ public ListPeerLinksRequest withOffset(Integer offset) { } /** - * Get offset + * 分页偏移量 + * minimum: 1 + * maximum: 1000 * @return offset */ public Integer getOffset() { @@ -202,7 +221,7 @@ public ListPeerLinksRequest withPageReverse(Boolean pageReverse) { } /** - * Get pageReverse + * 分页参数 * @return pageReverse */ public Boolean getPageReverse() { @@ -329,23 +348,6 @@ public void setSortDir(List sortDir) { this.sortDir = sortDir; } - public ListPeerLinksRequest withGlobalDcGatewayId(String globalDcGatewayId) { - this.globalDcGatewayId = globalDcGatewayId; - return this; - } - - /** - * 全球接入网关ID - * @return globalDcGatewayId - */ - public String getGlobalDcGatewayId() { - return globalDcGatewayId; - } - - public void setGlobalDcGatewayId(String globalDcGatewayId) { - this.globalDcGatewayId = globalDcGatewayId; - } - public ListPeerLinksRequest withId(List id) { this.id = id; return this; @@ -421,24 +423,25 @@ public boolean equals(java.lang.Object obj) { return false; } ListPeerLinksRequest that = (ListPeerLinksRequest) obj; - return Objects.equals(this.limit, that.limit) && Objects.equals(this.offset, that.offset) - && Objects.equals(this.marker, that.marker) && Objects.equals(this.pageReverse, that.pageReverse) - && Objects.equals(this.fields, that.fields) && Objects.equals(this.extFields, that.extFields) - && Objects.equals(this.sortKey, that.sortKey) && Objects.equals(this.sortDir, that.sortDir) - && Objects.equals(this.globalDcGatewayId, that.globalDcGatewayId) && Objects.equals(this.id, that.id) + return Objects.equals(this.globalDcGatewayId, that.globalDcGatewayId) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.offset, that.offset) && Objects.equals(this.marker, that.marker) + && Objects.equals(this.pageReverse, that.pageReverse) && Objects.equals(this.fields, that.fields) + && Objects.equals(this.extFields, that.extFields) && Objects.equals(this.sortKey, that.sortKey) + && Objects.equals(this.sortDir, that.sortDir) && Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name); } @Override public int hashCode() { return Objects - .hash(limit, offset, marker, pageReverse, fields, extFields, sortKey, sortDir, globalDcGatewayId, id, name); + .hash(globalDcGatewayId, limit, offset, marker, pageReverse, fields, extFields, sortKey, sortDir, id, name); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListPeerLinksRequest {\n"); + sb.append(" globalDcGatewayId: ").append(toIndentedString(globalDcGatewayId)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); sb.append(" marker: ").append(toIndentedString(marker)).append("\n"); @@ -447,7 +450,6 @@ public String toString() { sb.append(" extFields: ").append(toIndentedString(extFields)).append("\n"); sb.append(" sortKey: ").append(toIndentedString(sortKey)).append("\n"); sb.append(" sortDir: ").append(toIndentedString(sortDir)).append("\n"); - sb.append(" globalDcGatewayId: ").append(toIndentedString(globalDcGatewayId)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append("}"); diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListPeerLinksResponse.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListPeerLinksResponse.java index 53973e72fe..bf89d7a32a 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListPeerLinksResponse.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListPeerLinksResponse.java @@ -14,15 +14,10 @@ */ public class ListPeerLinksResponse extends SdkResponse { - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "request_id") - - private String requestId; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "peer_links") - private List peerLinks = null; + private List peerLinks = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "page_info") @@ -30,33 +25,16 @@ public class ListPeerLinksResponse extends SdkResponse { private PageInfo pageInfo; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - - private String xRequestId; - - public ListPeerLinksResponse withRequestId(String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Get requestId - * @return requestId - */ - public String getRequestId() { - return requestId; - } + @JsonProperty(value = "request_id") - public void setRequestId(String requestId) { - this.requestId = requestId; - } + private String requestId; - public ListPeerLinksResponse withPeerLinks(List peerLinks) { + public ListPeerLinksResponse withPeerLinks(List peerLinks) { this.peerLinks = peerLinks; return this; } - public ListPeerLinksResponse addPeerLinksItem(ExternalListPeerLinks peerLinksItem) { + public ListPeerLinksResponse addPeerLinksItem(PeerLinkEntry peerLinksItem) { if (this.peerLinks == null) { this.peerLinks = new ArrayList<>(); } @@ -64,7 +42,7 @@ public ListPeerLinksResponse addPeerLinksItem(ExternalListPeerLinks peerLinksIte return this; } - public ListPeerLinksResponse withPeerLinks(Consumer> peerLinksSetter) { + public ListPeerLinksResponse withPeerLinks(Consumer> peerLinksSetter) { if (this.peerLinks == null) { this.peerLinks = new ArrayList<>(); } @@ -73,14 +51,14 @@ public ListPeerLinksResponse withPeerLinks(Consumer> } /** - * Get peerLinks + * 专线关联连接列表。 * @return peerLinks */ - public List getPeerLinks() { + public List getPeerLinks() { return peerLinks; } - public void setPeerLinks(List peerLinks) { + public void setPeerLinks(List peerLinks) { this.peerLinks = peerLinks; } @@ -110,23 +88,21 @@ public void setPageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; } - public ListPeerLinksResponse withXRequestId(String xRequestId) { - this.xRequestId = xRequestId; + public ListPeerLinksResponse withRequestId(String requestId) { + this.requestId = requestId; return this; } /** - * Get xRequestId - * @return xRequestId + * 请求ID。 + * @return requestId */ - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - public String getXRequestId() { - return xRequestId; + public String getRequestId() { + return requestId; } - public void setXRequestId(String xRequestId) { - this.xRequestId = xRequestId; + public void setRequestId(String requestId) { + this.requestId = requestId; } @Override @@ -138,23 +114,22 @@ public boolean equals(java.lang.Object obj) { return false; } ListPeerLinksResponse that = (ListPeerLinksResponse) obj; - return Objects.equals(this.requestId, that.requestId) && Objects.equals(this.peerLinks, that.peerLinks) - && Objects.equals(this.pageInfo, that.pageInfo) && Objects.equals(this.xRequestId, that.xRequestId); + return Objects.equals(this.peerLinks, that.peerLinks) && Objects.equals(this.pageInfo, that.pageInfo) + && Objects.equals(this.requestId, that.requestId); } @Override public int hashCode() { - return Objects.hash(requestId, peerLinks, pageInfo, xRequestId); + return Objects.hash(peerLinks, pageInfo, requestId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListPeerLinksResponse {\n"); - sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" peerLinks: ").append(toIndentedString(peerLinks)).append("\n"); sb.append(" pageInfo: ").append(toIndentedString(pageInfo)).append("\n"); - sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListRmsGlobalDcGatewayRequest.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListRmsGlobalDcGatewayRequest.java deleted file mode 100644 index 4a4ac5cffc..0000000000 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListRmsGlobalDcGatewayRequest.java +++ /dev/null @@ -1,755 +0,0 @@ -package com.huaweicloud.sdk.dc.v3.model; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonValue; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * Request Object - */ -public class ListRmsGlobalDcGatewayRequest { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "limit") - - private Integer limit; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "offset") - - private Integer offset; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "marker") - - private String marker; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "page_reverse") - - private Boolean pageReverse; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "rp_name") - - private String rpName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "domain_id") - - private String domainId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "region_id") - - private String regionId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "resource_type") - - private String resourceType; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "fields") - - private List fields = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "ext_fields") - - private List extFields = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "sort_key") - - private String sortKey; - - /** - * Gets or Sets sortDir - */ - public static final class SortDirEnum { - - /** - * Enum ASC for value: "asc" - */ - public static final SortDirEnum ASC = new SortDirEnum("asc"); - - /** - * Enum DESC for value: "desc" - */ - public static final SortDirEnum DESC = new SortDirEnum("desc"); - - private static final Map STATIC_FIELDS = createStaticFields(); - - private static Map createStaticFields() { - Map map = new HashMap<>(); - map.put("asc", ASC); - map.put("desc", DESC); - return Collections.unmodifiableMap(map); - } - - private String value; - - SortDirEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static SortDirEnum fromValue(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new SortDirEnum(value)); - } - - public static SortDirEnum 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 SortDirEnum) { - return this.value.equals(((SortDirEnum) obj).value); - } - return false; - } - - @Override - public int hashCode() { - return this.value.hashCode(); - } - } - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "sort_dir") - - private List sortDir = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "id") - - private List id = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "name") - - private List name = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "status") - - private List status = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "enterprise_project_id") - - private List enterpriseProjectId = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "global_center_network_id") - - private List globalCenterNetworkId = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "site_network_id") - - private List siteNetworkId = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "cloud_connection_id") - - private List cloudConnectionId = null; - - public ListRmsGlobalDcGatewayRequest withLimit(Integer limit) { - this.limit = limit; - return this; - } - - /** - * 每页返回的个数。 取值范围:1~2000。 - * minimum: 1 - * maximum: 2000 - * @return limit - */ - public Integer getLimit() { - return limit; - } - - public void setLimit(Integer limit) { - this.limit = limit; - } - - public ListRmsGlobalDcGatewayRequest withOffset(Integer offset) { - this.offset = offset; - return this; - } - - /** - * Get offset - * @return offset - */ - public Integer getOffset() { - return offset; - } - - public void setOffset(Integer offset) { - this.offset = offset; - } - - public ListRmsGlobalDcGatewayRequest withMarker(String marker) { - this.marker = marker; - return this; - } - - /** - * 上一页最后一条资源记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。 - * @return marker - */ - public String getMarker() { - return marker; - } - - public void setMarker(String marker) { - this.marker = marker; - } - - public ListRmsGlobalDcGatewayRequest withPageReverse(Boolean pageReverse) { - this.pageReverse = pageReverse; - return this; - } - - /** - * Get pageReverse - * @return pageReverse - */ - public Boolean getPageReverse() { - return pageReverse; - } - - public void setPageReverse(Boolean pageReverse) { - this.pageReverse = pageReverse; - } - - public ListRmsGlobalDcGatewayRequest withRpName(String rpName) { - this.rpName = rpName; - return this; - } - - /** - * 通过rp_name过滤记录 - * @return rpName - */ - public String getRpName() { - return rpName; - } - - public void setRpName(String rpName) { - this.rpName = rpName; - } - - public ListRmsGlobalDcGatewayRequest withDomainId(String domainId) { - this.domainId = domainId; - return this; - } - - /** - * domain_id - * @return domainId - */ - public String getDomainId() { - return domainId; - } - - public void setDomainId(String domainId) { - this.domainId = domainId; - } - - public ListRmsGlobalDcGatewayRequest withRegionId(String regionId) { - this.regionId = regionId; - return this; - } - - /** - * region_id - * @return regionId - */ - public String getRegionId() { - return regionId; - } - - public void setRegionId(String regionId) { - this.regionId = regionId; - } - - public ListRmsGlobalDcGatewayRequest withResourceType(String resourceType) { - this.resourceType = resourceType; - return this; - } - - /** - * resource_type - * @return resourceType - */ - public String getResourceType() { - return resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } - - public ListRmsGlobalDcGatewayRequest withFields(List fields) { - this.fields = fields; - return this; - } - - public ListRmsGlobalDcGatewayRequest addFieldsItem(String fieldsItem) { - if (this.fields == null) { - this.fields = new ArrayList<>(); - } - this.fields.add(fieldsItem); - return this; - } - - public ListRmsGlobalDcGatewayRequest withFields(Consumer> fieldsSetter) { - if (this.fields == null) { - this.fields = new ArrayList<>(); - } - fieldsSetter.accept(this.fields); - return this; - } - - /** - * 显示字段列表 - * @return fields - */ - public List getFields() { - return fields; - } - - public void setFields(List fields) { - this.fields = fields; - } - - public ListRmsGlobalDcGatewayRequest withExtFields(List extFields) { - this.extFields = extFields; - return this; - } - - public ListRmsGlobalDcGatewayRequest addExtFieldsItem(String extFieldsItem) { - if (this.extFields == null) { - this.extFields = new ArrayList<>(); - } - this.extFields.add(extFieldsItem); - return this; - } - - public ListRmsGlobalDcGatewayRequest withExtFields(Consumer> extFieldsSetter) { - if (this.extFields == null) { - this.extFields = new ArrayList<>(); - } - extFieldsSetter.accept(this.extFields); - return this; - } - - /** - * show response ext-fields - * @return extFields - */ - public List getExtFields() { - return extFields; - } - - public void setExtFields(List extFields) { - this.extFields = extFields; - } - - public ListRmsGlobalDcGatewayRequest withSortKey(String sortKey) { - this.sortKey = sortKey; - return this; - } - - /** - * 排序字段。 - * @return sortKey - */ - public String getSortKey() { - return sortKey; - } - - public void setSortKey(String sortKey) { - this.sortKey = sortKey; - } - - public ListRmsGlobalDcGatewayRequest withSortDir(List sortDir) { - this.sortDir = sortDir; - return this; - } - - public ListRmsGlobalDcGatewayRequest addSortDirItem(SortDirEnum sortDirItem) { - if (this.sortDir == null) { - this.sortDir = new ArrayList<>(); - } - this.sortDir.add(sortDirItem); - return this; - } - - public ListRmsGlobalDcGatewayRequest withSortDir(Consumer> sortDirSetter) { - if (this.sortDir == null) { - this.sortDir = new ArrayList<>(); - } - sortDirSetter.accept(this.sortDir); - return this; - } - - /** - * 返回结果按照升序(asc)或降序(desc)排列,默认为asc - * @return sortDir - */ - public List getSortDir() { - return sortDir; - } - - public void setSortDir(List sortDir) { - this.sortDir = sortDir; - } - - public ListRmsGlobalDcGatewayRequest withId(List id) { - this.id = id; - return this; - } - - public ListRmsGlobalDcGatewayRequest addIdItem(String idItem) { - if (this.id == null) { - this.id = new ArrayList<>(); - } - this.id.add(idItem); - return this; - } - - public ListRmsGlobalDcGatewayRequest withId(Consumer> idSetter) { - if (this.id == null) { - this.id = new ArrayList<>(); - } - idSetter.accept(this.id); - return this; - } - - /** - * 根据资源ID过滤实例 - * @return id - */ - public List getId() { - return id; - } - - public void setId(List id) { - this.id = id; - } - - public ListRmsGlobalDcGatewayRequest withName(List name) { - this.name = name; - return this; - } - - public ListRmsGlobalDcGatewayRequest addNameItem(String nameItem) { - if (this.name == null) { - this.name = new ArrayList<>(); - } - this.name.add(nameItem); - return this; - } - - public ListRmsGlobalDcGatewayRequest withName(Consumer> nameSetter) { - if (this.name == null) { - this.name = new ArrayList<>(); - } - nameSetter.accept(this.name); - return this; - } - - /** - * 根据名字过滤查询,可查询多个名字。 - * @return name - */ - public List getName() { - return name; - } - - public void setName(List name) { - this.name = name; - } - - public ListRmsGlobalDcGatewayRequest withStatus(List status) { - this.status = status; - return this; - } - - public ListRmsGlobalDcGatewayRequest addStatusItem(String statusItem) { - if (this.status == null) { - this.status = new ArrayList<>(); - } - this.status.add(statusItem); - return this; - } - - public ListRmsGlobalDcGatewayRequest withStatus(Consumer> statusSetter) { - if (this.status == null) { - this.status = new ArrayList<>(); - } - statusSetter.accept(this.status); - return this; - } - - /** - * 根椐资源状态过淲实例 - * @return status - */ - public List getStatus() { - return status; - } - - public void setStatus(List status) { - this.status = status; - } - - public ListRmsGlobalDcGatewayRequest withEnterpriseProjectId(List enterpriseProjectId) { - this.enterpriseProjectId = enterpriseProjectId; - return this; - } - - public ListRmsGlobalDcGatewayRequest addEnterpriseProjectIdItem(String enterpriseProjectIdItem) { - if (this.enterpriseProjectId == null) { - this.enterpriseProjectId = new ArrayList<>(); - } - this.enterpriseProjectId.add(enterpriseProjectIdItem); - return this; - } - - public ListRmsGlobalDcGatewayRequest withEnterpriseProjectId(Consumer> enterpriseProjectIdSetter) { - if (this.enterpriseProjectId == null) { - this.enterpriseProjectId = new ArrayList<>(); - } - enterpriseProjectIdSetter.accept(this.enterpriseProjectId); - return this; - } - - /** - * 根据企业项目ID过滤资源实例 - * @return enterpriseProjectId - */ - public List getEnterpriseProjectId() { - return enterpriseProjectId; - } - - public void setEnterpriseProjectId(List enterpriseProjectId) { - this.enterpriseProjectId = enterpriseProjectId; - } - - public ListRmsGlobalDcGatewayRequest withGlobalCenterNetworkId(List globalCenterNetworkId) { - this.globalCenterNetworkId = globalCenterNetworkId; - return this; - } - - public ListRmsGlobalDcGatewayRequest addGlobalCenterNetworkIdItem(String globalCenterNetworkIdItem) { - if (this.globalCenterNetworkId == null) { - this.globalCenterNetworkId = new ArrayList<>(); - } - this.globalCenterNetworkId.add(globalCenterNetworkIdItem); - return this; - } - - public ListRmsGlobalDcGatewayRequest withGlobalCenterNetworkId(Consumer> globalCenterNetworkIdSetter) { - if (this.globalCenterNetworkId == null) { - this.globalCenterNetworkId = new ArrayList<>(); - } - globalCenterNetworkIdSetter.accept(this.globalCenterNetworkId); - return this; - } - - /** - * 全球中心网络ID - * @return globalCenterNetworkId - */ - public List getGlobalCenterNetworkId() { - return globalCenterNetworkId; - } - - public void setGlobalCenterNetworkId(List globalCenterNetworkId) { - this.globalCenterNetworkId = globalCenterNetworkId; - } - - public ListRmsGlobalDcGatewayRequest withSiteNetworkId(List siteNetworkId) { - this.siteNetworkId = siteNetworkId; - return this; - } - - public ListRmsGlobalDcGatewayRequest addSiteNetworkIdItem(String siteNetworkIdItem) { - if (this.siteNetworkId == null) { - this.siteNetworkId = new ArrayList<>(); - } - this.siteNetworkId.add(siteNetworkIdItem); - return this; - } - - public ListRmsGlobalDcGatewayRequest withSiteNetworkId(Consumer> siteNetworkIdSetter) { - if (this.siteNetworkId == null) { - this.siteNetworkId = new ArrayList<>(); - } - siteNetworkIdSetter.accept(this.siteNetworkId); - return this; - } - - /** - * 站点网络ID - * @return siteNetworkId - */ - public List getSiteNetworkId() { - return siteNetworkId; - } - - public void setSiteNetworkId(List siteNetworkId) { - this.siteNetworkId = siteNetworkId; - } - - public ListRmsGlobalDcGatewayRequest withCloudConnectionId(List cloudConnectionId) { - this.cloudConnectionId = cloudConnectionId; - return this; - } - - public ListRmsGlobalDcGatewayRequest addCloudConnectionIdItem(String cloudConnectionIdItem) { - if (this.cloudConnectionId == null) { - this.cloudConnectionId = new ArrayList<>(); - } - this.cloudConnectionId.add(cloudConnectionIdItem); - return this; - } - - public ListRmsGlobalDcGatewayRequest withCloudConnectionId(Consumer> cloudConnectionIdSetter) { - if (this.cloudConnectionId == null) { - this.cloudConnectionId = new ArrayList<>(); - } - cloudConnectionIdSetter.accept(this.cloudConnectionId); - return this; - } - - /** - * 云连接ID - * @return cloudConnectionId - */ - public List getCloudConnectionId() { - return cloudConnectionId; - } - - public void setCloudConnectionId(List cloudConnectionId) { - this.cloudConnectionId = cloudConnectionId; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ListRmsGlobalDcGatewayRequest that = (ListRmsGlobalDcGatewayRequest) obj; - return Objects.equals(this.limit, that.limit) && Objects.equals(this.offset, that.offset) - && Objects.equals(this.marker, that.marker) && Objects.equals(this.pageReverse, that.pageReverse) - && Objects.equals(this.rpName, that.rpName) && Objects.equals(this.domainId, that.domainId) - && Objects.equals(this.regionId, that.regionId) && Objects.equals(this.resourceType, that.resourceType) - && Objects.equals(this.fields, that.fields) && Objects.equals(this.extFields, that.extFields) - && Objects.equals(this.sortKey, that.sortKey) && Objects.equals(this.sortDir, that.sortDir) - && Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) - && Objects.equals(this.status, that.status) - && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) - && Objects.equals(this.globalCenterNetworkId, that.globalCenterNetworkId) - && Objects.equals(this.siteNetworkId, that.siteNetworkId) - && Objects.equals(this.cloudConnectionId, that.cloudConnectionId); - } - - @Override - public int hashCode() { - return Objects.hash(limit, - offset, - marker, - pageReverse, - rpName, - domainId, - regionId, - resourceType, - fields, - extFields, - sortKey, - sortDir, - id, - name, - status, - enterpriseProjectId, - globalCenterNetworkId, - siteNetworkId, - cloudConnectionId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListRmsGlobalDcGatewayRequest {\n"); - sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); - sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); - sb.append(" marker: ").append(toIndentedString(marker)).append("\n"); - sb.append(" pageReverse: ").append(toIndentedString(pageReverse)).append("\n"); - sb.append(" rpName: ").append(toIndentedString(rpName)).append("\n"); - sb.append(" domainId: ").append(toIndentedString(domainId)).append("\n"); - sb.append(" regionId: ").append(toIndentedString(regionId)).append("\n"); - sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n"); - sb.append(" fields: ").append(toIndentedString(fields)).append("\n"); - sb.append(" extFields: ").append(toIndentedString(extFields)).append("\n"); - sb.append(" sortKey: ").append(toIndentedString(sortKey)).append("\n"); - sb.append(" sortDir: ").append(toIndentedString(sortDir)).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(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); - sb.append(" globalCenterNetworkId: ").append(toIndentedString(globalCenterNetworkId)).append("\n"); - sb.append(" siteNetworkId: ").append(toIndentedString(siteNetworkId)).append("\n"); - sb.append(" cloudConnectionId: ").append(toIndentedString(cloudConnectionId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListRmsGlobalDcGatewayResponse.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListRmsGlobalDcGatewayResponse.java deleted file mode 100644 index aa40efc7d3..0000000000 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListRmsGlobalDcGatewayResponse.java +++ /dev/null @@ -1,175 +0,0 @@ -package com.huaweicloud.sdk.dc.v3.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.huaweicloud.sdk.core.SdkResponse; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * Response Object - */ -public class ListRmsGlobalDcGatewayResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "request_id") - - private String requestId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "global_dc_gateways") - - private List globalDcGateways = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "page_info") - - private PageInfo pageInfo; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - - private String xRequestId; - - public ListRmsGlobalDcGatewayResponse withRequestId(String requestId) { - this.requestId = requestId; - return this; - } - - /** - * 请求ID - * @return requestId - */ - public String getRequestId() { - return requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public ListRmsGlobalDcGatewayResponse withGlobalDcGateways(List globalDcGateways) { - this.globalDcGateways = globalDcGateways; - return this; - } - - public ListRmsGlobalDcGatewayResponse addGlobalDcGatewaysItem(RmsListGlobalDcGateways globalDcGatewaysItem) { - if (this.globalDcGateways == null) { - this.globalDcGateways = new ArrayList<>(); - } - this.globalDcGateways.add(globalDcGatewaysItem); - return this; - } - - public ListRmsGlobalDcGatewayResponse withGlobalDcGateways( - Consumer> globalDcGatewaysSetter) { - if (this.globalDcGateways == null) { - this.globalDcGateways = new ArrayList<>(); - } - globalDcGatewaysSetter.accept(this.globalDcGateways); - return this; - } - - /** - * 全球接入网关 - * @return globalDcGateways - */ - public List getGlobalDcGateways() { - return globalDcGateways; - } - - public void setGlobalDcGateways(List globalDcGateways) { - this.globalDcGateways = globalDcGateways; - } - - public ListRmsGlobalDcGatewayResponse withPageInfo(PageInfo pageInfo) { - this.pageInfo = pageInfo; - return this; - } - - public ListRmsGlobalDcGatewayResponse withPageInfo(Consumer pageInfoSetter) { - if (this.pageInfo == null) { - this.pageInfo = new PageInfo(); - pageInfoSetter.accept(this.pageInfo); - } - - return this; - } - - /** - * Get pageInfo - * @return pageInfo - */ - public PageInfo getPageInfo() { - return pageInfo; - } - - public void setPageInfo(PageInfo pageInfo) { - this.pageInfo = pageInfo; - } - - public ListRmsGlobalDcGatewayResponse withXRequestId(String xRequestId) { - this.xRequestId = xRequestId; - return this; - } - - /** - * Get xRequestId - * @return xRequestId - */ - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - public String getXRequestId() { - return xRequestId; - } - - public void setXRequestId(String xRequestId) { - this.xRequestId = xRequestId; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ListRmsGlobalDcGatewayResponse that = (ListRmsGlobalDcGatewayResponse) obj; - return Objects.equals(this.requestId, that.requestId) - && Objects.equals(this.globalDcGateways, that.globalDcGateways) - && Objects.equals(this.pageInfo, that.pageInfo) && Objects.equals(this.xRequestId, that.xRequestId); - } - - @Override - public int hashCode() { - return Objects.hash(requestId, globalDcGateways, pageInfo, xRequestId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListRmsGlobalDcGatewayResponse {\n"); - sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); - sb.append(" globalDcGateways: ").append(toIndentedString(globalDcGateways)).append("\n"); - sb.append(" pageInfo: ").append(toIndentedString(pageInfo)).append("\n"); - sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListVirtualGatewaysRequest.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListVirtualGatewaysRequest.java index d9a0610b95..95b76db2ae 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListVirtualGatewaysRequest.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ListVirtualGatewaysRequest.java @@ -335,7 +335,7 @@ public ListVirtualGatewaysRequest withVpcId(Consumer> vpcIdSetter) } /** - * 通过VPC-ID过虑虚拟网关实例 + * 通过VPC-ID过滤虚拟网关实例 * @return vpcId */ public List getVpcId() { diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalShowPeerLink.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/PeerLinkEntry.java similarity index 71% rename from services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalShowPeerLink.java rename to services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/PeerLinkEntry.java index 59fc4bd021..4eb03c3f9f 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ExternalShowPeerLink.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/PeerLinkEntry.java @@ -8,9 +8,9 @@ import java.util.function.Consumer; /** - * 对外对等体对象 + * 实例的peer Link的详情 */ -public class ExternalShowPeerLink { +public class PeerLinkEntry { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") @@ -32,40 +32,25 @@ public class ExternalShowPeerLink { private String description; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "instance_id") - - private String instanceId; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "global_dc_gateway_id") private String globalDcGatewayId; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "create_owner") - - private String createOwner; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "bandwidth_info") - private BandwidthInfoExternal bandwidthInfo; + private BandWidthInfo bandwidthInfo; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "peer_site") - private PeerSiteExternal peerSite; + private PeerSite peerSite; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "status") - private String status; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "reason") - - private String reason; + private PeerLinkStatus status; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "created_time") @@ -77,13 +62,23 @@ public class ExternalShowPeerLink { private OffsetDateTime updatedTime; - public ExternalShowPeerLink withId(String id) { + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_owner") + + private OffsetDateTime createOwner; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + public PeerLinkEntry withId(String id) { this.id = id; return this; } /** - * 唯一ID + * peer link ID。 * @return id */ public String getId() { @@ -94,13 +89,13 @@ public void setId(String id) { this.id = id; } - public ExternalShowPeerLink withTenantId(String tenantId) { + public PeerLinkEntry withTenantId(String tenantId) { this.tenantId = tenantId; return this; } /** - * 租户ID + * 租户项目ID * @return tenantId */ public String getTenantId() { @@ -111,13 +106,13 @@ public void setTenantId(String tenantId) { this.tenantId = tenantId; } - public ExternalShowPeerLink withName(String name) { + public PeerLinkEntry withName(String name) { this.name = name; return this; } /** - * 名称 + * 专线内部连接(peer link)名字 * @return name */ public String getName() { @@ -128,7 +123,7 @@ public void setName(String name) { this.name = name; } - public ExternalShowPeerLink withDescription(String description) { + public PeerLinkEntry withDescription(String description) { this.description = description; return this; } @@ -145,30 +140,13 @@ public void setDescription(String description) { this.description = description; } - public ExternalShowPeerLink withInstanceId(String instanceId) { - this.instanceId = instanceId; - return this; - } - - /** - * 实例ID - * @return instanceId - */ - public String getInstanceId() { - return instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - } - - public ExternalShowPeerLink withGlobalDcGatewayId(String globalDcGatewayId) { + public PeerLinkEntry withGlobalDcGatewayId(String globalDcGatewayId) { this.globalDcGatewayId = globalDcGatewayId; return this; } /** - * 全球接入网关ID + * 对应的专线全域接入网关ID * @return globalDcGatewayId */ public String getGlobalDcGatewayId() { @@ -179,31 +157,14 @@ public void setGlobalDcGatewayId(String globalDcGatewayId) { this.globalDcGatewayId = globalDcGatewayId; } - public ExternalShowPeerLink withCreateOwner(String createOwner) { - this.createOwner = createOwner; - return this; - } - - /** - * 创建者 - * @return createOwner - */ - public String getCreateOwner() { - return createOwner; - } - - public void setCreateOwner(String createOwner) { - this.createOwner = createOwner; - } - - public ExternalShowPeerLink withBandwidthInfo(BandwidthInfoExternal bandwidthInfo) { + public PeerLinkEntry withBandwidthInfo(BandWidthInfo bandwidthInfo) { this.bandwidthInfo = bandwidthInfo; return this; } - public ExternalShowPeerLink withBandwidthInfo(Consumer bandwidthInfoSetter) { + public PeerLinkEntry withBandwidthInfo(Consumer bandwidthInfoSetter) { if (this.bandwidthInfo == null) { - this.bandwidthInfo = new BandwidthInfoExternal(); + this.bandwidthInfo = new BandWidthInfo(); bandwidthInfoSetter.accept(this.bandwidthInfo); } @@ -214,22 +175,22 @@ public ExternalShowPeerLink withBandwidthInfo(Consumer ba * Get bandwidthInfo * @return bandwidthInfo */ - public BandwidthInfoExternal getBandwidthInfo() { + public BandWidthInfo getBandwidthInfo() { return bandwidthInfo; } - public void setBandwidthInfo(BandwidthInfoExternal bandwidthInfo) { + public void setBandwidthInfo(BandWidthInfo bandwidthInfo) { this.bandwidthInfo = bandwidthInfo; } - public ExternalShowPeerLink withPeerSite(PeerSiteExternal peerSite) { + public PeerLinkEntry withPeerSite(PeerSite peerSite) { this.peerSite = peerSite; return this; } - public ExternalShowPeerLink withPeerSite(Consumer peerSiteSetter) { + public PeerLinkEntry withPeerSite(Consumer peerSiteSetter) { if (this.peerSite == null) { - this.peerSite = new PeerSiteExternal(); + this.peerSite = new PeerSite(); peerSiteSetter.accept(this.peerSite); } @@ -240,55 +201,38 @@ public ExternalShowPeerLink withPeerSite(Consumer peerSiteSett * Get peerSite * @return peerSite */ - public PeerSiteExternal getPeerSite() { + public PeerSite getPeerSite() { return peerSite; } - public void setPeerSite(PeerSiteExternal peerSite) { + public void setPeerSite(PeerSite peerSite) { this.peerSite = peerSite; } - public ExternalShowPeerLink withStatus(String status) { + public PeerLinkEntry withStatus(PeerLinkStatus status) { this.status = status; return this; } /** - * 状态:ACTIVE-正常,ERROR-异常 + * Get status * @return status */ - public String getStatus() { + public PeerLinkStatus getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(PeerLinkStatus status) { this.status = status; } - public ExternalShowPeerLink withReason(String reason) { - this.reason = reason; - return this; - } - - /** - * 原因 - * @return reason - */ - public String getReason() { - return reason; - } - - public void setReason(String reason) { - this.reason = reason; - } - - public ExternalShowPeerLink withCreatedTime(OffsetDateTime createdTime) { + public PeerLinkEntry withCreatedTime(OffsetDateTime createdTime) { this.createdTime = createdTime; return this; } /** - * 创建时间 + * 创建时间。 * @return createdTime */ public OffsetDateTime getCreatedTime() { @@ -299,13 +243,13 @@ public void setCreatedTime(OffsetDateTime createdTime) { this.createdTime = createdTime; } - public ExternalShowPeerLink withUpdatedTime(OffsetDateTime updatedTime) { + public PeerLinkEntry withUpdatedTime(OffsetDateTime updatedTime) { this.updatedTime = updatedTime; return this; } /** - * 修改时间 + * 更新时间。 * @return updatedTime */ public OffsetDateTime getUpdatedTime() { @@ -316,6 +260,40 @@ public void setUpdatedTime(OffsetDateTime updatedTime) { this.updatedTime = updatedTime; } + public PeerLinkEntry withCreateOwner(OffsetDateTime createOwner) { + this.createOwner = createOwner; + return this; + } + + /** + * 创建归属服务名 - cc 云连接 - dc 云专线 + * @return createOwner + */ + public OffsetDateTime getCreateOwner() { + return createOwner; + } + + public void setCreateOwner(OffsetDateTime createOwner) { + this.createOwner = createOwner; + } + + public PeerLinkEntry withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -324,15 +302,14 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - ExternalShowPeerLink that = (ExternalShowPeerLink) obj; + PeerLinkEntry that = (PeerLinkEntry) obj; return Objects.equals(this.id, that.id) && Objects.equals(this.tenantId, that.tenantId) && Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) - && Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.globalDcGatewayId, that.globalDcGatewayId) - && Objects.equals(this.createOwner, that.createOwner) && Objects.equals(this.bandwidthInfo, that.bandwidthInfo) && Objects.equals(this.peerSite, that.peerSite) - && Objects.equals(this.status, that.status) && Objects.equals(this.reason, that.reason) - && Objects.equals(this.createdTime, that.createdTime) && Objects.equals(this.updatedTime, that.updatedTime); + && Objects.equals(this.status, that.status) && Objects.equals(this.createdTime, that.createdTime) + && Objects.equals(this.updatedTime, that.updatedTime) && Objects.equals(this.createOwner, that.createOwner) + && Objects.equals(this.instanceId, that.instanceId); } @Override @@ -341,34 +318,32 @@ public int hashCode() { tenantId, name, description, - instanceId, globalDcGatewayId, - createOwner, bandwidthInfo, peerSite, status, - reason, createdTime, - updatedTime); + updatedTime, + createOwner, + instanceId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ExternalShowPeerLink {\n"); + sb.append("class PeerLinkEntry {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); sb.append(" globalDcGatewayId: ").append(toIndentedString(globalDcGatewayId)).append("\n"); - sb.append(" createOwner: ").append(toIndentedString(createOwner)).append("\n"); sb.append(" bandwidthInfo: ").append(toIndentedString(bandwidthInfo)).append("\n"); sb.append(" peerSite: ").append(toIndentedString(peerSite)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" createdTime: ").append(toIndentedString(createdTime)).append("\n"); sb.append(" updatedTime: ").append(toIndentedString(updatedTime)).append("\n"); + sb.append(" createOwner: ").append(toIndentedString(createOwner)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/PeerLinkStatus.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/PeerLinkStatus.java new file mode 100644 index 0000000000..5f9390767a --- /dev/null +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/PeerLinkStatus.java @@ -0,0 +1,90 @@ +package com.huaweicloud.sdk.dc.v3.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; + +/** + * 关联连接状态,PENDING_CREATE (创建中), PENDING_UPDATE (更新中), ACTIVE (可用状态), ERROR (失败状态)。 + */ +public class PeerLinkStatus { + + /** + * Enum PENDING_CREATE for value: "PENDING_CREATE" + */ + public static final PeerLinkStatus PENDING_CREATE = new PeerLinkStatus("PENDING_CREATE"); + + /** + * Enum PENDING_UPDATE for value: "PENDING_UPDATE" + */ + public static final PeerLinkStatus PENDING_UPDATE = new PeerLinkStatus("PENDING_UPDATE"); + + /** + * Enum ACTIVE for value: "ACTIVE" + */ + public static final PeerLinkStatus ACTIVE = new PeerLinkStatus("ACTIVE"); + + /** + * Enum ERROR for value: "ERROR" + */ + public static final PeerLinkStatus ERROR = new PeerLinkStatus("ERROR"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("PENDING_CREATE", PENDING_CREATE); + map.put("PENDING_UPDATE", PENDING_UPDATE); + map.put("ACTIVE", ACTIVE); + map.put("ERROR", ERROR); + return Collections.unmodifiableMap(map); + } + + private String value; + + PeerLinkStatus(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static PeerLinkStatus fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new PeerLinkStatus(value)); + } + + public static PeerLinkStatus 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 PeerLinkStatus) { + return this.value.equals(((PeerLinkStatus) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } +} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreatePeerLinkRequestBodyPeerLinkPeerSite.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/PeerSite.java similarity index 67% rename from services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreatePeerLinkRequestBodyPeerLinkPeerSite.java rename to services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/PeerSite.java index 57ae95e73d..d4d1150cf9 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/CreatePeerLinkRequestBodyPeerLinkPeerSite.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/PeerSite.java @@ -11,12 +11,37 @@ import java.util.Objects; /** - * CreatePeerLinkRequestBodyPeerLinkPeerSite + * 对端的网关的描述信息 */ -public class CreatePeerLinkRequestBodyPeerLinkPeerSite { +public class PeerSite { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "gateway_id") + + private String gatewayId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "link_id") + + private String linkId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "region_id") + + private String regionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "site_code") + + private String siteCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; /** - * Gets or Sets type + * 对等体的类型 - ER 企业路由器 - GDGW 全域接入网关 */ public static final class TypeEnum { @@ -25,11 +50,17 @@ public static final class TypeEnum { */ public static final TypeEnum ER = new TypeEnum("ER"); + /** + * Enum GDGW for value: "GDGW" + */ + public static final TypeEnum GDGW = new TypeEnum("GDGW"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { Map map = new HashMap<>(); map.put("ER", ER); + map.put("GDGW", GDGW); return Collections.unmodifiableMap(map); } @@ -84,62 +115,81 @@ public int hashCode() { private TypeEnum type; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "gateway_id") + public PeerSite withGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + return this; + } - private String gatewayId; + /** + * 对端网关的ID + * @return gatewayId + */ + public String getGatewayId() { + return gatewayId; + } - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "project_id") + public void setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + } - private String projectId; + public PeerSite withLinkId(String linkId) { + this.linkId = linkId; + return this; + } - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "region_id") + /** + * 对端网关连接的ID(如:对端为ER时为attachment ID,对端为GDGW时为对端的PeerLink Id) + * @return linkId + */ + public String getLinkId() { + return linkId; + } - private String regionId; + public void setLinkId(String linkId) { + this.linkId = linkId; + } - public CreatePeerLinkRequestBodyPeerLinkPeerSite withType(TypeEnum type) { - this.type = type; + public PeerSite withRegionId(String regionId) { + this.regionId = regionId; return this; } /** - * Get type - * @return type + * 对端网关所在的Region + * @return regionId */ - public TypeEnum getType() { - return type; + public String getRegionId() { + return regionId; } - public void setType(TypeEnum type) { - this.type = type; + public void setRegionId(String regionId) { + this.regionId = regionId; } - public CreatePeerLinkRequestBodyPeerLinkPeerSite withGatewayId(String gatewayId) { - this.gatewayId = gatewayId; + public PeerSite withSiteCode(String siteCode) { + this.siteCode = siteCode; return this; } /** - * Get gatewayId - * @return gatewayId + * 专线全域接入网关对应的站点位置 + * @return siteCode */ - public String getGatewayId() { - return gatewayId; + public String getSiteCode() { + return siteCode; } - public void setGatewayId(String gatewayId) { - this.gatewayId = gatewayId; + public void setSiteCode(String siteCode) { + this.siteCode = siteCode; } - public CreatePeerLinkRequestBodyPeerLinkPeerSite withProjectId(String projectId) { + public PeerSite withProjectId(String projectId) { this.projectId = projectId; return this; } /** - * Get projectId + * 对等体站点的项目ID * @return projectId */ public String getProjectId() { @@ -150,21 +200,21 @@ public void setProjectId(String projectId) { this.projectId = projectId; } - public CreatePeerLinkRequestBodyPeerLinkPeerSite withRegionId(String regionId) { - this.regionId = regionId; + public PeerSite withType(TypeEnum type) { + this.type = type; return this; } /** - * Get regionId - * @return regionId + * 对等体的类型 - ER 企业路由器 - GDGW 全域接入网关 + * @return type */ - public String getRegionId() { - return regionId; + public TypeEnum getType() { + return type; } - public void setRegionId(String regionId) { - this.regionId = regionId; + public void setType(TypeEnum type) { + this.type = type; } @Override @@ -175,24 +225,27 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - CreatePeerLinkRequestBodyPeerLinkPeerSite that = (CreatePeerLinkRequestBodyPeerLinkPeerSite) obj; - return Objects.equals(this.type, that.type) && Objects.equals(this.gatewayId, that.gatewayId) - && Objects.equals(this.projectId, that.projectId) && Objects.equals(this.regionId, that.regionId); + PeerSite that = (PeerSite) obj; + return Objects.equals(this.gatewayId, that.gatewayId) && Objects.equals(this.linkId, that.linkId) + && Objects.equals(this.regionId, that.regionId) && Objects.equals(this.siteCode, that.siteCode) + && Objects.equals(this.projectId, that.projectId) && Objects.equals(this.type, that.type); } @Override public int hashCode() { - return Objects.hash(type, gatewayId, projectId, regionId); + return Objects.hash(gatewayId, linkId, regionId, siteCode, projectId, type); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreatePeerLinkRequestBodyPeerLinkPeerSite {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("class PeerSite {\n"); sb.append(" gatewayId: ").append(toIndentedString(gatewayId)).append("\n"); - sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" linkId: ").append(toIndentedString(linkId)).append("\n"); sb.append(" regionId: ").append(toIndentedString(regionId)).append("\n"); + sb.append(" siteCode: ").append(toIndentedString(siteCode)).append("\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/PeerSiteExternal.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/PeerSiteExternal.java index 01f5942b23..e0d24fadda 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/PeerSiteExternal.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/PeerSiteExternal.java @@ -6,15 +6,10 @@ import java.util.Objects; /** - * 对等体对象 + * PeerSiteExternal */ public class PeerSiteExternal { - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "type") - - private String type; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "gateway_id") @@ -40,30 +35,13 @@ public class PeerSiteExternal { private String siteCode; - public PeerSiteExternal withType(String type) { - this.type = type; - return this; - } - - /** - * 类型 - * @return type - */ - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - public PeerSiteExternal withGatewayId(String gatewayId) { this.gatewayId = gatewayId; return this; } /** - * 网关ID + * 全域接入网关ID * @return gatewayId */ public String getGatewayId() { @@ -131,7 +109,7 @@ public PeerSiteExternal withSiteCode(String siteCode) { } /** - * 站点编码 + * 网点编码 * @return siteCode */ public String getSiteCode() { @@ -151,21 +129,20 @@ public boolean equals(java.lang.Object obj) { return false; } PeerSiteExternal that = (PeerSiteExternal) obj; - return Objects.equals(this.type, that.type) && Objects.equals(this.gatewayId, that.gatewayId) - && Objects.equals(this.linkId, that.linkId) && Objects.equals(this.regionId, that.regionId) - && Objects.equals(this.projectId, that.projectId) && Objects.equals(this.siteCode, that.siteCode); + return Objects.equals(this.gatewayId, that.gatewayId) && Objects.equals(this.linkId, that.linkId) + && Objects.equals(this.regionId, that.regionId) && Objects.equals(this.projectId, that.projectId) + && Objects.equals(this.siteCode, that.siteCode); } @Override public int hashCode() { - return Objects.hash(type, gatewayId, linkId, regionId, projectId, siteCode); + return Objects.hash(gatewayId, linkId, regionId, projectId, siteCode); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PeerSiteExternal {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" gatewayId: ").append(toIndentedString(gatewayId)).append("\n"); sb.append(" linkId: ").append(toIndentedString(linkId)).append("\n"); sb.append(" regionId: ").append(toIndentedString(regionId)).append("\n"); diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ProviderResponseBody.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ProviderResponseBody.java new file mode 100644 index 0000000000..af53dcfa09 --- /dev/null +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ProviderResponseBody.java @@ -0,0 +1,176 @@ +package com.huaweicloud.sdk.dc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 运营商的返回体。 + */ +public class ProviderResponseBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "short_name") + + private String shortName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "provider_value") + + private ProviderValueBody providerValue; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + public ProviderResponseBody 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 ProviderResponseBody withShortName(String shortName) { + this.shortName = shortName; + return this; + } + + /** + * 运营商简写 + * @return shortName + */ + public String getShortName() { + return shortName; + } + + public void setShortName(String shortName) { + this.shortName = shortName; + } + + public ProviderResponseBody withType(String type) { + this.type = type; + return this; + } + + /** + * 运营商类型 + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public ProviderResponseBody withProviderValue(ProviderValueBody providerValue) { + this.providerValue = providerValue; + return this; + } + + public ProviderResponseBody withProviderValue(Consumer providerValueSetter) { + if (this.providerValue == null) { + this.providerValue = new ProviderValueBody(); + providerValueSetter.accept(this.providerValue); + } + + return this; + } + + /** + * Get providerValue + * @return providerValue + */ + public ProviderValueBody getProviderValue() { + return providerValue; + } + + public void setProviderValue(ProviderValueBody providerValue) { + this.providerValue = providerValue; + } + + public ProviderResponseBody 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; + } + ProviderResponseBody that = (ProviderResponseBody) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.shortName, that.shortName) + && Objects.equals(this.type, that.type) && Objects.equals(this.providerValue, that.providerValue) + && Objects.equals(this.description, that.description); + } + + @Override + public int hashCode() { + return Objects.hash(id, shortName, type, providerValue, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProviderResponseBody {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" shortName: ").append(toIndentedString(shortName)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" providerValue: ").append(toIndentedString(providerValue)).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/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ProviderValueBody.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ProviderValueBody.java new file mode 100644 index 0000000000..d131228860 --- /dev/null +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ProviderValueBody.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.dc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 运营商描述信息。 + */ +public class ProviderValueBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "en_us") + + private String enUs; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "zh_cn") + + private String zhCn; + + public ProviderValueBody withEnUs(String enUs) { + this.enUs = enUs; + return this; + } + + /** + * 英文名称。 + * @return enUs + */ + public String getEnUs() { + return enUs; + } + + public void setEnUs(String enUs) { + this.enUs = enUs; + } + + public ProviderValueBody withZhCn(String zhCn) { + this.zhCn = zhCn; + return this; + } + + /** + * 中文信息。 + * @return zhCn + */ + public String getZhCn() { + return zhCn; + } + + public void setZhCn(String zhCn) { + this.zhCn = zhCn; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ProviderValueBody that = (ProviderValueBody) obj; + return Objects.equals(this.enUs, that.enUs) && Objects.equals(this.zhCn, that.zhCn); + } + + @Override + public int hashCode() { + return Objects.hash(enUs, zhCn); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProviderValueBody {\n"); + sb.append(" enUs: ").append(toIndentedString(enUs)).append("\n"); + sb.append(" zhCn: ").append(toIndentedString(zhCn)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/RmsListGlobalDcGateways.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/RmsListGlobalDcGateways.java deleted file mode 100644 index b2d547d5b8..0000000000 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/RmsListGlobalDcGateways.java +++ /dev/null @@ -1,545 +0,0 @@ -package com.huaweicloud.sdk.dc.v3.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * RmsListGlobalDcGateways - */ -public class RmsListGlobalDcGateways { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "id") - - private String id; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "tenant_id") - - private String tenantId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "name") - - private String name; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "description") - - private String description; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "enterprise_project_id") - - private String enterpriseProjectId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "global_center_network_id") - - private String globalCenterNetworkId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "site_network_id") - - private String siteNetworkId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "cloud_connection_id") - - private String cloudConnectionId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "bgp_asn") - - private Long bgpAsn; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "region_id") - - private String regionId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "location_name") - - private String locationName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "locales") - - private Locale locales; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "current_peer_link_count") - - private Integer currentPeerLinkCount; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "available_peer_link_count") - - private Integer availablePeerLinkCount; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "admin_state_up") - - private Boolean adminStateUp; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "status") - - private String status; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "created_time") - - private OffsetDateTime createdTime; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "updated_time") - - private OffsetDateTime updatedTime; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "tags") - - private Map tags = null; - - public RmsListGlobalDcGateways 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 RmsListGlobalDcGateways withTenantId(String tenantId) { - this.tenantId = tenantId; - return this; - } - - /** - * 租户ID - * @return tenantId - */ - public String getTenantId() { - return tenantId; - } - - public void setTenantId(String tenantId) { - this.tenantId = tenantId; - } - - public RmsListGlobalDcGateways withName(String name) { - this.name = name; - return this; - } - - /** - * 名称 - * @return name - */ - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public RmsListGlobalDcGateways withDescription(String description) { - this.description = description; - return this; - } - - /** - * 描述信息 - * @return description - */ - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public RmsListGlobalDcGateways withEnterpriseProjectId(String enterpriseProjectId) { - this.enterpriseProjectId = enterpriseProjectId; - return this; - } - - /** - * 企业项目ID - * @return enterpriseProjectId - */ - public String getEnterpriseProjectId() { - return enterpriseProjectId; - } - - public void setEnterpriseProjectId(String enterpriseProjectId) { - this.enterpriseProjectId = enterpriseProjectId; - } - - public RmsListGlobalDcGateways withGlobalCenterNetworkId(String globalCenterNetworkId) { - this.globalCenterNetworkId = globalCenterNetworkId; - return this; - } - - /** - * 全球中心网路ID - * @return globalCenterNetworkId - */ - public String getGlobalCenterNetworkId() { - return globalCenterNetworkId; - } - - public void setGlobalCenterNetworkId(String globalCenterNetworkId) { - this.globalCenterNetworkId = globalCenterNetworkId; - } - - public RmsListGlobalDcGateways withSiteNetworkId(String siteNetworkId) { - this.siteNetworkId = siteNetworkId; - return this; - } - - /** - * 站点网络ID - * @return siteNetworkId - */ - public String getSiteNetworkId() { - return siteNetworkId; - } - - public void setSiteNetworkId(String siteNetworkId) { - this.siteNetworkId = siteNetworkId; - } - - public RmsListGlobalDcGateways withCloudConnectionId(String cloudConnectionId) { - this.cloudConnectionId = cloudConnectionId; - return this; - } - - /** - * 云连接ID - * @return cloudConnectionId - */ - public String getCloudConnectionId() { - return cloudConnectionId; - } - - public void setCloudConnectionId(String cloudConnectionId) { - this.cloudConnectionId = cloudConnectionId; - } - - public RmsListGlobalDcGateways withBgpAsn(Long bgpAsn) { - this.bgpAsn = bgpAsn; - return this; - } - - /** - * BGP模式AS号 - * @return bgpAsn - */ - public Long getBgpAsn() { - return bgpAsn; - } - - public void setBgpAsn(Long bgpAsn) { - this.bgpAsn = bgpAsn; - } - - public RmsListGlobalDcGateways withRegionId(String regionId) { - this.regionId = regionId; - return this; - } - - /** - * 局点ID - * @return regionId - */ - public String getRegionId() { - return regionId; - } - - public void setRegionId(String regionId) { - this.regionId = regionId; - } - - public RmsListGlobalDcGateways withLocationName(String locationName) { - this.locationName = locationName; - return this; - } - - /** - * 位置名称 - * @return locationName - */ - public String getLocationName() { - return locationName; - } - - public void setLocationName(String locationName) { - this.locationName = locationName; - } - - public RmsListGlobalDcGateways withLocales(Locale locales) { - this.locales = locales; - return this; - } - - public RmsListGlobalDcGateways withLocales(Consumer localesSetter) { - if (this.locales == null) { - this.locales = new Locale(); - localesSetter.accept(this.locales); - } - - return this; - } - - /** - * Get locales - * @return locales - */ - public Locale getLocales() { - return locales; - } - - public void setLocales(Locale locales) { - this.locales = locales; - } - - public RmsListGlobalDcGateways withCurrentPeerLinkCount(Integer currentPeerLinkCount) { - this.currentPeerLinkCount = currentPeerLinkCount; - return this; - } - - /** - * 当前对等体数量 - * @return currentPeerLinkCount - */ - public Integer getCurrentPeerLinkCount() { - return currentPeerLinkCount; - } - - public void setCurrentPeerLinkCount(Integer currentPeerLinkCount) { - this.currentPeerLinkCount = currentPeerLinkCount; - } - - public RmsListGlobalDcGateways withAvailablePeerLinkCount(Integer availablePeerLinkCount) { - this.availablePeerLinkCount = availablePeerLinkCount; - return this; - } - - /** - * 有效对等体数量 - * @return availablePeerLinkCount - */ - public Integer getAvailablePeerLinkCount() { - return availablePeerLinkCount; - } - - public void setAvailablePeerLinkCount(Integer availablePeerLinkCount) { - this.availablePeerLinkCount = availablePeerLinkCount; - } - - public RmsListGlobalDcGateways withAdminStateUp(Boolean adminStateUp) { - this.adminStateUp = adminStateUp; - return this; - } - - /** - * 是否冻结:true-是,false-否 - * @return adminStateUp - */ - public Boolean getAdminStateUp() { - return adminStateUp; - } - - public void setAdminStateUp(Boolean adminStateUp) { - this.adminStateUp = adminStateUp; - } - - public RmsListGlobalDcGateways withStatus(String status) { - this.status = status; - return this; - } - - /** - * 状态:ACTIVE-正常,ERROR-异常 - * @return status - */ - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public RmsListGlobalDcGateways withCreatedTime(OffsetDateTime createdTime) { - this.createdTime = createdTime; - return this; - } - - /** - * 创建时间 - * @return createdTime - */ - public OffsetDateTime getCreatedTime() { - return createdTime; - } - - public void setCreatedTime(OffsetDateTime createdTime) { - this.createdTime = createdTime; - } - - public RmsListGlobalDcGateways withUpdatedTime(OffsetDateTime updatedTime) { - this.updatedTime = updatedTime; - return this; - } - - /** - * 更新时间 - * @return updatedTime - */ - public OffsetDateTime getUpdatedTime() { - return updatedTime; - } - - public void setUpdatedTime(OffsetDateTime updatedTime) { - this.updatedTime = updatedTime; - } - - public RmsListGlobalDcGateways withTags(Map tags) { - this.tags = tags; - return this; - } - - public RmsListGlobalDcGateways putTagsItem(String key, String tagsItem) { - if (this.tags == null) { - this.tags = new HashMap<>(); - } - this.tags.put(key, tagsItem); - return this; - } - - public RmsListGlobalDcGateways withTags(Consumer> tagsSetter) { - if (this.tags == null) { - this.tags = new HashMap<>(); - } - tagsSetter.accept(this.tags); - return this; - } - - /** - * 返回给RMS的资源标签 - * @return tags - */ - public Map getTags() { - return tags; - } - - public void setTags(Map tags) { - this.tags = tags; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - RmsListGlobalDcGateways that = (RmsListGlobalDcGateways) obj; - return Objects.equals(this.id, that.id) && Objects.equals(this.tenantId, that.tenantId) - && Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) - && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) - && Objects.equals(this.globalCenterNetworkId, that.globalCenterNetworkId) - && Objects.equals(this.siteNetworkId, that.siteNetworkId) - && Objects.equals(this.cloudConnectionId, that.cloudConnectionId) - && Objects.equals(this.bgpAsn, that.bgpAsn) && Objects.equals(this.regionId, that.regionId) - && Objects.equals(this.locationName, that.locationName) && Objects.equals(this.locales, that.locales) - && Objects.equals(this.currentPeerLinkCount, that.currentPeerLinkCount) - && Objects.equals(this.availablePeerLinkCount, that.availablePeerLinkCount) - && Objects.equals(this.adminStateUp, that.adminStateUp) && Objects.equals(this.status, that.status) - && Objects.equals(this.createdTime, that.createdTime) && Objects.equals(this.updatedTime, that.updatedTime) - && Objects.equals(this.tags, that.tags); - } - - @Override - public int hashCode() { - return Objects.hash(id, - tenantId, - name, - description, - enterpriseProjectId, - globalCenterNetworkId, - siteNetworkId, - cloudConnectionId, - bgpAsn, - regionId, - locationName, - locales, - currentPeerLinkCount, - availablePeerLinkCount, - adminStateUp, - status, - createdTime, - updatedTime, - tags); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RmsListGlobalDcGateways {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); - sb.append(" globalCenterNetworkId: ").append(toIndentedString(globalCenterNetworkId)).append("\n"); - sb.append(" siteNetworkId: ").append(toIndentedString(siteNetworkId)).append("\n"); - sb.append(" cloudConnectionId: ").append(toIndentedString(cloudConnectionId)).append("\n"); - sb.append(" bgpAsn: ").append(toIndentedString(bgpAsn)).append("\n"); - sb.append(" regionId: ").append(toIndentedString(regionId)).append("\n"); - sb.append(" locationName: ").append(toIndentedString(locationName)).append("\n"); - sb.append(" locales: ").append(toIndentedString(locales)).append("\n"); - sb.append(" currentPeerLinkCount: ").append(toIndentedString(currentPeerLinkCount)).append("\n"); - sb.append(" availablePeerLinkCount: ").append(toIndentedString(availablePeerLinkCount)).append("\n"); - sb.append(" adminStateUp: ").append(toIndentedString(adminStateUp)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" createdTime: ").append(toIndentedString(createdTime)).append("\n"); - sb.append(" updatedTime: ").append(toIndentedString(updatedTime)).append("\n"); - sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/RouteDescription.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/RouteDescription.java new file mode 100644 index 0000000000..b35a2fe36c --- /dev/null +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/RouteDescription.java @@ -0,0 +1,34 @@ +package com.huaweicloud.sdk.dc.v3.model; + +import java.util.Objects; + +/** + * 路由描述 + */ +public class RouteDescription { + + @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 RouteDescription {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/RouteDestination.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/RouteDestination.java new file mode 100644 index 0000000000..d1b71e7b2b --- /dev/null +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/RouteDestination.java @@ -0,0 +1,34 @@ +package com.huaweicloud.sdk.dc.v3.model; + +import java.util.Objects; + +/** + * 路由子网 + */ +public class RouteDestination { + + @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 RouteDestination {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/RouteNextHop.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/RouteNextHop.java new file mode 100644 index 0000000000..e3e320ccc9 --- /dev/null +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/RouteNextHop.java @@ -0,0 +1,34 @@ +package com.huaweicloud.sdk.dc.v3.model; + +import java.util.Objects; + +/** + * 下一跳id + */ +public class RouteNextHop { + + @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 RouteNextHop {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/RouteTypeOfGdgw.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/RouteTypeOfGdgw.java new file mode 100644 index 0000000000..2a9e264f9e --- /dev/null +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/RouteTypeOfGdgw.java @@ -0,0 +1,78 @@ +package com.huaweicloud.sdk.dc.v3.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; + +/** + * 下一跳类型: - vif_peer: 虚拟接口对等体 - gdgw: 全域接入网关 + */ +public class RouteTypeOfGdgw { + + /** + * Enum VIF_PEER for value: "vif_peer" + */ + public static final RouteTypeOfGdgw VIF_PEER = new RouteTypeOfGdgw("vif_peer"); + + /** + * Enum GDGW for value: "gdgw" + */ + public static final RouteTypeOfGdgw GDGW = new RouteTypeOfGdgw("gdgw"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("vif_peer", VIF_PEER); + map.put("gdgw", GDGW); + return Collections.unmodifiableMap(map); + } + + private String value; + + RouteTypeOfGdgw(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static RouteTypeOfGdgw fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new RouteTypeOfGdgw(value)); + } + + public static RouteTypeOfGdgw 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 RouteTypeOfGdgw) { + return this.value.equals(((RouteTypeOfGdgw) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } +} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowDirectConnectLocationRequest.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowDirectConnectLocationRequest.java new file mode 100644 index 0000000000..ae40f821cf --- /dev/null +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowDirectConnectLocationRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.dc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowDirectConnectLocationRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "direct_connect_location_id") + + private String directConnectLocationId; + + public ShowDirectConnectLocationRequest withDirectConnectLocationId(String directConnectLocationId) { + this.directConnectLocationId = directConnectLocationId; + return this; + } + + /** + * direct-connect-locationID。 + * @return directConnectLocationId + */ + public String getDirectConnectLocationId() { + return directConnectLocationId; + } + + public void setDirectConnectLocationId(String directConnectLocationId) { + this.directConnectLocationId = directConnectLocationId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowDirectConnectLocationRequest that = (ShowDirectConnectLocationRequest) obj; + return Objects.equals(this.directConnectLocationId, that.directConnectLocationId); + } + + @Override + public int hashCode() { + return Objects.hash(directConnectLocationId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowDirectConnectLocationRequest {\n"); + sb.append(" directConnectLocationId: ").append(toIndentedString(directConnectLocationId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowDirectConnectLocationResponse.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowDirectConnectLocationResponse.java new file mode 100644 index 0000000000..ca79655bbd --- /dev/null +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowDirectConnectLocationResponse.java @@ -0,0 +1,109 @@ +package com.huaweicloud.sdk.dc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowDirectConnectLocationResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "direct_connect_location") + + private DirectConnectLocationEntry directConnectLocation; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "request_id") + + private String requestId; + + public ShowDirectConnectLocationResponse withDirectConnectLocation( + DirectConnectLocationEntry directConnectLocation) { + this.directConnectLocation = directConnectLocation; + return this; + } + + public ShowDirectConnectLocationResponse withDirectConnectLocation( + Consumer directConnectLocationSetter) { + if (this.directConnectLocation == null) { + this.directConnectLocation = new DirectConnectLocationEntry(); + directConnectLocationSetter.accept(this.directConnectLocation); + } + + return this; + } + + /** + * Get directConnectLocation + * @return directConnectLocation + */ + public DirectConnectLocationEntry getDirectConnectLocation() { + return directConnectLocation; + } + + public void setDirectConnectLocation(DirectConnectLocationEntry directConnectLocation) { + this.directConnectLocation = directConnectLocation; + } + + public ShowDirectConnectLocationResponse withRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * 请求ID。 + * @return requestId + */ + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowDirectConnectLocationResponse that = (ShowDirectConnectLocationResponse) obj; + return Objects.equals(this.directConnectLocation, that.directConnectLocation) + && Objects.equals(this.requestId, that.requestId); + } + + @Override + public int hashCode() { + return Objects.hash(directConnectLocation, requestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowDirectConnectLocationResponse {\n"); + sb.append(" directConnectLocation: ").append(toIndentedString(directConnectLocation)).append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowGdgwRoutetable.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowGdgwRoutetable.java index a5a17ec6a2..6adfb4496c 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowGdgwRoutetable.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowGdgwRoutetable.java @@ -1,12 +1,17 @@ package com.huaweicloud.sdk.dc.v3.model; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** - * 路由表详细 + * 路由明细 */ public class ShowGdgwRoutetable { @@ -35,38 +40,190 @@ public class ShowGdgwRoutetable { private String nexthop; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "type") + /** + * 路由类型: - customized: 默认路由 - specific: 自定义路由 - bgp: 动态路由 + */ + public static final class ObtainModeEnum { + + /** + * Enum CUSTOMIZED for value: "customized" + */ + public static final ObtainModeEnum CUSTOMIZED = new ObtainModeEnum("customized"); + + /** + * Enum SPECIFIC for value: "specific" + */ + public static final ObtainModeEnum SPECIFIC = new ObtainModeEnum("specific"); + + /** + * Enum BGP for value: "bgp" + */ + public static final ObtainModeEnum BGP = new ObtainModeEnum("bgp"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("customized", CUSTOMIZED); + map.put("specific", SPECIFIC); + map.put("bgp", BGP); + return Collections.unmodifiableMap(map); + } - private String type; + private String value; + + ObtainModeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ObtainModeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ObtainModeEnum(value)); + } + + public static ObtainModeEnum 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 ObtainModeEnum) { + return this.value.equals(((ObtainModeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "obtain_mode") - private String obtainMode; + private ObtainModeEnum obtainMode; + + /** + * 路由状态: - ACTIVE: 下发正常 - ERROR: 下发失败 - PENDING_CREATE: 待下发 + */ + public static final class StatusEnum { + + /** + * Enum ACTIVE for value: "ACTIVE" + */ + public static final StatusEnum ACTIVE = new StatusEnum("ACTIVE"); + + /** + * Enum ERROR for value: "ERROR" + */ + public static final StatusEnum ERROR = new StatusEnum("ERROR"); + + /** + * Enum PENDING_CREATE for value: "PENDING_CREATE" + */ + public static final StatusEnum PENDING_CREATE = new StatusEnum("PENDING_CREATE"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("ACTIVE", ACTIVE); + map.put("ERROR", ERROR); + map.put("PENDING_CREATE", PENDING_CREATE); + 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 = "address_family") - private String addressFamily; + private AddressFamily addressFamily; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "description") private String description; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private RouteTypeOfGdgw type; + public ShowGdgwRoutetable withId(String id) { this.id = id; return this; } /** - * 唯一ID + * 路由id * @return id */ public String getId() { @@ -83,7 +240,7 @@ public ShowGdgwRoutetable withTenantId(String tenantId) { } /** - * 租户ID + * 租户id * @return tenantId */ public String getTenantId() { @@ -100,7 +257,7 @@ public ShowGdgwRoutetable withGatewayId(String gatewayId) { } /** - * 网关ID + * 网关id * @return gatewayId */ public String getGatewayId() { @@ -117,7 +274,7 @@ public ShowGdgwRoutetable withDestination(String destination) { } /** - * 描述信息 + * 路由子网 * @return destination */ public String getDestination() { @@ -134,7 +291,7 @@ public ShowGdgwRoutetable withNexthop(String nexthop) { } /** - * 下一跳ID + * 下一跳id * @return nexthop */ public String getNexthop() { @@ -145,71 +302,54 @@ public void setNexthop(String nexthop) { this.nexthop = nexthop; } - public ShowGdgwRoutetable withType(String type) { - this.type = type; - return this; - } - - /** - * 类型 - * @return type - */ - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public ShowGdgwRoutetable withObtainMode(String obtainMode) { + public ShowGdgwRoutetable withObtainMode(ObtainModeEnum obtainMode) { this.obtainMode = obtainMode; return this; } /** - * 获得模式 + * 路由类型: - customized: 默认路由 - specific: 自定义路由 - bgp: 动态路由 * @return obtainMode */ - public String getObtainMode() { + public ObtainModeEnum getObtainMode() { return obtainMode; } - public void setObtainMode(String obtainMode) { + public void setObtainMode(ObtainModeEnum obtainMode) { this.obtainMode = obtainMode; } - public ShowGdgwRoutetable withStatus(String status) { + public ShowGdgwRoutetable withStatus(StatusEnum status) { this.status = status; return this; } /** - * 状态:ACTIVE-正常,ERROR-异常 + * 路由状态: - ACTIVE: 下发正常 - ERROR: 下发失败 - PENDING_CREATE: 待下发 * @return status */ - public String getStatus() { + public StatusEnum getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(StatusEnum status) { this.status = status; } - public ShowGdgwRoutetable withAddressFamily(String addressFamily) { + public ShowGdgwRoutetable withAddressFamily(AddressFamily addressFamily) { this.addressFamily = addressFamily; return this; } /** - * 地址簇:ipv4 | ipv6 + * Get addressFamily * @return addressFamily */ - public String getAddressFamily() { + public AddressFamily getAddressFamily() { return addressFamily; } - public void setAddressFamily(String addressFamily) { + public void setAddressFamily(AddressFamily addressFamily) { this.addressFamily = addressFamily; } @@ -219,7 +359,7 @@ public ShowGdgwRoutetable withDescription(String description) { } /** - * 描述信息 + * 路由描述 * @return description */ public String getDescription() { @@ -230,6 +370,23 @@ public void setDescription(String description) { this.description = description; } + public ShowGdgwRoutetable withType(RouteTypeOfGdgw type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + public RouteTypeOfGdgw getType() { + return type; + } + + public void setType(RouteTypeOfGdgw type) { + this.type = type; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -241,16 +398,15 @@ public boolean equals(java.lang.Object obj) { ShowGdgwRoutetable that = (ShowGdgwRoutetable) obj; return Objects.equals(this.id, that.id) && Objects.equals(this.tenantId, that.tenantId) && Objects.equals(this.gatewayId, that.gatewayId) && Objects.equals(this.destination, that.destination) - && Objects.equals(this.nexthop, that.nexthop) && Objects.equals(this.type, that.type) - && Objects.equals(this.obtainMode, that.obtainMode) && Objects.equals(this.status, that.status) - && Objects.equals(this.addressFamily, that.addressFamily) - && Objects.equals(this.description, that.description); + && Objects.equals(this.nexthop, that.nexthop) && Objects.equals(this.obtainMode, that.obtainMode) + && Objects.equals(this.status, that.status) && Objects.equals(this.addressFamily, that.addressFamily) + && Objects.equals(this.description, that.description) && Objects.equals(this.type, that.type); } @Override public int hashCode() { return Objects - .hash(id, tenantId, gatewayId, destination, nexthop, type, obtainMode, status, addressFamily, description); + .hash(id, tenantId, gatewayId, destination, nexthop, obtainMode, status, addressFamily, description, type); } @Override @@ -262,11 +418,11 @@ public String toString() { sb.append(" gatewayId: ").append(toIndentedString(gatewayId)).append("\n"); sb.append(" destination: ").append(toIndentedString(destination)).append("\n"); sb.append(" nexthop: ").append(toIndentedString(nexthop)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" obtainMode: ").append(toIndentedString(obtainMode)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" addressFamily: ").append(toIndentedString(addressFamily)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowGlobalDcGatewayRequest.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowGlobalDcGatewayRequest.java index eebdbdbc78..a5bfd06a2f 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowGlobalDcGatewayRequest.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowGlobalDcGatewayRequest.java @@ -14,9 +14,9 @@ public class ShowGlobalDcGatewayRequest { @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "global_dc_gateway_id") + @JsonProperty(value = "limit") - private String globalDcGatewayId; + private Integer limit; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "fields") @@ -28,21 +28,33 @@ public class ShowGlobalDcGatewayRequest { private List extFields = null; - public ShowGlobalDcGatewayRequest withGlobalDcGatewayId(String globalDcGatewayId) { - this.globalDcGatewayId = globalDcGatewayId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private List enterpriseProjectId = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "global_dc_gateway_id") + + private String globalDcGatewayId; + + public ShowGlobalDcGatewayRequest withLimit(Integer limit) { + this.limit = limit; return this; } /** - * 全球接入网关ID - * @return globalDcGatewayId + * 每页返回的个数。 取值范围:1~2000。 + * minimum: 1 + * maximum: 2000 + * @return limit */ - public String getGlobalDcGatewayId() { - return globalDcGatewayId; + public Integer getLimit() { + return limit; } - public void setGlobalDcGatewayId(String globalDcGatewayId) { - this.globalDcGatewayId = globalDcGatewayId; + public void setLimit(Integer limit) { + this.limit = limit; } public ShowGlobalDcGatewayRequest withFields(List fields) { @@ -111,6 +123,56 @@ public void setExtFields(List extFields) { this.extFields = extFields; } + public ShowGlobalDcGatewayRequest withEnterpriseProjectId(List enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + return this; + } + + public ShowGlobalDcGatewayRequest addEnterpriseProjectIdItem(String enterpriseProjectIdItem) { + if (this.enterpriseProjectId == null) { + this.enterpriseProjectId = new ArrayList<>(); + } + this.enterpriseProjectId.add(enterpriseProjectIdItem); + return this; + } + + public ShowGlobalDcGatewayRequest withEnterpriseProjectId(Consumer> enterpriseProjectIdSetter) { + if (this.enterpriseProjectId == null) { + this.enterpriseProjectId = new ArrayList<>(); + } + enterpriseProjectIdSetter.accept(this.enterpriseProjectId); + return this; + } + + /** + * 根据企业项目ID过滤资源实例 + * @return enterpriseProjectId + */ + public List getEnterpriseProjectId() { + return enterpriseProjectId; + } + + public void setEnterpriseProjectId(List enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + } + + public ShowGlobalDcGatewayRequest withGlobalDcGatewayId(String globalDcGatewayId) { + this.globalDcGatewayId = globalDcGatewayId; + return this; + } + + /** + * 全域接入网关ID + * @return globalDcGatewayId + */ + public String getGlobalDcGatewayId() { + return globalDcGatewayId; + } + + public void setGlobalDcGatewayId(String globalDcGatewayId) { + this.globalDcGatewayId = globalDcGatewayId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -120,22 +182,26 @@ public boolean equals(java.lang.Object obj) { return false; } ShowGlobalDcGatewayRequest that = (ShowGlobalDcGatewayRequest) obj; - return Objects.equals(this.globalDcGatewayId, that.globalDcGatewayId) - && Objects.equals(this.fields, that.fields) && Objects.equals(this.extFields, that.extFields); + return Objects.equals(this.limit, that.limit) && Objects.equals(this.fields, that.fields) + && Objects.equals(this.extFields, that.extFields) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) + && Objects.equals(this.globalDcGatewayId, that.globalDcGatewayId); } @Override public int hashCode() { - return Objects.hash(globalDcGatewayId, fields, extFields); + return Objects.hash(limit, fields, extFields, enterpriseProjectId, globalDcGatewayId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ShowGlobalDcGatewayRequest {\n"); - sb.append(" globalDcGatewayId: ").append(toIndentedString(globalDcGatewayId)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); sb.append(" fields: ").append(toIndentedString(fields)).append("\n"); sb.append(" extFields: ").append(toIndentedString(extFields)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append(" globalDcGatewayId: ").append(toIndentedString(globalDcGatewayId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowGlobalDcGatewayResponse.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowGlobalDcGatewayResponse.java index bd58d68dfd..dd750475ee 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowGlobalDcGatewayResponse.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowGlobalDcGatewayResponse.java @@ -12,47 +12,24 @@ */ public class ShowGlobalDcGatewayResponse extends SdkResponse { - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "request_id") - - private String requestId; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "global_dc_gateway") - private ExternalShowGlobalDcGateway globalDcGateway; + private GlobalDcGatewayEntry globalDcGateway; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - - private String xRequestId; - - public ShowGlobalDcGatewayResponse withRequestId(String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Get requestId - * @return requestId - */ - public String getRequestId() { - return requestId; - } + @JsonProperty(value = "request_id") - public void setRequestId(String requestId) { - this.requestId = requestId; - } + private String requestId; - public ShowGlobalDcGatewayResponse withGlobalDcGateway(ExternalShowGlobalDcGateway globalDcGateway) { + public ShowGlobalDcGatewayResponse withGlobalDcGateway(GlobalDcGatewayEntry globalDcGateway) { this.globalDcGateway = globalDcGateway; return this; } - public ShowGlobalDcGatewayResponse withGlobalDcGateway( - Consumer globalDcGatewaySetter) { + public ShowGlobalDcGatewayResponse withGlobalDcGateway(Consumer globalDcGatewaySetter) { if (this.globalDcGateway == null) { - this.globalDcGateway = new ExternalShowGlobalDcGateway(); + this.globalDcGateway = new GlobalDcGatewayEntry(); globalDcGatewaySetter.accept(this.globalDcGateway); } @@ -63,31 +40,29 @@ public ShowGlobalDcGatewayResponse withGlobalDcGateway( * Get globalDcGateway * @return globalDcGateway */ - public ExternalShowGlobalDcGateway getGlobalDcGateway() { + public GlobalDcGatewayEntry getGlobalDcGateway() { return globalDcGateway; } - public void setGlobalDcGateway(ExternalShowGlobalDcGateway globalDcGateway) { + public void setGlobalDcGateway(GlobalDcGatewayEntry globalDcGateway) { this.globalDcGateway = globalDcGateway; } - public ShowGlobalDcGatewayResponse withXRequestId(String xRequestId) { - this.xRequestId = xRequestId; + public ShowGlobalDcGatewayResponse withRequestId(String requestId) { + this.requestId = requestId; return this; } /** - * Get xRequestId - * @return xRequestId + * 请求ID。 + * @return requestId */ - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - public String getXRequestId() { - return xRequestId; + public String getRequestId() { + return requestId; } - public void setXRequestId(String xRequestId) { - this.xRequestId = xRequestId; + public void setRequestId(String requestId) { + this.requestId = requestId; } @Override @@ -99,23 +74,21 @@ public boolean equals(java.lang.Object obj) { return false; } ShowGlobalDcGatewayResponse that = (ShowGlobalDcGatewayResponse) obj; - return Objects.equals(this.requestId, that.requestId) - && Objects.equals(this.globalDcGateway, that.globalDcGateway) - && Objects.equals(this.xRequestId, that.xRequestId); + return Objects.equals(this.globalDcGateway, that.globalDcGateway) + && Objects.equals(this.requestId, that.requestId); } @Override public int hashCode() { - return Objects.hash(requestId, globalDcGateway, xRequestId); + return Objects.hash(globalDcGateway, requestId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ShowGlobalDcGatewayResponse {\n"); - sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" globalDcGateway: ").append(toIndentedString(globalDcGateway)).append("\n"); - sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowPeerLinkRequest.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowPeerLinkRequest.java index ccede02955..274247898a 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowPeerLinkRequest.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowPeerLinkRequest.java @@ -13,16 +13,6 @@ */ public class ShowPeerLinkRequest { - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "global_dc_gateway_id") - - private String globalDcGatewayId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "peer_link_id") - - private String peerLinkId; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "fields") @@ -33,39 +23,15 @@ public class ShowPeerLinkRequest { private List extFields = null; - public ShowPeerLinkRequest withGlobalDcGatewayId(String globalDcGatewayId) { - this.globalDcGatewayId = globalDcGatewayId; - return this; - } - - /** - * 全球接入网关ID - * @return globalDcGatewayId - */ - public String getGlobalDcGatewayId() { - return globalDcGatewayId; - } - - public void setGlobalDcGatewayId(String globalDcGatewayId) { - this.globalDcGatewayId = globalDcGatewayId; - } + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "global_dc_gateway_id") - public ShowPeerLinkRequest withPeerLinkId(String peerLinkId) { - this.peerLinkId = peerLinkId; - return this; - } + private String globalDcGatewayId; - /** - * 全球接入网关对等体 - * @return peerLinkId - */ - public String getPeerLinkId() { - return peerLinkId; - } + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "peer_link_id") - public void setPeerLinkId(String peerLinkId) { - this.peerLinkId = peerLinkId; - } + private String peerLinkId; public ShowPeerLinkRequest withFields(List fields) { this.fields = fields; @@ -133,6 +99,40 @@ public void setExtFields(List extFields) { this.extFields = extFields; } + public ShowPeerLinkRequest withGlobalDcGatewayId(String globalDcGatewayId) { + this.globalDcGatewayId = globalDcGatewayId; + return this; + } + + /** + * 全域接入网关ID + * @return globalDcGatewayId + */ + public String getGlobalDcGatewayId() { + return globalDcGatewayId; + } + + public void setGlobalDcGatewayId(String globalDcGatewayId) { + this.globalDcGatewayId = globalDcGatewayId; + } + + public ShowPeerLinkRequest withPeerLinkId(String peerLinkId) { + this.peerLinkId = peerLinkId; + return this; + } + + /** + * 全域接入网关对等体 + * @return peerLinkId + */ + public String getPeerLinkId() { + return peerLinkId; + } + + public void setPeerLinkId(String peerLinkId) { + this.peerLinkId = peerLinkId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -142,24 +142,24 @@ public boolean equals(java.lang.Object obj) { return false; } ShowPeerLinkRequest that = (ShowPeerLinkRequest) obj; - return Objects.equals(this.globalDcGatewayId, that.globalDcGatewayId) - && Objects.equals(this.peerLinkId, that.peerLinkId) && Objects.equals(this.fields, that.fields) - && Objects.equals(this.extFields, that.extFields); + return Objects.equals(this.fields, that.fields) && Objects.equals(this.extFields, that.extFields) + && Objects.equals(this.globalDcGatewayId, that.globalDcGatewayId) + && Objects.equals(this.peerLinkId, that.peerLinkId); } @Override public int hashCode() { - return Objects.hash(globalDcGatewayId, peerLinkId, fields, extFields); + return Objects.hash(fields, extFields, globalDcGatewayId, peerLinkId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ShowPeerLinkRequest {\n"); - sb.append(" globalDcGatewayId: ").append(toIndentedString(globalDcGatewayId)).append("\n"); - sb.append(" peerLinkId: ").append(toIndentedString(peerLinkId)).append("\n"); sb.append(" fields: ").append(toIndentedString(fields)).append("\n"); sb.append(" extFields: ").append(toIndentedString(extFields)).append("\n"); + sb.append(" globalDcGatewayId: ").append(toIndentedString(globalDcGatewayId)).append("\n"); + sb.append(" peerLinkId: ").append(toIndentedString(peerLinkId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowPeerLinkResponse.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowPeerLinkResponse.java index 9aff28ca07..b7a2b105d3 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowPeerLinkResponse.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowPeerLinkResponse.java @@ -12,46 +12,24 @@ */ public class ShowPeerLinkResponse extends SdkResponse { - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "request_id") - - private String requestId; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "peer_link") - private ExternalShowPeerLink peerLink; + private PeerLinkEntry peerLink; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - - private String xRequestId; - - public ShowPeerLinkResponse withRequestId(String requestId) { - this.requestId = requestId; - return this; - } - - /** - * 请求ID - * @return requestId - */ - public String getRequestId() { - return requestId; - } + @JsonProperty(value = "request_id") - public void setRequestId(String requestId) { - this.requestId = requestId; - } + private String requestId; - public ShowPeerLinkResponse withPeerLink(ExternalShowPeerLink peerLink) { + public ShowPeerLinkResponse withPeerLink(PeerLinkEntry peerLink) { this.peerLink = peerLink; return this; } - public ShowPeerLinkResponse withPeerLink(Consumer peerLinkSetter) { + public ShowPeerLinkResponse withPeerLink(Consumer peerLinkSetter) { if (this.peerLink == null) { - this.peerLink = new ExternalShowPeerLink(); + this.peerLink = new PeerLinkEntry(); peerLinkSetter.accept(this.peerLink); } @@ -62,31 +40,29 @@ public ShowPeerLinkResponse withPeerLink(Consumer peerLink * Get peerLink * @return peerLink */ - public ExternalShowPeerLink getPeerLink() { + public PeerLinkEntry getPeerLink() { return peerLink; } - public void setPeerLink(ExternalShowPeerLink peerLink) { + public void setPeerLink(PeerLinkEntry peerLink) { this.peerLink = peerLink; } - public ShowPeerLinkResponse withXRequestId(String xRequestId) { - this.xRequestId = xRequestId; + public ShowPeerLinkResponse withRequestId(String requestId) { + this.requestId = requestId; return this; } /** - * Get xRequestId - * @return xRequestId + * 请求ID。 + * @return requestId */ - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - public String getXRequestId() { - return xRequestId; + public String getRequestId() { + return requestId; } - public void setXRequestId(String xRequestId) { - this.xRequestId = xRequestId; + public void setRequestId(String requestId) { + this.requestId = requestId; } @Override @@ -98,22 +74,20 @@ public boolean equals(java.lang.Object obj) { return false; } ShowPeerLinkResponse that = (ShowPeerLinkResponse) obj; - return Objects.equals(this.requestId, that.requestId) && Objects.equals(this.peerLink, that.peerLink) - && Objects.equals(this.xRequestId, that.xRequestId); + return Objects.equals(this.peerLink, that.peerLink) && Objects.equals(this.requestId, that.requestId); } @Override public int hashCode() { - return Objects.hash(requestId, peerLink, xRequestId); + return Objects.hash(peerLink, requestId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ShowPeerLinkResponse {\n"); - sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" peerLink: ").append(toIndentedString(peerLink)).append("\n"); - sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowQuotasRequest.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowQuotasRequest.java index 96e9c9ccda..db094f08d3 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowQuotasRequest.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowQuotasRequest.java @@ -40,7 +40,7 @@ public ShowQuotasRequest withType(Consumer> typeSetter) { } /** - * 支持过滤的配额类型: - [physicalConnect: 物理连接direct_connect实例的配额和使用量] - [virtualInterface: 虚拟接口virtual-interface的配额和使用量] - [connectGateway: 连接网关(用于关联GEIP)的配额和使用量](tag:hws) - [geip: 每租户可以关联GEIP的配额和使用量](tag:hws) - [globalDcGateway 专线全球接入网关的配额和使用量] - [peerLinkPerGdgw: 接入网关的关联连接的配额和使用量] + * 支持过滤的配额类型: - physicalConnect: 物理连接direct_connect实例的配额和使用量 - virtualInterface: 虚拟接口virtual-interface的配额和使用量 - [connectGateway: 连接网关(用于关联GEIP)的配额和使用量](tag:hws) - [geip: 每租户可以关联GEIP的配额和使用量](tag:hws) - [globalDcGateway 专线全域接入网关的配额和使用量](tag:hws,hws_hk) - [peerLinkPerGdgw: 接入网关的关联连接的配额和使用量](tag:hws,hws_hk) * @return type */ public List getType() { diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowQuotasResponseBodyQuotas.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowQuotasResponseBodyQuotas.java index e9f99e0789..2085b6db09 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowQuotasResponseBodyQuotas.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowQuotasResponseBodyQuotas.java @@ -40,7 +40,7 @@ public ShowQuotasResponseBodyQuotas withResources(Consumer> resources } /** - * Get resources + * 不同资源配额使用详情列表 * @return resources */ public List getResources() { diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowRmsGlobalDcGatewayRequest.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowRmsGlobalDcGatewayRequest.java deleted file mode 100644 index 2ebf0b0c88..0000000000 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowRmsGlobalDcGatewayRequest.java +++ /dev/null @@ -1,248 +0,0 @@ -package com.huaweicloud.sdk.dc.v3.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * Request Object - */ -public class ShowRmsGlobalDcGatewayRequest { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "rp_name") - - private String rpName; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "domain_id") - - private String domainId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "region_id") - - private String regionId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "resource_type") - - private String resourceType; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "global_dc_gateway_id") - - private String globalDcGatewayId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "fields") - - private List fields = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "ext_fields") - - private List extFields = null; - - public ShowRmsGlobalDcGatewayRequest withRpName(String rpName) { - this.rpName = rpName; - return this; - } - - /** - * 通过rp_name过滤记录 - * @return rpName - */ - public String getRpName() { - return rpName; - } - - public void setRpName(String rpName) { - this.rpName = rpName; - } - - public ShowRmsGlobalDcGatewayRequest withDomainId(String domainId) { - this.domainId = domainId; - return this; - } - - /** - * domain_id - * @return domainId - */ - public String getDomainId() { - return domainId; - } - - public void setDomainId(String domainId) { - this.domainId = domainId; - } - - public ShowRmsGlobalDcGatewayRequest withRegionId(String regionId) { - this.regionId = regionId; - return this; - } - - /** - * region_id - * @return regionId - */ - public String getRegionId() { - return regionId; - } - - public void setRegionId(String regionId) { - this.regionId = regionId; - } - - public ShowRmsGlobalDcGatewayRequest withResourceType(String resourceType) { - this.resourceType = resourceType; - return this; - } - - /** - * resource_type - * @return resourceType - */ - public String getResourceType() { - return resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } - - public ShowRmsGlobalDcGatewayRequest withGlobalDcGatewayId(String globalDcGatewayId) { - this.globalDcGatewayId = globalDcGatewayId; - return this; - } - - /** - * 全球接入网关ID - * @return globalDcGatewayId - */ - public String getGlobalDcGatewayId() { - return globalDcGatewayId; - } - - public void setGlobalDcGatewayId(String globalDcGatewayId) { - this.globalDcGatewayId = globalDcGatewayId; - } - - public ShowRmsGlobalDcGatewayRequest withFields(List fields) { - this.fields = fields; - return this; - } - - public ShowRmsGlobalDcGatewayRequest addFieldsItem(String fieldsItem) { - if (this.fields == null) { - this.fields = new ArrayList<>(); - } - this.fields.add(fieldsItem); - return this; - } - - public ShowRmsGlobalDcGatewayRequest withFields(Consumer> fieldsSetter) { - if (this.fields == null) { - this.fields = new ArrayList<>(); - } - fieldsSetter.accept(this.fields); - return this; - } - - /** - * 显示字段列表 - * @return fields - */ - public List getFields() { - return fields; - } - - public void setFields(List fields) { - this.fields = fields; - } - - public ShowRmsGlobalDcGatewayRequest withExtFields(List extFields) { - this.extFields = extFields; - return this; - } - - public ShowRmsGlobalDcGatewayRequest addExtFieldsItem(String extFieldsItem) { - if (this.extFields == null) { - this.extFields = new ArrayList<>(); - } - this.extFields.add(extFieldsItem); - return this; - } - - public ShowRmsGlobalDcGatewayRequest withExtFields(Consumer> extFieldsSetter) { - if (this.extFields == null) { - this.extFields = new ArrayList<>(); - } - extFieldsSetter.accept(this.extFields); - return this; - } - - /** - * show response ext-fields - * @return extFields - */ - public List getExtFields() { - return extFields; - } - - public void setExtFields(List extFields) { - this.extFields = extFields; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ShowRmsGlobalDcGatewayRequest that = (ShowRmsGlobalDcGatewayRequest) obj; - return Objects.equals(this.rpName, that.rpName) && Objects.equals(this.domainId, that.domainId) - && Objects.equals(this.regionId, that.regionId) && Objects.equals(this.resourceType, that.resourceType) - && Objects.equals(this.globalDcGatewayId, that.globalDcGatewayId) - && Objects.equals(this.fields, that.fields) && Objects.equals(this.extFields, that.extFields); - } - - @Override - public int hashCode() { - return Objects.hash(rpName, domainId, regionId, resourceType, globalDcGatewayId, fields, extFields); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ShowRmsGlobalDcGatewayRequest {\n"); - sb.append(" rpName: ").append(toIndentedString(rpName)).append("\n"); - sb.append(" domainId: ").append(toIndentedString(domainId)).append("\n"); - sb.append(" regionId: ").append(toIndentedString(regionId)).append("\n"); - sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n"); - sb.append(" globalDcGatewayId: ").append(toIndentedString(globalDcGatewayId)).append("\n"); - sb.append(" fields: ").append(toIndentedString(fields)).append("\n"); - sb.append(" extFields: ").append(toIndentedString(extFields)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowRmsGlobalDcGatewayResponse.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowRmsGlobalDcGatewayResponse.java deleted file mode 100644 index 3daa6531e2..0000000000 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/ShowRmsGlobalDcGatewayResponse.java +++ /dev/null @@ -1,133 +0,0 @@ -package com.huaweicloud.sdk.dc.v3.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.huaweicloud.sdk.core.SdkResponse; - -import java.util.Objects; -import java.util.function.Consumer; - -/** - * Response Object - */ -public class ShowRmsGlobalDcGatewayResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "request_id") - - private String requestId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "global_dc_gateway") - - private RmsShowGlobalDcGateway globalDcGateway; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - - private String xRequestId; - - public ShowRmsGlobalDcGatewayResponse withRequestId(String requestId) { - this.requestId = requestId; - return this; - } - - /** - * 请求ID - * @return requestId - */ - public String getRequestId() { - return requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public ShowRmsGlobalDcGatewayResponse withGlobalDcGateway(RmsShowGlobalDcGateway globalDcGateway) { - this.globalDcGateway = globalDcGateway; - return this; - } - - public ShowRmsGlobalDcGatewayResponse withGlobalDcGateway(Consumer globalDcGatewaySetter) { - if (this.globalDcGateway == null) { - this.globalDcGateway = new RmsShowGlobalDcGateway(); - globalDcGatewaySetter.accept(this.globalDcGateway); - } - - return this; - } - - /** - * Get globalDcGateway - * @return globalDcGateway - */ - public RmsShowGlobalDcGateway getGlobalDcGateway() { - return globalDcGateway; - } - - public void setGlobalDcGateway(RmsShowGlobalDcGateway globalDcGateway) { - this.globalDcGateway = globalDcGateway; - } - - public ShowRmsGlobalDcGatewayResponse withXRequestId(String xRequestId) { - this.xRequestId = xRequestId; - return this; - } - - /** - * Get xRequestId - * @return xRequestId - */ - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - public String getXRequestId() { - return xRequestId; - } - - public void setXRequestId(String xRequestId) { - this.xRequestId = xRequestId; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ShowRmsGlobalDcGatewayResponse that = (ShowRmsGlobalDcGatewayResponse) obj; - return Objects.equals(this.requestId, that.requestId) - && Objects.equals(this.globalDcGateway, that.globalDcGateway) - && Objects.equals(this.xRequestId, that.xRequestId); - } - - @Override - public int hashCode() { - return Objects.hash(requestId, globalDcGateway, xRequestId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ShowRmsGlobalDcGatewayResponse {\n"); - sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); - sb.append(" globalDcGateway: ").append(toIndentedString(globalDcGateway)).append("\n"); - sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/SwitchoverTestRecord.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/SwitchoverTestRecord.java index 461beae9e0..029bf92c7d 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/SwitchoverTestRecord.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/SwitchoverTestRecord.java @@ -363,7 +363,7 @@ public SwitchoverTestRecord withStartTime(OffsetDateTime startTime) { } /** - * 倒换测试操作的开始时间 + * 倒换测试操作的开始时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ * @return startTime */ public OffsetDateTime getStartTime() { @@ -380,7 +380,7 @@ public SwitchoverTestRecord withEndTime(OffsetDateTime endTime) { } /** - * 倒换测试操作的结束时间 + * 倒换测试操作的结束时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ * @return endTime */ public OffsetDateTime getEndTime() { diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UnbindGlobalEipsResponse.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UnbindGlobalEipsResponse.java index 98e134372d..04c85d53f9 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UnbindGlobalEipsResponse.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UnbindGlobalEipsResponse.java @@ -22,11 +22,6 @@ public class UnbindGlobalEipsResponse extends SdkResponse { private ListBindingGeip globalEips; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - - private String xRequestId; - public UnbindGlobalEipsResponse withRequestId(String requestId) { this.requestId = requestId; return this; @@ -70,25 +65,6 @@ public void setGlobalEips(ListBindingGeip globalEips) { this.globalEips = globalEips; } - public UnbindGlobalEipsResponse withXRequestId(String xRequestId) { - this.xRequestId = xRequestId; - return this; - } - - /** - * Get xRequestId - * @return xRequestId - */ - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - public String getXRequestId() { - return xRequestId; - } - - public void setXRequestId(String xRequestId) { - this.xRequestId = xRequestId; - } - @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -98,13 +74,12 @@ public boolean equals(java.lang.Object obj) { return false; } UnbindGlobalEipsResponse that = (UnbindGlobalEipsResponse) obj; - return Objects.equals(this.requestId, that.requestId) && Objects.equals(this.globalEips, that.globalEips) - && Objects.equals(this.xRequestId, that.xRequestId); + return Objects.equals(this.requestId, that.requestId) && Objects.equals(this.globalEips, that.globalEips); } @Override public int hashCode() { - return Objects.hash(requestId, globalEips, xRequestId); + return Objects.hash(requestId, globalEips); } @Override @@ -113,7 +88,6 @@ public String toString() { sb.append("class UnbindGlobalEipsResponse {\n"); sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" globalEips: ").append(toIndentedString(globalEips)).append("\n"); - sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateConnectGatewayResponse.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateConnectGatewayResponse.java index 2e9bf958a8..a5b206a827 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateConnectGatewayResponse.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateConnectGatewayResponse.java @@ -1,14 +1,70 @@ package com.huaweicloud.sdk.dc.v3.model; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object */ public class UpdateConnectGatewayResponse extends SdkResponse { + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "request_id") + + private String requestId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "connect_gateway") + + private ConnectGatewayResponse connectGateway; + + public UpdateConnectGatewayResponse withRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * 请求ID + * @return requestId + */ + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public UpdateConnectGatewayResponse withConnectGateway(ConnectGatewayResponse connectGateway) { + this.connectGateway = connectGateway; + return this; + } + + public UpdateConnectGatewayResponse withConnectGateway(Consumer connectGatewaySetter) { + if (this.connectGateway == null) { + this.connectGateway = new ConnectGatewayResponse(); + connectGatewaySetter.accept(this.connectGateway); + } + + return this; + } + + /** + * Get connectGateway + * @return connectGateway + */ + public ConnectGatewayResponse getConnectGateway() { + return connectGateway; + } + + public void setConnectGateway(ConnectGatewayResponse connectGateway) { + this.connectGateway = connectGateway; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -17,20 +73,35 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - return true; + UpdateConnectGatewayResponse that = (UpdateConnectGatewayResponse) obj; + return Objects.equals(this.requestId, that.requestId) + && Objects.equals(this.connectGateway, that.connectGateway); } @Override public int hashCode() { - return Objects.hash(); + return Objects.hash(requestId, connectGateway); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateConnectGatewayResponse {\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append(" connectGateway: ").append(toIndentedString(connectGateway)).append("\n"); sb.append("}"); return sb.toString(); } + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateDirectConnect.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateDirectConnect.java index ef98e44c7a..ab03fcfc3c 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateDirectConnect.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateDirectConnect.java @@ -36,7 +36,7 @@ public class UpdateDirectConnect { private String peerLocation; /** - * 更新资源状态,合法值是:PENDING_PAY + * 更新资源状态,合法值是:PENDING_PAY,APPLY */ public static final class StatusEnum { @@ -45,11 +45,17 @@ public static final class StatusEnum { */ public static final StatusEnum PENDING_PAY = new StatusEnum("PENDING_PAY"); + /** + * Enum APPLY for value: "APPLY" + */ + public static final StatusEnum APPLY = new StatusEnum("APPLY"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { Map map = new HashMap<>(); map.put("PENDING_PAY", PENDING_PAY); + map.put("APPLY", APPLY); return Collections.unmodifiableMap(map); } @@ -219,7 +225,7 @@ public UpdateDirectConnect withBandwidth(Integer bandwidth) { } /** - * 指定托管专线接入带宽,单位Mbps + * 指定托管专线接入带宽,单位Mbps。[注:标准或运营专线的带宽不能降低!](tag:dt) * minimum: 2 * maximum: 100000 * @return bandwidth @@ -255,7 +261,7 @@ public UpdateDirectConnect withStatus(StatusEnum status) { } /** - * 更新资源状态,合法值是:PENDING_PAY + * 更新资源状态,合法值是:PENDING_PAY,APPLY * @return status */ public StatusEnum getStatus() { diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdatePeerLinkRequestBody.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateExternalPeerLinkRequestBody.java similarity index 51% rename from services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdatePeerLinkRequestBody.java rename to services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateExternalPeerLinkRequestBody.java index 242895511f..69bafed1e0 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdatePeerLinkRequestBody.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateExternalPeerLinkRequestBody.java @@ -7,45 +7,24 @@ import java.util.function.Consumer; /** - * UpdatePeerLinkRequestBody + * 更新关联连接参数 */ -public class UpdatePeerLinkRequestBody { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "dry_run") - - private Boolean dryRun; +public class UpdateExternalPeerLinkRequestBody { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "peer_link") - private UpdatePeerLinkRequestBodyPeerLink peerLink; - - public UpdatePeerLinkRequestBody withDryRun(Boolean dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * 空运行 - true 是 - false 否 - * @return dryRun - */ - public Boolean getDryRun() { - return dryRun; - } - - public void setDryRun(Boolean dryRun) { - this.dryRun = dryRun; - } + private UpdateExternalPeerLinkRequestBodyPeerLink peerLink; - public UpdatePeerLinkRequestBody withPeerLink(UpdatePeerLinkRequestBodyPeerLink peerLink) { + public UpdateExternalPeerLinkRequestBody withPeerLink(UpdateExternalPeerLinkRequestBodyPeerLink peerLink) { this.peerLink = peerLink; return this; } - public UpdatePeerLinkRequestBody withPeerLink(Consumer peerLinkSetter) { + public UpdateExternalPeerLinkRequestBody withPeerLink( + Consumer peerLinkSetter) { if (this.peerLink == null) { - this.peerLink = new UpdatePeerLinkRequestBodyPeerLink(); + this.peerLink = new UpdateExternalPeerLinkRequestBodyPeerLink(); peerLinkSetter.accept(this.peerLink); } @@ -56,11 +35,11 @@ public UpdatePeerLinkRequestBody withPeerLink(Consumer gdgwRoutetable = null; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - - private String xRequestId; - public UpdateGdgwRouteTableResponse withRequestId(String requestId) { this.requestId = requestId; return this; } /** - * 请求ID + * 请求id * @return requestId */ public String getRequestId() { @@ -68,7 +63,7 @@ public UpdateGdgwRouteTableResponse withGdgwRoutetable(Consumer getGdgwRoutetable() { @@ -79,25 +74,6 @@ public void setGdgwRoutetable(List gdgwRoutetable) { this.gdgwRoutetable = gdgwRoutetable; } - public UpdateGdgwRouteTableResponse withXRequestId(String xRequestId) { - this.xRequestId = xRequestId; - return this; - } - - /** - * Get xRequestId - * @return xRequestId - */ - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - public String getXRequestId() { - return xRequestId; - } - - public void setXRequestId(String xRequestId) { - this.xRequestId = xRequestId; - } - @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -108,13 +84,12 @@ public boolean equals(java.lang.Object obj) { } UpdateGdgwRouteTableResponse that = (UpdateGdgwRouteTableResponse) obj; return Objects.equals(this.requestId, that.requestId) - && Objects.equals(this.gdgwRoutetable, that.gdgwRoutetable) - && Objects.equals(this.xRequestId, that.xRequestId); + && Objects.equals(this.gdgwRoutetable, that.gdgwRoutetable); } @Override public int hashCode() { - return Objects.hash(requestId, gdgwRoutetable, xRequestId); + return Objects.hash(requestId, gdgwRoutetable); } @Override @@ -123,7 +98,6 @@ public String toString() { sb.append("class UpdateGdgwRouteTableResponse {\n"); sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" gdgwRoutetable: ").append(toIndentedString(gdgwRoutetable)).append("\n"); - sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGdgwRoutetableRequestBody.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGdgwRoutetableRequestBody.java index fb89168800..5b94e199b6 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGdgwRoutetableRequestBody.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGdgwRoutetableRequestBody.java @@ -7,7 +7,7 @@ import java.util.function.Consumer; /** - * UpdateGdgwRoutetableRequestBody + * 修改全域接入网关路由表的request */ public class UpdateGdgwRoutetableRequestBody { @@ -19,7 +19,7 @@ public class UpdateGdgwRoutetableRequestBody { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "gdgw_routetable") - private UpdateGdgwRoutetableRequestBodyGdgwRoutetable gdgwRoutetable; + private GdgwRouteTableRequest gdgwRoutetable; public UpdateGdgwRoutetableRequestBody withDryRun(Boolean dryRun) { this.dryRun = dryRun; @@ -27,7 +27,7 @@ public UpdateGdgwRoutetableRequestBody withDryRun(Boolean dryRun) { } /** - * 空运行:true-是,false-否 + * 是否dry run模式执行 * @return dryRun */ public Boolean getDryRun() { @@ -38,16 +38,14 @@ public void setDryRun(Boolean dryRun) { this.dryRun = dryRun; } - public UpdateGdgwRoutetableRequestBody withGdgwRoutetable( - UpdateGdgwRoutetableRequestBodyGdgwRoutetable gdgwRoutetable) { + public UpdateGdgwRoutetableRequestBody withGdgwRoutetable(GdgwRouteTableRequest gdgwRoutetable) { this.gdgwRoutetable = gdgwRoutetable; return this; } - public UpdateGdgwRoutetableRequestBody withGdgwRoutetable( - Consumer gdgwRoutetableSetter) { + public UpdateGdgwRoutetableRequestBody withGdgwRoutetable(Consumer gdgwRoutetableSetter) { if (this.gdgwRoutetable == null) { - this.gdgwRoutetable = new UpdateGdgwRoutetableRequestBodyGdgwRoutetable(); + this.gdgwRoutetable = new GdgwRouteTableRequest(); gdgwRoutetableSetter.accept(this.gdgwRoutetable); } @@ -58,11 +56,11 @@ public UpdateGdgwRoutetableRequestBody withGdgwRoutetable( * Get gdgwRoutetable * @return gdgwRoutetable */ - public UpdateGdgwRoutetableRequestBodyGdgwRoutetable getGdgwRoutetable() { + public GdgwRouteTableRequest getGdgwRoutetable() { return gdgwRoutetable; } - public void setGdgwRoutetable(UpdateGdgwRoutetableRequestBodyGdgwRoutetable gdgwRoutetable) { + public void setGdgwRoutetable(GdgwRouteTableRequest gdgwRoutetable) { this.gdgwRoutetable = gdgwRoutetable; } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGlobalDcGateway.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGlobalDcGateway.java new file mode 100644 index 0000000000..8ac49d6bcf --- /dev/null +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGlobalDcGateway.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.dc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 更新global-dc-gateway的属性详情。 + */ +public class UpdateGlobalDcGateway { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "address_family") + + private String addressFamily; + + public UpdateGlobalDcGateway withName(String name) { + this.name = name; + return this; + } + + /** + * global-dc-gateway名字。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public UpdateGlobalDcGateway withDescription(String description) { + this.description = description; + return this; + } + + /** + * 描述信息。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public UpdateGlobalDcGateway withAddressFamily(String addressFamily) { + this.addressFamily = addressFamily; + return this; + } + + /** + * global-dc-gateway的地址族 + * @return addressFamily + */ + public String getAddressFamily() { + return addressFamily; + } + + public void setAddressFamily(String addressFamily) { + this.addressFamily = addressFamily; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateGlobalDcGateway that = (UpdateGlobalDcGateway) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) + && Objects.equals(this.addressFamily, that.addressFamily); + } + + @Override + public int hashCode() { + return Objects.hash(name, description, addressFamily); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateGlobalDcGateway {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" addressFamily: ").append(toIndentedString(addressFamily)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGlobalDcGatewayRequest.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGlobalDcGatewayRequest.java index f846549138..cea54a867b 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGlobalDcGatewayRequest.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGlobalDcGatewayRequest.java @@ -27,7 +27,7 @@ public UpdateGlobalDcGatewayRequest withGlobalDcGatewayId(String globalDcGateway } /** - * 全球接入网关ID + * 全域接入网关ID * @return globalDcGatewayId */ public String getGlobalDcGatewayId() { diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGlobalDcGatewayRequestBody.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGlobalDcGatewayRequestBody.java index 39f4351721..f419965e16 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGlobalDcGatewayRequestBody.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGlobalDcGatewayRequestBody.java @@ -7,47 +7,23 @@ import java.util.function.Consumer; /** - * 创建全球接入网关请求体 + * 更新global-dc-gateway的请求体。 */ public class UpdateGlobalDcGatewayRequestBody { - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "dry_run") - - private Boolean dryRun; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "global_dc_gateway") - private UpdateGlobalDcGatewayRequestBodyGlobalDcGateway globalDcGateway; - - public UpdateGlobalDcGatewayRequestBody withDryRun(Boolean dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * 空运行? true-是,false-否 - * @return dryRun - */ - public Boolean getDryRun() { - return dryRun; - } - - public void setDryRun(Boolean dryRun) { - this.dryRun = dryRun; - } + private UpdateGlobalDcGateway globalDcGateway; - public UpdateGlobalDcGatewayRequestBody withGlobalDcGateway( - UpdateGlobalDcGatewayRequestBodyGlobalDcGateway globalDcGateway) { + public UpdateGlobalDcGatewayRequestBody withGlobalDcGateway(UpdateGlobalDcGateway globalDcGateway) { this.globalDcGateway = globalDcGateway; return this; } - public UpdateGlobalDcGatewayRequestBody withGlobalDcGateway( - Consumer globalDcGatewaySetter) { + public UpdateGlobalDcGatewayRequestBody withGlobalDcGateway(Consumer globalDcGatewaySetter) { if (this.globalDcGateway == null) { - this.globalDcGateway = new UpdateGlobalDcGatewayRequestBodyGlobalDcGateway(); + this.globalDcGateway = new UpdateGlobalDcGateway(); globalDcGatewaySetter.accept(this.globalDcGateway); } @@ -58,11 +34,11 @@ public UpdateGlobalDcGatewayRequestBody withGlobalDcGateway( * Get globalDcGateway * @return globalDcGateway */ - public UpdateGlobalDcGatewayRequestBodyGlobalDcGateway getGlobalDcGateway() { + public UpdateGlobalDcGateway getGlobalDcGateway() { return globalDcGateway; } - public void setGlobalDcGateway(UpdateGlobalDcGatewayRequestBodyGlobalDcGateway globalDcGateway) { + public void setGlobalDcGateway(UpdateGlobalDcGateway globalDcGateway) { this.globalDcGateway = globalDcGateway; } @@ -75,19 +51,18 @@ public boolean equals(java.lang.Object obj) { return false; } UpdateGlobalDcGatewayRequestBody that = (UpdateGlobalDcGatewayRequestBody) obj; - return Objects.equals(this.dryRun, that.dryRun) && Objects.equals(this.globalDcGateway, that.globalDcGateway); + return Objects.equals(this.globalDcGateway, that.globalDcGateway); } @Override public int hashCode() { - return Objects.hash(dryRun, globalDcGateway); + return Objects.hash(globalDcGateway); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateGlobalDcGatewayRequestBody {\n"); - sb.append(" dryRun: ").append(toIndentedString(dryRun)).append("\n"); sb.append(" globalDcGateway: ").append(toIndentedString(globalDcGateway)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGlobalDcGatewayRequestBodyGlobalDcGateway.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGlobalDcGatewayRequestBodyGlobalDcGateway.java deleted file mode 100644 index c8c078eb7a..0000000000 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGlobalDcGatewayRequestBodyGlobalDcGateway.java +++ /dev/null @@ -1,194 +0,0 @@ -package com.huaweicloud.sdk.dc.v3.model; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonValue; - -import java.util.Collections; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** - * UpdateGlobalDcGatewayRequestBodyGlobalDcGateway - */ -public class UpdateGlobalDcGatewayRequestBodyGlobalDcGateway { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "name") - - private String name; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "description") - - private String description; - - /** - * 地址簇类型 - */ - public static final class AddressFamilyEnum { - - /** - * Enum IPV4 for value: "ipv4" - */ - public static final AddressFamilyEnum IPV4 = new AddressFamilyEnum("ipv4"); - - /** - * Enum DUAL for value: "dual" - */ - public static final AddressFamilyEnum DUAL = new AddressFamilyEnum("dual"); - - private static final Map STATIC_FIELDS = createStaticFields(); - - private static Map createStaticFields() { - Map map = new HashMap<>(); - map.put("ipv4", IPV4); - map.put("dual", DUAL); - return Collections.unmodifiableMap(map); - } - - private String value; - - AddressFamilyEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AddressFamilyEnum fromValue(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new AddressFamilyEnum(value)); - } - - public static AddressFamilyEnum 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 AddressFamilyEnum) { - return this.value.equals(((AddressFamilyEnum) obj).value); - } - return false; - } - - @Override - public int hashCode() { - return this.value.hashCode(); - } - } - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "address_family") - - private AddressFamilyEnum addressFamily; - - public UpdateGlobalDcGatewayRequestBodyGlobalDcGateway withName(String name) { - this.name = name; - return this; - } - - /** - * 名称 - * @return name - */ - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public UpdateGlobalDcGatewayRequestBodyGlobalDcGateway withDescription(String description) { - this.description = description; - return this; - } - - /** - * 描述信息 - * @return description - */ - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public UpdateGlobalDcGatewayRequestBodyGlobalDcGateway withAddressFamily(AddressFamilyEnum addressFamily) { - this.addressFamily = addressFamily; - return this; - } - - /** - * 地址簇类型 - * @return addressFamily - */ - public AddressFamilyEnum getAddressFamily() { - return addressFamily; - } - - public void setAddressFamily(AddressFamilyEnum addressFamily) { - this.addressFamily = addressFamily; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - UpdateGlobalDcGatewayRequestBodyGlobalDcGateway that = (UpdateGlobalDcGatewayRequestBodyGlobalDcGateway) obj; - return Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) - && Objects.equals(this.addressFamily, that.addressFamily); - } - - @Override - public int hashCode() { - return Objects.hash(name, description, addressFamily); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class UpdateGlobalDcGatewayRequestBodyGlobalDcGateway {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" addressFamily: ").append(toIndentedString(addressFamily)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGlobalDcGatewayResponse.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGlobalDcGatewayResponse.java index e5f2d338fa..892850cf7d 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGlobalDcGatewayResponse.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGlobalDcGatewayResponse.java @@ -12,47 +12,24 @@ */ public class UpdateGlobalDcGatewayResponse extends SdkResponse { - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "request_id") - - private String requestId; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "global_dc_gateway") - private ExternalUpdateGlobalDcGateway globalDcGateway; + private GlobalDcGatewayEntry globalDcGateway; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - - private String xRequestId; - - public UpdateGlobalDcGatewayResponse withRequestId(String requestId) { - this.requestId = requestId; - return this; - } - - /** - * 请求ID - * @return requestId - */ - public String getRequestId() { - return requestId; - } + @JsonProperty(value = "request_id") - public void setRequestId(String requestId) { - this.requestId = requestId; - } + private String requestId; - public UpdateGlobalDcGatewayResponse withGlobalDcGateway(ExternalUpdateGlobalDcGateway globalDcGateway) { + public UpdateGlobalDcGatewayResponse withGlobalDcGateway(GlobalDcGatewayEntry globalDcGateway) { this.globalDcGateway = globalDcGateway; return this; } - public UpdateGlobalDcGatewayResponse withGlobalDcGateway( - Consumer globalDcGatewaySetter) { + public UpdateGlobalDcGatewayResponse withGlobalDcGateway(Consumer globalDcGatewaySetter) { if (this.globalDcGateway == null) { - this.globalDcGateway = new ExternalUpdateGlobalDcGateway(); + this.globalDcGateway = new GlobalDcGatewayEntry(); globalDcGatewaySetter.accept(this.globalDcGateway); } @@ -63,31 +40,29 @@ public UpdateGlobalDcGatewayResponse withGlobalDcGateway( * Get globalDcGateway * @return globalDcGateway */ - public ExternalUpdateGlobalDcGateway getGlobalDcGateway() { + public GlobalDcGatewayEntry getGlobalDcGateway() { return globalDcGateway; } - public void setGlobalDcGateway(ExternalUpdateGlobalDcGateway globalDcGateway) { + public void setGlobalDcGateway(GlobalDcGatewayEntry globalDcGateway) { this.globalDcGateway = globalDcGateway; } - public UpdateGlobalDcGatewayResponse withXRequestId(String xRequestId) { - this.xRequestId = xRequestId; + public UpdateGlobalDcGatewayResponse withRequestId(String requestId) { + this.requestId = requestId; return this; } /** - * Get xRequestId - * @return xRequestId + * 请求ID。 + * @return requestId */ - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - public String getXRequestId() { - return xRequestId; + public String getRequestId() { + return requestId; } - public void setXRequestId(String xRequestId) { - this.xRequestId = xRequestId; + public void setRequestId(String requestId) { + this.requestId = requestId; } @Override @@ -99,23 +74,21 @@ public boolean equals(java.lang.Object obj) { return false; } UpdateGlobalDcGatewayResponse that = (UpdateGlobalDcGatewayResponse) obj; - return Objects.equals(this.requestId, that.requestId) - && Objects.equals(this.globalDcGateway, that.globalDcGateway) - && Objects.equals(this.xRequestId, that.xRequestId); + return Objects.equals(this.globalDcGateway, that.globalDcGateway) + && Objects.equals(this.requestId, that.requestId); } @Override public int hashCode() { - return Objects.hash(requestId, globalDcGateway, xRequestId); + return Objects.hash(globalDcGateway, requestId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateGlobalDcGatewayResponse {\n"); - sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" globalDcGateway: ").append(toIndentedString(globalDcGateway)).append("\n"); - sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdatePeerLinkRequest.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdatePeerLinkRequest.java index bd1f33f3af..fe68b153a7 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdatePeerLinkRequest.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdatePeerLinkRequest.java @@ -24,7 +24,7 @@ public class UpdatePeerLinkRequest { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "body") - private UpdatePeerLinkRequestBody body; + private UpdateExternalPeerLinkRequestBody body; public UpdatePeerLinkRequest withGlobalDcGatewayId(String globalDcGatewayId) { this.globalDcGatewayId = globalDcGatewayId; @@ -32,7 +32,7 @@ public UpdatePeerLinkRequest withGlobalDcGatewayId(String globalDcGatewayId) { } /** - * 全球接入网关ID + * 全域接入网关ID * @return globalDcGatewayId */ public String getGlobalDcGatewayId() { @@ -49,7 +49,7 @@ public UpdatePeerLinkRequest withPeerLinkId(String peerLinkId) { } /** - * 全球接入网关对等体 + * 全域接入网关对等体 * @return peerLinkId */ public String getPeerLinkId() { @@ -60,14 +60,14 @@ public void setPeerLinkId(String peerLinkId) { this.peerLinkId = peerLinkId; } - public UpdatePeerLinkRequest withBody(UpdatePeerLinkRequestBody body) { + public UpdatePeerLinkRequest withBody(UpdateExternalPeerLinkRequestBody body) { this.body = body; return this; } - public UpdatePeerLinkRequest withBody(Consumer bodySetter) { + public UpdatePeerLinkRequest withBody(Consumer bodySetter) { if (this.body == null) { - this.body = new UpdatePeerLinkRequestBody(); + this.body = new UpdateExternalPeerLinkRequestBody(); bodySetter.accept(this.body); } @@ -78,11 +78,11 @@ public UpdatePeerLinkRequest withBody(Consumer bodySe * Get body * @return body */ - public UpdatePeerLinkRequestBody getBody() { + public UpdateExternalPeerLinkRequestBody getBody() { return body; } - public void setBody(UpdatePeerLinkRequestBody body) { + public void setBody(UpdateExternalPeerLinkRequestBody body) { this.body = body; } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdatePeerLinkResponse.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdatePeerLinkResponse.java index 17472071d7..ac835a4f7b 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdatePeerLinkResponse.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdatePeerLinkResponse.java @@ -22,11 +22,6 @@ public class UpdatePeerLinkResponse extends SdkResponse { private ExternalUpdatePeerLink peerLink; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - - private String xRequestId; - public UpdatePeerLinkResponse withRequestId(String requestId) { this.requestId = requestId; return this; @@ -70,25 +65,6 @@ public void setPeerLink(ExternalUpdatePeerLink peerLink) { this.peerLink = peerLink; } - public UpdatePeerLinkResponse withXRequestId(String xRequestId) { - this.xRequestId = xRequestId; - return this; - } - - /** - * Get xRequestId - * @return xRequestId - */ - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-Request-Id") - public String getXRequestId() { - return xRequestId; - } - - public void setXRequestId(String xRequestId) { - this.xRequestId = xRequestId; - } - @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -98,13 +74,12 @@ public boolean equals(java.lang.Object obj) { return false; } UpdatePeerLinkResponse that = (UpdatePeerLinkResponse) obj; - return Objects.equals(this.requestId, that.requestId) && Objects.equals(this.peerLink, that.peerLink) - && Objects.equals(this.xRequestId, that.xRequestId); + return Objects.equals(this.requestId, that.requestId) && Objects.equals(this.peerLink, that.peerLink); } @Override public int hashCode() { - return Objects.hash(requestId, peerLink, xRequestId); + return Objects.hash(requestId, peerLink); } @Override @@ -113,7 +88,6 @@ public String toString() { sb.append("class UpdatePeerLinkResponse {\n"); sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" peerLink: ").append(toIndentedString(peerLink)).append("\n"); - sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateRouteAction.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateRouteAction.java new file mode 100644 index 0000000000..695d604057 --- /dev/null +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateRouteAction.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.dc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * UpdateRouteAction + */ +public class UpdateRouteAction { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "destination") + + private String destination; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "nexthop") + + private String nexthop; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + public UpdateRouteAction withDestination(String destination) { + this.destination = destination; + return this; + } + + /** + * 路由子网 + * @return destination + */ + public String getDestination() { + return destination; + } + + public void setDestination(String destination) { + this.destination = destination; + } + + public UpdateRouteAction withNexthop(String nexthop) { + this.nexthop = nexthop; + return this; + } + + /** + * 下一跳id + * @return nexthop + */ + public String getNexthop() { + return nexthop; + } + + public void setNexthop(String nexthop) { + this.nexthop = nexthop; + } + + public UpdateRouteAction 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; + } + UpdateRouteAction that = (UpdateRouteAction) obj; + return Objects.equals(this.destination, that.destination) && Objects.equals(this.nexthop, that.nexthop) + && Objects.equals(this.description, that.description); + } + + @Override + public int hashCode() { + return Objects.hash(destination, nexthop, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateRouteAction {\n"); + sb.append(" destination: ").append(toIndentedString(destination)).append("\n"); + sb.append(" nexthop: ").append(toIndentedString(nexthop)).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/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateVifPeerResponse.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateVifPeerResponse.java index 1b0263e87d..5245b8c98f 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateVifPeerResponse.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateVifPeerResponse.java @@ -12,33 +12,11 @@ */ public class UpdateVifPeerResponse extends SdkResponse { - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "request_id") - - private String requestId; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "vif_peer") private VifPeer vifPeer; - public UpdateVifPeerResponse withRequestId(String requestId) { - this.requestId = requestId; - return this; - } - - /** - * 请求ID - * @return requestId - */ - public String getRequestId() { - return requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - public UpdateVifPeerResponse withVifPeer(VifPeer vifPeer) { this.vifPeer = vifPeer; return this; @@ -74,19 +52,18 @@ public boolean equals(java.lang.Object obj) { return false; } UpdateVifPeerResponse that = (UpdateVifPeerResponse) obj; - return Objects.equals(this.requestId, that.requestId) && Objects.equals(this.vifPeer, that.vifPeer); + return Objects.equals(this.vifPeer, that.vifPeer); } @Override public int hashCode() { - return Objects.hash(requestId, vifPeer); + return Objects.hash(vifPeer); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateVifPeerResponse {\n"); - sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" vifPeer: ").append(toIndentedString(vifPeer)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateVirtualGateway.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateVirtualGateway.java index 4eee25407d..8e027780e0 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateVirtualGateway.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateVirtualGateway.java @@ -89,7 +89,7 @@ public UpdateVirtualGateway withLocalEpGroup(Consumer> localEpGroup } /** - * 虚拟网关到访问云上服务IPv4子网列表,通常是vpc的cidrs + * 虚拟网关到访问云上服务IPv4子网列表,通常是vpc的cidrs[,当虚拟网关接入VPC时该列表才允许更新。](tag:dt) * @return localEpGroup */ public List getLocalEpGroup() { @@ -122,7 +122,7 @@ public UpdateVirtualGateway withLocalEpGroupIpv6(Consumer> localEpG } /** - * 虚拟网关到访问云上服务IPv6子网列表,通常是vpc的cidrs + * 虚拟网关到访问云上服务IPv6子网列表,通常是vpc的cidrs。[(预留字段,暂不支持)](tag:dt) * @return localEpGroupIpv6 */ public List getLocalEpGroupIpv6() { diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateVirtualInterface.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateVirtualInterface.java index ebc19d9758..559ebfc1f5 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateVirtualInterface.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateVirtualInterface.java @@ -236,7 +236,7 @@ public UpdateVirtualInterface withServiceEpGroup(Consumer> serviceE } /** - * 用于公网专线,用户访问公网服务地址列表 + * 用于公网专线,用户访问公网服务地址列表。[(预留字段,暂不支持)](tag:dt) * @return serviceEpGroup */ public List getServiceEpGroup() { @@ -253,7 +253,7 @@ public UpdateVirtualInterface withEnableBfd(Boolean enableBfd) { } /** - * 是否使能bfd功能:true或false + * 是否使能bfd功能:true或false。[(预留字段,暂不支持)](tag:dt) * @return enableBfd */ public Boolean getEnableBfd() { @@ -270,7 +270,7 @@ public UpdateVirtualInterface withEnableNqa(Boolean enableNqa) { } /** - * 是否使能nqa功能:true或false + * 是否使能nqa功能:true或false。[(预留字段,暂不支持)](tag:dt) * @return enableNqa */ public Boolean getEnableNqa() { diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/VifExtendAttribute.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/VifExtendAttribute.java index 5cc906973b..48d6d208cc 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/VifExtendAttribute.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/VifExtendAttribute.java @@ -11,7 +11,7 @@ import java.util.Objects; /** - * 接口BFD/NQA等可靠性检测信息,只有配置BFD和NQA的扩展参数才会显示扩展参数信息 + * 接口BFD/NQA等可靠性检测信息,只有配置BFD和NQA的扩展参数才会显示扩展参数信息,扩展参数信息[(预留字段,暂不支持)](tag:dt) */ public class VifExtendAttribute { diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/VifPeer.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/VifPeer.java index 380495781b..03a29a98b3 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/VifPeer.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/VifPeer.java @@ -517,7 +517,7 @@ public VifPeer withReceiveRouteNum(Integer receiveRouteNum) { } /** - * 路由模式为bgp:receive_route_num值为接收搭配BGP的路由数目; 路由模式为static:该字段无意义,值为-1; 注:若早期接入华为云的部分用户无法获取该字段信息,如需要请联系客服迁移专线端口。 + * 路由模式为bgp:receive_route_num值为接收搭配BGP的路由数目; 路由模式为static:该字段无意义,值为-1; 注:若早期接入云的部分用户无法获取该字段信息,如需要请联系客服迁移专线端口。 * @return receiveRouteNum */ public Integer getReceiveRouteNum() { diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/VirtualGateway.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/VirtualGateway.java index c97ae1df24..1b1179dbfd 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/VirtualGateway.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/VirtualGateway.java @@ -23,6 +23,11 @@ public class VirtualGateway { private String vpcId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_router_id") + + private String enterpriseRouterId; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "tenant_id") @@ -127,6 +132,23 @@ public void setVpcId(String vpcId) { this.vpcId = vpcId; } + public VirtualGateway withEnterpriseRouterId(String enterpriseRouterId) { + this.enterpriseRouterId = enterpriseRouterId; + return this; + } + + /** + * 虚拟网关接入的ER的ID + * @return enterpriseRouterId + */ + public String getEnterpriseRouterId() { + return enterpriseRouterId; + } + + public void setEnterpriseRouterId(String enterpriseRouterId) { + this.enterpriseRouterId = enterpriseRouterId; + } + public VirtualGateway withTenantId(String tenantId) { this.tenantId = tenantId; return this; @@ -425,6 +447,7 @@ public boolean equals(java.lang.Object obj) { } VirtualGateway that = (VirtualGateway) obj; return Objects.equals(this.id, that.id) && Objects.equals(this.vpcId, that.vpcId) + && Objects.equals(this.enterpriseRouterId, that.enterpriseRouterId) && Objects.equals(this.tenantId, that.tenantId) && Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) && Objects.equals(this.type, that.type) && Objects.equals(this.localEpGroup, that.localEpGroup) @@ -441,6 +464,7 @@ public boolean equals(java.lang.Object obj) { public int hashCode() { return Objects.hash(id, vpcId, + enterpriseRouterId, tenantId, name, description, @@ -463,6 +487,7 @@ public String toString() { sb.append("class VirtualGateway {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n"); + sb.append(" enterpriseRouterId: ").append(toIndentedString(enterpriseRouterId)).append("\n"); sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/VirtualInterface.java b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/VirtualInterface.java index be17e84799..a47e234ef3 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/VirtualInterface.java +++ b/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/VirtualInterface.java @@ -44,6 +44,11 @@ public class VirtualInterface { private OffsetDateTime createTime; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private OffsetDateTime updateTime; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "description") @@ -491,7 +496,7 @@ public VirtualInterface withCreateTime(OffsetDateTime createTime) { } /** - * 虚拟接口创建时间 + * 虚拟接口创建时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ * @return createTime */ public OffsetDateTime getCreateTime() { @@ -502,6 +507,23 @@ public void setCreateTime(OffsetDateTime createTime) { this.createTime = createTime; } + public VirtualInterface withUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 虚拟接口修改时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ + * @return updateTime + */ + public OffsetDateTime getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + } + public VirtualInterface withDescription(String description) { this.description = description; return this; @@ -682,7 +704,7 @@ public VirtualInterface withEnableBfd(Boolean enableBfd) { } /** - * 是否使能nqa功能:true或false + * 是否使能bfd功能:true或false * @return enableBfd */ public Boolean getEnableBfd() { @@ -817,7 +839,7 @@ public VirtualInterface withIesId(String iesId) { } /** - * 归属的IES站点的ID[(功能暂不支持)](tag:dt) + * 归属的CloudPond站点的ID[(功能暂不支持)](tag:dt) * @return iesId */ public String getIesId() { @@ -919,7 +941,7 @@ public VirtualInterface withLgwId(String lgwId) { } /** - * 本地网关的ID,用于IES场景。[(功能暂不支持)](tag:dt) + * 本地网关的ID,用于CloudPond场景。[(功能暂不支持)](tag:dt) * @return lgwId */ public String getLgwId() { @@ -1069,7 +1091,7 @@ public VirtualInterface withVifPeers(Consumer> vifPeersSetter) { } /** - * vif的Peer的相关信息 + * vif的Peer的相关信息[(预留字段,暂不支持)](tag:dt) * @return vifPeers */ public List getVifPeers() { @@ -1117,7 +1139,8 @@ public boolean equals(java.lang.Object obj) { VirtualInterface that = (VirtualInterface) obj; return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) && Objects.equals(this.adminStateUp, that.adminStateUp) && Objects.equals(this.bandwidth, that.bandwidth) - && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.description, that.description) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.description, that.description) && Objects.equals(this.directConnectId, that.directConnectId) && Objects.equals(this.serviceType, that.serviceType) && Objects.equals(this.status, that.status) && Objects.equals(this.tenantId, that.tenantId) && Objects.equals(this.type, that.type) @@ -1146,6 +1169,7 @@ public int hashCode() { adminStateUp, bandwidth, createTime, + updateTime, description, directConnectId, serviceType, @@ -1188,6 +1212,7 @@ public String toString() { sb.append(" adminStateUp: ").append(toIndentedString(adminStateUp)).append("\n"); sb.append(" bandwidth: ").append(toIndentedString(bandwidth)).append("\n"); sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" directConnectId: ").append(toIndentedString(directConnectId)).append("\n"); sb.append(" serviceType: ").append(toIndentedString(serviceType)).append("\n"); diff --git a/services/dcs/pom.xml b/services/dcs/pom.xml index 9efa589862..ecf13be28b 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-dcs - 3.1.127 + 3.1.128 Huawei Cloud SDK for DCS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/DcsAsyncClient.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/DcsAsyncClient.java index c9dc8025db..4965159d4d 100644 --- a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/DcsAsyncClient.java +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/DcsAsyncClient.java @@ -17,6 +17,8 @@ import com.huaweicloud.sdk.dcs.v2.model.ChangeMasterStandbyAsyncResponse; import com.huaweicloud.sdk.dcs.v2.model.ChangeMasterStandbyRequest; import com.huaweicloud.sdk.dcs.v2.model.ChangeMasterStandbyResponse; +import com.huaweicloud.sdk.dcs.v2.model.ChangeNodesStartStopStatusRequest; +import com.huaweicloud.sdk.dcs.v2.model.ChangeNodesStartStopStatusResponse; import com.huaweicloud.sdk.dcs.v2.model.CopyInstanceRequest; import com.huaweicloud.sdk.dcs.v2.model.CopyInstanceResponse; import com.huaweicloud.sdk.dcs.v2.model.CreateAclAccountRequest; @@ -59,10 +61,14 @@ import com.huaweicloud.sdk.dcs.v2.model.DeleteDiagnosisTaskResponse; import com.huaweicloud.sdk.dcs.v2.model.DeleteHotkeyScanTaskRequest; import com.huaweicloud.sdk.dcs.v2.model.DeleteHotkeyScanTaskResponse; +import com.huaweicloud.sdk.dcs.v2.model.DeleteInstanceBandwidthAutoScalingPolicyRequest; +import com.huaweicloud.sdk.dcs.v2.model.DeleteInstanceBandwidthAutoScalingPolicyResponse; import com.huaweicloud.sdk.dcs.v2.model.DeleteIpFromDomainNameRequest; import com.huaweicloud.sdk.dcs.v2.model.DeleteIpFromDomainNameResponse; import com.huaweicloud.sdk.dcs.v2.model.DeleteMigrationTaskRequest; import com.huaweicloud.sdk.dcs.v2.model.DeleteMigrationTaskResponse; +import com.huaweicloud.sdk.dcs.v2.model.DeletePublicIpRequest; +import com.huaweicloud.sdk.dcs.v2.model.DeletePublicIpResponse; import com.huaweicloud.sdk.dcs.v2.model.DeleteSingleInstanceRequest; import com.huaweicloud.sdk.dcs.v2.model.DeleteSingleInstanceResponse; import com.huaweicloud.sdk.dcs.v2.model.DownloadSslCertRequest; @@ -159,6 +165,8 @@ import com.huaweicloud.sdk.dcs.v2.model.SetOnlineMigrationTaskResponse; import com.huaweicloud.sdk.dcs.v2.model.ShowBackgroundTaskProgressRequest; import com.huaweicloud.sdk.dcs.v2.model.ShowBackgroundTaskProgressResponse; +import com.huaweicloud.sdk.dcs.v2.model.ShowBandwidthsRequest; +import com.huaweicloud.sdk.dcs.v2.model.ShowBandwidthsResponse; import com.huaweicloud.sdk.dcs.v2.model.ShowBigkeyAutoscanConfigRequest; import com.huaweicloud.sdk.dcs.v2.model.ShowBigkeyAutoscanConfigResponse; import com.huaweicloud.sdk.dcs.v2.model.ShowBigkeyScanTaskDetailsRequest; @@ -177,10 +185,14 @@ import com.huaweicloud.sdk.dcs.v2.model.ShowHotkeyAutoscanConfigResponse; import com.huaweicloud.sdk.dcs.v2.model.ShowHotkeyTaskDetailsRequest; import com.huaweicloud.sdk.dcs.v2.model.ShowHotkeyTaskDetailsResponse; +import com.huaweicloud.sdk.dcs.v2.model.ShowInstanceBandwidthAutoScalingPolicyRequest; +import com.huaweicloud.sdk.dcs.v2.model.ShowInstanceBandwidthAutoScalingPolicyResponse; import com.huaweicloud.sdk.dcs.v2.model.ShowInstanceRequest; import com.huaweicloud.sdk.dcs.v2.model.ShowInstanceResponse; import com.huaweicloud.sdk.dcs.v2.model.ShowInstanceSslDetailRequest; import com.huaweicloud.sdk.dcs.v2.model.ShowInstanceSslDetailResponse; +import com.huaweicloud.sdk.dcs.v2.model.ShowInstanceVersionRequest; +import com.huaweicloud.sdk.dcs.v2.model.ShowInstanceVersionResponse; import com.huaweicloud.sdk.dcs.v2.model.ShowIpWhitelistRequest; import com.huaweicloud.sdk.dcs.v2.model.ShowIpWhitelistResponse; import com.huaweicloud.sdk.dcs.v2.model.ShowJobInfoRequest; @@ -209,6 +221,8 @@ import com.huaweicloud.sdk.dcs.v2.model.UpdateAclAccountRemarkResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdateAclAccountRequest; import com.huaweicloud.sdk.dcs.v2.model.UpdateAclAccountResponse; +import com.huaweicloud.sdk.dcs.v2.model.UpdateBandwidthRequest; +import com.huaweicloud.sdk.dcs.v2.model.UpdateBandwidthResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdateBigkeyAutoscanConfigRequest; import com.huaweicloud.sdk.dcs.v2.model.UpdateBigkeyAutoscanConfigResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdateClientIpTransparentTransmissionRequest; @@ -221,6 +235,8 @@ import com.huaweicloud.sdk.dcs.v2.model.UpdateExpireAutoScanConfigResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdateHotkeyAutoScanConfigRequest; import com.huaweicloud.sdk.dcs.v2.model.UpdateHotkeyAutoScanConfigResponse; +import com.huaweicloud.sdk.dcs.v2.model.UpdateInstanceBandwidthAutoScalingPolicyRequest; +import com.huaweicloud.sdk.dcs.v2.model.UpdateInstanceBandwidthAutoScalingPolicyResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdateInstanceBandwidthRequest; import com.huaweicloud.sdk.dcs.v2.model.UpdateInstanceBandwidthResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdateInstanceConfigRequest; @@ -233,10 +249,14 @@ import com.huaweicloud.sdk.dcs.v2.model.UpdateMigrationTaskResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdatePasswordRequest; import com.huaweicloud.sdk.dcs.v2.model.UpdatePasswordResponse; +import com.huaweicloud.sdk.dcs.v2.model.UpdatePublicIpRequest; +import com.huaweicloud.sdk.dcs.v2.model.UpdatePublicIpResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdateSlavePriorityRequest; import com.huaweicloud.sdk.dcs.v2.model.UpdateSlavePriorityResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdateSslSwitchRequest; import com.huaweicloud.sdk.dcs.v2.model.UpdateSslSwitchResponse; +import com.huaweicloud.sdk.dcs.v2.model.UpgradeInstanceMinorVersionRequest; +import com.huaweicloud.sdk.dcs.v2.model.UpgradeInstanceMinorVersionResponse; import com.huaweicloud.sdk.dcs.v2.model.ValidateDeletableReplicaRequest; import com.huaweicloud.sdk.dcs.v2.model.ValidateDeletableReplicaResponse; @@ -468,6 +488,36 @@ public AsyncInvoker(request, DcsMeta.changeMasterStandbyAsync, hcClient); } + /** + * 指定实例节点启停开关 + * + * 实例节点启停。执行节点关机操作前的24小时内,需要对实例(单机实例除外)进行数据备份。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ChangeNodesStartStopStatusRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture changeNodesStartStopStatusAsync( + ChangeNodesStartStopStatusRequest request) { + return hcClient.asyncInvokeHttp(request, DcsMeta.changeNodesStartStopStatus); + } + + /** + * 指定实例节点启停开关 + * + * 实例节点启停。执行节点关机操作前的24小时内,需要对实例(单机实例除外)进行数据备份。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ChangeNodesStartStopStatusRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker changeNodesStartStopStatusAsyncInvoker( + ChangeNodesStartStopStatusRequest request) { + return new AsyncInvoker<>(request, DcsMeta.changeNodesStartStopStatus, hcClient); + } + /** * 备份指定实例 * @@ -1101,6 +1151,36 @@ public AsyncInvoker d return new AsyncInvoker<>(request, DcsMeta.deleteHotkeyScanTask, hcClient); } + /** + * 删除实例带宽弹性伸缩策略 + * + * 删除实例带宽弹性伸缩策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteInstanceBandwidthAutoScalingPolicyRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteInstanceBandwidthAutoScalingPolicyAsync( + DeleteInstanceBandwidthAutoScalingPolicyRequest request) { + return hcClient.asyncInvokeHttp(request, DcsMeta.deleteInstanceBandwidthAutoScalingPolicy); + } + + /** + * 删除实例带宽弹性伸缩策略 + * + * 删除实例带宽弹性伸缩策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteInstanceBandwidthAutoScalingPolicyRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteInstanceBandwidthAutoScalingPolicyAsyncInvoker( + DeleteInstanceBandwidthAutoScalingPolicyRequest request) { + return new AsyncInvoker<>(request, DcsMeta.deleteInstanceBandwidthAutoScalingPolicy, hcClient); + } + /** * 域名摘除IP * @@ -1160,6 +1240,35 @@ public AsyncInvoker del return new AsyncInvoker<>(request, DcsMeta.deleteMigrationTask, hcClient); } + /** + * 关闭实例公网访问 + * + * 关闭实例公网访问。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeletePublicIpRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deletePublicIpAsync(DeletePublicIpRequest request) { + return hcClient.asyncInvokeHttp(request, DcsMeta.deletePublicIp); + } + + /** + * 关闭实例公网访问 + * + * 关闭实例公网访问。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeletePublicIpRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deletePublicIpAsyncInvoker( + DeletePublicIpRequest request) { + return new AsyncInvoker<>(request, DcsMeta.deletePublicIp, hcClient); + } + /** * 删除实例 * @@ -2577,6 +2686,35 @@ public AsyncInvoker(request, DcsMeta.showBackgroundTaskProgress, hcClient); } + /** + * 获取实例分片带宽 + * + * 获取实例各个分片带宽。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowBandwidthsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showBandwidthsAsync(ShowBandwidthsRequest request) { + return hcClient.asyncInvokeHttp(request, DcsMeta.showBandwidths); + } + + /** + * 获取实例分片带宽 + * + * 获取实例各个分片带宽。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowBandwidthsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showBandwidthsAsyncInvoker( + ShowBandwidthsRequest request) { + return new AsyncInvoker<>(request, DcsMeta.showBandwidths, hcClient); + } + /** * 查询大key自动分析配置 * @@ -2875,6 +3013,36 @@ public AsyncInvoker showInstanceAsync return new AsyncInvoker<>(request, DcsMeta.showInstance, hcClient); } + /** + * 查询实例带宽弹性伸缩策略 + * + * 查询实例带宽弹性伸缩策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowInstanceBandwidthAutoScalingPolicyRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showInstanceBandwidthAutoScalingPolicyAsync( + ShowInstanceBandwidthAutoScalingPolicyRequest request) { + return hcClient.asyncInvokeHttp(request, DcsMeta.showInstanceBandwidthAutoScalingPolicy); + } + + /** + * 查询实例带宽弹性伸缩策略 + * + * 查询实例带宽弹性伸缩策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowInstanceBandwidthAutoScalingPolicyRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showInstanceBandwidthAutoScalingPolicyAsyncInvoker( + ShowInstanceBandwidthAutoScalingPolicyRequest request) { + return new AsyncInvoker<>(request, DcsMeta.showInstanceBandwidthAutoScalingPolicy, hcClient); + } + /** * 查询实例SSL信息 * @@ -2905,6 +3073,35 @@ public AsyncInvoker return new AsyncInvoker<>(request, DcsMeta.showInstanceSslDetail, hcClient); } + /** + * 根据实例ID获取实例内核版本信息 + * + * 获取对应实例内核版本号。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowInstanceVersionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showInstanceVersionAsync(ShowInstanceVersionRequest request) { + return hcClient.asyncInvokeHttp(request, DcsMeta.showInstanceVersion); + } + + /** + * 根据实例ID获取实例内核版本信息 + * + * 获取对应实例内核版本号。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowInstanceVersionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showInstanceVersionAsyncInvoker( + ShowInstanceVersionRequest request) { + return new AsyncInvoker<>(request, DcsMeta.showInstanceVersion, hcClient); + } + /** * 查询租户Job执行结果 * @@ -3291,6 +3488,35 @@ public AsyncInvoker(request, DcsMeta.updateAclAccountRemark, hcClient); } + /** + * 修改实例分片带宽 + * + * 修改实例分片带宽。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateBandwidthRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateBandwidthAsync(UpdateBandwidthRequest request) { + return hcClient.asyncInvokeHttp(request, DcsMeta.updateBandwidth); + } + + /** + * 修改实例分片带宽 + * + * 修改实例分片带宽。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateBandwidthRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateBandwidthAsyncInvoker( + UpdateBandwidthRequest request) { + return new AsyncInvoker<>(request, DcsMeta.updateBandwidth, hcClient); + } + /** * 设置大key自动分析配置 * @@ -3530,6 +3756,36 @@ public AsyncInvoker(request, DcsMeta.updateInstanceBandwidth, hcClient); } + /** + * 更新实例带宽弹性伸缩策略 + * + * 更新实例带宽弹性伸缩策略。暂不支持实例带宽自动回缩。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateInstanceBandwidthAutoScalingPolicyRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateInstanceBandwidthAutoScalingPolicyAsync( + UpdateInstanceBandwidthAutoScalingPolicyRequest request) { + return hcClient.asyncInvokeHttp(request, DcsMeta.updateInstanceBandwidthAutoScalingPolicy); + } + + /** + * 更新实例带宽弹性伸缩策略 + * + * 更新实例带宽弹性伸缩策略。暂不支持实例带宽自动回缩。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateInstanceBandwidthAutoScalingPolicyRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateInstanceBandwidthAutoScalingPolicyAsyncInvoker( + UpdateInstanceBandwidthAutoScalingPolicyRequest request) { + return new AsyncInvoker<>(request, DcsMeta.updateInstanceBandwidthAutoScalingPolicy, hcClient); + } + /** * 异步修改实例配置参数 * @@ -3618,6 +3874,35 @@ public AsyncInvoker updatePasswor return new AsyncInvoker<>(request, DcsMeta.updatePassword, hcClient); } + /** + * 开启/修改实例公网访问 + * + * 开启/修改实例公网访问。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdatePublicIpRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updatePublicIpAsync(UpdatePublicIpRequest request) { + return hcClient.asyncInvokeHttp(request, DcsMeta.updatePublicIp); + } + + /** + * 开启/修改实例公网访问 + * + * 开启/修改实例公网访问。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdatePublicIpRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updatePublicIpAsyncInvoker( + UpdatePublicIpRequest request) { + return new AsyncInvoker<>(request, DcsMeta.updatePublicIp, hcClient); + } + /** * 设置备节点优先级 * @@ -3676,6 +3961,36 @@ public AsyncInvoker updateSslSw return new AsyncInvoker<>(request, DcsMeta.updateSslSwitch, hcClient); } + /** + * 升级实例小版本 + * + * 升级实例小版本。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpgradeInstanceMinorVersionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture upgradeInstanceMinorVersionAsync( + UpgradeInstanceMinorVersionRequest request) { + return hcClient.asyncInvokeHttp(request, DcsMeta.upgradeInstanceMinorVersion); + } + + /** + * 升级实例小版本 + * + * 升级实例小版本。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpgradeInstanceMinorVersionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker upgradeInstanceMinorVersionAsyncInvoker( + UpgradeInstanceMinorVersionRequest request) { + return new AsyncInvoker<>(request, DcsMeta.upgradeInstanceMinorVersion, hcClient); + } + /** * 校验集群副本是否支持删除 * diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/DcsClient.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/DcsClient.java index 9d03744885..d5bc271ecb 100644 --- a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/DcsClient.java +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/DcsClient.java @@ -17,6 +17,8 @@ import com.huaweicloud.sdk.dcs.v2.model.ChangeMasterStandbyAsyncResponse; import com.huaweicloud.sdk.dcs.v2.model.ChangeMasterStandbyRequest; import com.huaweicloud.sdk.dcs.v2.model.ChangeMasterStandbyResponse; +import com.huaweicloud.sdk.dcs.v2.model.ChangeNodesStartStopStatusRequest; +import com.huaweicloud.sdk.dcs.v2.model.ChangeNodesStartStopStatusResponse; import com.huaweicloud.sdk.dcs.v2.model.CopyInstanceRequest; import com.huaweicloud.sdk.dcs.v2.model.CopyInstanceResponse; import com.huaweicloud.sdk.dcs.v2.model.CreateAclAccountRequest; @@ -59,10 +61,14 @@ import com.huaweicloud.sdk.dcs.v2.model.DeleteDiagnosisTaskResponse; import com.huaweicloud.sdk.dcs.v2.model.DeleteHotkeyScanTaskRequest; import com.huaweicloud.sdk.dcs.v2.model.DeleteHotkeyScanTaskResponse; +import com.huaweicloud.sdk.dcs.v2.model.DeleteInstanceBandwidthAutoScalingPolicyRequest; +import com.huaweicloud.sdk.dcs.v2.model.DeleteInstanceBandwidthAutoScalingPolicyResponse; import com.huaweicloud.sdk.dcs.v2.model.DeleteIpFromDomainNameRequest; import com.huaweicloud.sdk.dcs.v2.model.DeleteIpFromDomainNameResponse; import com.huaweicloud.sdk.dcs.v2.model.DeleteMigrationTaskRequest; import com.huaweicloud.sdk.dcs.v2.model.DeleteMigrationTaskResponse; +import com.huaweicloud.sdk.dcs.v2.model.DeletePublicIpRequest; +import com.huaweicloud.sdk.dcs.v2.model.DeletePublicIpResponse; import com.huaweicloud.sdk.dcs.v2.model.DeleteSingleInstanceRequest; import com.huaweicloud.sdk.dcs.v2.model.DeleteSingleInstanceResponse; import com.huaweicloud.sdk.dcs.v2.model.DownloadSslCertRequest; @@ -159,6 +165,8 @@ import com.huaweicloud.sdk.dcs.v2.model.SetOnlineMigrationTaskResponse; import com.huaweicloud.sdk.dcs.v2.model.ShowBackgroundTaskProgressRequest; import com.huaweicloud.sdk.dcs.v2.model.ShowBackgroundTaskProgressResponse; +import com.huaweicloud.sdk.dcs.v2.model.ShowBandwidthsRequest; +import com.huaweicloud.sdk.dcs.v2.model.ShowBandwidthsResponse; import com.huaweicloud.sdk.dcs.v2.model.ShowBigkeyAutoscanConfigRequest; import com.huaweicloud.sdk.dcs.v2.model.ShowBigkeyAutoscanConfigResponse; import com.huaweicloud.sdk.dcs.v2.model.ShowBigkeyScanTaskDetailsRequest; @@ -177,10 +185,14 @@ import com.huaweicloud.sdk.dcs.v2.model.ShowHotkeyAutoscanConfigResponse; import com.huaweicloud.sdk.dcs.v2.model.ShowHotkeyTaskDetailsRequest; import com.huaweicloud.sdk.dcs.v2.model.ShowHotkeyTaskDetailsResponse; +import com.huaweicloud.sdk.dcs.v2.model.ShowInstanceBandwidthAutoScalingPolicyRequest; +import com.huaweicloud.sdk.dcs.v2.model.ShowInstanceBandwidthAutoScalingPolicyResponse; import com.huaweicloud.sdk.dcs.v2.model.ShowInstanceRequest; import com.huaweicloud.sdk.dcs.v2.model.ShowInstanceResponse; import com.huaweicloud.sdk.dcs.v2.model.ShowInstanceSslDetailRequest; import com.huaweicloud.sdk.dcs.v2.model.ShowInstanceSslDetailResponse; +import com.huaweicloud.sdk.dcs.v2.model.ShowInstanceVersionRequest; +import com.huaweicloud.sdk.dcs.v2.model.ShowInstanceVersionResponse; import com.huaweicloud.sdk.dcs.v2.model.ShowIpWhitelistRequest; import com.huaweicloud.sdk.dcs.v2.model.ShowIpWhitelistResponse; import com.huaweicloud.sdk.dcs.v2.model.ShowJobInfoRequest; @@ -209,6 +221,8 @@ import com.huaweicloud.sdk.dcs.v2.model.UpdateAclAccountRemarkResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdateAclAccountRequest; import com.huaweicloud.sdk.dcs.v2.model.UpdateAclAccountResponse; +import com.huaweicloud.sdk.dcs.v2.model.UpdateBandwidthRequest; +import com.huaweicloud.sdk.dcs.v2.model.UpdateBandwidthResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdateBigkeyAutoscanConfigRequest; import com.huaweicloud.sdk.dcs.v2.model.UpdateBigkeyAutoscanConfigResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdateClientIpTransparentTransmissionRequest; @@ -221,6 +235,8 @@ import com.huaweicloud.sdk.dcs.v2.model.UpdateExpireAutoScanConfigResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdateHotkeyAutoScanConfigRequest; import com.huaweicloud.sdk.dcs.v2.model.UpdateHotkeyAutoScanConfigResponse; +import com.huaweicloud.sdk.dcs.v2.model.UpdateInstanceBandwidthAutoScalingPolicyRequest; +import com.huaweicloud.sdk.dcs.v2.model.UpdateInstanceBandwidthAutoScalingPolicyResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdateInstanceBandwidthRequest; import com.huaweicloud.sdk.dcs.v2.model.UpdateInstanceBandwidthResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdateInstanceConfigRequest; @@ -233,10 +249,14 @@ import com.huaweicloud.sdk.dcs.v2.model.UpdateMigrationTaskResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdatePasswordRequest; import com.huaweicloud.sdk.dcs.v2.model.UpdatePasswordResponse; +import com.huaweicloud.sdk.dcs.v2.model.UpdatePublicIpRequest; +import com.huaweicloud.sdk.dcs.v2.model.UpdatePublicIpResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdateSlavePriorityRequest; import com.huaweicloud.sdk.dcs.v2.model.UpdateSlavePriorityResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdateSslSwitchRequest; import com.huaweicloud.sdk.dcs.v2.model.UpdateSslSwitchResponse; +import com.huaweicloud.sdk.dcs.v2.model.UpgradeInstanceMinorVersionRequest; +import com.huaweicloud.sdk.dcs.v2.model.UpgradeInstanceMinorVersionResponse; import com.huaweicloud.sdk.dcs.v2.model.ValidateDeletableReplicaRequest; import com.huaweicloud.sdk.dcs.v2.model.ValidateDeletableReplicaResponse; @@ -461,6 +481,35 @@ public SyncInvoker(request, DcsMeta.changeMasterStandbyAsync, hcClient); } + /** + * 指定实例节点启停开关 + * + * 实例节点启停。执行节点关机操作前的24小时内,需要对实例(单机实例除外)进行数据备份。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ChangeNodesStartStopStatusRequest 请求对象 + * @return ChangeNodesStartStopStatusResponse + */ + public ChangeNodesStartStopStatusResponse changeNodesStartStopStatus(ChangeNodesStartStopStatusRequest request) { + return hcClient.syncInvokeHttp(request, DcsMeta.changeNodesStartStopStatus); + } + + /** + * 指定实例节点启停开关 + * + * 实例节点启停。执行节点关机操作前的24小时内,需要对实例(单机实例除外)进行数据备份。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ChangeNodesStartStopStatusRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker changeNodesStartStopStatusInvoker( + ChangeNodesStartStopStatusRequest request) { + return new SyncInvoker<>(request, DcsMeta.changeNodesStartStopStatus, hcClient); + } + /** * 备份指定实例 * @@ -1083,6 +1132,36 @@ public SyncInvoker de return new SyncInvoker<>(request, DcsMeta.deleteHotkeyScanTask, hcClient); } + /** + * 删除实例带宽弹性伸缩策略 + * + * 删除实例带宽弹性伸缩策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteInstanceBandwidthAutoScalingPolicyRequest 请求对象 + * @return DeleteInstanceBandwidthAutoScalingPolicyResponse + */ + public DeleteInstanceBandwidthAutoScalingPolicyResponse deleteInstanceBandwidthAutoScalingPolicy( + DeleteInstanceBandwidthAutoScalingPolicyRequest request) { + return hcClient.syncInvokeHttp(request, DcsMeta.deleteInstanceBandwidthAutoScalingPolicy); + } + + /** + * 删除实例带宽弹性伸缩策略 + * + * 删除实例带宽弹性伸缩策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteInstanceBandwidthAutoScalingPolicyRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteInstanceBandwidthAutoScalingPolicyInvoker( + DeleteInstanceBandwidthAutoScalingPolicyRequest request) { + return new SyncInvoker<>(request, DcsMeta.deleteInstanceBandwidthAutoScalingPolicy, hcClient); + } + /** * 域名摘除IP * @@ -1141,6 +1220,35 @@ public SyncInvoker dele return new SyncInvoker<>(request, DcsMeta.deleteMigrationTask, hcClient); } + /** + * 关闭实例公网访问 + * + * 关闭实例公网访问。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeletePublicIpRequest 请求对象 + * @return DeletePublicIpResponse + */ + public DeletePublicIpResponse deletePublicIp(DeletePublicIpRequest request) { + return hcClient.syncInvokeHttp(request, DcsMeta.deletePublicIp); + } + + /** + * 关闭实例公网访问 + * + * 关闭实例公网访问。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeletePublicIpRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deletePublicIpInvoker( + DeletePublicIpRequest request) { + return new SyncInvoker<>(request, DcsMeta.deletePublicIp, hcClient); + } + /** * 删除实例 * @@ -2539,6 +2647,35 @@ public SyncInvoker(request, DcsMeta.showBackgroundTaskProgress, hcClient); } + /** + * 获取实例分片带宽 + * + * 获取实例各个分片带宽。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowBandwidthsRequest 请求对象 + * @return ShowBandwidthsResponse + */ + public ShowBandwidthsResponse showBandwidths(ShowBandwidthsRequest request) { + return hcClient.syncInvokeHttp(request, DcsMeta.showBandwidths); + } + + /** + * 获取实例分片带宽 + * + * 获取实例各个分片带宽。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowBandwidthsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showBandwidthsInvoker( + ShowBandwidthsRequest request) { + return new SyncInvoker<>(request, DcsMeta.showBandwidths, hcClient); + } + /** * 查询大key自动分析配置 * @@ -2828,6 +2965,36 @@ public SyncInvoker showInstanceInvoke return new SyncInvoker<>(request, DcsMeta.showInstance, hcClient); } + /** + * 查询实例带宽弹性伸缩策略 + * + * 查询实例带宽弹性伸缩策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowInstanceBandwidthAutoScalingPolicyRequest 请求对象 + * @return ShowInstanceBandwidthAutoScalingPolicyResponse + */ + public ShowInstanceBandwidthAutoScalingPolicyResponse showInstanceBandwidthAutoScalingPolicy( + ShowInstanceBandwidthAutoScalingPolicyRequest request) { + return hcClient.syncInvokeHttp(request, DcsMeta.showInstanceBandwidthAutoScalingPolicy); + } + + /** + * 查询实例带宽弹性伸缩策略 + * + * 查询实例带宽弹性伸缩策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowInstanceBandwidthAutoScalingPolicyRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showInstanceBandwidthAutoScalingPolicyInvoker( + ShowInstanceBandwidthAutoScalingPolicyRequest request) { + return new SyncInvoker<>(request, DcsMeta.showInstanceBandwidthAutoScalingPolicy, hcClient); + } + /** * 查询实例SSL信息 * @@ -2857,6 +3024,35 @@ public SyncInvoker return new SyncInvoker<>(request, DcsMeta.showInstanceSslDetail, hcClient); } + /** + * 根据实例ID获取实例内核版本信息 + * + * 获取对应实例内核版本号。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowInstanceVersionRequest 请求对象 + * @return ShowInstanceVersionResponse + */ + public ShowInstanceVersionResponse showInstanceVersion(ShowInstanceVersionRequest request) { + return hcClient.syncInvokeHttp(request, DcsMeta.showInstanceVersion); + } + + /** + * 根据实例ID获取实例内核版本信息 + * + * 获取对应实例内核版本号。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowInstanceVersionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showInstanceVersionInvoker( + ShowInstanceVersionRequest request) { + return new SyncInvoker<>(request, DcsMeta.showInstanceVersion, hcClient); + } + /** * 查询租户Job执行结果 * @@ -3236,6 +3432,35 @@ public SyncInvoker(request, DcsMeta.updateAclAccountRemark, hcClient); } + /** + * 修改实例分片带宽 + * + * 修改实例分片带宽。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateBandwidthRequest 请求对象 + * @return UpdateBandwidthResponse + */ + public UpdateBandwidthResponse updateBandwidth(UpdateBandwidthRequest request) { + return hcClient.syncInvokeHttp(request, DcsMeta.updateBandwidth); + } + + /** + * 修改实例分片带宽 + * + * 修改实例分片带宽。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateBandwidthRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateBandwidthInvoker( + UpdateBandwidthRequest request) { + return new SyncInvoker<>(request, DcsMeta.updateBandwidth, hcClient); + } + /** * 设置大key自动分析配置 * @@ -3469,6 +3694,36 @@ public SyncInvoker(request, DcsMeta.updateInstanceBandwidth, hcClient); } + /** + * 更新实例带宽弹性伸缩策略 + * + * 更新实例带宽弹性伸缩策略。暂不支持实例带宽自动回缩。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateInstanceBandwidthAutoScalingPolicyRequest 请求对象 + * @return UpdateInstanceBandwidthAutoScalingPolicyResponse + */ + public UpdateInstanceBandwidthAutoScalingPolicyResponse updateInstanceBandwidthAutoScalingPolicy( + UpdateInstanceBandwidthAutoScalingPolicyRequest request) { + return hcClient.syncInvokeHttp(request, DcsMeta.updateInstanceBandwidthAutoScalingPolicy); + } + + /** + * 更新实例带宽弹性伸缩策略 + * + * 更新实例带宽弹性伸缩策略。暂不支持实例带宽自动回缩。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateInstanceBandwidthAutoScalingPolicyRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateInstanceBandwidthAutoScalingPolicyInvoker( + UpdateInstanceBandwidthAutoScalingPolicyRequest request) { + return new SyncInvoker<>(request, DcsMeta.updateInstanceBandwidthAutoScalingPolicy, hcClient); + } + /** * 异步修改实例配置参数 * @@ -3556,6 +3811,35 @@ public SyncInvoker updatePassword return new SyncInvoker<>(request, DcsMeta.updatePassword, hcClient); } + /** + * 开启/修改实例公网访问 + * + * 开启/修改实例公网访问。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdatePublicIpRequest 请求对象 + * @return UpdatePublicIpResponse + */ + public UpdatePublicIpResponse updatePublicIp(UpdatePublicIpRequest request) { + return hcClient.syncInvokeHttp(request, DcsMeta.updatePublicIp); + } + + /** + * 开启/修改实例公网访问 + * + * 开启/修改实例公网访问。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdatePublicIpRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updatePublicIpInvoker( + UpdatePublicIpRequest request) { + return new SyncInvoker<>(request, DcsMeta.updatePublicIp, hcClient); + } + /** * 设置备节点优先级 * @@ -3614,6 +3898,35 @@ public SyncInvoker updateSslSwi return new SyncInvoker<>(request, DcsMeta.updateSslSwitch, hcClient); } + /** + * 升级实例小版本 + * + * 升级实例小版本。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpgradeInstanceMinorVersionRequest 请求对象 + * @return UpgradeInstanceMinorVersionResponse + */ + public UpgradeInstanceMinorVersionResponse upgradeInstanceMinorVersion(UpgradeInstanceMinorVersionRequest request) { + return hcClient.syncInvokeHttp(request, DcsMeta.upgradeInstanceMinorVersion); + } + + /** + * 升级实例小版本 + * + * 升级实例小版本。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpgradeInstanceMinorVersionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker upgradeInstanceMinorVersionInvoker( + UpgradeInstanceMinorVersionRequest request) { + return new SyncInvoker<>(request, DcsMeta.upgradeInstanceMinorVersion, hcClient); + } + /** * 校验集群副本是否支持删除 * diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/DcsMeta.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/DcsMeta.java index 088f836b63..3d5b4c92b1 100644 --- a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/DcsMeta.java +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/DcsMeta.java @@ -28,6 +28,9 @@ import com.huaweicloud.sdk.dcs.v2.model.ChangeMasterStandbyAsyncResponse; import com.huaweicloud.sdk.dcs.v2.model.ChangeMasterStandbyRequest; import com.huaweicloud.sdk.dcs.v2.model.ChangeMasterStandbyResponse; +import com.huaweicloud.sdk.dcs.v2.model.ChangeNodesStartStopStatusBody; +import com.huaweicloud.sdk.dcs.v2.model.ChangeNodesStartStopStatusRequest; +import com.huaweicloud.sdk.dcs.v2.model.ChangeNodesStartStopStatusResponse; import com.huaweicloud.sdk.dcs.v2.model.CopyInstanceRequest; import com.huaweicloud.sdk.dcs.v2.model.CopyInstanceResponse; import com.huaweicloud.sdk.dcs.v2.model.CreateAclAccountRequest; @@ -80,11 +83,15 @@ import com.huaweicloud.sdk.dcs.v2.model.DeleteDiagnosisTaskResponse; import com.huaweicloud.sdk.dcs.v2.model.DeleteHotkeyScanTaskRequest; import com.huaweicloud.sdk.dcs.v2.model.DeleteHotkeyScanTaskResponse; +import com.huaweicloud.sdk.dcs.v2.model.DeleteInstanceBandwidthAutoScalingPolicyRequest; +import com.huaweicloud.sdk.dcs.v2.model.DeleteInstanceBandwidthAutoScalingPolicyResponse; import com.huaweicloud.sdk.dcs.v2.model.DeleteIpFromDomainNameRequest; import com.huaweicloud.sdk.dcs.v2.model.DeleteIpFromDomainNameResponse; import com.huaweicloud.sdk.dcs.v2.model.DeleteMigrateTaskRequest; import com.huaweicloud.sdk.dcs.v2.model.DeleteMigrationTaskRequest; import com.huaweicloud.sdk.dcs.v2.model.DeleteMigrationTaskResponse; +import com.huaweicloud.sdk.dcs.v2.model.DeletePublicIpRequest; +import com.huaweicloud.sdk.dcs.v2.model.DeletePublicIpResponse; import com.huaweicloud.sdk.dcs.v2.model.DeleteSingleInstanceRequest; import com.huaweicloud.sdk.dcs.v2.model.DeleteSingleInstanceResponse; import com.huaweicloud.sdk.dcs.v2.model.DownloadBackupFilesReq; @@ -201,6 +208,8 @@ import com.huaweicloud.sdk.dcs.v2.model.SetOnlineMigrationTaskResponse; import com.huaweicloud.sdk.dcs.v2.model.ShowBackgroundTaskProgressRequest; import com.huaweicloud.sdk.dcs.v2.model.ShowBackgroundTaskProgressResponse; +import com.huaweicloud.sdk.dcs.v2.model.ShowBandwidthsRequest; +import com.huaweicloud.sdk.dcs.v2.model.ShowBandwidthsResponse; import com.huaweicloud.sdk.dcs.v2.model.ShowBigkeyAutoscanConfigRequest; import com.huaweicloud.sdk.dcs.v2.model.ShowBigkeyAutoscanConfigResponse; import com.huaweicloud.sdk.dcs.v2.model.ShowBigkeyScanTaskDetailsRequest; @@ -219,10 +228,14 @@ import com.huaweicloud.sdk.dcs.v2.model.ShowHotkeyAutoscanConfigResponse; import com.huaweicloud.sdk.dcs.v2.model.ShowHotkeyTaskDetailsRequest; import com.huaweicloud.sdk.dcs.v2.model.ShowHotkeyTaskDetailsResponse; +import com.huaweicloud.sdk.dcs.v2.model.ShowInstanceBandwidthAutoScalingPolicyRequest; +import com.huaweicloud.sdk.dcs.v2.model.ShowInstanceBandwidthAutoScalingPolicyResponse; import com.huaweicloud.sdk.dcs.v2.model.ShowInstanceRequest; import com.huaweicloud.sdk.dcs.v2.model.ShowInstanceResponse; import com.huaweicloud.sdk.dcs.v2.model.ShowInstanceSslDetailRequest; import com.huaweicloud.sdk.dcs.v2.model.ShowInstanceSslDetailResponse; +import com.huaweicloud.sdk.dcs.v2.model.ShowInstanceVersionRequest; +import com.huaweicloud.sdk.dcs.v2.model.ShowInstanceVersionResponse; import com.huaweicloud.sdk.dcs.v2.model.ShowIpWhitelistRequest; import com.huaweicloud.sdk.dcs.v2.model.ShowIpWhitelistResponse; import com.huaweicloud.sdk.dcs.v2.model.ShowJobInfoRequest; @@ -254,6 +267,9 @@ import com.huaweicloud.sdk.dcs.v2.model.UpdateAclAccountRequest; import com.huaweicloud.sdk.dcs.v2.model.UpdateAclAccountResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdateAutoScanConfigRequestBody; +import com.huaweicloud.sdk.dcs.v2.model.UpdateBandwidthInfoRequest; +import com.huaweicloud.sdk.dcs.v2.model.UpdateBandwidthRequest; +import com.huaweicloud.sdk.dcs.v2.model.UpdateBandwidthResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdateBigkeyAutoscanConfigRequest; import com.huaweicloud.sdk.dcs.v2.model.UpdateBigkeyAutoscanConfigResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdateClientIpTransparentTransmissionRequest; @@ -268,6 +284,9 @@ import com.huaweicloud.sdk.dcs.v2.model.UpdateExpireAutoScanConfigResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdateHotkeyAutoScanConfigRequest; import com.huaweicloud.sdk.dcs.v2.model.UpdateHotkeyAutoScanConfigResponse; +import com.huaweicloud.sdk.dcs.v2.model.UpdateInstanceBandwidthAutoScalingPolicyRequest; +import com.huaweicloud.sdk.dcs.v2.model.UpdateInstanceBandwidthAutoScalingPolicyRequestBody; +import com.huaweicloud.sdk.dcs.v2.model.UpdateInstanceBandwidthAutoScalingPolicyResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdateInstanceBandwidthRequest; import com.huaweicloud.sdk.dcs.v2.model.UpdateInstanceBandwidthResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdateInstanceConfigRequest; @@ -280,11 +299,17 @@ import com.huaweicloud.sdk.dcs.v2.model.UpdateMigrationTaskResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdatePasswordRequest; import com.huaweicloud.sdk.dcs.v2.model.UpdatePasswordResponse; +import com.huaweicloud.sdk.dcs.v2.model.UpdatePublicIpRequest; +import com.huaweicloud.sdk.dcs.v2.model.UpdatePublicIpRequestBody; +import com.huaweicloud.sdk.dcs.v2.model.UpdatePublicIpResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdateSSLSwitchRequestBody; import com.huaweicloud.sdk.dcs.v2.model.UpdateSlavePriorityRequest; import com.huaweicloud.sdk.dcs.v2.model.UpdateSlavePriorityResponse; import com.huaweicloud.sdk.dcs.v2.model.UpdateSslSwitchRequest; import com.huaweicloud.sdk.dcs.v2.model.UpdateSslSwitchResponse; +import com.huaweicloud.sdk.dcs.v2.model.UpgradeInstanceMinorVersionRequest; +import com.huaweicloud.sdk.dcs.v2.model.UpgradeInstanceMinorVersionResponse; +import com.huaweicloud.sdk.dcs.v2.model.UpgradeMinorVersionRequestBody; import com.huaweicloud.sdk.dcs.v2.model.ValidateDeletableReplicaRequest; import com.huaweicloud.sdk.dcs.v2.model.ValidateDeletableReplicaResponse; @@ -484,6 +509,45 @@ private static HttpRequestDef changeNodesStartStopStatus = + genForChangeNodesStartStopStatus(); + + private static HttpRequestDef genForChangeNodesStartStopStatus() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.PUT, + ChangeNodesStartStopStatusRequest.class, + ChangeNodesStartStopStatusResponse.class) + .withName("ChangeNodesStartStopStatus") + .withUri("/v2/{project_id}/instances/{instance_id}/nodes/status") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ChangeNodesStartStopStatusRequest::getInstanceId, + ChangeNodesStartStopStatusRequest::setInstanceId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ChangeNodesStartStopStatusBody.class), + f -> f.withMarshaller(ChangeNodesStartStopStatusRequest::getBody, + ChangeNodesStartStopStatusRequest::setBody)); + + // response + builder.withResponseField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(ChangeNodesStartStopStatusResponse::getBody, + ChangeNodesStartStopStatusResponse::setBody)); + + return builder.build(); + } + public static final HttpRequestDef copyInstance = genForCopyInstance(); private static HttpRequestDef genForCopyInstance() { @@ -1059,6 +1123,39 @@ private static HttpRequestDef deleteInstanceBandwidthAutoScalingPolicy = + genForDeleteInstanceBandwidthAutoScalingPolicy(); + + private static HttpRequestDef genForDeleteInstanceBandwidthAutoScalingPolicy() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.DELETE, + DeleteInstanceBandwidthAutoScalingPolicyRequest.class, + DeleteInstanceBandwidthAutoScalingPolicyResponse.class) + .withName("DeleteInstanceBandwidthAutoScalingPolicy") + .withUri("/v2/{project_id}/instances/{instance_id}/autoscaling-policy/bandwidth") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteInstanceBandwidthAutoScalingPolicyRequest::getInstanceId, + DeleteInstanceBandwidthAutoScalingPolicyRequest::setInstanceId)); + + // response + builder.withResponseField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(DeleteInstanceBandwidthAutoScalingPolicyResponse::getBody, + DeleteInstanceBandwidthAutoScalingPolicyResponse::setBody)); + + return builder.build(); + } + public static final HttpRequestDef deleteIpFromDomainName = genForDeleteIpFromDomainName(); @@ -1117,6 +1214,29 @@ private static HttpRequestDef deletePublicIp = + genForDeletePublicIp(); + + private static HttpRequestDef genForDeletePublicIp() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.DELETE, DeletePublicIpRequest.class, DeletePublicIpResponse.class) + .withName("DeletePublicIp") + .withUri("/v2/{project_id}/instances/{instance_id}/public-ip") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeletePublicIpRequest::getInstanceId, DeletePublicIpRequest::setInstanceId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef deleteSingleInstance = genForDeleteSingleInstance(); @@ -2697,6 +2817,29 @@ private static HttpRequestDef showBandwidths = + genForShowBandwidths(); + + private static HttpRequestDef genForShowBandwidths() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowBandwidthsRequest.class, ShowBandwidthsResponse.class) + .withName("ShowBandwidths") + .withUri("/v2/{project_id}/instances/{instance_id}/bandwidths") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowBandwidthsRequest::getInstanceId, ShowBandwidthsRequest::setInstanceId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showBigkeyAutoscanConfig = genForShowBigkeyAutoscanConfig(); @@ -2984,6 +3127,33 @@ private static HttpRequestDef genForS return builder.build(); } + public static final HttpRequestDef showInstanceBandwidthAutoScalingPolicy = + genForShowInstanceBandwidthAutoScalingPolicy(); + + private static HttpRequestDef genForShowInstanceBandwidthAutoScalingPolicy() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ShowInstanceBandwidthAutoScalingPolicyRequest.class, + ShowInstanceBandwidthAutoScalingPolicyResponse.class) + .withName("ShowInstanceBandwidthAutoScalingPolicy") + .withUri("/v2/{project_id}/instances/{instance_id}/autoscaling-policy/bandwidth") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowInstanceBandwidthAutoScalingPolicyRequest::getInstanceId, + ShowInstanceBandwidthAutoScalingPolicyRequest::setInstanceId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showInstanceSslDetail = genForShowInstanceSslDetail(); @@ -3008,6 +3178,30 @@ private static HttpRequestDef showInstanceVersion = + genForShowInstanceVersion(); + + private static HttpRequestDef genForShowInstanceVersion() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowInstanceVersionRequest.class, ShowInstanceVersionResponse.class) + .withName("ShowInstanceVersion") + .withUri("/v2/{project_id}/instances/{instance_id}/version") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowInstanceVersionRequest::getInstanceId, + ShowInstanceVersionRequest::setInstanceId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showJobInfo = genForShowJobInfo(); private static HttpRequestDef genForShowJobInfo() { @@ -3358,6 +3552,39 @@ private static HttpRequestDef updateBandwidth = + genForUpdateBandwidth(); + + private static HttpRequestDef genForUpdateBandwidth() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.PUT, UpdateBandwidthRequest.class, UpdateBandwidthResponse.class) + .withName("UpdateBandwidth") + .withUri("/v2/{project_id}/instances/{instance_id}/bandwidths") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateBandwidthRequest::getInstanceId, UpdateBandwidthRequest::setInstanceId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateBandwidthInfoRequest.class), + f -> f.withMarshaller(UpdateBandwidthRequest::getBody, UpdateBandwidthRequest::setBody)); + + // response + builder.withResponseField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(UpdateBandwidthResponse::getBody, UpdateBandwidthResponse::setBody)); + + return builder.build(); + } + public static final HttpRequestDef updateBigkeyAutoscanConfig = genForUpdateBigkeyAutoscanConfig(); @@ -3600,6 +3827,39 @@ private static HttpRequestDef updateInstanceBandwidthAutoScalingPolicy = + genForUpdateInstanceBandwidthAutoScalingPolicy(); + + private static HttpRequestDef genForUpdateInstanceBandwidthAutoScalingPolicy() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.PUT, + UpdateInstanceBandwidthAutoScalingPolicyRequest.class, + UpdateInstanceBandwidthAutoScalingPolicyResponse.class) + .withName("UpdateInstanceBandwidthAutoScalingPolicy") + .withUri("/v2/{project_id}/instances/{instance_id}/autoscaling-policy/bandwidth") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateInstanceBandwidthAutoScalingPolicyRequest::getInstanceId, + UpdateInstanceBandwidthAutoScalingPolicyRequest::setInstanceId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateInstanceBandwidthAutoScalingPolicyRequestBody.class), + f -> f.withMarshaller(UpdateInstanceBandwidthAutoScalingPolicyRequest::getBody, + UpdateInstanceBandwidthAutoScalingPolicyRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef updateInstanceConfig = genForUpdateInstanceConfig(); @@ -3690,6 +3950,34 @@ private static HttpRequestDef gen return builder.build(); } + public static final HttpRequestDef updatePublicIp = + genForUpdatePublicIp(); + + private static HttpRequestDef genForUpdatePublicIp() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, UpdatePublicIpRequest.class, UpdatePublicIpResponse.class) + .withName("UpdatePublicIp") + .withUri("/v2/{project_id}/instances/{instance_id}/public-ip") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdatePublicIpRequest::getInstanceId, UpdatePublicIpRequest::setInstanceId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdatePublicIpRequestBody.class), + f -> f.withMarshaller(UpdatePublicIpRequest::getBody, UpdatePublicIpRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef updateSlavePriority = genForUpdateSlavePriority(); @@ -3758,6 +4046,39 @@ private static HttpRequestDef g return builder.build(); } + public static final HttpRequestDef upgradeInstanceMinorVersion = + genForUpgradeInstanceMinorVersion(); + + private static HttpRequestDef genForUpgradeInstanceMinorVersion() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + UpgradeInstanceMinorVersionRequest.class, + UpgradeInstanceMinorVersionResponse.class) + .withName("UpgradeInstanceMinorVersion") + .withUri("/v2/{project_id}/instances/{instance_id}/minor-version/upgrade") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpgradeInstanceMinorVersionRequest::getInstanceId, + UpgradeInstanceMinorVersionRequest::setInstanceId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpgradeMinorVersionRequestBody.class), + f -> f.withMarshaller(UpgradeInstanceMinorVersionRequest::getBody, + UpgradeInstanceMinorVersionRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef validateDeletableReplica = genForValidateDeletableReplica(); diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/BandwidthAutoScalingPolicy.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/BandwidthAutoScalingPolicy.java new file mode 100644 index 0000000000..c5dac44373 --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/BandwidthAutoScalingPolicy.java @@ -0,0 +1,398 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * 带宽弹性伸缩策略。 + */ +public class BandwidthAutoScalingPolicy { + + /** + * 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。 + */ + public static final class WindowSizeEnum { + + /** + * Enum NUMBER_1 for value: 1 + */ + public static final WindowSizeEnum NUMBER_1 = new WindowSizeEnum(1); + + /** + * Enum NUMBER_5 for value: 5 + */ + public static final WindowSizeEnum NUMBER_5 = new WindowSizeEnum(5); + + /** + * Enum NUMBER_10 for value: 10 + */ + public static final WindowSizeEnum NUMBER_10 = new WindowSizeEnum(10); + + /** + * Enum NUMBER_15 for value: 15 + */ + public static final WindowSizeEnum NUMBER_15 = new WindowSizeEnum(15); + + /** + * Enum NUMBER_30 for value: 30 + */ + public static final WindowSizeEnum NUMBER_30 = new WindowSizeEnum(30); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put(1, NUMBER_1); + map.put(5, NUMBER_5); + map.put(10, NUMBER_10); + map.put(15, NUMBER_15); + map.put(30, NUMBER_30); + return Collections.unmodifiableMap(map); + } + + private Integer value; + + WindowSizeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static WindowSizeEnum fromValue(Integer value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new WindowSizeEnum(value)); + } + + public static WindowSizeEnum valueOf(Integer value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof WindowSizeEnum) { + return this.value.equals(((WindowSizeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "window_size") + + private WindowSizeEnum windowSize; + + /** + * 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。 + */ + public static final class BandwidthUsageUpperThresholdEnum { + + /** + * Enum NUMBER_50 for value: 50 + */ + public static final BandwidthUsageUpperThresholdEnum NUMBER_50 = new BandwidthUsageUpperThresholdEnum(50); + + /** + * Enum NUMBER_60 for value: 60 + */ + public static final BandwidthUsageUpperThresholdEnum NUMBER_60 = new BandwidthUsageUpperThresholdEnum(60); + + /** + * Enum NUMBER_70 for value: 70 + */ + public static final BandwidthUsageUpperThresholdEnum NUMBER_70 = new BandwidthUsageUpperThresholdEnum(70); + + /** + * Enum NUMBER_80 for value: 80 + */ + public static final BandwidthUsageUpperThresholdEnum NUMBER_80 = new BandwidthUsageUpperThresholdEnum(80); + + /** + * Enum NUMBER_90 for value: 90 + */ + public static final BandwidthUsageUpperThresholdEnum NUMBER_90 = new BandwidthUsageUpperThresholdEnum(90); + + /** + * Enum NUMBER_95 for value: 95 + */ + public static final BandwidthUsageUpperThresholdEnum NUMBER_95 = new BandwidthUsageUpperThresholdEnum(95); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put(50, NUMBER_50); + map.put(60, NUMBER_60); + map.put(70, NUMBER_70); + map.put(80, NUMBER_80); + map.put(90, NUMBER_90); + map.put(95, NUMBER_95); + return Collections.unmodifiableMap(map); + } + + private Integer value; + + BandwidthUsageUpperThresholdEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static BandwidthUsageUpperThresholdEnum fromValue(Integer value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElse(new BandwidthUsageUpperThresholdEnum(value)); + } + + public static BandwidthUsageUpperThresholdEnum valueOf(Integer value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof BandwidthUsageUpperThresholdEnum) { + return this.value.equals(((BandwidthUsageUpperThresholdEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bandwidth_usage_upper_threshold") + + private BandwidthUsageUpperThresholdEnum bandwidthUsageUpperThreshold; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "scale_out_cooldown") + + private Integer scaleOutCooldown; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "scale_in_enabled") + + private Boolean scaleInEnabled; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bandwidth_usage_lower_threshold") + + private Integer bandwidthUsageLowerThreshold; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "scale_in_cooldown") + + private Integer scaleInCooldown; + + public BandwidthAutoScalingPolicy withWindowSize(WindowSizeEnum windowSize) { + this.windowSize = windowSize; + return this; + } + + /** + * 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。 + * @return windowSize + */ + public WindowSizeEnum getWindowSize() { + return windowSize; + } + + public void setWindowSize(WindowSizeEnum windowSize) { + this.windowSize = windowSize; + } + + public BandwidthAutoScalingPolicy withBandwidthUsageUpperThreshold( + BandwidthUsageUpperThresholdEnum bandwidthUsageUpperThreshold) { + this.bandwidthUsageUpperThreshold = bandwidthUsageUpperThreshold; + return this; + } + + /** + * 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。 + * minimum: 50 + * maximum: 95 + * @return bandwidthUsageUpperThreshold + */ + public BandwidthUsageUpperThresholdEnum getBandwidthUsageUpperThreshold() { + return bandwidthUsageUpperThreshold; + } + + public void setBandwidthUsageUpperThreshold(BandwidthUsageUpperThresholdEnum bandwidthUsageUpperThreshold) { + this.bandwidthUsageUpperThreshold = bandwidthUsageUpperThreshold; + } + + public BandwidthAutoScalingPolicy withScaleOutCooldown(Integer scaleOutCooldown) { + this.scaleOutCooldown = scaleOutCooldown; + return this; + } + + /** + * 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。 + * minimum: 0 + * maximum: 86400 + * @return scaleOutCooldown + */ + public Integer getScaleOutCooldown() { + return scaleOutCooldown; + } + + public void setScaleOutCooldown(Integer scaleOutCooldown) { + this.scaleOutCooldown = scaleOutCooldown; + } + + public BandwidthAutoScalingPolicy withScaleInEnabled(Boolean scaleInEnabled) { + this.scaleInEnabled = scaleInEnabled; + return this; + } + + /** + * 是否启用带宽自动回缩。默认值:false。该参数暂未启用。 + * @return scaleInEnabled + */ + public Boolean getScaleInEnabled() { + return scaleInEnabled; + } + + public void setScaleInEnabled(Boolean scaleInEnabled) { + this.scaleInEnabled = scaleInEnabled; + } + + public BandwidthAutoScalingPolicy withBandwidthUsageLowerThreshold(Integer bandwidthUsageLowerThreshold) { + this.bandwidthUsageLowerThreshold = bandwidthUsageLowerThreshold; + return this; + } + + /** + * 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。 + * minimum: 10 + * maximum: 30 + * @return bandwidthUsageLowerThreshold + */ + public Integer getBandwidthUsageLowerThreshold() { + return bandwidthUsageLowerThreshold; + } + + public void setBandwidthUsageLowerThreshold(Integer bandwidthUsageLowerThreshold) { + this.bandwidthUsageLowerThreshold = bandwidthUsageLowerThreshold; + } + + public BandwidthAutoScalingPolicy withScaleInCooldown(Integer scaleInCooldown) { + this.scaleInCooldown = scaleInCooldown; + return this; + } + + /** + * 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。 + * minimum: 0 + * maximum: 86400 + * @return scaleInCooldown + */ + public Integer getScaleInCooldown() { + return scaleInCooldown; + } + + public void setScaleInCooldown(Integer scaleInCooldown) { + this.scaleInCooldown = scaleInCooldown; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BandwidthAutoScalingPolicy that = (BandwidthAutoScalingPolicy) obj; + return Objects.equals(this.windowSize, that.windowSize) + && Objects.equals(this.bandwidthUsageUpperThreshold, that.bandwidthUsageUpperThreshold) + && Objects.equals(this.scaleOutCooldown, that.scaleOutCooldown) + && Objects.equals(this.scaleInEnabled, that.scaleInEnabled) + && Objects.equals(this.bandwidthUsageLowerThreshold, that.bandwidthUsageLowerThreshold) + && Objects.equals(this.scaleInCooldown, that.scaleInCooldown); + } + + @Override + public int hashCode() { + return Objects.hash(windowSize, + bandwidthUsageUpperThreshold, + scaleOutCooldown, + scaleInEnabled, + bandwidthUsageLowerThreshold, + scaleInCooldown); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BandwidthAutoScalingPolicy {\n"); + sb.append(" windowSize: ").append(toIndentedString(windowSize)).append("\n"); + sb.append(" bandwidthUsageUpperThreshold: ") + .append(toIndentedString(bandwidthUsageUpperThreshold)) + .append("\n"); + sb.append(" scaleOutCooldown: ").append(toIndentedString(scaleOutCooldown)).append("\n"); + sb.append(" scaleInEnabled: ").append(toIndentedString(scaleInEnabled)).append("\n"); + sb.append(" bandwidthUsageLowerThreshold: ") + .append(toIndentedString(bandwidthUsageLowerThreshold)) + .append("\n"); + sb.append(" scaleInCooldown: ").append(toIndentedString(scaleInCooldown)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ChangeNodesStartStopStatusBody.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ChangeNodesStartStopStatusBody.java new file mode 100644 index 0000000000..84f14009a7 --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ChangeNodesStartStopStatusBody.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.dcs.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; + +/** + * ChangeNodesStartStopStatusBody + */ +public class ChangeNodesStartStopStatusBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "node_ids") + + private List nodeIds = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "action") + + private String action; + + public ChangeNodesStartStopStatusBody withNodeIds(List nodeIds) { + this.nodeIds = nodeIds; + return this; + } + + public ChangeNodesStartStopStatusBody addNodeIdsItem(String nodeIdsItem) { + if (this.nodeIds == null) { + this.nodeIds = new ArrayList<>(); + } + this.nodeIds.add(nodeIdsItem); + return this; + } + + public ChangeNodesStartStopStatusBody withNodeIds(Consumer> nodeIdsSetter) { + if (this.nodeIds == null) { + this.nodeIds = new ArrayList<>(); + } + nodeIdsSetter.accept(this.nodeIds); + return this; + } + + /** + * 实例需要启停的节点ID列表。未配置该参数时,默认启停实例全部节点。 + * @return nodeIds + */ + public List getNodeIds() { + return nodeIds; + } + + public void setNodeIds(List nodeIds) { + this.nodeIds = nodeIds; + } + + public ChangeNodesStartStopStatusBody withAction(String action) { + this.action = action; + return this; + } + + /** + * 对实例节点的操作: start:开启节点 stop:关闭节点 + * @return action + */ + public String getAction() { + return action; + } + + public void setAction(String action) { + this.action = action; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ChangeNodesStartStopStatusBody that = (ChangeNodesStartStopStatusBody) obj; + return Objects.equals(this.nodeIds, that.nodeIds) && Objects.equals(this.action, that.action); + } + + @Override + public int hashCode() { + return Objects.hash(nodeIds, action); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChangeNodesStartStopStatusBody {\n"); + sb.append(" nodeIds: ").append(toIndentedString(nodeIds)).append("\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ChangeNodesStartStopStatusRequest.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ChangeNodesStartStopStatusRequest.java new file mode 100644 index 0000000000..fe518306d9 --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ChangeNodesStartStopStatusRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class ChangeNodesStartStopStatusRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private ChangeNodesStartStopStatusBody body; + + public ChangeNodesStartStopStatusRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ChangeNodesStartStopStatusRequest withBody(ChangeNodesStartStopStatusBody body) { + this.body = body; + return this; + } + + public ChangeNodesStartStopStatusRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new ChangeNodesStartStopStatusBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ChangeNodesStartStopStatusBody getBody() { + return body; + } + + public void setBody(ChangeNodesStartStopStatusBody 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; + } + ChangeNodesStartStopStatusRequest that = (ChangeNodesStartStopStatusRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChangeNodesStartStopStatusRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ChangeNodesStartStopStatusResp.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ChangeNodesStartStopStatusResp.java new file mode 100644 index 0000000000..53c8c869eb --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ChangeNodesStartStopStatusResp.java @@ -0,0 +1,34 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import java.util.Objects; + +/** + * ChangeNodesStartStopStatusResp + */ +public class ChangeNodesStartStopStatusResp { + + @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 ChangeNodesStartStopStatusResp {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ChangeNodesStartStopStatusResponse.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ChangeNodesStartStopStatusResponse.java new file mode 100644 index 0000000000..42528d1976 --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ChangeNodesStartStopStatusResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ChangeNodesStartStopStatusResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private String body; + + public ChangeNodesStartStopStatusResponse 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; + } + ChangeNodesStartStopStatusResponse that = (ChangeNodesStartStopStatusResponse) 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 ChangeNodesStartStopStatusResponse {\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/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/DeleteInstanceBandwidthAutoScalingPolicyRequest.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/DeleteInstanceBandwidthAutoScalingPolicyRequest.java new file mode 100644 index 0000000000..4033569997 --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/DeleteInstanceBandwidthAutoScalingPolicyRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class DeleteInstanceBandwidthAutoScalingPolicyRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + public DeleteInstanceBandwidthAutoScalingPolicyRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteInstanceBandwidthAutoScalingPolicyRequest that = (DeleteInstanceBandwidthAutoScalingPolicyRequest) obj; + return Objects.equals(this.instanceId, that.instanceId); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteInstanceBandwidthAutoScalingPolicyRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/DeleteInstanceBandwidthAutoScalingPolicyResp.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/DeleteInstanceBandwidthAutoScalingPolicyResp.java new file mode 100644 index 0000000000..a26d97c712 --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/DeleteInstanceBandwidthAutoScalingPolicyResp.java @@ -0,0 +1,34 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import java.util.Objects; + +/** + * DeleteInstanceBandwidthAutoScalingPolicyResp + */ +public class DeleteInstanceBandwidthAutoScalingPolicyResp { + + @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 DeleteInstanceBandwidthAutoScalingPolicyResp {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/DeleteInstanceBandwidthAutoScalingPolicyResponse.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/DeleteInstanceBandwidthAutoScalingPolicyResponse.java new file mode 100644 index 0000000000..943d9d2f49 --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/DeleteInstanceBandwidthAutoScalingPolicyResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeleteInstanceBandwidthAutoScalingPolicyResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private String body; + + public DeleteInstanceBandwidthAutoScalingPolicyResponse 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; + } + DeleteInstanceBandwidthAutoScalingPolicyResponse that = (DeleteInstanceBandwidthAutoScalingPolicyResponse) 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 DeleteInstanceBandwidthAutoScalingPolicyResponse {\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/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/DeletePublicIpRequest.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/DeletePublicIpRequest.java new file mode 100644 index 0000000000..fd3b221719 --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/DeletePublicIpRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class DeletePublicIpRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + public DeletePublicIpRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeletePublicIpRequest that = (DeletePublicIpRequest) obj; + return Objects.equals(this.instanceId, that.instanceId); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeletePublicIpRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/DeletePublicIpResponse.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/DeletePublicIpResponse.java new file mode 100644 index 0000000000..6df2fb592d --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/DeletePublicIpResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeletePublicIpResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + public DeletePublicIpResponse withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 请求提交任务ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeletePublicIpResponse that = (DeletePublicIpResponse) obj; + return Objects.equals(this.jobId, that.jobId); + } + + @Override + public int hashCode() { + return Objects.hash(jobId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeletePublicIpResponse {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/GroupBandwidthInfo.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/GroupBandwidthInfo.java new file mode 100644 index 0000000000..84a74b1de4 --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/GroupBandwidthInfo.java @@ -0,0 +1,166 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * GroupBandwidthInfo + */ +public class GroupBandwidthInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "group_id") + + private String groupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "updated_at") + + private String updatedAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bandwidth") + + private Integer bandwidth; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "max_bandwidth") + + private Integer maxBandwidth; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "assured_bandwidth") + + private Integer assuredBandwidth; + + public GroupBandwidthInfo withGroupId(String groupId) { + this.groupId = groupId; + return this; + } + + /** + * 分片ID。 + * @return groupId + */ + public String getGroupId() { + return groupId; + } + + public void setGroupId(String groupId) { + this.groupId = groupId; + } + + public GroupBandwidthInfo withUpdatedAt(String updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + /** + * 更新时间,UTC时间。 + * @return updatedAt + */ + public String getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(String updatedAt) { + this.updatedAt = updatedAt; + } + + public GroupBandwidthInfo withBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + return this; + } + + /** + * 当前带宽(Mbit/s)。 + * @return bandwidth + */ + public Integer getBandwidth() { + return bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public GroupBandwidthInfo withMaxBandwidth(Integer maxBandwidth) { + this.maxBandwidth = maxBandwidth; + return this; + } + + /** + * 最大带宽(Mbit/s)。 + * @return maxBandwidth + */ + public Integer getMaxBandwidth() { + return maxBandwidth; + } + + public void setMaxBandwidth(Integer maxBandwidth) { + this.maxBandwidth = maxBandwidth; + } + + public GroupBandwidthInfo withAssuredBandwidth(Integer assuredBandwidth) { + this.assuredBandwidth = assuredBandwidth; + return this; + } + + /** + * 基准带宽(Mbit/s)。 + * @return assuredBandwidth + */ + public Integer getAssuredBandwidth() { + return assuredBandwidth; + } + + public void setAssuredBandwidth(Integer assuredBandwidth) { + this.assuredBandwidth = assuredBandwidth; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + GroupBandwidthInfo that = (GroupBandwidthInfo) obj; + return Objects.equals(this.groupId, that.groupId) && Objects.equals(this.updatedAt, that.updatedAt) + && Objects.equals(this.bandwidth, that.bandwidth) && Objects.equals(this.maxBandwidth, that.maxBandwidth) + && Objects.equals(this.assuredBandwidth, that.assuredBandwidth); + } + + @Override + public int hashCode() { + return Objects.hash(groupId, updatedAt, bandwidth, maxBandwidth, assuredBandwidth); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GroupBandwidthInfo {\n"); + sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" bandwidth: ").append(toIndentedString(bandwidth)).append("\n"); + sb.append(" maxBandwidth: ").append(toIndentedString(maxBandwidth)).append("\n"); + sb.append(" assuredBandwidth: ").append(toIndentedString(assuredBandwidth)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ShowBandwidthsRequest.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ShowBandwidthsRequest.java new file mode 100644 index 0000000000..b90359f7a8 --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ShowBandwidthsRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowBandwidthsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + public ShowBandwidthsRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowBandwidthsRequest that = (ShowBandwidthsRequest) obj; + return Objects.equals(this.instanceId, that.instanceId); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowBandwidthsRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ShowBandwidthsResponse.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ShowBandwidthsResponse.java new file mode 100644 index 0000000000..265fe359fa --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ShowBandwidthsResponse.java @@ -0,0 +1,163 @@ +package com.huaweicloud.sdk.dcs.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 ShowBandwidthsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bandwidth") + + private Integer bandwidth; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "max_bandwidth") + + private Integer maxBandwidth; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "allow_modify") + + private Boolean allowModify; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "group_bandwidths") + + private List groupBandwidths = null; + + public ShowBandwidthsResponse withBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + return this; + } + + /** + * 实例当前带宽(Mbit/s)。 + * @return bandwidth + */ + public Integer getBandwidth() { + return bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public ShowBandwidthsResponse withMaxBandwidth(Integer maxBandwidth) { + this.maxBandwidth = maxBandwidth; + return this; + } + + /** + * 实例最大带宽(Mbit/s)。 + * @return maxBandwidth + */ + public Integer getMaxBandwidth() { + return maxBandwidth; + } + + public void setMaxBandwidth(Integer maxBandwidth) { + this.maxBandwidth = maxBandwidth; + } + + public ShowBandwidthsResponse withAllowModify(Boolean allowModify) { + this.allowModify = allowModify; + return this; + } + + /** + * 是否支持调带宽。 + * @return allowModify + */ + public Boolean getAllowModify() { + return allowModify; + } + + public void setAllowModify(Boolean allowModify) { + this.allowModify = allowModify; + } + + public ShowBandwidthsResponse withGroupBandwidths(List groupBandwidths) { + this.groupBandwidths = groupBandwidths; + return this; + } + + public ShowBandwidthsResponse addGroupBandwidthsItem(GroupBandwidthInfo groupBandwidthsItem) { + if (this.groupBandwidths == null) { + this.groupBandwidths = new ArrayList<>(); + } + this.groupBandwidths.add(groupBandwidthsItem); + return this; + } + + public ShowBandwidthsResponse withGroupBandwidths(Consumer> groupBandwidthsSetter) { + if (this.groupBandwidths == null) { + this.groupBandwidths = new ArrayList<>(); + } + groupBandwidthsSetter.accept(this.groupBandwidths); + return this; + } + + /** + * 分片带宽列表。 + * @return groupBandwidths + */ + public List getGroupBandwidths() { + return groupBandwidths; + } + + public void setGroupBandwidths(List groupBandwidths) { + this.groupBandwidths = groupBandwidths; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowBandwidthsResponse that = (ShowBandwidthsResponse) obj; + return Objects.equals(this.bandwidth, that.bandwidth) && Objects.equals(this.maxBandwidth, that.maxBandwidth) + && Objects.equals(this.allowModify, that.allowModify) + && Objects.equals(this.groupBandwidths, that.groupBandwidths); + } + + @Override + public int hashCode() { + return Objects.hash(bandwidth, maxBandwidth, allowModify, groupBandwidths); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowBandwidthsResponse {\n"); + sb.append(" bandwidth: ").append(toIndentedString(bandwidth)).append("\n"); + sb.append(" maxBandwidth: ").append(toIndentedString(maxBandwidth)).append("\n"); + sb.append(" allowModify: ").append(toIndentedString(allowModify)).append("\n"); + sb.append(" groupBandwidths: ").append(toIndentedString(groupBandwidths)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ShowInstanceBandwidthAutoScalingPolicyRequest.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ShowInstanceBandwidthAutoScalingPolicyRequest.java new file mode 100644 index 0000000000..0f001becc6 --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ShowInstanceBandwidthAutoScalingPolicyRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowInstanceBandwidthAutoScalingPolicyRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + public ShowInstanceBandwidthAutoScalingPolicyRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowInstanceBandwidthAutoScalingPolicyRequest that = (ShowInstanceBandwidthAutoScalingPolicyRequest) obj; + return Objects.equals(this.instanceId, that.instanceId); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowInstanceBandwidthAutoScalingPolicyRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ShowInstanceBandwidthAutoScalingPolicyResponse.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ShowInstanceBandwidthAutoScalingPolicyResponse.java new file mode 100644 index 0000000000..c51b6470be --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ShowInstanceBandwidthAutoScalingPolicyResponse.java @@ -0,0 +1,400 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Response Object + */ +public class ShowInstanceBandwidthAutoScalingPolicyResponse extends SdkResponse { + + /** + * 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。 + */ + public static final class WindowSizeEnum { + + /** + * Enum NUMBER_1 for value: 1 + */ + public static final WindowSizeEnum NUMBER_1 = new WindowSizeEnum(1); + + /** + * Enum NUMBER_5 for value: 5 + */ + public static final WindowSizeEnum NUMBER_5 = new WindowSizeEnum(5); + + /** + * Enum NUMBER_10 for value: 10 + */ + public static final WindowSizeEnum NUMBER_10 = new WindowSizeEnum(10); + + /** + * Enum NUMBER_15 for value: 15 + */ + public static final WindowSizeEnum NUMBER_15 = new WindowSizeEnum(15); + + /** + * Enum NUMBER_30 for value: 30 + */ + public static final WindowSizeEnum NUMBER_30 = new WindowSizeEnum(30); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put(1, NUMBER_1); + map.put(5, NUMBER_5); + map.put(10, NUMBER_10); + map.put(15, NUMBER_15); + map.put(30, NUMBER_30); + return Collections.unmodifiableMap(map); + } + + private Integer value; + + WindowSizeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static WindowSizeEnum fromValue(Integer value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new WindowSizeEnum(value)); + } + + public static WindowSizeEnum valueOf(Integer value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof WindowSizeEnum) { + return this.value.equals(((WindowSizeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "window_size") + + private WindowSizeEnum windowSize; + + /** + * 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。 + */ + public static final class BandwidthUsageUpperThresholdEnum { + + /** + * Enum NUMBER_50 for value: 50 + */ + public static final BandwidthUsageUpperThresholdEnum NUMBER_50 = new BandwidthUsageUpperThresholdEnum(50); + + /** + * Enum NUMBER_60 for value: 60 + */ + public static final BandwidthUsageUpperThresholdEnum NUMBER_60 = new BandwidthUsageUpperThresholdEnum(60); + + /** + * Enum NUMBER_70 for value: 70 + */ + public static final BandwidthUsageUpperThresholdEnum NUMBER_70 = new BandwidthUsageUpperThresholdEnum(70); + + /** + * Enum NUMBER_80 for value: 80 + */ + public static final BandwidthUsageUpperThresholdEnum NUMBER_80 = new BandwidthUsageUpperThresholdEnum(80); + + /** + * Enum NUMBER_90 for value: 90 + */ + public static final BandwidthUsageUpperThresholdEnum NUMBER_90 = new BandwidthUsageUpperThresholdEnum(90); + + /** + * Enum NUMBER_95 for value: 95 + */ + public static final BandwidthUsageUpperThresholdEnum NUMBER_95 = new BandwidthUsageUpperThresholdEnum(95); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put(50, NUMBER_50); + map.put(60, NUMBER_60); + map.put(70, NUMBER_70); + map.put(80, NUMBER_80); + map.put(90, NUMBER_90); + map.put(95, NUMBER_95); + return Collections.unmodifiableMap(map); + } + + private Integer value; + + BandwidthUsageUpperThresholdEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static BandwidthUsageUpperThresholdEnum fromValue(Integer value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElse(new BandwidthUsageUpperThresholdEnum(value)); + } + + public static BandwidthUsageUpperThresholdEnum valueOf(Integer value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof BandwidthUsageUpperThresholdEnum) { + return this.value.equals(((BandwidthUsageUpperThresholdEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bandwidth_usage_upper_threshold") + + private BandwidthUsageUpperThresholdEnum bandwidthUsageUpperThreshold; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "scale_out_cooldown") + + private Integer scaleOutCooldown; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "scale_in_enabled") + + private Boolean scaleInEnabled; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bandwidth_usage_lower_threshold") + + private Integer bandwidthUsageLowerThreshold; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "scale_in_cooldown") + + private Integer scaleInCooldown; + + public ShowInstanceBandwidthAutoScalingPolicyResponse withWindowSize(WindowSizeEnum windowSize) { + this.windowSize = windowSize; + return this; + } + + /** + * 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。 + * @return windowSize + */ + public WindowSizeEnum getWindowSize() { + return windowSize; + } + + public void setWindowSize(WindowSizeEnum windowSize) { + this.windowSize = windowSize; + } + + public ShowInstanceBandwidthAutoScalingPolicyResponse withBandwidthUsageUpperThreshold( + BandwidthUsageUpperThresholdEnum bandwidthUsageUpperThreshold) { + this.bandwidthUsageUpperThreshold = bandwidthUsageUpperThreshold; + return this; + } + + /** + * 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。 + * minimum: 50 + * maximum: 95 + * @return bandwidthUsageUpperThreshold + */ + public BandwidthUsageUpperThresholdEnum getBandwidthUsageUpperThreshold() { + return bandwidthUsageUpperThreshold; + } + + public void setBandwidthUsageUpperThreshold(BandwidthUsageUpperThresholdEnum bandwidthUsageUpperThreshold) { + this.bandwidthUsageUpperThreshold = bandwidthUsageUpperThreshold; + } + + public ShowInstanceBandwidthAutoScalingPolicyResponse withScaleOutCooldown(Integer scaleOutCooldown) { + this.scaleOutCooldown = scaleOutCooldown; + return this; + } + + /** + * 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。 + * minimum: 0 + * maximum: 86400 + * @return scaleOutCooldown + */ + public Integer getScaleOutCooldown() { + return scaleOutCooldown; + } + + public void setScaleOutCooldown(Integer scaleOutCooldown) { + this.scaleOutCooldown = scaleOutCooldown; + } + + public ShowInstanceBandwidthAutoScalingPolicyResponse withScaleInEnabled(Boolean scaleInEnabled) { + this.scaleInEnabled = scaleInEnabled; + return this; + } + + /** + * 是否启用带宽自动回缩。默认值:false。该参数暂未启用。 + * @return scaleInEnabled + */ + public Boolean getScaleInEnabled() { + return scaleInEnabled; + } + + public void setScaleInEnabled(Boolean scaleInEnabled) { + this.scaleInEnabled = scaleInEnabled; + } + + public ShowInstanceBandwidthAutoScalingPolicyResponse withBandwidthUsageLowerThreshold( + Integer bandwidthUsageLowerThreshold) { + this.bandwidthUsageLowerThreshold = bandwidthUsageLowerThreshold; + return this; + } + + /** + * 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。 + * minimum: 10 + * maximum: 30 + * @return bandwidthUsageLowerThreshold + */ + public Integer getBandwidthUsageLowerThreshold() { + return bandwidthUsageLowerThreshold; + } + + public void setBandwidthUsageLowerThreshold(Integer bandwidthUsageLowerThreshold) { + this.bandwidthUsageLowerThreshold = bandwidthUsageLowerThreshold; + } + + public ShowInstanceBandwidthAutoScalingPolicyResponse withScaleInCooldown(Integer scaleInCooldown) { + this.scaleInCooldown = scaleInCooldown; + return this; + } + + /** + * 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。 + * minimum: 0 + * maximum: 86400 + * @return scaleInCooldown + */ + public Integer getScaleInCooldown() { + return scaleInCooldown; + } + + public void setScaleInCooldown(Integer scaleInCooldown) { + this.scaleInCooldown = scaleInCooldown; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowInstanceBandwidthAutoScalingPolicyResponse that = (ShowInstanceBandwidthAutoScalingPolicyResponse) obj; + return Objects.equals(this.windowSize, that.windowSize) + && Objects.equals(this.bandwidthUsageUpperThreshold, that.bandwidthUsageUpperThreshold) + && Objects.equals(this.scaleOutCooldown, that.scaleOutCooldown) + && Objects.equals(this.scaleInEnabled, that.scaleInEnabled) + && Objects.equals(this.bandwidthUsageLowerThreshold, that.bandwidthUsageLowerThreshold) + && Objects.equals(this.scaleInCooldown, that.scaleInCooldown); + } + + @Override + public int hashCode() { + return Objects.hash(windowSize, + bandwidthUsageUpperThreshold, + scaleOutCooldown, + scaleInEnabled, + bandwidthUsageLowerThreshold, + scaleInCooldown); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowInstanceBandwidthAutoScalingPolicyResponse {\n"); + sb.append(" windowSize: ").append(toIndentedString(windowSize)).append("\n"); + sb.append(" bandwidthUsageUpperThreshold: ") + .append(toIndentedString(bandwidthUsageUpperThreshold)) + .append("\n"); + sb.append(" scaleOutCooldown: ").append(toIndentedString(scaleOutCooldown)).append("\n"); + sb.append(" scaleInEnabled: ").append(toIndentedString(scaleInEnabled)).append("\n"); + sb.append(" bandwidthUsageLowerThreshold: ") + .append(toIndentedString(bandwidthUsageLowerThreshold)) + .append("\n"); + sb.append(" scaleInCooldown: ").append(toIndentedString(scaleInCooldown)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ShowInstanceVersionRequest.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ShowInstanceVersionRequest.java new file mode 100644 index 0000000000..4f4254bc59 --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ShowInstanceVersionRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowInstanceVersionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + public ShowInstanceVersionRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowInstanceVersionRequest that = (ShowInstanceVersionRequest) obj; + return Objects.equals(this.instanceId, that.instanceId); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowInstanceVersionRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ShowInstanceVersionResponse.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ShowInstanceVersionResponse.java new file mode 100644 index 0000000000..3f9e269ec5 --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/ShowInstanceVersionResponse.java @@ -0,0 +1,202 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ShowInstanceVersionResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "engine_minor_version") + + private String engineMinorVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "latest_engine_minor_version") + + private String latestEngineMinorVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "proxy_minor_version") + + private String proxyMinorVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "latest_proxy_minor_version") + + private String latestProxyMinorVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "engine_minor_version_upgradable") + + private Boolean engineMinorVersionUpgradable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "proxy_minor_version_upgradable") + + private Boolean proxyMinorVersionUpgradable; + + public ShowInstanceVersionResponse withEngineMinorVersion(String engineMinorVersion) { + this.engineMinorVersion = engineMinorVersion; + return this; + } + + /** + * 当前实例内核小版本信息。 + * @return engineMinorVersion + */ + public String getEngineMinorVersion() { + return engineMinorVersion; + } + + public void setEngineMinorVersion(String engineMinorVersion) { + this.engineMinorVersion = engineMinorVersion; + } + + public ShowInstanceVersionResponse withLatestEngineMinorVersion(String latestEngineMinorVersion) { + this.latestEngineMinorVersion = latestEngineMinorVersion; + return this; + } + + /** + * DCS实例最新的内核小版本信息。 + * @return latestEngineMinorVersion + */ + public String getLatestEngineMinorVersion() { + return latestEngineMinorVersion; + } + + public void setLatestEngineMinorVersion(String latestEngineMinorVersion) { + this.latestEngineMinorVersion = latestEngineMinorVersion; + } + + public ShowInstanceVersionResponse withProxyMinorVersion(String proxyMinorVersion) { + this.proxyMinorVersion = proxyMinorVersion; + return this; + } + + /** + * 当前实例proxy代理节点版本信息。 + * @return proxyMinorVersion + */ + public String getProxyMinorVersion() { + return proxyMinorVersion; + } + + public void setProxyMinorVersion(String proxyMinorVersion) { + this.proxyMinorVersion = proxyMinorVersion; + } + + public ShowInstanceVersionResponse withLatestProxyMinorVersion(String latestProxyMinorVersion) { + this.latestProxyMinorVersion = latestProxyMinorVersion; + return this; + } + + /** + * DCS实例最新的proxy代理节点版本信息。 + * @return latestProxyMinorVersion + */ + public String getLatestProxyMinorVersion() { + return latestProxyMinorVersion; + } + + public void setLatestProxyMinorVersion(String latestProxyMinorVersion) { + this.latestProxyMinorVersion = latestProxyMinorVersion; + } + + public ShowInstanceVersionResponse withEngineMinorVersionUpgradable(Boolean engineMinorVersionUpgradable) { + this.engineMinorVersionUpgradable = engineMinorVersionUpgradable; + return this; + } + + /** + * 当前实例内核是否可以升级。 + * @return engineMinorVersionUpgradable + */ + public Boolean getEngineMinorVersionUpgradable() { + return engineMinorVersionUpgradable; + } + + public void setEngineMinorVersionUpgradable(Boolean engineMinorVersionUpgradable) { + this.engineMinorVersionUpgradable = engineMinorVersionUpgradable; + } + + public ShowInstanceVersionResponse withProxyMinorVersionUpgradable(Boolean proxyMinorVersionUpgradable) { + this.proxyMinorVersionUpgradable = proxyMinorVersionUpgradable; + return this; + } + + /** + * 当前实例proxy代理节点是否可以升级。 + * @return proxyMinorVersionUpgradable + */ + public Boolean getProxyMinorVersionUpgradable() { + return proxyMinorVersionUpgradable; + } + + public void setProxyMinorVersionUpgradable(Boolean proxyMinorVersionUpgradable) { + this.proxyMinorVersionUpgradable = proxyMinorVersionUpgradable; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowInstanceVersionResponse that = (ShowInstanceVersionResponse) obj; + return Objects.equals(this.engineMinorVersion, that.engineMinorVersion) + && Objects.equals(this.latestEngineMinorVersion, that.latestEngineMinorVersion) + && Objects.equals(this.proxyMinorVersion, that.proxyMinorVersion) + && Objects.equals(this.latestProxyMinorVersion, that.latestProxyMinorVersion) + && Objects.equals(this.engineMinorVersionUpgradable, that.engineMinorVersionUpgradable) + && Objects.equals(this.proxyMinorVersionUpgradable, that.proxyMinorVersionUpgradable); + } + + @Override + public int hashCode() { + return Objects.hash(engineMinorVersion, + latestEngineMinorVersion, + proxyMinorVersion, + latestProxyMinorVersion, + engineMinorVersionUpgradable, + proxyMinorVersionUpgradable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowInstanceVersionResponse {\n"); + sb.append(" engineMinorVersion: ").append(toIndentedString(engineMinorVersion)).append("\n"); + sb.append(" latestEngineMinorVersion: ").append(toIndentedString(latestEngineMinorVersion)).append("\n"); + sb.append(" proxyMinorVersion: ").append(toIndentedString(proxyMinorVersion)).append("\n"); + sb.append(" latestProxyMinorVersion: ").append(toIndentedString(latestProxyMinorVersion)).append("\n"); + sb.append(" engineMinorVersionUpgradable: ") + .append(toIndentedString(engineMinorVersionUpgradable)) + .append("\n"); + sb.append(" proxyMinorVersionUpgradable: ") + .append(toIndentedString(proxyMinorVersionUpgradable)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateBandwidthInfoRequest.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateBandwidthInfoRequest.java new file mode 100644 index 0000000000..fea1ba3d6b --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateBandwidthInfoRequest.java @@ -0,0 +1,92 @@ +package com.huaweicloud.sdk.dcs.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; + +/** + * UpdateBandwidthInfoRequest + */ +public class UpdateBandwidthInfoRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "group_bandwidths") + + private List groupBandwidths = null; + + public UpdateBandwidthInfoRequest withGroupBandwidths(List groupBandwidths) { + this.groupBandwidths = groupBandwidths; + return this; + } + + public UpdateBandwidthInfoRequest addGroupBandwidthsItem(UpdateGroupBandwidthInfoRequest groupBandwidthsItem) { + if (this.groupBandwidths == null) { + this.groupBandwidths = new ArrayList<>(); + } + this.groupBandwidths.add(groupBandwidthsItem); + return this; + } + + public UpdateBandwidthInfoRequest withGroupBandwidths( + Consumer> groupBandwidthsSetter) { + if (this.groupBandwidths == null) { + this.groupBandwidths = new ArrayList<>(); + } + groupBandwidthsSetter.accept(this.groupBandwidths); + return this; + } + + /** + * 分片带宽列表。 + * @return groupBandwidths + */ + public List getGroupBandwidths() { + return groupBandwidths; + } + + public void setGroupBandwidths(List groupBandwidths) { + this.groupBandwidths = groupBandwidths; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateBandwidthInfoRequest that = (UpdateBandwidthInfoRequest) obj; + return Objects.equals(this.groupBandwidths, that.groupBandwidths); + } + + @Override + public int hashCode() { + return Objects.hash(groupBandwidths); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateBandwidthInfoRequest {\n"); + sb.append(" groupBandwidths: ").append(toIndentedString(groupBandwidths)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateBandwidthRequest.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateBandwidthRequest.java new file mode 100644 index 0000000000..63b32be175 --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateBandwidthRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class UpdateBandwidthRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdateBandwidthInfoRequest body; + + public UpdateBandwidthRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public UpdateBandwidthRequest withBody(UpdateBandwidthInfoRequest body) { + this.body = body; + return this; + } + + public UpdateBandwidthRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdateBandwidthInfoRequest(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdateBandwidthInfoRequest getBody() { + return body; + } + + public void setBody(UpdateBandwidthInfoRequest 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; + } + UpdateBandwidthRequest that = (UpdateBandwidthRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateBandwidthRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateBandwidthResp.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateBandwidthResp.java new file mode 100644 index 0000000000..566e7bd217 --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateBandwidthResp.java @@ -0,0 +1,34 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import java.util.Objects; + +/** + * UpdateBandwidthResp + */ +public class UpdateBandwidthResp { + + @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 UpdateBandwidthResp {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateBandwidthResponse.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateBandwidthResponse.java new file mode 100644 index 0000000000..21ce6469da --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateBandwidthResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class UpdateBandwidthResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private String body; + + public UpdateBandwidthResponse 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; + } + UpdateBandwidthResponse that = (UpdateBandwidthResponse) 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 UpdateBandwidthResponse {\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/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateGroupBandwidthInfoRequest.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateGroupBandwidthInfoRequest.java new file mode 100644 index 0000000000..23a2bb1e36 --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateGroupBandwidthInfoRequest.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * UpdateGroupBandwidthInfoRequest + */ +public class UpdateGroupBandwidthInfoRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "group_id") + + private String groupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_bandwidth") + + private Integer targetBandwidth; + + public UpdateGroupBandwidthInfoRequest withGroupId(String groupId) { + this.groupId = groupId; + return this; + } + + /** + * 分片ID。 + * @return groupId + */ + public String getGroupId() { + return groupId; + } + + public void setGroupId(String groupId) { + this.groupId = groupId; + } + + public UpdateGroupBandwidthInfoRequest withTargetBandwidth(Integer targetBandwidth) { + this.targetBandwidth = targetBandwidth; + return this; + } + + /** + * 目标带宽(Mbit/s)。 + * @return targetBandwidth + */ + public Integer getTargetBandwidth() { + return targetBandwidth; + } + + public void setTargetBandwidth(Integer targetBandwidth) { + this.targetBandwidth = targetBandwidth; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateGroupBandwidthInfoRequest that = (UpdateGroupBandwidthInfoRequest) obj; + return Objects.equals(this.groupId, that.groupId) && Objects.equals(this.targetBandwidth, that.targetBandwidth); + } + + @Override + public int hashCode() { + return Objects.hash(groupId, targetBandwidth); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateGroupBandwidthInfoRequest {\n"); + sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n"); + sb.append(" targetBandwidth: ").append(toIndentedString(targetBandwidth)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateInstanceBandwidthAutoScalingPolicyRequest.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateInstanceBandwidthAutoScalingPolicyRequest.java new file mode 100644 index 0000000000..96b19c3db3 --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateInstanceBandwidthAutoScalingPolicyRequest.java @@ -0,0 +1,107 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class UpdateInstanceBandwidthAutoScalingPolicyRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdateInstanceBandwidthAutoScalingPolicyRequestBody body; + + public UpdateInstanceBandwidthAutoScalingPolicyRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public UpdateInstanceBandwidthAutoScalingPolicyRequest withBody( + UpdateInstanceBandwidthAutoScalingPolicyRequestBody body) { + this.body = body; + return this; + } + + public UpdateInstanceBandwidthAutoScalingPolicyRequest withBody( + Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdateInstanceBandwidthAutoScalingPolicyRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdateInstanceBandwidthAutoScalingPolicyRequestBody getBody() { + return body; + } + + public void setBody(UpdateInstanceBandwidthAutoScalingPolicyRequestBody 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; + } + UpdateInstanceBandwidthAutoScalingPolicyRequest that = (UpdateInstanceBandwidthAutoScalingPolicyRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateInstanceBandwidthAutoScalingPolicyRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateInstanceBandwidthAutoScalingPolicyRequestBody.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateInstanceBandwidthAutoScalingPolicyRequestBody.java new file mode 100644 index 0000000000..cca610627c --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateInstanceBandwidthAutoScalingPolicyRequestBody.java @@ -0,0 +1,400 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * 更新实例带宽弹性伸缩策略请求体。 + */ +public class UpdateInstanceBandwidthAutoScalingPolicyRequestBody { + + /** + * 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。 + */ + public static final class WindowSizeEnum { + + /** + * Enum NUMBER_1 for value: 1 + */ + public static final WindowSizeEnum NUMBER_1 = new WindowSizeEnum(1); + + /** + * Enum NUMBER_5 for value: 5 + */ + public static final WindowSizeEnum NUMBER_5 = new WindowSizeEnum(5); + + /** + * Enum NUMBER_10 for value: 10 + */ + public static final WindowSizeEnum NUMBER_10 = new WindowSizeEnum(10); + + /** + * Enum NUMBER_15 for value: 15 + */ + public static final WindowSizeEnum NUMBER_15 = new WindowSizeEnum(15); + + /** + * Enum NUMBER_30 for value: 30 + */ + public static final WindowSizeEnum NUMBER_30 = new WindowSizeEnum(30); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put(1, NUMBER_1); + map.put(5, NUMBER_5); + map.put(10, NUMBER_10); + map.put(15, NUMBER_15); + map.put(30, NUMBER_30); + return Collections.unmodifiableMap(map); + } + + private Integer value; + + WindowSizeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static WindowSizeEnum fromValue(Integer value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new WindowSizeEnum(value)); + } + + public static WindowSizeEnum valueOf(Integer value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof WindowSizeEnum) { + return this.value.equals(((WindowSizeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "window_size") + + private WindowSizeEnum windowSize; + + /** + * 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。 + */ + public static final class BandwidthUsageUpperThresholdEnum { + + /** + * Enum NUMBER_50 for value: 50 + */ + public static final BandwidthUsageUpperThresholdEnum NUMBER_50 = new BandwidthUsageUpperThresholdEnum(50); + + /** + * Enum NUMBER_60 for value: 60 + */ + public static final BandwidthUsageUpperThresholdEnum NUMBER_60 = new BandwidthUsageUpperThresholdEnum(60); + + /** + * Enum NUMBER_70 for value: 70 + */ + public static final BandwidthUsageUpperThresholdEnum NUMBER_70 = new BandwidthUsageUpperThresholdEnum(70); + + /** + * Enum NUMBER_80 for value: 80 + */ + public static final BandwidthUsageUpperThresholdEnum NUMBER_80 = new BandwidthUsageUpperThresholdEnum(80); + + /** + * Enum NUMBER_90 for value: 90 + */ + public static final BandwidthUsageUpperThresholdEnum NUMBER_90 = new BandwidthUsageUpperThresholdEnum(90); + + /** + * Enum NUMBER_95 for value: 95 + */ + public static final BandwidthUsageUpperThresholdEnum NUMBER_95 = new BandwidthUsageUpperThresholdEnum(95); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put(50, NUMBER_50); + map.put(60, NUMBER_60); + map.put(70, NUMBER_70); + map.put(80, NUMBER_80); + map.put(90, NUMBER_90); + map.put(95, NUMBER_95); + return Collections.unmodifiableMap(map); + } + + private Integer value; + + BandwidthUsageUpperThresholdEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static BandwidthUsageUpperThresholdEnum fromValue(Integer value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElse(new BandwidthUsageUpperThresholdEnum(value)); + } + + public static BandwidthUsageUpperThresholdEnum valueOf(Integer value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof BandwidthUsageUpperThresholdEnum) { + return this.value.equals(((BandwidthUsageUpperThresholdEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bandwidth_usage_upper_threshold") + + private BandwidthUsageUpperThresholdEnum bandwidthUsageUpperThreshold; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "scale_out_cooldown") + + private Integer scaleOutCooldown; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "scale_in_enabled") + + private Boolean scaleInEnabled; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bandwidth_usage_lower_threshold") + + private Integer bandwidthUsageLowerThreshold; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "scale_in_cooldown") + + private Integer scaleInCooldown; + + public UpdateInstanceBandwidthAutoScalingPolicyRequestBody withWindowSize(WindowSizeEnum windowSize) { + this.windowSize = windowSize; + return this; + } + + /** + * 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。 + * @return windowSize + */ + public WindowSizeEnum getWindowSize() { + return windowSize; + } + + public void setWindowSize(WindowSizeEnum windowSize) { + this.windowSize = windowSize; + } + + public UpdateInstanceBandwidthAutoScalingPolicyRequestBody withBandwidthUsageUpperThreshold( + BandwidthUsageUpperThresholdEnum bandwidthUsageUpperThreshold) { + this.bandwidthUsageUpperThreshold = bandwidthUsageUpperThreshold; + return this; + } + + /** + * 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。 + * minimum: 50 + * maximum: 95 + * @return bandwidthUsageUpperThreshold + */ + public BandwidthUsageUpperThresholdEnum getBandwidthUsageUpperThreshold() { + return bandwidthUsageUpperThreshold; + } + + public void setBandwidthUsageUpperThreshold(BandwidthUsageUpperThresholdEnum bandwidthUsageUpperThreshold) { + this.bandwidthUsageUpperThreshold = bandwidthUsageUpperThreshold; + } + + public UpdateInstanceBandwidthAutoScalingPolicyRequestBody withScaleOutCooldown(Integer scaleOutCooldown) { + this.scaleOutCooldown = scaleOutCooldown; + return this; + } + + /** + * 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。 + * minimum: 0 + * maximum: 86400 + * @return scaleOutCooldown + */ + public Integer getScaleOutCooldown() { + return scaleOutCooldown; + } + + public void setScaleOutCooldown(Integer scaleOutCooldown) { + this.scaleOutCooldown = scaleOutCooldown; + } + + public UpdateInstanceBandwidthAutoScalingPolicyRequestBody withScaleInEnabled(Boolean scaleInEnabled) { + this.scaleInEnabled = scaleInEnabled; + return this; + } + + /** + * 是否启用带宽自动回缩。默认值:false。该参数暂未启用。 + * @return scaleInEnabled + */ + public Boolean getScaleInEnabled() { + return scaleInEnabled; + } + + public void setScaleInEnabled(Boolean scaleInEnabled) { + this.scaleInEnabled = scaleInEnabled; + } + + public UpdateInstanceBandwidthAutoScalingPolicyRequestBody withBandwidthUsageLowerThreshold( + Integer bandwidthUsageLowerThreshold) { + this.bandwidthUsageLowerThreshold = bandwidthUsageLowerThreshold; + return this; + } + + /** + * 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。 + * minimum: 10 + * maximum: 30 + * @return bandwidthUsageLowerThreshold + */ + public Integer getBandwidthUsageLowerThreshold() { + return bandwidthUsageLowerThreshold; + } + + public void setBandwidthUsageLowerThreshold(Integer bandwidthUsageLowerThreshold) { + this.bandwidthUsageLowerThreshold = bandwidthUsageLowerThreshold; + } + + public UpdateInstanceBandwidthAutoScalingPolicyRequestBody withScaleInCooldown(Integer scaleInCooldown) { + this.scaleInCooldown = scaleInCooldown; + return this; + } + + /** + * 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。 + * minimum: 0 + * maximum: 86400 + * @return scaleInCooldown + */ + public Integer getScaleInCooldown() { + return scaleInCooldown; + } + + public void setScaleInCooldown(Integer scaleInCooldown) { + this.scaleInCooldown = scaleInCooldown; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateInstanceBandwidthAutoScalingPolicyRequestBody that = + (UpdateInstanceBandwidthAutoScalingPolicyRequestBody) obj; + return Objects.equals(this.windowSize, that.windowSize) + && Objects.equals(this.bandwidthUsageUpperThreshold, that.bandwidthUsageUpperThreshold) + && Objects.equals(this.scaleOutCooldown, that.scaleOutCooldown) + && Objects.equals(this.scaleInEnabled, that.scaleInEnabled) + && Objects.equals(this.bandwidthUsageLowerThreshold, that.bandwidthUsageLowerThreshold) + && Objects.equals(this.scaleInCooldown, that.scaleInCooldown); + } + + @Override + public int hashCode() { + return Objects.hash(windowSize, + bandwidthUsageUpperThreshold, + scaleOutCooldown, + scaleInEnabled, + bandwidthUsageLowerThreshold, + scaleInCooldown); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateInstanceBandwidthAutoScalingPolicyRequestBody {\n"); + sb.append(" windowSize: ").append(toIndentedString(windowSize)).append("\n"); + sb.append(" bandwidthUsageUpperThreshold: ") + .append(toIndentedString(bandwidthUsageUpperThreshold)) + .append("\n"); + sb.append(" scaleOutCooldown: ").append(toIndentedString(scaleOutCooldown)).append("\n"); + sb.append(" scaleInEnabled: ").append(toIndentedString(scaleInEnabled)).append("\n"); + sb.append(" bandwidthUsageLowerThreshold: ") + .append(toIndentedString(bandwidthUsageLowerThreshold)) + .append("\n"); + sb.append(" scaleInCooldown: ").append(toIndentedString(scaleInCooldown)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateInstanceBandwidthAutoScalingPolicyResponse.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateInstanceBandwidthAutoScalingPolicyResponse.java new file mode 100644 index 0000000000..2efd181020 --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdateInstanceBandwidthAutoScalingPolicyResponse.java @@ -0,0 +1,400 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Response Object + */ +public class UpdateInstanceBandwidthAutoScalingPolicyResponse extends SdkResponse { + + /** + * 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。 + */ + public static final class WindowSizeEnum { + + /** + * Enum NUMBER_1 for value: 1 + */ + public static final WindowSizeEnum NUMBER_1 = new WindowSizeEnum(1); + + /** + * Enum NUMBER_5 for value: 5 + */ + public static final WindowSizeEnum NUMBER_5 = new WindowSizeEnum(5); + + /** + * Enum NUMBER_10 for value: 10 + */ + public static final WindowSizeEnum NUMBER_10 = new WindowSizeEnum(10); + + /** + * Enum NUMBER_15 for value: 15 + */ + public static final WindowSizeEnum NUMBER_15 = new WindowSizeEnum(15); + + /** + * Enum NUMBER_30 for value: 30 + */ + public static final WindowSizeEnum NUMBER_30 = new WindowSizeEnum(30); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put(1, NUMBER_1); + map.put(5, NUMBER_5); + map.put(10, NUMBER_10); + map.put(15, NUMBER_15); + map.put(30, NUMBER_30); + return Collections.unmodifiableMap(map); + } + + private Integer value; + + WindowSizeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static WindowSizeEnum fromValue(Integer value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new WindowSizeEnum(value)); + } + + public static WindowSizeEnum valueOf(Integer value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof WindowSizeEnum) { + return this.value.equals(((WindowSizeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "window_size") + + private WindowSizeEnum windowSize; + + /** + * 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。 + */ + public static final class BandwidthUsageUpperThresholdEnum { + + /** + * Enum NUMBER_50 for value: 50 + */ + public static final BandwidthUsageUpperThresholdEnum NUMBER_50 = new BandwidthUsageUpperThresholdEnum(50); + + /** + * Enum NUMBER_60 for value: 60 + */ + public static final BandwidthUsageUpperThresholdEnum NUMBER_60 = new BandwidthUsageUpperThresholdEnum(60); + + /** + * Enum NUMBER_70 for value: 70 + */ + public static final BandwidthUsageUpperThresholdEnum NUMBER_70 = new BandwidthUsageUpperThresholdEnum(70); + + /** + * Enum NUMBER_80 for value: 80 + */ + public static final BandwidthUsageUpperThresholdEnum NUMBER_80 = new BandwidthUsageUpperThresholdEnum(80); + + /** + * Enum NUMBER_90 for value: 90 + */ + public static final BandwidthUsageUpperThresholdEnum NUMBER_90 = new BandwidthUsageUpperThresholdEnum(90); + + /** + * Enum NUMBER_95 for value: 95 + */ + public static final BandwidthUsageUpperThresholdEnum NUMBER_95 = new BandwidthUsageUpperThresholdEnum(95); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put(50, NUMBER_50); + map.put(60, NUMBER_60); + map.put(70, NUMBER_70); + map.put(80, NUMBER_80); + map.put(90, NUMBER_90); + map.put(95, NUMBER_95); + return Collections.unmodifiableMap(map); + } + + private Integer value; + + BandwidthUsageUpperThresholdEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static BandwidthUsageUpperThresholdEnum fromValue(Integer value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElse(new BandwidthUsageUpperThresholdEnum(value)); + } + + public static BandwidthUsageUpperThresholdEnum valueOf(Integer value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof BandwidthUsageUpperThresholdEnum) { + return this.value.equals(((BandwidthUsageUpperThresholdEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bandwidth_usage_upper_threshold") + + private BandwidthUsageUpperThresholdEnum bandwidthUsageUpperThreshold; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "scale_out_cooldown") + + private Integer scaleOutCooldown; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "scale_in_enabled") + + private Boolean scaleInEnabled; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bandwidth_usage_lower_threshold") + + private Integer bandwidthUsageLowerThreshold; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "scale_in_cooldown") + + private Integer scaleInCooldown; + + public UpdateInstanceBandwidthAutoScalingPolicyResponse withWindowSize(WindowSizeEnum windowSize) { + this.windowSize = windowSize; + return this; + } + + /** + * 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。 + * @return windowSize + */ + public WindowSizeEnum getWindowSize() { + return windowSize; + } + + public void setWindowSize(WindowSizeEnum windowSize) { + this.windowSize = windowSize; + } + + public UpdateInstanceBandwidthAutoScalingPolicyResponse withBandwidthUsageUpperThreshold( + BandwidthUsageUpperThresholdEnum bandwidthUsageUpperThreshold) { + this.bandwidthUsageUpperThreshold = bandwidthUsageUpperThreshold; + return this; + } + + /** + * 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。 + * minimum: 50 + * maximum: 95 + * @return bandwidthUsageUpperThreshold + */ + public BandwidthUsageUpperThresholdEnum getBandwidthUsageUpperThreshold() { + return bandwidthUsageUpperThreshold; + } + + public void setBandwidthUsageUpperThreshold(BandwidthUsageUpperThresholdEnum bandwidthUsageUpperThreshold) { + this.bandwidthUsageUpperThreshold = bandwidthUsageUpperThreshold; + } + + public UpdateInstanceBandwidthAutoScalingPolicyResponse withScaleOutCooldown(Integer scaleOutCooldown) { + this.scaleOutCooldown = scaleOutCooldown; + return this; + } + + /** + * 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。 + * minimum: 0 + * maximum: 86400 + * @return scaleOutCooldown + */ + public Integer getScaleOutCooldown() { + return scaleOutCooldown; + } + + public void setScaleOutCooldown(Integer scaleOutCooldown) { + this.scaleOutCooldown = scaleOutCooldown; + } + + public UpdateInstanceBandwidthAutoScalingPolicyResponse withScaleInEnabled(Boolean scaleInEnabled) { + this.scaleInEnabled = scaleInEnabled; + return this; + } + + /** + * 是否启用带宽自动回缩。默认值:false。该参数暂未启用。 + * @return scaleInEnabled + */ + public Boolean getScaleInEnabled() { + return scaleInEnabled; + } + + public void setScaleInEnabled(Boolean scaleInEnabled) { + this.scaleInEnabled = scaleInEnabled; + } + + public UpdateInstanceBandwidthAutoScalingPolicyResponse withBandwidthUsageLowerThreshold( + Integer bandwidthUsageLowerThreshold) { + this.bandwidthUsageLowerThreshold = bandwidthUsageLowerThreshold; + return this; + } + + /** + * 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。 + * minimum: 10 + * maximum: 30 + * @return bandwidthUsageLowerThreshold + */ + public Integer getBandwidthUsageLowerThreshold() { + return bandwidthUsageLowerThreshold; + } + + public void setBandwidthUsageLowerThreshold(Integer bandwidthUsageLowerThreshold) { + this.bandwidthUsageLowerThreshold = bandwidthUsageLowerThreshold; + } + + public UpdateInstanceBandwidthAutoScalingPolicyResponse withScaleInCooldown(Integer scaleInCooldown) { + this.scaleInCooldown = scaleInCooldown; + return this; + } + + /** + * 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。 + * minimum: 0 + * maximum: 86400 + * @return scaleInCooldown + */ + public Integer getScaleInCooldown() { + return scaleInCooldown; + } + + public void setScaleInCooldown(Integer scaleInCooldown) { + this.scaleInCooldown = scaleInCooldown; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateInstanceBandwidthAutoScalingPolicyResponse that = (UpdateInstanceBandwidthAutoScalingPolicyResponse) obj; + return Objects.equals(this.windowSize, that.windowSize) + && Objects.equals(this.bandwidthUsageUpperThreshold, that.bandwidthUsageUpperThreshold) + && Objects.equals(this.scaleOutCooldown, that.scaleOutCooldown) + && Objects.equals(this.scaleInEnabled, that.scaleInEnabled) + && Objects.equals(this.bandwidthUsageLowerThreshold, that.bandwidthUsageLowerThreshold) + && Objects.equals(this.scaleInCooldown, that.scaleInCooldown); + } + + @Override + public int hashCode() { + return Objects.hash(windowSize, + bandwidthUsageUpperThreshold, + scaleOutCooldown, + scaleInEnabled, + bandwidthUsageLowerThreshold, + scaleInCooldown); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateInstanceBandwidthAutoScalingPolicyResponse {\n"); + sb.append(" windowSize: ").append(toIndentedString(windowSize)).append("\n"); + sb.append(" bandwidthUsageUpperThreshold: ") + .append(toIndentedString(bandwidthUsageUpperThreshold)) + .append("\n"); + sb.append(" scaleOutCooldown: ").append(toIndentedString(scaleOutCooldown)).append("\n"); + sb.append(" scaleInEnabled: ").append(toIndentedString(scaleInEnabled)).append("\n"); + sb.append(" bandwidthUsageLowerThreshold: ") + .append(toIndentedString(bandwidthUsageLowerThreshold)) + .append("\n"); + sb.append(" scaleInCooldown: ").append(toIndentedString(scaleInCooldown)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdatePublicIpRequest.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdatePublicIpRequest.java new file mode 100644 index 0000000000..5672040bf8 --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdatePublicIpRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class UpdatePublicIpRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdatePublicIpRequestBody body; + + public UpdatePublicIpRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public UpdatePublicIpRequest withBody(UpdatePublicIpRequestBody body) { + this.body = body; + return this; + } + + public UpdatePublicIpRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdatePublicIpRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdatePublicIpRequestBody getBody() { + return body; + } + + public void setBody(UpdatePublicIpRequestBody 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; + } + UpdatePublicIpRequest that = (UpdatePublicIpRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdatePublicIpRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdatePublicIpRequestBody.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdatePublicIpRequestBody.java new file mode 100644 index 0000000000..d9bb59c9bc --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdatePublicIpRequestBody.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * UpdatePublicIpRequestBody + */ +public class UpdatePublicIpRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "publicip_id") + + private String publicipId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enable_ssl") + + private Boolean enableSsl; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "elb_id") + + private String elbId; + + public UpdatePublicIpRequestBody withPublicipId(String publicipId) { + this.publicipId = publicipId; + return this; + } + + /** + * 公网访问绑定的ELB的EIP的ID,当Redis版本为3.0时,该参数为必填参数。 + * @return publicipId + */ + public String getPublicipId() { + return publicipId; + } + + public void setPublicipId(String publicipId) { + this.publicipId = publicipId; + } + + public UpdatePublicIpRequestBody withEnableSsl(Boolean enableSsl) { + this.enableSsl = enableSsl; + return this; + } + + /** + * 是否开启SSL,仅在开启SSL时有值,当Redis版本为3.0时,该参数为必填参数。 + * @return enableSsl + */ + public Boolean getEnableSsl() { + return enableSsl; + } + + public void setEnableSsl(Boolean enableSsl) { + this.enableSsl = enableSsl; + } + + public UpdatePublicIpRequestBody withElbId(String elbId) { + this.elbId = elbId; + return this; + } + + /** + * 公网访问绑定的ELB ID,当Redis版本为4.0,5.0,6.0和企业版时,该参数为必填参数。 + * @return elbId + */ + public String getElbId() { + return elbId; + } + + public void setElbId(String elbId) { + this.elbId = elbId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdatePublicIpRequestBody that = (UpdatePublicIpRequestBody) obj; + return Objects.equals(this.publicipId, that.publicipId) && Objects.equals(this.enableSsl, that.enableSsl) + && Objects.equals(this.elbId, that.elbId); + } + + @Override + public int hashCode() { + return Objects.hash(publicipId, enableSsl, elbId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdatePublicIpRequestBody {\n"); + sb.append(" publicipId: ").append(toIndentedString(publicipId)).append("\n"); + sb.append(" enableSsl: ").append(toIndentedString(enableSsl)).append("\n"); + sb.append(" elbId: ").append(toIndentedString(elbId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdatePublicIpResponse.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdatePublicIpResponse.java new file mode 100644 index 0000000000..8db8df4b39 --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpdatePublicIpResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class UpdatePublicIpResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + public UpdatePublicIpResponse withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 请求提交任务ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdatePublicIpResponse that = (UpdatePublicIpResponse) obj; + return Objects.equals(this.jobId, that.jobId); + } + + @Override + public int hashCode() { + return Objects.hash(jobId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdatePublicIpResponse {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpgradeInstanceMinorVersionRequest.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpgradeInstanceMinorVersionRequest.java new file mode 100644 index 0000000000..00dfcef966 --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpgradeInstanceMinorVersionRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class UpgradeInstanceMinorVersionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpgradeMinorVersionRequestBody body; + + public UpgradeInstanceMinorVersionRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public UpgradeInstanceMinorVersionRequest withBody(UpgradeMinorVersionRequestBody body) { + this.body = body; + return this; + } + + public UpgradeInstanceMinorVersionRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpgradeMinorVersionRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpgradeMinorVersionRequestBody getBody() { + return body; + } + + public void setBody(UpgradeMinorVersionRequestBody 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; + } + UpgradeInstanceMinorVersionRequest that = (UpgradeInstanceMinorVersionRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpgradeInstanceMinorVersionRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpgradeInstanceMinorVersionResponse.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpgradeInstanceMinorVersionResponse.java new file mode 100644 index 0000000000..8adb671aa8 --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpgradeInstanceMinorVersionResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class UpgradeInstanceMinorVersionResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_id") + + private String taskId; + + public UpgradeInstanceMinorVersionResponse withTaskId(String taskId) { + this.taskId = taskId; + return this; + } + + /** + * 后台任务ID。 + * @return taskId + */ + public String getTaskId() { + return taskId; + } + + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpgradeInstanceMinorVersionResponse that = (UpgradeInstanceMinorVersionResponse) obj; + return Objects.equals(this.taskId, that.taskId); + } + + @Override + public int hashCode() { + return Objects.hash(taskId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpgradeInstanceMinorVersionResponse {\n"); + sb.append(" taskId: ").append(toIndentedString(taskId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpgradeMinorVersionRequestBody.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpgradeMinorVersionRequestBody.java new file mode 100644 index 0000000000..286de9076d --- /dev/null +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/UpgradeMinorVersionRequestBody.java @@ -0,0 +1,96 @@ +package com.huaweicloud.sdk.dcs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 升级实例小版本请求体,proxy_minor_version和engine_minor_version不能同时为空 + */ +public class UpgradeMinorVersionRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "proxy_minor_version") + + private String proxyMinorVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "engine_minor_version") + + private String engineMinorVersion; + + public UpgradeMinorVersionRequestBody withProxyMinorVersion(String proxyMinorVersion) { + this.proxyMinorVersion = proxyMinorVersion; + return this; + } + + /** + * Proxy代理节点目标版本号,设置为latest时,即升级到最新版本。 + * @return proxyMinorVersion + */ + public String getProxyMinorVersion() { + return proxyMinorVersion; + } + + public void setProxyMinorVersion(String proxyMinorVersion) { + this.proxyMinorVersion = proxyMinorVersion; + } + + public UpgradeMinorVersionRequestBody withEngineMinorVersion(String engineMinorVersion) { + this.engineMinorVersion = engineMinorVersion; + return this; + } + + /** + * 引擎目标小版本号,设置为latest时,即升级到最新版本。 + * @return engineMinorVersion + */ + public String getEngineMinorVersion() { + return engineMinorVersion; + } + + public void setEngineMinorVersion(String engineMinorVersion) { + this.engineMinorVersion = engineMinorVersion; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpgradeMinorVersionRequestBody that = (UpgradeMinorVersionRequestBody) obj; + return Objects.equals(this.proxyMinorVersion, that.proxyMinorVersion) + && Objects.equals(this.engineMinorVersion, that.engineMinorVersion); + } + + @Override + public int hashCode() { + return Objects.hash(proxyMinorVersion, engineMinorVersion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpgradeMinorVersionRequestBody {\n"); + sb.append(" proxyMinorVersion: ").append(toIndentedString(proxyMinorVersion)).append("\n"); + sb.append(" engineMinorVersion: ").append(toIndentedString(engineMinorVersion)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/ddm/pom.xml b/services/ddm/pom.xml index 3965460a7d..62af037e04 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-ddm - 3.1.127 + 3.1.128 Huawei Cloud SDK for DDM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/dds/pom.xml b/services/dds/pom.xml index 7e42ca1f20..e173098335 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-dds - 3.1.127 + 3.1.128 Huawei Cloud SDK for DDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/deh/pom.xml b/services/deh/pom.xml index e75f89d526..82f6e2d7ab 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-deh - 3.1.127 + 3.1.128 Huawei Cloud SDK for DEH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/devstar/pom.xml b/services/devstar/pom.xml index 98962b9d53..e480fc1783 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-devstar - 3.1.127 + 3.1.128 Huawei Cloud SDK for DEVSTAR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/dgc/pom.xml b/services/dgc/pom.xml index 761e4bfcab..211dae590e 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-dgc - 3.1.127 + 3.1.128 Huawei Cloud SDK for DGC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/dis/pom.xml b/services/dis/pom.xml index abaa4831b8..ab07cd8a68 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-dis - 3.1.127 + 3.1.128 Huawei Cloud SDK for DIS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/dlf/pom.xml b/services/dlf/pom.xml index 343a927fbc..3703d694ce 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-dlf - 3.1.127 + 3.1.128 Huawei Cloud SDK for DLF 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/dli/pom.xml b/services/dli/pom.xml index 58e85f2ef1..67561b7738 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-dli - 3.1.127 + 3.1.128 Huawei Cloud SDK for DLI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/dns/pom.xml b/services/dns/pom.xml index 74a48d130b..1cedade204 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-dns - 3.1.127 + 3.1.128 Huawei Cloud SDK for DNS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/dris/pom.xml b/services/dris/pom.xml index 48accbdf0a..566b9e0ec1 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-dris - 3.1.127 + 3.1.128 Huawei Cloud SDK for DRIS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/drs/pom.xml b/services/drs/pom.xml index 99127c4459..236549a2dd 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-drs - 3.1.127 + 3.1.128 Huawei Cloud SDK for DRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/dsc/pom.xml b/services/dsc/pom.xml index 1e45666beb..e0c1d5b730 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-dsc - 3.1.127 + 3.1.128 Huawei Cloud SDK for DSC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/dss/pom.xml b/services/dss/pom.xml index e4a39b640f..f7928df7c2 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-dss - 3.1.127 + 3.1.128 Huawei Cloud SDK for DSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/dwr/pom.xml b/services/dwr/pom.xml index 76d2a83ffc..103fb6d746 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-dwr - 3.1.127 + 3.1.128 Huawei Cloud SDK for DWR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/dws/pom.xml b/services/dws/pom.xml index 123322d34b..855b9dab76 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-dws - 3.1.127 + 3.1.128 Huawei Cloud SDK for DWS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/DwsMeta.java b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/DwsMeta.java index 38ea805aac..aa5cb0d73e 100644 --- a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/DwsMeta.java +++ b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/DwsMeta.java @@ -20,7 +20,6 @@ import com.huaweicloud.sdk.dws.v2.model.AssociateEipResponse; import com.huaweicloud.sdk.dws.v2.model.AssociateElbRequest; import com.huaweicloud.sdk.dws.v2.model.AssociateElbResponse; -import com.huaweicloud.sdk.dws.v2.model.BackupPolicy; import com.huaweicloud.sdk.dws.v2.model.BatchCreateClusterCnRequest; import com.huaweicloud.sdk.dws.v2.model.BatchCreateClusterCnResponse; import com.huaweicloud.sdk.dws.v2.model.BatchCreateCn; @@ -76,6 +75,7 @@ import com.huaweicloud.sdk.dws.v2.model.CreateLogicalClusterRequestBody; import com.huaweicloud.sdk.dws.v2.model.CreateLogicalClusterResponse; import com.huaweicloud.sdk.dws.v2.model.CreateSnapshotPolicyRequest; +import com.huaweicloud.sdk.dws.v2.model.CreateSnapshotPolicyRequestBody; import com.huaweicloud.sdk.dws.v2.model.CreateSnapshotPolicyResponse; import com.huaweicloud.sdk.dws.v2.model.CreateSnapshotRequest; import com.huaweicloud.sdk.dws.v2.model.CreateSnapshotRequestBody; @@ -1149,10 +1149,10 @@ private static HttpRequestDef f.withMarshaller(CreateSnapshotPolicyRequest::getClusterId, CreateSnapshotPolicyRequest::setClusterId)); - builder.withRequestField("body", + builder.withRequestField("body", LocationType.Body, FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(BackupPolicy.class), + TypeCasts.uncheckedConversion(CreateSnapshotPolicyRequestBody.class), f -> f.withMarshaller(CreateSnapshotPolicyRequest::getBody, CreateSnapshotPolicyRequest::setBody)); // response diff --git a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/BackupStrategyRequest.java b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/BackupStrategyRequest.java new file mode 100644 index 0000000000..aafc6cd7df --- /dev/null +++ b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/BackupStrategyRequest.java @@ -0,0 +1,166 @@ +package com.huaweicloud.sdk.dws.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 备份策略请求信息 + */ +public class BackupStrategyRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "policy_id") + + private String policyId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "policy_name") + + private String policyName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "backup_strategy") + + private String backupStrategy; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "backup_type") + + private String backupType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "backup_level") + + private String backupLevel; + + public BackupStrategyRequest withPolicyId(String policyId) { + this.policyId = policyId; + return this; + } + + /** + * 策略ID。 + * @return policyId + */ + public String getPolicyId() { + return policyId; + } + + public void setPolicyId(String policyId) { + this.policyId = policyId; + } + + public BackupStrategyRequest withPolicyName(String policyName) { + this.policyName = policyName; + return this; + } + + /** + * 策略名称。添加备份策略时为必选字段。策略名称在4位到92位之间,必须以字母开头,不区分大小写,可以包含字母、数字、中划线或者下划线,不能包含其他特殊字符,并且名称唯一。 + * @return policyName + */ + public String getPolicyName() { + return policyName; + } + + public void setPolicyName(String policyName) { + this.policyName = policyName; + } + + public BackupStrategyRequest withBackupStrategy(String backupStrategy) { + this.backupStrategy = backupStrategy; + return this; + } + + /** + * 执行策略。添加备份策略时为必选字段。符合Cron表达式格式。 + * @return backupStrategy + */ + public String getBackupStrategy() { + return backupStrategy; + } + + public void setBackupStrategy(String backupStrategy) { + this.backupStrategy = backupStrategy; + } + + public BackupStrategyRequest withBackupType(String backupType) { + this.backupType = backupType; + return this; + } + + /** + * 备份类型: - full:全量。 - increment:增量。 + * @return backupType + */ + public String getBackupType() { + return backupType; + } + + public void setBackupType(String backupType) { + this.backupType = backupType; + } + + public BackupStrategyRequest withBackupLevel(String backupLevel) { + this.backupLevel = backupLevel; + return this; + } + + /** + * 备份级别: - cluster:集群级。 + * @return backupLevel + */ + public String getBackupLevel() { + return backupLevel; + } + + public void setBackupLevel(String backupLevel) { + this.backupLevel = backupLevel; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BackupStrategyRequest that = (BackupStrategyRequest) obj; + return Objects.equals(this.policyId, that.policyId) && Objects.equals(this.policyName, that.policyName) + && Objects.equals(this.backupStrategy, that.backupStrategy) + && Objects.equals(this.backupType, that.backupType) && Objects.equals(this.backupLevel, that.backupLevel); + } + + @Override + public int hashCode() { + return Objects.hash(policyId, policyName, backupStrategy, backupType, backupLevel); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BackupStrategyRequest {\n"); + sb.append(" policyId: ").append(toIndentedString(policyId)).append("\n"); + sb.append(" policyName: ").append(toIndentedString(policyName)).append("\n"); + sb.append(" backupStrategy: ").append(toIndentedString(backupStrategy)).append("\n"); + sb.append(" backupType: ").append(toIndentedString(backupType)).append("\n"); + sb.append(" backupLevel: ").append(toIndentedString(backupLevel)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/CreateSnapshotPolicyRequest.java b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/CreateSnapshotPolicyRequest.java index 3d71c9aa07..9aeca4654c 100644 --- a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/CreateSnapshotPolicyRequest.java +++ b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/CreateSnapshotPolicyRequest.java @@ -19,7 +19,7 @@ public class CreateSnapshotPolicyRequest { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "body") - private BackupPolicy body; + private CreateSnapshotPolicyRequestBody body; public CreateSnapshotPolicyRequest withClusterId(String clusterId) { this.clusterId = clusterId; @@ -38,14 +38,14 @@ public void setClusterId(String clusterId) { this.clusterId = clusterId; } - public CreateSnapshotPolicyRequest withBody(BackupPolicy body) { + public CreateSnapshotPolicyRequest withBody(CreateSnapshotPolicyRequestBody body) { this.body = body; return this; } - public CreateSnapshotPolicyRequest withBody(Consumer bodySetter) { + public CreateSnapshotPolicyRequest withBody(Consumer bodySetter) { if (this.body == null) { - this.body = new BackupPolicy(); + this.body = new CreateSnapshotPolicyRequestBody(); bodySetter.accept(this.body); } @@ -56,11 +56,11 @@ public CreateSnapshotPolicyRequest withBody(Consumer bodySetter) { * Get body * @return body */ - public BackupPolicy getBody() { + public CreateSnapshotPolicyRequestBody getBody() { return body; } - public void setBody(BackupPolicy body) { + public void setBody(CreateSnapshotPolicyRequestBody body) { this.body = body; } diff --git a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/BackupPolicy.java b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/CreateSnapshotPolicyRequestBody.java similarity index 68% rename from services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/BackupPolicy.java rename to services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/CreateSnapshotPolicyRequestBody.java index 488d93c3f5..b5f0adab75 100644 --- a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/BackupPolicy.java +++ b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/CreateSnapshotPolicyRequestBody.java @@ -9,9 +9,9 @@ import java.util.function.Consumer; /** - * 备份策略 + * 创建备份策略信息 */ -public class BackupPolicy { +public class CreateSnapshotPolicyRequestBody { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "keep_day") @@ -21,7 +21,7 @@ public class BackupPolicy { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "backup_strategies") - private BackupStrategyDetail backupStrategies; + private List backupStrategies = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "device_name") @@ -43,13 +43,13 @@ public class BackupPolicy { private List serverIps = null; - public BackupPolicy withKeepDay(Integer keepDay) { + public CreateSnapshotPolicyRequestBody withKeepDay(Integer keepDay) { this.keepDay = keepDay; return this; } /** - * 保留天数。 + * 保留天数。输入值必须在1-31之间。 * @return keepDay */ public Integer getKeepDay() { @@ -60,39 +60,47 @@ public void setKeepDay(Integer keepDay) { this.keepDay = keepDay; } - public BackupPolicy withBackupStrategies(BackupStrategyDetail backupStrategies) { + public CreateSnapshotPolicyRequestBody withBackupStrategies(List backupStrategies) { this.backupStrategies = backupStrategies; return this; } - public BackupPolicy withBackupStrategies(Consumer backupStrategiesSetter) { + public CreateSnapshotPolicyRequestBody addBackupStrategiesItem(BackupStrategyRequest backupStrategiesItem) { if (this.backupStrategies == null) { - this.backupStrategies = new BackupStrategyDetail(); - backupStrategiesSetter.accept(this.backupStrategies); + this.backupStrategies = new ArrayList<>(); } + this.backupStrategies.add(backupStrategiesItem); + return this; + } + public CreateSnapshotPolicyRequestBody withBackupStrategies( + Consumer> backupStrategiesSetter) { + if (this.backupStrategies == null) { + this.backupStrategies = new ArrayList<>(); + } + backupStrategiesSetter.accept(this.backupStrategies); return this; } /** - * Get backupStrategies + * 策略列表信息。当需要添加策略时该参数为必选。 * @return backupStrategies */ - public BackupStrategyDetail getBackupStrategies() { + public List getBackupStrategies() { return backupStrategies; } - public void setBackupStrategies(BackupStrategyDetail backupStrategies) { + public void setBackupStrategies(List backupStrategies) { this.backupStrategies = backupStrategies; } - public BackupPolicy withDeviceName(String deviceName) { + public CreateSnapshotPolicyRequestBody withDeviceName(String deviceName) { this.deviceName = deviceName; return this; } /** - * 备份设备。 + * 备份设备。支持OBS、NBU和NFS。 * @return deviceName */ public String getDeviceName() { @@ -103,13 +111,13 @@ public void setDeviceName(String deviceName) { this.deviceName = deviceName; } - public BackupPolicy withServerPort(String serverPort) { + public CreateSnapshotPolicyRequestBody withServerPort(String serverPort) { this.serverPort = serverPort; return this; } /** - * 端口。 + * NBU备份介质端口。备份介质为NBU时该字段必填。 * @return serverPort */ public String getServerPort() { @@ -120,13 +128,13 @@ public void setServerPort(String serverPort) { this.serverPort = serverPort; } - public BackupPolicy withBackupParam(String backupParam) { + public CreateSnapshotPolicyRequestBody withBackupParam(String backupParam) { this.backupParam = backupParam; return this; } /** - * 参数。 + * NBU备份参数。备份介质为NBU时该字段必选。 * @return backupParam */ public String getBackupParam() { @@ -137,12 +145,12 @@ public void setBackupParam(String backupParam) { this.backupParam = backupParam; } - public BackupPolicy withServerIps(List serverIps) { + public CreateSnapshotPolicyRequestBody withServerIps(List serverIps) { this.serverIps = serverIps; return this; } - public BackupPolicy addServerIpsItem(String serverIpsItem) { + public CreateSnapshotPolicyRequestBody addServerIpsItem(String serverIpsItem) { if (this.serverIps == null) { this.serverIps = new ArrayList<>(); } @@ -150,7 +158,7 @@ public BackupPolicy addServerIpsItem(String serverIpsItem) { return this; } - public BackupPolicy withServerIps(Consumer> serverIpsSetter) { + public CreateSnapshotPolicyRequestBody withServerIps(Consumer> serverIpsSetter) { if (this.serverIps == null) { this.serverIps = new ArrayList<>(); } @@ -159,7 +167,7 @@ public BackupPolicy withServerIps(Consumer> serverIpsSetter) { } /** - * 备份介质服务IP。 + * 备份介质服务IP。备份介质为NBU和NFS时该字段必填。备份介质为NBU时表示NBU服务器地址,备份介质为NFS时表示NFS服务器地址。 * @return serverIps */ public List getServerIps() { @@ -178,7 +186,7 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - BackupPolicy that = (BackupPolicy) obj; + CreateSnapshotPolicyRequestBody that = (CreateSnapshotPolicyRequestBody) obj; return Objects.equals(this.keepDay, that.keepDay) && Objects.equals(this.backupStrategies, that.backupStrategies) && Objects.equals(this.deviceName, that.deviceName) && Objects.equals(this.serverPort, that.serverPort) @@ -193,7 +201,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class BackupPolicy {\n"); + sb.append("class CreateSnapshotPolicyRequestBody {\n"); sb.append(" keepDay: ").append(toIndentedString(keepDay)).append("\n"); sb.append(" backupStrategies: ").append(toIndentedString(backupStrategies)).append("\n"); sb.append(" deviceName: ").append(toIndentedString(deviceName)).append("\n"); diff --git a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/ScaleOut.java b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/ScaleOut.java index bb57bfd674..5426725593 100644 --- a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/ScaleOut.java +++ b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/ScaleOut.java @@ -15,6 +15,11 @@ public class ScaleOut { private Integer count; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "subnet_id") + + private String subnetId; + public ScaleOut withCount(Integer count) { this.count = count; return this; @@ -32,6 +37,23 @@ public void setCount(Integer count) { this.count = count; } + public ScaleOut withSubnetId(String subnetId) { + this.subnetId = subnetId; + return this; + } + + /** + * 指定子网ID。 + * @return subnetId + */ + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -41,12 +63,12 @@ public boolean equals(java.lang.Object obj) { return false; } ScaleOut that = (ScaleOut) obj; - return Objects.equals(this.count, that.count); + return Objects.equals(this.count, that.count) && Objects.equals(this.subnetId, that.subnetId); } @Override public int hashCode() { - return Objects.hash(count); + return Objects.hash(count, subnetId); } @Override @@ -54,6 +76,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ScaleOut {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" subnetId: ").append(toIndentedString(subnetId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ec/pom.xml b/services/ec/pom.xml index 9e7ce0cb7f..4514442d53 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-ec - 3.1.127 + 3.1.128 Huawei Cloud SDK for EC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/ecs/pom.xml b/services/ecs/pom.xml index 3501c13d37..cf83c24dd9 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-ecs - 3.1.127 + 3.1.128 Huawei Cloud SDK for ECS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 ch.qos.logback diff --git a/services/edgesec/pom.xml b/services/edgesec/pom.xml index 0ca3c6a478..02c1b53ebc 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-edgesec - 3.1.127 + 3.1.128 Huawei Cloud SDK for EDGESEC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/eds/pom.xml b/services/eds/pom.xml index 9c9f52dbed..7bfc514d5c 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-eds - 3.1.127 + 3.1.128 Huawei Cloud SDK for EDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/eg/pom.xml b/services/eg/pom.xml index 75a4ae4239..f3539695ca 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-eg - 3.1.127 + 3.1.128 Huawei Cloud SDK for EG 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/eihealth/pom.xml b/services/eihealth/pom.xml index 180e7a8f11..12304c7cef 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-eihealth - 3.1.127 + 3.1.128 Huawei Cloud SDK for EIHEALTH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/eip/pom.xml b/services/eip/pom.xml index 3361ce0da2..3b9e93a2ec 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-eip - 3.1.127 + 3.1.128 Huawei Cloud SDK for EIP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/elb/pom.xml b/services/elb/pom.xml index 7af9d85f96..476f10d1e4 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-elb - 3.1.127 + 3.1.128 Huawei Cloud SDK for ELB 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/eps/pom.xml b/services/eps/pom.xml index 1cdae80b3f..f4f2a3d844 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-eps - 3.1.127 + 3.1.128 Huawei Cloud SDK for EPS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/er/pom.xml b/services/er/pom.xml index b5b31de7d4..0feaaf339c 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-er - 3.1.127 + 3.1.128 Huawei Cloud SDK for ER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/evs/pom.xml b/services/evs/pom.xml index 6d74c3c096..7eba39d4fa 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-evs - 3.1.127 + 3.1.128 Huawei Cloud SDK for EVS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/EvsAsyncClient.java b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/EvsAsyncClient.java index 6f0ddb4e0b..55588b33b2 100644 --- a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/EvsAsyncClient.java +++ b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/EvsAsyncClient.java @@ -59,6 +59,8 @@ import com.huaweicloud.sdk.evs.v2.model.ShowVolumeResponse; import com.huaweicloud.sdk.evs.v2.model.ShowVolumeTagsRequest; import com.huaweicloud.sdk.evs.v2.model.ShowVolumeTagsResponse; +import com.huaweicloud.sdk.evs.v2.model.UnsubscribePostpaidVolumeRequest; +import com.huaweicloud.sdk.evs.v2.model.UnsubscribePostpaidVolumeResponse; import com.huaweicloud.sdk.evs.v2.model.UpdateSnapshotRequest; import com.huaweicloud.sdk.evs.v2.model.UpdateSnapshotResponse; import com.huaweicloud.sdk.evs.v2.model.UpdateVolumeRequest; @@ -879,6 +881,40 @@ public AsyncInvoker showVolumeTag return new AsyncInvoker<>(request, EvsMeta.showVolumeTags, hcClient); } + /** + * 退订包周期计费模式的云硬盘 + * + * 退订包周期计费模式的云硬盘,有如下约束: + * - 系统盘、启动盘不可使用当前接口退订,必须和弹性云服务器一起退订 + * - 接口的请求body体最多可以传60个云硬盘id + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UnsubscribePostpaidVolumeRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture unsubscribePostpaidVolumeAsync( + UnsubscribePostpaidVolumeRequest request) { + return hcClient.asyncInvokeHttp(request, EvsMeta.unsubscribePostpaidVolume); + } + + /** + * 退订包周期计费模式的云硬盘 + * + * 退订包周期计费模式的云硬盘,有如下约束: + * - 系统盘、启动盘不可使用当前接口退订,必须和弹性云服务器一起退订 + * - 接口的请求body体最多可以传60个云硬盘id + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UnsubscribePostpaidVolumeRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker unsubscribePostpaidVolumeAsyncInvoker( + UnsubscribePostpaidVolumeRequest request) { + return new AsyncInvoker<>(request, EvsMeta.unsubscribePostpaidVolume, hcClient); + } + /** * 更新云硬盘快照 * diff --git a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/EvsClient.java b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/EvsClient.java index b3eead9725..2ad9e0380d 100644 --- a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/EvsClient.java +++ b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/EvsClient.java @@ -59,6 +59,8 @@ import com.huaweicloud.sdk.evs.v2.model.ShowVolumeResponse; import com.huaweicloud.sdk.evs.v2.model.ShowVolumeTagsRequest; import com.huaweicloud.sdk.evs.v2.model.ShowVolumeTagsResponse; +import com.huaweicloud.sdk.evs.v2.model.UnsubscribePostpaidVolumeRequest; +import com.huaweicloud.sdk.evs.v2.model.UnsubscribePostpaidVolumeResponse; import com.huaweicloud.sdk.evs.v2.model.UpdateSnapshotRequest; import com.huaweicloud.sdk.evs.v2.model.UpdateSnapshotResponse; import com.huaweicloud.sdk.evs.v2.model.UpdateVolumeRequest; @@ -862,6 +864,39 @@ public SyncInvoker showVolumeTags return new SyncInvoker<>(request, EvsMeta.showVolumeTags, hcClient); } + /** + * 退订包周期计费模式的云硬盘 + * + * 退订包周期计费模式的云硬盘,有如下约束: + * - 系统盘、启动盘不可使用当前接口退订,必须和弹性云服务器一起退订 + * - 接口的请求body体最多可以传60个云硬盘id + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UnsubscribePostpaidVolumeRequest 请求对象 + * @return UnsubscribePostpaidVolumeResponse + */ + public UnsubscribePostpaidVolumeResponse unsubscribePostpaidVolume(UnsubscribePostpaidVolumeRequest request) { + return hcClient.syncInvokeHttp(request, EvsMeta.unsubscribePostpaidVolume); + } + + /** + * 退订包周期计费模式的云硬盘 + * + * 退订包周期计费模式的云硬盘,有如下约束: + * - 系统盘、启动盘不可使用当前接口退订,必须和弹性云服务器一起退订 + * - 接口的请求body体最多可以传60个云硬盘id + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UnsubscribePostpaidVolumeRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker unsubscribePostpaidVolumeInvoker( + UnsubscribePostpaidVolumeRequest request) { + return new SyncInvoker<>(request, EvsMeta.unsubscribePostpaidVolume, hcClient); + } + /** * 更新云硬盘快照 * diff --git a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/EvsMeta.java b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/EvsMeta.java index 868d141af9..48e6b4ddaa 100644 --- a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/EvsMeta.java +++ b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/EvsMeta.java @@ -72,6 +72,10 @@ import com.huaweicloud.sdk.evs.v2.model.ShowVolumeResponse; import com.huaweicloud.sdk.evs.v2.model.ShowVolumeTagsRequest; import com.huaweicloud.sdk.evs.v2.model.ShowVolumeTagsResponse; +import com.huaweicloud.sdk.evs.v2.model.UnsubscribePostpaidVolumeRequest; +import com.huaweicloud.sdk.evs.v2.model.UnsubscribePostpaidVolumeResponse; +import com.huaweicloud.sdk.evs.v2.model.UnsubscribeVolumeRequestBody; +import com.huaweicloud.sdk.evs.v2.model.UnsubscribeVolumeResponseBody; import com.huaweicloud.sdk.evs.v2.model.UpdateSnapshotRequest; import com.huaweicloud.sdk.evs.v2.model.UpdateSnapshotRequestBody; import com.huaweicloud.sdk.evs.v2.model.UpdateSnapshotResponse; @@ -79,6 +83,8 @@ import com.huaweicloud.sdk.evs.v2.model.UpdateVolumeRequestBody; import com.huaweicloud.sdk.evs.v2.model.UpdateVolumeResponse; +import java.util.List; + @SuppressWarnings("unchecked") public class EvsMeta { @@ -875,6 +881,40 @@ private static HttpRequestDef gen return builder.build(); } + public static final HttpRequestDef unsubscribePostpaidVolume = + genForUnsubscribePostpaidVolume(); + + private static HttpRequestDef genForUnsubscribePostpaidVolume() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + UnsubscribePostpaidVolumeRequest.class, + UnsubscribePostpaidVolumeResponse.class) + .withName("UnsubscribePostpaidVolume") + .withUri("/v2/{project_id}/cloudvolumes/unsubscribe") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UnsubscribeVolumeRequestBody.class), + f -> f.withMarshaller(UnsubscribePostpaidVolumeRequest::getBody, + UnsubscribePostpaidVolumeRequest::setBody)); + + // response + builder.>withResponseField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(List.class), + f -> f + .withMarshaller(UnsubscribePostpaidVolumeResponse::getBody, UnsubscribePostpaidVolumeResponse::setBody) + .withInnerContainerType(UnsubscribeVolumeResponseBody.class)); + + return builder.build(); + } + public static final HttpRequestDef updateSnapshot = genForUpdateSnapshot(); diff --git a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/QuotaDetailGigabytesESSD.java b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/QuotaDetailGigabytesESSD.java new file mode 100644 index 0000000000..67b4ba589b --- /dev/null +++ b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/QuotaDetailGigabytesESSD.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.evs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * ESSD类型云硬盘预留的size大小,单位为GiB,键值对,包含:reserved(预留)、limit(最大)和in_use(已使用)。 + */ +public class QuotaDetailGigabytesESSD { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "in_use") + + private Integer inUse; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "reserved") + + private Integer reserved; + + public QuotaDetailGigabytesESSD withInUse(Integer inUse) { + this.inUse = inUse; + return this; + } + + /** + * 已使用的数量。 + * @return inUse + */ + public Integer getInUse() { + return inUse; + } + + public void setInUse(Integer inUse) { + this.inUse = inUse; + } + + public QuotaDetailGigabytesESSD withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 最大的数量。 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public QuotaDetailGigabytesESSD withReserved(Integer reserved) { + this.reserved = reserved; + return this; + } + + /** + * 预留属性。 + * @return reserved + */ + public Integer getReserved() { + return reserved; + } + + public void setReserved(Integer reserved) { + this.reserved = reserved; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + QuotaDetailGigabytesESSD that = (QuotaDetailGigabytesESSD) obj; + return Objects.equals(this.inUse, that.inUse) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.reserved, that.reserved); + } + + @Override + public int hashCode() { + return Objects.hash(inUse, limit, reserved); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QuotaDetailGigabytesESSD {\n"); + sb.append(" inUse: ").append(toIndentedString(inUse)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" reserved: ").append(toIndentedString(reserved)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/QuotaDetailSnapshotsESSD.java b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/QuotaDetailSnapshotsESSD.java new file mode 100644 index 0000000000..6b2a0ac5af --- /dev/null +++ b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/QuotaDetailSnapshotsESSD.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.evs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * ESSD类型云硬盘预留快照个数,键值对,包含:reserved(预留)、limit(最大)和in_use(已使用)。 + */ +public class QuotaDetailSnapshotsESSD { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "in_use") + + private Integer inUse; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "reserved") + + private Integer reserved; + + public QuotaDetailSnapshotsESSD withInUse(Integer inUse) { + this.inUse = inUse; + return this; + } + + /** + * 已使用的数量。 + * @return inUse + */ + public Integer getInUse() { + return inUse; + } + + public void setInUse(Integer inUse) { + this.inUse = inUse; + } + + public QuotaDetailSnapshotsESSD withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 最大的数量。 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public QuotaDetailSnapshotsESSD withReserved(Integer reserved) { + this.reserved = reserved; + return this; + } + + /** + * 预留属性。 + * @return reserved + */ + public Integer getReserved() { + return reserved; + } + + public void setReserved(Integer reserved) { + this.reserved = reserved; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + QuotaDetailSnapshotsESSD that = (QuotaDetailSnapshotsESSD) obj; + return Objects.equals(this.inUse, that.inUse) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.reserved, that.reserved); + } + + @Override + public int hashCode() { + return Objects.hash(inUse, limit, reserved); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QuotaDetailSnapshotsESSD {\n"); + sb.append(" inUse: ").append(toIndentedString(inUse)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" reserved: ").append(toIndentedString(reserved)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/QuotaDetailVolumesESSD.java b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/QuotaDetailVolumesESSD.java new file mode 100644 index 0000000000..91b3f2d38a --- /dev/null +++ b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/QuotaDetailVolumesESSD.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.evs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * ESSD类型云硬盘预留的云硬盘个数,键值对,包含:reserved(预留)、limit(最大)和in_use(已使用)。 + */ +public class QuotaDetailVolumesESSD { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "in_use") + + private Integer inUse; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "reserved") + + private Integer reserved; + + public QuotaDetailVolumesESSD withInUse(Integer inUse) { + this.inUse = inUse; + return this; + } + + /** + * 已使用的数量。 + * @return inUse + */ + public Integer getInUse() { + return inUse; + } + + public void setInUse(Integer inUse) { + this.inUse = inUse; + } + + public QuotaDetailVolumesESSD withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 最大的数量。 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public QuotaDetailVolumesESSD withReserved(Integer reserved) { + this.reserved = reserved; + return this; + } + + /** + * 预留属性。 + * @return reserved + */ + public Integer getReserved() { + return reserved; + } + + public void setReserved(Integer reserved) { + this.reserved = reserved; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + QuotaDetailVolumesESSD that = (QuotaDetailVolumesESSD) obj; + return Objects.equals(this.inUse, that.inUse) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.reserved, that.reserved); + } + + @Override + public int hashCode() { + return Objects.hash(inUse, limit, reserved); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QuotaDetailVolumesESSD {\n"); + sb.append(" inUse: ").append(toIndentedString(inUse)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" reserved: ").append(toIndentedString(reserved)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/QuotaList.java b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/QuotaList.java index d989b703dc..adf263cb33 100644 --- a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/QuotaList.java +++ b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/QuotaList.java @@ -86,6 +86,21 @@ public class QuotaList { private QuotaDetailVolumesSSD volumesSSD; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "gigabytes_ESSD") + + private QuotaDetailGigabytesESSD gigabytesESSD; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "snapshots_ESSD") + + private QuotaDetailSnapshotsESSD snapshotsESSD; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "volumes_ESSD") + + private QuotaDetailVolumesESSD volumesESSD; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "gigabytes_GPSSD") @@ -487,6 +502,84 @@ public void setVolumesSSD(QuotaDetailVolumesSSD volumesSSD) { this.volumesSSD = volumesSSD; } + public QuotaList withGigabytesESSD(QuotaDetailGigabytesESSD gigabytesESSD) { + this.gigabytesESSD = gigabytesESSD; + return this; + } + + public QuotaList withGigabytesESSD(Consumer gigabytesESSDSetter) { + if (this.gigabytesESSD == null) { + this.gigabytesESSD = new QuotaDetailGigabytesESSD(); + gigabytesESSDSetter.accept(this.gigabytesESSD); + } + + return this; + } + + /** + * Get gigabytesESSD + * @return gigabytesESSD + */ + public QuotaDetailGigabytesESSD getGigabytesESSD() { + return gigabytesESSD; + } + + public void setGigabytesESSD(QuotaDetailGigabytesESSD gigabytesESSD) { + this.gigabytesESSD = gigabytesESSD; + } + + public QuotaList withSnapshotsESSD(QuotaDetailSnapshotsESSD snapshotsESSD) { + this.snapshotsESSD = snapshotsESSD; + return this; + } + + public QuotaList withSnapshotsESSD(Consumer snapshotsESSDSetter) { + if (this.snapshotsESSD == null) { + this.snapshotsESSD = new QuotaDetailSnapshotsESSD(); + snapshotsESSDSetter.accept(this.snapshotsESSD); + } + + return this; + } + + /** + * Get snapshotsESSD + * @return snapshotsESSD + */ + public QuotaDetailSnapshotsESSD getSnapshotsESSD() { + return snapshotsESSD; + } + + public void setSnapshotsESSD(QuotaDetailSnapshotsESSD snapshotsESSD) { + this.snapshotsESSD = snapshotsESSD; + } + + public QuotaList withVolumesESSD(QuotaDetailVolumesESSD volumesESSD) { + this.volumesESSD = volumesESSD; + return this; + } + + public QuotaList withVolumesESSD(Consumer volumesESSDSetter) { + if (this.volumesESSD == null) { + this.volumesESSD = new QuotaDetailVolumesESSD(); + volumesESSDSetter.accept(this.volumesESSD); + } + + return this; + } + + /** + * Get volumesESSD + * @return volumesESSD + */ + public QuotaDetailVolumesESSD getVolumesESSD() { + return volumesESSD; + } + + public void setVolumesESSD(QuotaDetailVolumesESSD volumesESSD) { + this.volumesESSD = volumesESSD; + } + public QuotaList withGigabytesGPSSD(QuotaDetailGigabytesGPSSD gigabytesGPSSD) { this.gigabytesGPSSD = gigabytesGPSSD; return this; @@ -610,6 +703,9 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.snapshotsSAS, that.snapshotsSAS) && Objects.equals(this.volumesSAS, that.volumesSAS) && Objects.equals(this.gigabytesSSD, that.gigabytesSSD) && Objects.equals(this.snapshotsSSD, that.snapshotsSSD) && Objects.equals(this.volumesSSD, that.volumesSSD) + && Objects.equals(this.gigabytesESSD, that.gigabytesESSD) + && Objects.equals(this.snapshotsESSD, that.snapshotsESSD) + && Objects.equals(this.volumesESSD, that.volumesESSD) && Objects.equals(this.gigabytesGPSSD, that.gigabytesGPSSD) && Objects.equals(this.snapshotsGPSSD, that.snapshotsGPSSD) && Objects.equals(this.volumesGPSSD, that.volumesGPSSD) @@ -633,6 +729,9 @@ public int hashCode() { gigabytesSSD, snapshotsSSD, volumesSSD, + gigabytesESSD, + snapshotsESSD, + volumesESSD, gigabytesGPSSD, snapshotsGPSSD, volumesGPSSD, @@ -658,6 +757,9 @@ public String toString() { sb.append(" gigabytesSSD: ").append(toIndentedString(gigabytesSSD)).append("\n"); sb.append(" snapshotsSSD: ").append(toIndentedString(snapshotsSSD)).append("\n"); sb.append(" volumesSSD: ").append(toIndentedString(volumesSSD)).append("\n"); + sb.append(" gigabytesESSD: ").append(toIndentedString(gigabytesESSD)).append("\n"); + sb.append(" snapshotsESSD: ").append(toIndentedString(snapshotsESSD)).append("\n"); + sb.append(" volumesESSD: ").append(toIndentedString(volumesESSD)).append("\n"); sb.append(" gigabytesGPSSD: ").append(toIndentedString(gigabytesGPSSD)).append("\n"); sb.append(" snapshotsGPSSD: ").append(toIndentedString(snapshotsGPSSD)).append("\n"); sb.append(" volumesGPSSD: ").append(toIndentedString(volumesGPSSD)).append("\n"); diff --git a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribePostpaidVolumeRequest.java b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribePostpaidVolumeRequest.java new file mode 100644 index 0000000000..9025ed0c31 --- /dev/null +++ b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribePostpaidVolumeRequest.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.evs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class UnsubscribePostpaidVolumeRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UnsubscribeVolumeRequestBody body; + + public UnsubscribePostpaidVolumeRequest withBody(UnsubscribeVolumeRequestBody body) { + this.body = body; + return this; + } + + public UnsubscribePostpaidVolumeRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UnsubscribeVolumeRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UnsubscribeVolumeRequestBody getBody() { + return body; + } + + public void setBody(UnsubscribeVolumeRequestBody 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; + } + UnsubscribePostpaidVolumeRequest that = (UnsubscribePostpaidVolumeRequest) 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 UnsubscribePostpaidVolumeRequest {\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/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribePostpaidVolumeResponse.java b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribePostpaidVolumeResponse.java new file mode 100644 index 0000000000..cc7023a926 --- /dev/null +++ b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribePostpaidVolumeResponse.java @@ -0,0 +1,92 @@ +package com.huaweicloud.sdk.evs.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 UnsubscribePostpaidVolumeResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private List body = null; + + public UnsubscribePostpaidVolumeResponse withBody(List body) { + this.body = body; + return this; + } + + public UnsubscribePostpaidVolumeResponse addBodyItem(UnsubscribeVolumeResponseBody bodyItem) { + if (this.body == null) { + this.body = new ArrayList<>(); + } + this.body.add(bodyItem); + return this; + } + + public UnsubscribePostpaidVolumeResponse withBody(Consumer> bodySetter) { + if (this.body == null) { + this.body = new ArrayList<>(); + } + bodySetter.accept(this.body); + return this; + } + + /** + * Get body + * @return body + */ + public List getBody() { + return body; + } + + public void setBody(List body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UnsubscribePostpaidVolumeResponse that = (UnsubscribePostpaidVolumeResponse) 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 UnsubscribePostpaidVolumeResponse {\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/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribeVolume.java b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribeVolume.java new file mode 100644 index 0000000000..b731d48891 --- /dev/null +++ b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribeVolume.java @@ -0,0 +1,142 @@ +package com.huaweicloud.sdk.evs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 包周期云硬盘退订的结果 + */ +public class UnsubscribeVolume { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "volume_id") + + private String volumeId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "order_id") + + private String orderId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private String result; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "fail_reason") + + private String failReason; + + public UnsubscribeVolume withVolumeId(String volumeId) { + this.volumeId = volumeId; + return this; + } + + /** + * 卷id对应的结果 + * @return volumeId + */ + public String getVolumeId() { + return volumeId; + } + + public void setVolumeId(String volumeId) { + this.volumeId = volumeId; + } + + public UnsubscribeVolume withOrderId(String orderId) { + this.orderId = orderId; + return this; + } + + /** + * 卷id对应的退订订单id,如果是已到期的云硬盘退订,则不显示此字段。 + * @return orderId + */ + public String getOrderId() { + return orderId; + } + + public void setOrderId(String orderId) { + this.orderId = orderId; + } + + public UnsubscribeVolume withResult(String result) { + this.result = result; + return this; + } + + /** + * volume_id对应的退订结果,只有SUCCESS 和 FAIL两种结果。 + * @return result + */ + public String getResult() { + return result; + } + + public void setResult(String result) { + this.result = result; + } + + public UnsubscribeVolume withFailReason(String failReason) { + this.failReason = failReason; + return this; + } + + /** + * 当result为FAIL时,此字段显示具体的失败原因。 result为SUCCESS时,不显示此字段。 + * @return failReason + */ + public String getFailReason() { + return failReason; + } + + public void setFailReason(String failReason) { + this.failReason = failReason; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UnsubscribeVolume that = (UnsubscribeVolume) obj; + return Objects.equals(this.volumeId, that.volumeId) && Objects.equals(this.orderId, that.orderId) + && Objects.equals(this.result, that.result) && Objects.equals(this.failReason, that.failReason); + } + + @Override + public int hashCode() { + return Objects.hash(volumeId, orderId, result, failReason); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UnsubscribeVolume {\n"); + sb.append(" volumeId: ").append(toIndentedString(volumeId)).append("\n"); + sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" failReason: ").append(toIndentedString(failReason)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribeVolumeRequestBody.java b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribeVolumeRequestBody.java new file mode 100644 index 0000000000..f234f5f017 --- /dev/null +++ b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribeVolumeRequestBody.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.evs.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; + +/** + * 退订包周期云硬盘的请求body体 + */ +public class UnsubscribeVolumeRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "volume_ids") + + private List volumeIds = null; + + public UnsubscribeVolumeRequestBody withVolumeIds(List volumeIds) { + this.volumeIds = volumeIds; + return this; + } + + public UnsubscribeVolumeRequestBody addVolumeIdsItem(String volumeIdsItem) { + if (this.volumeIds == null) { + this.volumeIds = new ArrayList<>(); + } + this.volumeIds.add(volumeIdsItem); + return this; + } + + public UnsubscribeVolumeRequestBody withVolumeIds(Consumer> volumeIdsSetter) { + if (this.volumeIds == null) { + this.volumeIds = new ArrayList<>(); + } + volumeIdsSetter.accept(this.volumeIds); + return this; + } + + /** + * 退订包周期云硬盘的结果。 + * @return volumeIds + */ + public List getVolumeIds() { + return volumeIds; + } + + public void setVolumeIds(List volumeIds) { + this.volumeIds = volumeIds; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UnsubscribeVolumeRequestBody that = (UnsubscribeVolumeRequestBody) obj; + return Objects.equals(this.volumeIds, that.volumeIds); + } + + @Override + public int hashCode() { + return Objects.hash(volumeIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UnsubscribeVolumeRequestBody {\n"); + sb.append(" volumeIds: ").append(toIndentedString(volumeIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribeVolumeResponseBody.java b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribeVolumeResponseBody.java new file mode 100644 index 0000000000..f7a8f0aabb --- /dev/null +++ b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribeVolumeResponseBody.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.evs.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; + +/** + * 退订包周期云硬盘的响应body体 + */ +public class UnsubscribeVolumeResponseBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "results") + + private List results = null; + + public UnsubscribeVolumeResponseBody withResults(List results) { + this.results = results; + return this; + } + + public UnsubscribeVolumeResponseBody addResultsItem(UnsubscribeVolume resultsItem) { + if (this.results == null) { + this.results = new ArrayList<>(); + } + this.results.add(resultsItem); + return this; + } + + public UnsubscribeVolumeResponseBody withResults(Consumer> resultsSetter) { + if (this.results == null) { + this.results = new ArrayList<>(); + } + resultsSetter.accept(this.results); + return this; + } + + /** + * 退订包周期云硬盘的结果。 + * @return results + */ + public List getResults() { + return results; + } + + public void setResults(List results) { + this.results = results; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UnsubscribeVolumeResponseBody that = (UnsubscribeVolumeResponseBody) obj; + return Objects.equals(this.results, that.results); + } + + @Override + public int hashCode() { + return Objects.hash(results); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UnsubscribeVolumeResponseBody {\n"); + sb.append(" results: ").append(toIndentedString(results)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/expert/pom.xml b/services/expert/pom.xml index 4555ace03e..f4797b51c5 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-expert - 3.1.127 + 3.1.128 Huawei Cloud SDK for EXPERT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/frs/pom.xml b/services/frs/pom.xml index d4581e9c4b..f238884f58 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-frs - 3.1.127 + 3.1.128 Huawei Cloud SDK for FRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/functiongraph/pom.xml b/services/functiongraph/pom.xml index b8937deb07..414d4093d4 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-functiongraph - 3.1.127 + 3.1.128 Huawei Cloud SDK for FUNCTIONGRAPH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 junit diff --git a/services/ga/pom.xml b/services/ga/pom.xml index d0c9ba4d1d..8484e0dcc1 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-ga - 3.1.127 + 3.1.128 Huawei Cloud SDK for GA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/gaussdb/pom.xml b/services/gaussdb/pom.xml index d28d097117..5fabf6c351 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-gaussdb - 3.1.127 + 3.1.128 Huawei Cloud SDK for GAUSSDB 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/gaussdbfornosql/pom.xml b/services/gaussdbfornosql/pom.xml index f83bb9c859..f278b58771 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-gaussdbfornosql - 3.1.127 + 3.1.128 Huawei Cloud SDK for GAUSSDBFORNOSQL 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/gaussdbforopengauss/pom.xml b/services/gaussdbforopengauss/pom.xml index 89da3873df..8ed591e2fb 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-gaussdbforopengauss - 3.1.127 + 3.1.128 Huawei Cloud SDK for GAUSSDBFOROPENGAUSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussAsyncClient.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussAsyncClient.java index 549e2775e7..17abe9170a 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussAsyncClient.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussAsyncClient.java @@ -7,20 +7,28 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.AddInstanceTagsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.AllowDbPrivilegesRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.AllowDbPrivilegesResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.AllowDbRolePrivilegesRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.AllowDbRolePrivilegesResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.AttachEipRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.AttachEipResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.BatchShowUpgradeCandidateVersionsRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.BatchShowUpgradeCandidateVersionsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ConfirmRestoredDataRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ConfirmRestoredDataResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CopyConfigurationRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CopyConfigurationResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateConfigurationTemplateRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateConfigurationTemplateResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDatabaseInstanceRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDatabaseInstanceResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDatabaseRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDatabaseResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDatabaseSchemasRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDatabaseSchemasResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDbInstanceRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDbInstanceResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDbRoleRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDbRoleResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDbUserRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDbUserResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateGaussDbInstanceRequest; @@ -39,6 +47,8 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteConfigurationResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteDatabaseRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteDatabaseResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteDatabaseSchemaRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteDatabaseSchemaResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteInstanceRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteInstanceResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteInstanceTagRequest; @@ -59,6 +69,8 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListAppliedHistoriesResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListAvailableFlavorsRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListAvailableFlavorsResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListBackupsDetailsRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListBackupsDetailsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListBackupsRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListBackupsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListBindedEipsRequest; @@ -71,10 +83,16 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListConfigurationsDiffResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListConfigurationsRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListConfigurationsResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatabaseInstancesRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatabaseInstancesResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatabaseRolesRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatabaseRolesResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatabaseSchemasRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatabaseSchemasResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatabasesRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatabasesResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatastoresDetailsRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatastoresDetailsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatastoresRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatastoresResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDbBackupsRequest; @@ -87,6 +105,8 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListEpsQuotasResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListFeaturesRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListFeaturesResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListFlavorsDetailsRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListFlavorsDetailsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListFlavorsRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListFlavorsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListGaussDbDatastoresRequest; @@ -111,14 +131,20 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListNodeLimitSqlModelResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListParamGroupTemplatesRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListParamGroupTemplatesResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListParameterGroupTemplatesRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListParameterGroupTemplatesResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListPluginExtensionsRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListPluginExtensionsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListPredefinedTagsRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListPredefinedTagsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListProjectTagsRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListProjectTagsResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRecycleInstancesDetailsRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRecycleInstancesDetailsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRecycleInstancesRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRecycleInstancesResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRestorableInstancesDetailsRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRestorableInstancesDetailsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRestorableInstancesRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRestorableInstancesResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRestoreTimesRequest; @@ -175,6 +201,8 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowInstanceConfigurationResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowInstanceDiskRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowInstanceDiskResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowInstanceParamGroupDetailRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowInstanceParamGroupDetailResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowInstanceParamGroupRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowInstanceParamGroupResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowInstanceSnapshotRequest; @@ -183,14 +211,20 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowJobDetailResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowLimitTaskRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowLimitTaskResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowParameterGroupDetailRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowParameterGroupDetailResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowProjectQuotasRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowProjectQuotasResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowRecyclePolicyRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowRecyclePolicyResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowSlowLogDownloadRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowSlowLogDownloadResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowSourceInstanceDetailRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowSourceInstanceDetailResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowSslCertDownloadLinkRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowSslCertDownloadLinkResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowUpgradeCandidateVersionsDetailsRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowUpgradeCandidateVersionsDetailsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowUpgradeCandidateVersionsRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowUpgradeCandidateVersionsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.StartInstanceRequest; @@ -205,6 +239,8 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.SwitchConfigurationResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.SwitchShardRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.SwitchShardResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.SyncLimitDataRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.SyncLimitDataResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.UpdateFeaturesRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.UpdateFeaturesResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.UpdateInstanceConfigurationRequest; @@ -298,6 +334,36 @@ public AsyncInvoker allowDb return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.allowDbPrivileges, hcClient); } + /** + * 授权数据库角色 + * + * 在数据库中设置角色的权限。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AllowDbRolePrivilegesRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture allowDbRolePrivilegesAsync( + AllowDbRolePrivilegesRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforopenGaussMeta.allowDbRolePrivileges); + } + + /** + * 授权数据库角色 + * + * 在数据库中设置角色的权限。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AllowDbRolePrivilegesRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker allowDbRolePrivilegesAsyncInvoker( + AllowDbRolePrivilegesRequest request) { + return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.allowDbRolePrivileges, hcClient); + } + /** * 绑定/解绑弹性公网IP * @@ -326,6 +392,36 @@ public AsyncInvoker attachEipAsyncInvoker(A return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.attachEip, hcClient); } + /** + * 查询批量实例可升级的版本和升级类型。 + * + * 查询批量实例可升级的版本和升级类型。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchShowUpgradeCandidateVersionsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture batchShowUpgradeCandidateVersionsAsync( + BatchShowUpgradeCandidateVersionsRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforopenGaussMeta.batchShowUpgradeCandidateVersions); + } + + /** + * 查询批量实例可升级的版本和升级类型。 + * + * 查询批量实例可升级的版本和升级类型。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchShowUpgradeCandidateVersionsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker batchShowUpgradeCandidateVersionsAsyncInvoker( + BatchShowUpgradeCandidateVersionsRequest request) { + return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.batchShowUpgradeCandidateVersions, hcClient); + } + /** * 备份恢复到目标实例数据后执行数据确认 * @@ -443,6 +539,36 @@ public AsyncInvoker createDatabas return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.createDatabase, hcClient); } + /** + * 创建数据库实例 + * + * 创建数据库实例 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateDatabaseInstanceRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createDatabaseInstanceAsync( + CreateDatabaseInstanceRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforopenGaussMeta.createDatabaseInstance); + } + + /** + * 创建数据库实例 + * + * 创建数据库实例 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateDatabaseInstanceRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createDatabaseInstanceAsyncInvoker( + CreateDatabaseInstanceRequest request) { + return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.createDatabaseInstance, hcClient); + } + /** * 创建数据库SCHEMA * @@ -502,6 +628,35 @@ public AsyncInvoker createDbI return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.createDbInstance, hcClient); } + /** + * 创建数据库角色 + * + * 创建数据库角色。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateDbRoleRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createDbRoleAsync(CreateDbRoleRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforopenGaussMeta.createDbRole); + } + + /** + * 创建数据库角色 + * + * 创建数据库角色。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateDbRoleRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createDbRoleAsyncInvoker( + CreateDbRoleRequest request) { + return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.createDbRole, hcClient); + } + /** * 创建数据库用户 * @@ -737,6 +892,36 @@ public AsyncInvoker deleteDatabas return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.deleteDatabase, hcClient); } + /** + * 删除数据库SCHEMA + * + * 删除数据库schema。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteDatabaseSchemaRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteDatabaseSchemaAsync( + DeleteDatabaseSchemaRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforopenGaussMeta.deleteDatabaseSchema); + } + + /** + * 删除数据库SCHEMA + * + * 删除数据库schema。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteDatabaseSchemaRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteDatabaseSchemaAsyncInvoker( + DeleteDatabaseSchemaRequest request) { + return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.deleteDatabaseSchema, hcClient); + } + /** * 删除实例 * @@ -1028,6 +1213,35 @@ public AsyncInvoker listBackupsAsyncInv return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.listBackups, hcClient); } + /** + * 查询备份列表 + * + * 获取备份列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListBackupsDetailsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listBackupsDetailsAsync(ListBackupsDetailsRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforopenGaussMeta.listBackupsDetails); + } + + /** + * 查询备份列表 + * + * 获取备份列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListBackupsDetailsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listBackupsDetailsAsyncInvoker( + ListBackupsDetailsRequest request) { + return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.listBackupsDetails, hcClient); + } + /** * 查询实例已绑定EIP列表 * @@ -1175,6 +1389,65 @@ public AsyncInvoker(request, GaussDBforopenGaussMeta.listConfigurationsDiff, hcClient); } + /** + * 查询数据库实例列表/查询实例详情 + * + * 查询数据库实例列表/查询实例详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDatabaseInstancesRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listDatabaseInstancesAsync( + ListDatabaseInstancesRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforopenGaussMeta.listDatabaseInstances); + } + + /** + * 查询数据库实例列表/查询实例详情 + * + * 查询数据库实例列表/查询实例详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDatabaseInstancesRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listDatabaseInstancesAsyncInvoker( + ListDatabaseInstancesRequest request) { + return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.listDatabaseInstances, hcClient); + } + + /** + * 查询数据库角色列表 + * + * 查询数据库角色列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDatabaseRolesRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listDatabaseRolesAsync(ListDatabaseRolesRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforopenGaussMeta.listDatabaseRoles); + } + + /** + * 查询数据库角色列表 + * + * 查询数据库角色列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDatabaseRolesRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listDatabaseRolesAsyncInvoker( + ListDatabaseRolesRequest request) { + return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.listDatabaseRoles, hcClient); + } + /** * 查询数据库SCHEMA列表 * @@ -1262,6 +1535,36 @@ public AsyncInvoker listDatastore return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.listDatastores, hcClient); } + /** + * 查询引擎列表 + * + * 查询引擎列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDatastoresDetailsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listDatastoresDetailsAsync( + ListDatastoresDetailsRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforopenGaussMeta.listDatastoresDetails); + } + + /** + * 查询引擎列表 + * + * 查询引擎列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDatastoresDetailsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listDatastoresDetailsAsyncInvoker( + ListDatastoresDetailsRequest request) { + return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.listDatastoresDetails, hcClient); + } + /** * 查询备份列表 * @@ -1434,6 +1737,35 @@ public AsyncInvoker listFlavorsAsyncInv return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.listFlavors, hcClient); } + /** + * 查询数据库规格 + * + * 查询数据库的规格信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListFlavorsDetailsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listFlavorsDetailsAsync(ListFlavorsDetailsRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforopenGaussMeta.listFlavorsDetails); + } + + /** + * 查询数据库规格 + * + * 查询数据库的规格信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListFlavorsDetailsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listFlavorsDetailsAsyncInvoker( + ListFlavorsDetailsRequest request) { + return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.listFlavorsDetails, hcClient); + } + /** * 查询引擎列表 * @@ -1700,6 +2032,36 @@ public AsyncInvoker(request, GaussDBforopenGaussMeta.listParamGroupTemplates, hcClient); } + /** + * 获取参数模板列表 + * + * 获取参数模板列表,包括所有数据库的默认参数模板和用户创建的参数模板。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListParameterGroupTemplatesRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listParameterGroupTemplatesAsync( + ListParameterGroupTemplatesRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforopenGaussMeta.listParameterGroupTemplates); + } + + /** + * 获取参数模板列表 + * + * 获取参数模板列表,包括所有数据库的默认参数模板和用户创建的参数模板。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListParameterGroupTemplatesRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listParameterGroupTemplatesAsyncInvoker( + ListParameterGroupTemplatesRequest request) { + return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.listParameterGroupTemplates, hcClient); + } + /** * 查询实例插件拓展信息 * @@ -1818,6 +2180,36 @@ public AsyncInvoker l return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.listRecycleInstances, hcClient); } + /** + * 查询回收站所有引擎实例列表。 + * + * 查询回收站所有引擎实例列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListRecycleInstancesDetailsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listRecycleInstancesDetailsAsync( + ListRecycleInstancesDetailsRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforopenGaussMeta.listRecycleInstancesDetails); + } + + /** + * 查询回收站所有引擎实例列表。 + * + * 查询回收站所有引擎实例列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListRecycleInstancesDetailsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listRecycleInstancesDetailsAsyncInvoker( + ListRecycleInstancesDetailsRequest request) { + return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.listRecycleInstancesDetails, hcClient); + } + /** * 查询可用于备份恢复的实例列表 * @@ -1848,6 +2240,36 @@ public AsyncInvoker(request, GaussDBforopenGaussMeta.listRestorableInstances, hcClient); } + /** + * 查询可用于备份恢复的实例列表 + * + * 查询可用于备份恢复的实例列表,实例信息要符合备份条件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListRestorableInstancesDetailsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listRestorableInstancesDetailsAsync( + ListRestorableInstancesDetailsRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforopenGaussMeta.listRestorableInstancesDetails); + } + + /** + * 查询可用于备份恢复的实例列表 + * + * 查询可用于备份恢复的实例列表,实例信息要符合备份条件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListRestorableInstancesDetailsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listRestorableInstancesDetailsAsyncInvoker( + ListRestorableInstancesDetailsRequest request) { + return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.listRestorableInstancesDetails, hcClient); + } + /** * 查询可恢复时间段 * @@ -2670,6 +3092,36 @@ public AsyncInvoker(request, GaussDBforopenGaussMeta.showInstanceParamGroup, hcClient); } + /** + * 获取指定实例的参数模板 + * + * 获取指定实例的参数模板。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowInstanceParamGroupDetailRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showInstanceParamGroupDetailAsync( + ShowInstanceParamGroupDetailRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforopenGaussMeta.showInstanceParamGroupDetail); + } + + /** + * 获取指定实例的参数模板 + * + * 获取指定实例的参数模板。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowInstanceParamGroupDetailRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showInstanceParamGroupDetailAsyncInvoker( + ShowInstanceParamGroupDetailRequest request) { + return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.showInstanceParamGroupDetail, hcClient); + } + /** * 根据时间点或者备份文件查询原实例信息 * @@ -2729,6 +3181,36 @@ public AsyncInvoker showJobDetailAs return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.showJobDetail, hcClient); } + /** + * 查询参数模板详情 + * + * 根据参数模板ID获取指定参数模板详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowParameterGroupDetailRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showParameterGroupDetailAsync( + ShowParameterGroupDetailRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforopenGaussMeta.showParameterGroupDetail); + } + + /** + * 查询参数模板详情 + * + * 根据参数模板ID获取指定参数模板详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowParameterGroupDetailRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showParameterGroupDetailAsyncInvoker( + ShowParameterGroupDetailRequest request) { + return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.showParameterGroupDetail, hcClient); + } + /** * 查询租户的实例配额 * @@ -2814,6 +3296,36 @@ public AsyncInvoker sho return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.showSlowLogDownload, hcClient); } + /** + * 根据时间点或者备份文件查询原实例信息 + * + * 根据时间点或者备份文件查询原实例信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowSourceInstanceDetailRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showSourceInstanceDetailAsync( + ShowSourceInstanceDetailRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforopenGaussMeta.showSourceInstanceDetail); + } + + /** + * 根据时间点或者备份文件查询原实例信息 + * + * 根据时间点或者备份文件查询原实例信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowSourceInstanceDetailRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showSourceInstanceDetailAsyncInvoker( + ShowSourceInstanceDetailRequest request) { + return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.showSourceInstanceDetail, hcClient); + } + /** * 查询实例SSL证书下载地址 * @@ -2874,6 +3386,36 @@ public AsyncInvoker(request, GaussDBforopenGaussMeta.showUpgradeCandidateVersions, hcClient); } + /** + * 查询实例可升级版本 + * + * 查询实例可升级版本。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowUpgradeCandidateVersionsDetailsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showUpgradeCandidateVersionsDetailsAsync( + ShowUpgradeCandidateVersionsDetailsRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforopenGaussMeta.showUpgradeCandidateVersionsDetails); + } + + /** + * 查询实例可升级版本 + * + * 查询实例可升级版本。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowUpgradeCandidateVersionsDetailsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showUpgradeCandidateVersionsDetailsAsyncInvoker( + ShowUpgradeCandidateVersionsDetailsRequest request) { + return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.showUpgradeCandidateVersionsDetails, hcClient); + } + /** * 启动数据库 * @@ -3218,14 +3760,14 @@ public AsyncInvoker upgradeInstancesVersio /** * 批量实例内核版本升级 * - * GaussDB批量实例版本升级。包括灰度升级,就地升级、热补丁升级三种升级方式。 + * GaussDB批量实例版本升级。包括灰度升级,就地升级、热补丁升级三种升级方式。 * 就地升级: - * 就地升级需要停止业务进行,会一次性升级集群中所有节点。就地升级需要暂停业务30分钟来升级。 - * 灰度升级: - * 升级自动提交:所有节点进程一起升级,在升级过程中有大概10秒的业务中断,不阻塞其他业务操作。 - * 升级待观察:升级待观察,将数据库升级过程细分为升级,提交两个阶段。升级阶段可以根据部署方式细分为按分片或者按az的滚动升级,提交阶段可以对升级完成后的实例进行业务测试,根据需要可以选择提交升级,或者升级回退。每个主dn或者cn组件升级就有一次10秒业务中断。升级过程均是先管理面,再数据面,由备到主的升级方式。 分布式实例:根据分片数滚动升级,每次滚动升级可以根据选择的分片数进行指定分片数量的节点进行升级。 主备版实例:根据AZ数进行滚动升级,每次滚动升级可以根据选择的AZ进行1个分区或者多个分区进行升级。 - * 热补丁升级: - * 升级自动提交:热补丁自动升级并提交,中间无业务中断,仅修复产品bug。 + * 就地升级需要停止业务进行,会一次性升级集群中所有节点。就地升级需要暂停业务30分钟来升级。 + * 灰度升级: + * 升级自动提交:所有节点进程一起升级,在升级过程中有大概10秒的业务中断,不阻塞其他业务操作。 + * 升级待观察:升级待观察,将数据库升级过程细分为升级,提交两个阶段。升级阶段可以根据部署方式细分为按分片或者按az的滚动升级,提交阶段可以对升级完成后的实例进行业务测试,根据需要可以选择提交升级,或者升级回退。每个主dn或者cn组件升级就有一次10秒业务中断。升级过程均是先管理面,再数据面,由备到主的升级方式。 分布式实例:根据分片数滚动升级,每次滚动升级可以根据选择的分片数进行指定分片数量的节点进行升级。 主备版实例:根据AZ数进行滚动升级,每次滚动升级可以根据选择的AZ进行1个分区或者多个分区进行升级。 + * 热补丁升级: + * 升级自动提交:热补丁自动升级并提交,中间无业务中断,仅修复产品bug。 * 提交升级:提交升级。在升级完成,进入提交阶段时。业务测试正常后提交升级,完成本次升级流程。 * 升级回退:升级回退,在升级完成,进入提交阶段时。可以根据需要回退本次升级,回退到升级前的版本。 * 批量实例可升级版本大于当前所有实例的引擎版本,且选择的所有实例,其升级方式和操作方式要保持一致。 @@ -3473,6 +4015,35 @@ public AsyncInvoker showLimitTaskAs return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.showLimitTask, hcClient); } + /** + * 同步内核侧sql限流数据至管控侧 + * + * 同步内核侧sql限流数据至管控侧 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SyncLimitDataRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture syncLimitDataAsync(SyncLimitDataRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforopenGaussMeta.syncLimitData); + } + + /** + * 同步内核侧sql限流数据至管控侧 + * + * 同步内核侧sql限流数据至管控侧 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SyncLimitDataRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker syncLimitDataAsyncInvoker( + SyncLimitDataRequest request) { + return new AsyncInvoker<>(request, GaussDBforopenGaussMeta.syncLimitData, hcClient); + } + /** * 修改限流任务 * diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussClient.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussClient.java index 0097a38ca3..0a43d962d8 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussClient.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussClient.java @@ -7,20 +7,28 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.AddInstanceTagsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.AllowDbPrivilegesRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.AllowDbPrivilegesResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.AllowDbRolePrivilegesRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.AllowDbRolePrivilegesResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.AttachEipRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.AttachEipResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.BatchShowUpgradeCandidateVersionsRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.BatchShowUpgradeCandidateVersionsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ConfirmRestoredDataRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ConfirmRestoredDataResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CopyConfigurationRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CopyConfigurationResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateConfigurationTemplateRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateConfigurationTemplateResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDatabaseInstanceRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDatabaseInstanceResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDatabaseRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDatabaseResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDatabaseSchemasRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDatabaseSchemasResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDbInstanceRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDbInstanceResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDbRoleRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDbRoleResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDbUserRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDbUserResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateGaussDbInstanceRequest; @@ -39,6 +47,8 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteConfigurationResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteDatabaseRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteDatabaseResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteDatabaseSchemaRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteDatabaseSchemaResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteInstanceRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteInstanceResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteInstanceTagRequest; @@ -59,6 +69,8 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListAppliedHistoriesResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListAvailableFlavorsRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListAvailableFlavorsResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListBackupsDetailsRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListBackupsDetailsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListBackupsRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListBackupsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListBindedEipsRequest; @@ -71,10 +83,16 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListConfigurationsDiffResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListConfigurationsRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListConfigurationsResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatabaseInstancesRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatabaseInstancesResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatabaseRolesRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatabaseRolesResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatabaseSchemasRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatabaseSchemasResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatabasesRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatabasesResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatastoresDetailsRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatastoresDetailsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatastoresRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatastoresResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDbBackupsRequest; @@ -87,6 +105,8 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListEpsQuotasResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListFeaturesRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListFeaturesResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListFlavorsDetailsRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListFlavorsDetailsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListFlavorsRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListFlavorsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListGaussDbDatastoresRequest; @@ -111,14 +131,20 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListNodeLimitSqlModelResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListParamGroupTemplatesRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListParamGroupTemplatesResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListParameterGroupTemplatesRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListParameterGroupTemplatesResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListPluginExtensionsRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListPluginExtensionsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListPredefinedTagsRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListPredefinedTagsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListProjectTagsRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListProjectTagsResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRecycleInstancesDetailsRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRecycleInstancesDetailsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRecycleInstancesRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRecycleInstancesResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRestorableInstancesDetailsRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRestorableInstancesDetailsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRestorableInstancesRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRestorableInstancesResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRestoreTimesRequest; @@ -175,6 +201,8 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowInstanceConfigurationResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowInstanceDiskRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowInstanceDiskResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowInstanceParamGroupDetailRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowInstanceParamGroupDetailResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowInstanceParamGroupRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowInstanceParamGroupResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowInstanceSnapshotRequest; @@ -183,14 +211,20 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowJobDetailResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowLimitTaskRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowLimitTaskResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowParameterGroupDetailRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowParameterGroupDetailResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowProjectQuotasRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowProjectQuotasResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowRecyclePolicyRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowRecyclePolicyResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowSlowLogDownloadRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowSlowLogDownloadResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowSourceInstanceDetailRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowSourceInstanceDetailResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowSslCertDownloadLinkRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowSslCertDownloadLinkResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowUpgradeCandidateVersionsDetailsRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowUpgradeCandidateVersionsDetailsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowUpgradeCandidateVersionsRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowUpgradeCandidateVersionsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.StartInstanceRequest; @@ -205,6 +239,8 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.SwitchConfigurationResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.SwitchShardRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.SwitchShardResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.SyncLimitDataRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.SyncLimitDataResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.UpdateFeaturesRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.UpdateFeaturesResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.UpdateInstanceConfigurationRequest; @@ -295,6 +331,35 @@ public SyncInvoker allowDbP return new SyncInvoker<>(request, GaussDBforopenGaussMeta.allowDbPrivileges, hcClient); } + /** + * 授权数据库角色 + * + * 在数据库中设置角色的权限。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AllowDbRolePrivilegesRequest 请求对象 + * @return AllowDbRolePrivilegesResponse + */ + public AllowDbRolePrivilegesResponse allowDbRolePrivileges(AllowDbRolePrivilegesRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforopenGaussMeta.allowDbRolePrivileges); + } + + /** + * 授权数据库角色 + * + * 在数据库中设置角色的权限。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AllowDbRolePrivilegesRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker allowDbRolePrivilegesInvoker( + AllowDbRolePrivilegesRequest request) { + return new SyncInvoker<>(request, GaussDBforopenGaussMeta.allowDbRolePrivileges, hcClient); + } + /** * 绑定/解绑弹性公网IP * @@ -323,6 +388,36 @@ public SyncInvoker attachEipInvoker(AttachE return new SyncInvoker<>(request, GaussDBforopenGaussMeta.attachEip, hcClient); } + /** + * 查询批量实例可升级的版本和升级类型。 + * + * 查询批量实例可升级的版本和升级类型。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchShowUpgradeCandidateVersionsRequest 请求对象 + * @return BatchShowUpgradeCandidateVersionsResponse + */ + public BatchShowUpgradeCandidateVersionsResponse batchShowUpgradeCandidateVersions( + BatchShowUpgradeCandidateVersionsRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforopenGaussMeta.batchShowUpgradeCandidateVersions); + } + + /** + * 查询批量实例可升级的版本和升级类型。 + * + * 查询批量实例可升级的版本和升级类型。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchShowUpgradeCandidateVersionsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker batchShowUpgradeCandidateVersionsInvoker( + BatchShowUpgradeCandidateVersionsRequest request) { + return new SyncInvoker<>(request, GaussDBforopenGaussMeta.batchShowUpgradeCandidateVersions, hcClient); + } + /** * 备份恢复到目标实例数据后执行数据确认 * @@ -439,6 +534,35 @@ public SyncInvoker createDatabase return new SyncInvoker<>(request, GaussDBforopenGaussMeta.createDatabase, hcClient); } + /** + * 创建数据库实例 + * + * 创建数据库实例 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateDatabaseInstanceRequest 请求对象 + * @return CreateDatabaseInstanceResponse + */ + public CreateDatabaseInstanceResponse createDatabaseInstance(CreateDatabaseInstanceRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforopenGaussMeta.createDatabaseInstance); + } + + /** + * 创建数据库实例 + * + * 创建数据库实例 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateDatabaseInstanceRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createDatabaseInstanceInvoker( + CreateDatabaseInstanceRequest request) { + return new SyncInvoker<>(request, GaussDBforopenGaussMeta.createDatabaseInstance, hcClient); + } + /** * 创建数据库SCHEMA * @@ -497,6 +621,34 @@ public SyncInvoker createDbIn return new SyncInvoker<>(request, GaussDBforopenGaussMeta.createDbInstance, hcClient); } + /** + * 创建数据库角色 + * + * 创建数据库角色。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateDbRoleRequest 请求对象 + * @return CreateDbRoleResponse + */ + public CreateDbRoleResponse createDbRole(CreateDbRoleRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforopenGaussMeta.createDbRole); + } + + /** + * 创建数据库角色 + * + * 创建数据库角色。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateDbRoleRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createDbRoleInvoker(CreateDbRoleRequest request) { + return new SyncInvoker<>(request, GaussDBforopenGaussMeta.createDbRole, hcClient); + } + /** * 创建数据库用户 * @@ -728,6 +880,35 @@ public SyncInvoker deleteDatabase return new SyncInvoker<>(request, GaussDBforopenGaussMeta.deleteDatabase, hcClient); } + /** + * 删除数据库SCHEMA + * + * 删除数据库schema。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteDatabaseSchemaRequest 请求对象 + * @return DeleteDatabaseSchemaResponse + */ + public DeleteDatabaseSchemaResponse deleteDatabaseSchema(DeleteDatabaseSchemaRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforopenGaussMeta.deleteDatabaseSchema); + } + + /** + * 删除数据库SCHEMA + * + * 删除数据库schema。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteDatabaseSchemaRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteDatabaseSchemaInvoker( + DeleteDatabaseSchemaRequest request) { + return new SyncInvoker<>(request, GaussDBforopenGaussMeta.deleteDatabaseSchema, hcClient); + } + /** * 删除实例 * @@ -1016,6 +1197,35 @@ public SyncInvoker listBackupsInvoker(L return new SyncInvoker<>(request, GaussDBforopenGaussMeta.listBackups, hcClient); } + /** + * 查询备份列表 + * + * 获取备份列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListBackupsDetailsRequest 请求对象 + * @return ListBackupsDetailsResponse + */ + public ListBackupsDetailsResponse listBackupsDetails(ListBackupsDetailsRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforopenGaussMeta.listBackupsDetails); + } + + /** + * 查询备份列表 + * + * 获取备份列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListBackupsDetailsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listBackupsDetailsInvoker( + ListBackupsDetailsRequest request) { + return new SyncInvoker<>(request, GaussDBforopenGaussMeta.listBackupsDetails, hcClient); + } + /** * 查询实例已绑定EIP列表 * @@ -1161,6 +1371,64 @@ public SyncInvoker(request, GaussDBforopenGaussMeta.listConfigurationsDiff, hcClient); } + /** + * 查询数据库实例列表/查询实例详情 + * + * 查询数据库实例列表/查询实例详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDatabaseInstancesRequest 请求对象 + * @return ListDatabaseInstancesResponse + */ + public ListDatabaseInstancesResponse listDatabaseInstances(ListDatabaseInstancesRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforopenGaussMeta.listDatabaseInstances); + } + + /** + * 查询数据库实例列表/查询实例详情 + * + * 查询数据库实例列表/查询实例详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDatabaseInstancesRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listDatabaseInstancesInvoker( + ListDatabaseInstancesRequest request) { + return new SyncInvoker<>(request, GaussDBforopenGaussMeta.listDatabaseInstances, hcClient); + } + + /** + * 查询数据库角色列表 + * + * 查询数据库角色列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDatabaseRolesRequest 请求对象 + * @return ListDatabaseRolesResponse + */ + public ListDatabaseRolesResponse listDatabaseRoles(ListDatabaseRolesRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforopenGaussMeta.listDatabaseRoles); + } + + /** + * 查询数据库角色列表 + * + * 查询数据库角色列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDatabaseRolesRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listDatabaseRolesInvoker( + ListDatabaseRolesRequest request) { + return new SyncInvoker<>(request, GaussDBforopenGaussMeta.listDatabaseRoles, hcClient); + } + /** * 查询数据库SCHEMA列表 * @@ -1247,6 +1515,35 @@ public SyncInvoker listDatastores return new SyncInvoker<>(request, GaussDBforopenGaussMeta.listDatastores, hcClient); } + /** + * 查询引擎列表 + * + * 查询引擎列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDatastoresDetailsRequest 请求对象 + * @return ListDatastoresDetailsResponse + */ + public ListDatastoresDetailsResponse listDatastoresDetails(ListDatastoresDetailsRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforopenGaussMeta.listDatastoresDetails); + } + + /** + * 查询引擎列表 + * + * 查询引擎列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDatastoresDetailsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listDatastoresDetailsInvoker( + ListDatastoresDetailsRequest request) { + return new SyncInvoker<>(request, GaussDBforopenGaussMeta.listDatastoresDetails, hcClient); + } + /** * 查询备份列表 * @@ -1415,6 +1712,35 @@ public SyncInvoker listFlavorsInvoker(L return new SyncInvoker<>(request, GaussDBforopenGaussMeta.listFlavors, hcClient); } + /** + * 查询数据库规格 + * + * 查询数据库的规格信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListFlavorsDetailsRequest 请求对象 + * @return ListFlavorsDetailsResponse + */ + public ListFlavorsDetailsResponse listFlavorsDetails(ListFlavorsDetailsRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforopenGaussMeta.listFlavorsDetails); + } + + /** + * 查询数据库规格 + * + * 查询数据库的规格信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListFlavorsDetailsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listFlavorsDetailsInvoker( + ListFlavorsDetailsRequest request) { + return new SyncInvoker<>(request, GaussDBforopenGaussMeta.listFlavorsDetails, hcClient); + } + /** * 查询引擎列表 * @@ -1675,6 +2001,35 @@ public SyncInvoker(request, GaussDBforopenGaussMeta.listParamGroupTemplates, hcClient); } + /** + * 获取参数模板列表 + * + * 获取参数模板列表,包括所有数据库的默认参数模板和用户创建的参数模板。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListParameterGroupTemplatesRequest 请求对象 + * @return ListParameterGroupTemplatesResponse + */ + public ListParameterGroupTemplatesResponse listParameterGroupTemplates(ListParameterGroupTemplatesRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforopenGaussMeta.listParameterGroupTemplates); + } + + /** + * 获取参数模板列表 + * + * 获取参数模板列表,包括所有数据库的默认参数模板和用户创建的参数模板。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListParameterGroupTemplatesRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listParameterGroupTemplatesInvoker( + ListParameterGroupTemplatesRequest request) { + return new SyncInvoker<>(request, GaussDBforopenGaussMeta.listParameterGroupTemplates, hcClient); + } + /** * 查询实例插件拓展信息 * @@ -1791,6 +2146,35 @@ public SyncInvoker li return new SyncInvoker<>(request, GaussDBforopenGaussMeta.listRecycleInstances, hcClient); } + /** + * 查询回收站所有引擎实例列表。 + * + * 查询回收站所有引擎实例列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListRecycleInstancesDetailsRequest 请求对象 + * @return ListRecycleInstancesDetailsResponse + */ + public ListRecycleInstancesDetailsResponse listRecycleInstancesDetails(ListRecycleInstancesDetailsRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforopenGaussMeta.listRecycleInstancesDetails); + } + + /** + * 查询回收站所有引擎实例列表。 + * + * 查询回收站所有引擎实例列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListRecycleInstancesDetailsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listRecycleInstancesDetailsInvoker( + ListRecycleInstancesDetailsRequest request) { + return new SyncInvoker<>(request, GaussDBforopenGaussMeta.listRecycleInstancesDetails, hcClient); + } + /** * 查询可用于备份恢复的实例列表 * @@ -1820,6 +2204,36 @@ public SyncInvoker(request, GaussDBforopenGaussMeta.listRestorableInstances, hcClient); } + /** + * 查询可用于备份恢复的实例列表 + * + * 查询可用于备份恢复的实例列表,实例信息要符合备份条件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListRestorableInstancesDetailsRequest 请求对象 + * @return ListRestorableInstancesDetailsResponse + */ + public ListRestorableInstancesDetailsResponse listRestorableInstancesDetails( + ListRestorableInstancesDetailsRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforopenGaussMeta.listRestorableInstancesDetails); + } + + /** + * 查询可用于备份恢复的实例列表 + * + * 查询可用于备份恢复的实例列表,实例信息要符合备份条件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListRestorableInstancesDetailsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listRestorableInstancesDetailsInvoker( + ListRestorableInstancesDetailsRequest request) { + return new SyncInvoker<>(request, GaussDBforopenGaussMeta.listRestorableInstancesDetails, hcClient); + } + /** * 查询可恢复时间段 * @@ -2632,6 +3046,36 @@ public SyncInvoker(request, GaussDBforopenGaussMeta.showInstanceParamGroup, hcClient); } + /** + * 获取指定实例的参数模板 + * + * 获取指定实例的参数模板。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowInstanceParamGroupDetailRequest 请求对象 + * @return ShowInstanceParamGroupDetailResponse + */ + public ShowInstanceParamGroupDetailResponse showInstanceParamGroupDetail( + ShowInstanceParamGroupDetailRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforopenGaussMeta.showInstanceParamGroupDetail); + } + + /** + * 获取指定实例的参数模板 + * + * 获取指定实例的参数模板。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowInstanceParamGroupDetailRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showInstanceParamGroupDetailInvoker( + ShowInstanceParamGroupDetailRequest request) { + return new SyncInvoker<>(request, GaussDBforopenGaussMeta.showInstanceParamGroupDetail, hcClient); + } + /** * 根据时间点或者备份文件查询原实例信息 * @@ -2689,6 +3133,35 @@ public SyncInvoker showJobDetailInv return new SyncInvoker<>(request, GaussDBforopenGaussMeta.showJobDetail, hcClient); } + /** + * 查询参数模板详情 + * + * 根据参数模板ID获取指定参数模板详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowParameterGroupDetailRequest 请求对象 + * @return ShowParameterGroupDetailResponse + */ + public ShowParameterGroupDetailResponse showParameterGroupDetail(ShowParameterGroupDetailRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforopenGaussMeta.showParameterGroupDetail); + } + + /** + * 查询参数模板详情 + * + * 根据参数模板ID获取指定参数模板详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowParameterGroupDetailRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showParameterGroupDetailInvoker( + ShowParameterGroupDetailRequest request) { + return new SyncInvoker<>(request, GaussDBforopenGaussMeta.showParameterGroupDetail, hcClient); + } + /** * 查询租户的实例配额 * @@ -2774,6 +3247,35 @@ public SyncInvoker show return new SyncInvoker<>(request, GaussDBforopenGaussMeta.showSlowLogDownload, hcClient); } + /** + * 根据时间点或者备份文件查询原实例信息 + * + * 根据时间点或者备份文件查询原实例信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowSourceInstanceDetailRequest 请求对象 + * @return ShowSourceInstanceDetailResponse + */ + public ShowSourceInstanceDetailResponse showSourceInstanceDetail(ShowSourceInstanceDetailRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforopenGaussMeta.showSourceInstanceDetail); + } + + /** + * 根据时间点或者备份文件查询原实例信息 + * + * 根据时间点或者备份文件查询原实例信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowSourceInstanceDetailRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showSourceInstanceDetailInvoker( + ShowSourceInstanceDetailRequest request) { + return new SyncInvoker<>(request, GaussDBforopenGaussMeta.showSourceInstanceDetail, hcClient); + } + /** * 查询实例SSL证书下载地址 * @@ -2833,6 +3335,36 @@ public SyncInvoker(request, GaussDBforopenGaussMeta.showUpgradeCandidateVersions, hcClient); } + /** + * 查询实例可升级版本 + * + * 查询实例可升级版本。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowUpgradeCandidateVersionsDetailsRequest 请求对象 + * @return ShowUpgradeCandidateVersionsDetailsResponse + */ + public ShowUpgradeCandidateVersionsDetailsResponse showUpgradeCandidateVersionsDetails( + ShowUpgradeCandidateVersionsDetailsRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforopenGaussMeta.showUpgradeCandidateVersionsDetails); + } + + /** + * 查询实例可升级版本 + * + * 查询实例可升级版本。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowUpgradeCandidateVersionsDetailsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showUpgradeCandidateVersionsDetailsInvoker( + ShowUpgradeCandidateVersionsDetailsRequest request) { + return new SyncInvoker<>(request, GaussDBforopenGaussMeta.showUpgradeCandidateVersionsDetails, hcClient); + } + /** * 启动数据库 * @@ -3171,14 +3703,14 @@ public SyncInvoker showLimitTaskInv return new SyncInvoker<>(request, GaussDBforopenGaussMeta.showLimitTask, hcClient); } + /** + * 同步内核侧sql限流数据至管控侧 + * + * 同步内核侧sql限流数据至管控侧 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SyncLimitDataRequest 请求对象 + * @return SyncLimitDataResponse + */ + public SyncLimitDataResponse syncLimitData(SyncLimitDataRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforopenGaussMeta.syncLimitData); + } + + /** + * 同步内核侧sql限流数据至管控侧 + * + * 同步内核侧sql限流数据至管控侧 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SyncLimitDataRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker syncLimitDataInvoker(SyncLimitDataRequest request) { + return new SyncInvoker<>(request, GaussDBforopenGaussMeta.syncLimitData, hcClient); + } + /** * 修改限流任务 * diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussMeta.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussMeta.java index 9e688c44d9..80544aaf4f 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussMeta.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussMeta.java @@ -10,9 +10,14 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.AddTagsRequestBody; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.AllowDbPrivilegesRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.AllowDbPrivilegesResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.AllowDbRolePrivilegesRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.AllowDbRolePrivilegesRequestBody; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.AllowDbRolePrivilegesResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ApplyConfigurationRequestBody; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.AttachEipRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.AttachEipResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.BatchShowUpgradeCandidateVersionsRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.BatchShowUpgradeCandidateVersionsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.BindEIPRequestBody; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ConfirmRestoredDataRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ConfirmRestoredDataResponse; @@ -21,12 +26,18 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateConfigurationTemplateRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateConfigurationTemplateRequestBody; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateConfigurationTemplateResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDatabaseInstanceRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDatabaseInstanceRequestBody; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDatabaseInstanceResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDatabaseRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDatabaseResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDatabaseSchemasRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDatabaseSchemasResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDbInstanceRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDbInstanceResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDbRoleRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDbRoleRequestBody; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDbRoleResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDbUserRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateDbUserResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateGaussDbInstanceRequest; @@ -48,6 +59,9 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteConfigurationResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteDatabaseRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteDatabaseResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteDatabaseSchemaRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteDatabaseSchemaRequestBody; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteDatabaseSchemaResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteInstanceRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteInstanceResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DeleteInstanceTagRequest; @@ -74,6 +88,8 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListAppliedHistoriesResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListAvailableFlavorsRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListAvailableFlavorsResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListBackupsDetailsRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListBackupsDetailsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListBackupsRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListBackupsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListBindedEipsRequest; @@ -86,10 +102,16 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListConfigurationsDiffResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListConfigurationsRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListConfigurationsResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatabaseInstancesRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatabaseInstancesResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatabaseRolesRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatabaseRolesResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatabaseSchemasRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatabaseSchemasResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatabasesRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatabasesResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatastoresDetailsRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatastoresDetailsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatastoresRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDatastoresResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListDbBackupsRequest; @@ -102,6 +124,8 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListEpsQuotasResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListFeaturesRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListFeaturesResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListFlavorsDetailsRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListFlavorsDetailsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListFlavorsRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListFlavorsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListGaussDbDatastoresRequest; @@ -126,6 +150,8 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListNodeLimitSqlModelResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListParamGroupTemplatesRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListParamGroupTemplatesResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListParameterGroupTemplatesRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListParameterGroupTemplatesResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListPluginExtensionsRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListPluginExtensionsRequestBody; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListPluginExtensionsResponse; @@ -133,8 +159,12 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListPredefinedTagsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListProjectTagsRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListProjectTagsResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRecycleInstancesDetailsRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRecycleInstancesDetailsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRecycleInstancesRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRecycleInstancesResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRestorableInstancesDetailsRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRestorableInstancesDetailsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRestorableInstancesRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRestorableInstancesResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ListRestoreTimesRequest; @@ -209,6 +239,8 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowInstanceConfigurationResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowInstanceDiskRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowInstanceDiskResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowInstanceParamGroupDetailRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowInstanceParamGroupDetailResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowInstanceParamGroupRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowInstanceParamGroupResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowInstanceSnapshotRequest; @@ -217,14 +249,20 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowJobDetailResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowLimitTaskRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowLimitTaskResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowParameterGroupDetailRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowParameterGroupDetailResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowProjectQuotasRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowProjectQuotasResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowRecyclePolicyRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowRecyclePolicyResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowSlowLogDownloadRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowSlowLogDownloadResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowSourceInstanceDetailRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowSourceInstanceDetailResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowSslCertDownloadLinkRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowSslCertDownloadLinkResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowUpgradeCandidateVersionsDetailsRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowUpgradeCandidateVersionsDetailsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowUpgradeCandidateVersionsRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.ShowUpgradeCandidateVersionsResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.StartInstanceRequest; @@ -243,6 +281,8 @@ import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.SwitchShardRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.SwitchShardRequestBody; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.SwitchShardResponse; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.SyncLimitDataRequest; +import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.SyncLimitDataResponse; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.UpdateFeaturesRequest; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.UpdateFeaturesRequestBody; import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.UpdateFeaturesResponse; @@ -339,6 +379,41 @@ private static HttpRequestDef allowDbRolePrivileges = + genForAllowDbRolePrivileges(); + + private static HttpRequestDef genForAllowDbRolePrivileges() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, AllowDbRolePrivilegesRequest.class, AllowDbRolePrivilegesResponse.class) + .withName("AllowDbRolePrivileges") + .withUri("/v3.1/{project_id}/instances/{instance_id}/db-privilege") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(AllowDbRolePrivilegesRequest::getInstanceId, + AllowDbRolePrivilegesRequest::setInstanceId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(AllowDbRolePrivilegesRequest::getXLanguage, + AllowDbRolePrivilegesRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(AllowDbRolePrivilegesRequestBody.class), + f -> f.withMarshaller(AllowDbRolePrivilegesRequest::getBody, AllowDbRolePrivilegesRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef attachEip = genForAttachEip(); private static HttpRequestDef genForAttachEip() { @@ -376,6 +451,39 @@ private static HttpRequestDef genForAttachE return builder.build(); } + public static final HttpRequestDef batchShowUpgradeCandidateVersions = + genForBatchShowUpgradeCandidateVersions(); + + private static HttpRequestDef genForBatchShowUpgradeCandidateVersions() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + BatchShowUpgradeCandidateVersionsRequest.class, + BatchShowUpgradeCandidateVersionsResponse.class) + .withName("BatchShowUpgradeCandidateVersions") + .withUri("/v3.1/{project_id}/instances/db-upgrade/candidate-versions") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(BatchShowUpgradeCandidateVersionsRequest.XLanguageEnum.class), + f -> f.withMarshaller(BatchShowUpgradeCandidateVersionsRequest::getXLanguage, + BatchShowUpgradeCandidateVersionsRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpgradeInstancesRequestBody.class), + f -> f.withMarshaller(BatchShowUpgradeCandidateVersionsRequest::getBody, + BatchShowUpgradeCandidateVersionsRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef confirmRestoredData = genForConfirmRestoredData(); @@ -504,6 +612,35 @@ private static HttpRequestDef gen return builder.build(); } + public static final HttpRequestDef createDatabaseInstance = + genForCreateDatabaseInstance(); + + private static HttpRequestDef genForCreateDatabaseInstance() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, CreateDatabaseInstanceRequest.class, CreateDatabaseInstanceResponse.class) + .withName("CreateDatabaseInstance") + .withUri("/v3.2/{project_id}/instances") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateDatabaseInstanceRequest::getXLanguage, + CreateDatabaseInstanceRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateDatabaseInstanceRequestBody.class), + f -> f.withMarshaller(CreateDatabaseInstanceRequest::getBody, CreateDatabaseInstanceRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef createDatabaseSchemas = genForCreateDatabaseSchemas(); @@ -567,6 +704,38 @@ private static HttpRequestDef return builder.build(); } + public static final HttpRequestDef createDbRole = genForCreateDbRole(); + + private static HttpRequestDef genForCreateDbRole() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, CreateDbRoleRequest.class, CreateDbRoleResponse.class) + .withName("CreateDbRole") + .withUri("/v3.1/{project_id}/instances/{instance_id}/db-role") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateDbRoleRequest::getInstanceId, CreateDbRoleRequest::setInstanceId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateDbRoleRequest::getXLanguage, CreateDbRoleRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateDbRoleRequestBody.class), + f -> f.withMarshaller(CreateDbRoleRequest::getBody, CreateDbRoleRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef createDbUser = genForCreateDbUser(); private static HttpRequestDef genForCreateDbUser() { @@ -810,6 +979,41 @@ private static HttpRequestDef gen return builder.build(); } + public static final HttpRequestDef deleteDatabaseSchema = + genForDeleteDatabaseSchema(); + + private static HttpRequestDef genForDeleteDatabaseSchema() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.DELETE, DeleteDatabaseSchemaRequest.class, DeleteDatabaseSchemaResponse.class) + .withName("DeleteDatabaseSchema") + .withUri("/v3/{project_id}/instances/{instance_id}/schema") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteDatabaseSchemaRequest::getInstanceId, + DeleteDatabaseSchemaRequest::setInstanceId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteDatabaseSchemaRequest::getXLanguage, + DeleteDatabaseSchemaRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(DeleteDatabaseSchemaRequestBody.class), + f -> f.withMarshaller(DeleteDatabaseSchemaRequest::getBody, DeleteDatabaseSchemaRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef deleteInstance = genForDeleteInstance(); @@ -1165,6 +1369,64 @@ private static HttpRequestDef genForLis return builder.build(); } + public static final HttpRequestDef listBackupsDetails = + genForListBackupsDetails(); + + private static HttpRequestDef genForListBackupsDetails() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListBackupsDetailsRequest.class, ListBackupsDetailsResponse.class) + .withName("ListBackupsDetails") + .withUri("/v3.2/{project_id}/backups") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListBackupsDetailsRequest::getInstanceId, ListBackupsDetailsRequest::setInstanceId)); + builder.withRequestField("backup_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListBackupsDetailsRequest::getBackupId, ListBackupsDetailsRequest::setBackupId)); + builder.withRequestField("backup_type", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ListBackupsDetailsRequest.BackupTypeEnum.class), + f -> f.withMarshaller(ListBackupsDetailsRequest::getBackupType, ListBackupsDetailsRequest::setBackupType)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListBackupsDetailsRequest::getOffset, ListBackupsDetailsRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListBackupsDetailsRequest::getLimit, ListBackupsDetailsRequest::setLimit)); + builder.withRequestField("begin_time", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListBackupsDetailsRequest::getBeginTime, ListBackupsDetailsRequest::setBeginTime)); + builder.withRequestField("end_time", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListBackupsDetailsRequest::getEndTime, ListBackupsDetailsRequest::setEndTime)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListBackupsDetailsRequest::getXLanguage, ListBackupsDetailsRequest::setXLanguage)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listBindedEips = genForListBindedEips(); @@ -1345,6 +1607,121 @@ private static HttpRequestDef listDatabaseInstances = + genForListDatabaseInstances(); + + private static HttpRequestDef genForListDatabaseInstances() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ListDatabaseInstancesRequest.class, ListDatabaseInstancesResponse.class) + .withName("ListDatabaseInstances") + .withUri("/v3.3/{project_id}/instances") + .withContentType("application/json"); + + // requests + builder.withRequestField("id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDatabaseInstancesRequest::getId, ListDatabaseInstancesRequest::setId)); + builder.withRequestField("name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDatabaseInstancesRequest::getName, ListDatabaseInstancesRequest::setName)); + builder.withRequestField("type", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ListDatabaseInstancesRequest.TypeEnum.class), + f -> f.withMarshaller(ListDatabaseInstancesRequest::getType, ListDatabaseInstancesRequest::setType)); + builder.withRequestField("datastore_type", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ListDatabaseInstancesRequest.DatastoreTypeEnum.class), + f -> f.withMarshaller(ListDatabaseInstancesRequest::getDatastoreType, + ListDatabaseInstancesRequest::setDatastoreType)); + builder.withRequestField("vpc_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDatabaseInstancesRequest::getVpcId, ListDatabaseInstancesRequest::setVpcId)); + builder.withRequestField("subnet_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDatabaseInstancesRequest::getSubnetId, + ListDatabaseInstancesRequest::setSubnetId)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListDatabaseInstancesRequest::getOffset, ListDatabaseInstancesRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListDatabaseInstancesRequest::getLimit, ListDatabaseInstancesRequest::setLimit)); + builder.>withRequestField("tags", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(List.class), + f -> f.withMarshaller(ListDatabaseInstancesRequest::getTags, ListDatabaseInstancesRequest::setTags)); + builder.withRequestField("charge_mode", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ListDatabaseInstancesRequest.ChargeModeEnum.class), + f -> f.withMarshaller(ListDatabaseInstancesRequest::getChargeMode, + ListDatabaseInstancesRequest::setChargeMode)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDatabaseInstancesRequest::getXLanguage, + ListDatabaseInstancesRequest::setXLanguage)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listDatabaseRoles = + genForListDatabaseRoles(); + + private static HttpRequestDef genForListDatabaseRoles() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListDatabaseRolesRequest.class, ListDatabaseRolesResponse.class) + .withName("ListDatabaseRoles") + .withUri("/v3.1/{project_id}/instances/{instance_id}/db-role") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDatabaseRolesRequest::getInstanceId, ListDatabaseRolesRequest::setInstanceId)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListDatabaseRolesRequest::getOffset, ListDatabaseRolesRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListDatabaseRolesRequest::getLimit, ListDatabaseRolesRequest::setLimit)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDatabaseRolesRequest::getXLanguage, ListDatabaseRolesRequest::setXLanguage)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listDatabaseSchemas = genForListDatabaseSchemas(); @@ -1450,6 +1827,30 @@ private static HttpRequestDef gen return builder.build(); } + public static final HttpRequestDef listDatastoresDetails = + genForListDatastoresDetails(); + + private static HttpRequestDef genForListDatastoresDetails() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ListDatastoresDetailsRequest.class, ListDatastoresDetailsResponse.class) + .withName("ListDatastoresDetails") + .withUri("/v3.1/{project_id}/datastores") + .withContentType("application/json"); + + // requests + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ListDatastoresDetailsRequest.XLanguageEnum.class), + f -> f.withMarshaller(ListDatastoresDetailsRequest::getXLanguage, + ListDatastoresDetailsRequest::setXLanguage)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listDbBackups = genForListDbBackups(); @@ -1706,6 +2107,54 @@ private static HttpRequestDef genForLis return builder.build(); } + public static final HttpRequestDef listFlavorsDetails = + genForListFlavorsDetails(); + + private static HttpRequestDef genForListFlavorsDetails() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListFlavorsDetailsRequest.class, ListFlavorsDetailsResponse.class) + .withName("ListFlavorsDetails") + .withUri("/v3.2/{project_id}/flavors") + .withContentType("application/json"); + + // requests + builder.withRequestField("version", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListFlavorsDetailsRequest::getVersion, ListFlavorsDetailsRequest::setVersion)); + builder.withRequestField("spec_code", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListFlavorsDetailsRequest::getSpecCode, ListFlavorsDetailsRequest::setSpecCode)); + builder.withRequestField("ha_mode", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListFlavorsDetailsRequest::getHaMode, ListFlavorsDetailsRequest::setHaMode)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListFlavorsDetailsRequest::getLimit, ListFlavorsDetailsRequest::setLimit)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListFlavorsDetailsRequest::getOffset, ListFlavorsDetailsRequest::setOffset)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListFlavorsDetailsRequest::getXLanguage, ListFlavorsDetailsRequest::setXLanguage)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listGaussDbDatastores = genForListGaussDbDatastores(); @@ -2142,6 +2591,45 @@ private static HttpRequestDef listParameterGroupTemplates = + genForListParameterGroupTemplates(); + + private static HttpRequestDef genForListParameterGroupTemplates() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ListParameterGroupTemplatesRequest.class, + ListParameterGroupTemplatesResponse.class) + .withName("ListParameterGroupTemplates") + .withUri("/v3.2/{project_id}/configurations") + .withContentType("application/json"); + + // requests + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListParameterGroupTemplatesRequest::getOffset, + ListParameterGroupTemplatesRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListParameterGroupTemplatesRequest::getLimit, + ListParameterGroupTemplatesRequest::setLimit)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ListParameterGroupTemplatesRequest.XLanguageEnum.class), + f -> f.withMarshaller(ListParameterGroupTemplatesRequest::getXLanguage, + ListParameterGroupTemplatesRequest::setXLanguage)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listPluginExtensions = genForListPluginExtensions(); @@ -2269,6 +2757,51 @@ private static HttpRequestDef listRecycleInstancesDetails = + genForListRecycleInstancesDetails(); + + private static HttpRequestDef genForListRecycleInstancesDetails() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ListRecycleInstancesDetailsRequest.class, + ListRecycleInstancesDetailsResponse.class) + .withName("ListRecycleInstancesDetails") + .withUri("/v3.1/{project_id}/recycle-instances") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListRecycleInstancesDetailsRequest::getInstanceName, + ListRecycleInstancesDetailsRequest::setInstanceName)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListRecycleInstancesDetailsRequest::getOffset, + ListRecycleInstancesDetailsRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListRecycleInstancesDetailsRequest::getLimit, + ListRecycleInstancesDetailsRequest::setLimit)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ListRecycleInstancesDetailsRequest.XLanguageEnum.class), + f -> f.withMarshaller(ListRecycleInstancesDetailsRequest::getXLanguage, + ListRecycleInstancesDetailsRequest::setXLanguage)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listRestorableInstances = genForListRestorableInstances(); @@ -2322,6 +2855,63 @@ private static HttpRequestDef listRestorableInstancesDetails = + genForListRestorableInstancesDetails(); + + private static HttpRequestDef genForListRestorableInstancesDetails() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ListRestorableInstancesDetailsRequest.class, + ListRestorableInstancesDetailsResponse.class) + .withName("ListRestorableInstancesDetails") + .withUri("/v3.1/{project_id}/restorable-instances") + .withContentType("application/json"); + + // requests + builder.withRequestField("source_instance_id", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListRestorableInstancesDetailsRequest::getSourceInstanceId, + ListRestorableInstancesDetailsRequest::setSourceInstanceId)); + builder.withRequestField("backup_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListRestorableInstancesDetailsRequest::getBackupId, + ListRestorableInstancesDetailsRequest::setBackupId)); + builder.withRequestField("restore_time", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListRestorableInstancesDetailsRequest::getRestoreTime, + ListRestorableInstancesDetailsRequest::setRestoreTime)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListRestorableInstancesDetailsRequest::getOffset, + ListRestorableInstancesDetailsRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListRestorableInstancesDetailsRequest::getLimit, + ListRestorableInstancesDetailsRequest::setLimit)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListRestorableInstancesDetailsRequest::getXLanguage, + ListRestorableInstancesDetailsRequest::setXLanguage)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listRestoreTimes = genForListRestoreTimes(); @@ -3242,6 +3832,39 @@ private static HttpRequestDef showInstanceParamGroupDetail = + genForShowInstanceParamGroupDetail(); + + private static HttpRequestDef genForShowInstanceParamGroupDetail() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ShowInstanceParamGroupDetailRequest.class, + ShowInstanceParamGroupDetailResponse.class) + .withName("ShowInstanceParamGroupDetail") + .withUri("/v3.2/{project_id}/instances/{instance_id}/configurations") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowInstanceParamGroupDetailRequest::getInstanceId, + ShowInstanceParamGroupDetailRequest::setInstanceId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowInstanceParamGroupDetailRequest::getXLanguage, + ShowInstanceParamGroupDetailRequest::setXLanguage)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showInstanceSnapshot = genForShowInstanceSnapshot(); @@ -3306,6 +3929,37 @@ private static HttpRequestDef genFo return builder.build(); } + public static final HttpRequestDef showParameterGroupDetail = + genForShowParameterGroupDetail(); + + private static HttpRequestDef genForShowParameterGroupDetail() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, ShowParameterGroupDetailRequest.class, ShowParameterGroupDetailResponse.class) + .withName("ShowParameterGroupDetail") + .withUri("/v3.1/{project_id}/configurations/{config_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("config_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowParameterGroupDetailRequest::getConfigId, + ShowParameterGroupDetailRequest::setConfigId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ShowParameterGroupDetailRequest.XLanguageEnum.class), + f -> f.withMarshaller(ShowParameterGroupDetailRequest::getXLanguage, + ShowParameterGroupDetailRequest::setXLanguage)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showProjectQuotas = genForShowProjectQuotas(); @@ -3386,6 +4040,49 @@ private static HttpRequestDef showSourceInstanceDetail = + genForShowSourceInstanceDetail(); + + private static HttpRequestDef genForShowSourceInstanceDetail() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, ShowSourceInstanceDetailRequest.class, ShowSourceInstanceDetailResponse.class) + .withName("ShowSourceInstanceDetail") + .withUri("/v3.1/{project_id}/instance-snapshot") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowSourceInstanceDetailRequest::getInstanceId, + ShowSourceInstanceDetailRequest::setInstanceId)); + builder.withRequestField("restore_time", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowSourceInstanceDetailRequest::getRestoreTime, + ShowSourceInstanceDetailRequest::setRestoreTime)); + builder.withRequestField("backup_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowSourceInstanceDetailRequest::getBackupId, + ShowSourceInstanceDetailRequest::setBackupId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ShowSourceInstanceDetailRequest.XLanguageEnum.class), + f -> f.withMarshaller(ShowSourceInstanceDetailRequest::getXLanguage, + ShowSourceInstanceDetailRequest::setXLanguage)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showSslCertDownloadLink = genForShowSslCertDownloadLink(); @@ -3449,6 +4146,39 @@ private static HttpRequestDef showUpgradeCandidateVersionsDetails = + genForShowUpgradeCandidateVersionsDetails(); + + private static HttpRequestDef genForShowUpgradeCandidateVersionsDetails() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ShowUpgradeCandidateVersionsDetailsRequest.class, + ShowUpgradeCandidateVersionsDetailsResponse.class) + .withName("ShowUpgradeCandidateVersionsDetails") + .withUri("/v3.1/{project_id}/instances/{instance_id}/db-upgrade/candidate-versions") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowUpgradeCandidateVersionsDetailsRequest::getInstanceId, + ShowUpgradeCandidateVersionsDetailsRequest::setInstanceId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ShowUpgradeCandidateVersionsDetailsRequest.XLanguageEnum.class), + f -> f.withMarshaller(ShowUpgradeCandidateVersionsDetailsRequest::getXLanguage, + ShowUpgradeCandidateVersionsDetailsRequest::setXLanguage)); + + // response + + return builder.build(); + } + public static final HttpRequestDef startInstance = genForStartInstance(); @@ -4106,6 +4836,29 @@ private static HttpRequestDef genFo return builder.build(); } + public static final HttpRequestDef syncLimitData = + genForSyncLimitData(); + + private static HttpRequestDef genForSyncLimitData() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, SyncLimitDataRequest.class, SyncLimitDataResponse.class) + .withName("SyncLimitData") + .withUri("/v3/{project_id}/instances/{instance_id}/sync-limit-task") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(SyncLimitDataRequest::getInstanceId, SyncLimitDataRequest::setInstanceId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef updateLimitTask = genForUpdateLimitTask(); diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/AllowDbRolePrivilegesRequest.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/AllowDbRolePrivilegesRequest.java new file mode 100644 index 0000000000..5538a3c03d --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/AllowDbRolePrivilegesRequest.java @@ -0,0 +1,131 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class AllowDbRolePrivilegesRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private AllowDbRolePrivilegesRequestBody body; + + public AllowDbRolePrivilegesRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 语言 + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + + public AllowDbRolePrivilegesRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public AllowDbRolePrivilegesRequest withBody(AllowDbRolePrivilegesRequestBody body) { + this.body = body; + return this; + } + + public AllowDbRolePrivilegesRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new AllowDbRolePrivilegesRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public AllowDbRolePrivilegesRequestBody getBody() { + return body; + } + + public void setBody(AllowDbRolePrivilegesRequestBody 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; + } + AllowDbRolePrivilegesRequest that = (AllowDbRolePrivilegesRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, instanceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AllowDbRolePrivilegesRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/AllowDbRolePrivilegesRequestBody.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/AllowDbRolePrivilegesRequestBody.java new file mode 100644 index 0000000000..b73264f32d --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/AllowDbRolePrivilegesRequestBody.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 授权数据库角色。 + */ +public class AllowDbRolePrivilegesRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "db_name") + + private String dbName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "user") + + private Object user; + + public AllowDbRolePrivilegesRequestBody withDbName(String dbName) { + this.dbName = dbName; + return this; + } + + /** + * 数据库名称。 不能使用模板库,且是已存在的数据库名称。 模板库包括postgres, template0 ,template1,templatea,template_pdb,templatem。 + * @return dbName + */ + public String getDbName() { + return dbName; + } + + public void setDbName(String dbName) { + this.dbName = dbName; + } + + public AllowDbRolePrivilegesRequestBody withUser(Object user) { + this.user = user; + return this; + } + + /** + * 角色权限信息。 + * @return user + */ + public Object getUser() { + return user; + } + + public void setUser(Object user) { + this.user = user; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AllowDbRolePrivilegesRequestBody that = (AllowDbRolePrivilegesRequestBody) obj; + return Objects.equals(this.dbName, that.dbName) && Objects.equals(this.user, that.user); + } + + @Override + public int hashCode() { + return Objects.hash(dbName, user); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AllowDbRolePrivilegesRequestBody {\n"); + sb.append(" dbName: ").append(toIndentedString(dbName)).append("\n"); + sb.append(" user: ").append(toIndentedString(user)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/AllowDbRolePrivilegesResponse.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/AllowDbRolePrivilegesResponse.java new file mode 100644 index 0000000000..7ca39048d2 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/AllowDbRolePrivilegesResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class AllowDbRolePrivilegesResponse 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 AllowDbRolePrivilegesResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/BatchShowUpgradeCandidateVersionsRequest.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/BatchShowUpgradeCandidateVersionsRequest.java new file mode 100644 index 0000000000..dda427e93e --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/BatchShowUpgradeCandidateVersionsRequest.java @@ -0,0 +1,182 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class BatchShowUpgradeCandidateVersionsRequest { + + /** + * 语言[zh-cn, en-us]。 + */ + public static final class XLanguageEnum { + + /** + * Enum ZH_CN for value: "zh-cn" + */ + public static final XLanguageEnum ZH_CN = new XLanguageEnum("zh-cn"); + + /** + * Enum EN_US for value: "en-us" + */ + public static final XLanguageEnum EN_US = new XLanguageEnum("en-us"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("zh-cn", ZH_CN); + map.put("en-us", EN_US); + return Collections.unmodifiableMap(map); + } + + private String value; + + XLanguageEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static XLanguageEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new XLanguageEnum(value)); + } + + public static XLanguageEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof XLanguageEnum) { + return this.value.equals(((XLanguageEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private XLanguageEnum xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpgradeInstancesRequestBody body; + + public BatchShowUpgradeCandidateVersionsRequest withXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 语言[zh-cn, en-us]。 + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public XLanguageEnum getXLanguage() { + return xLanguage; + } + + public void setXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + } + + public BatchShowUpgradeCandidateVersionsRequest withBody(UpgradeInstancesRequestBody body) { + this.body = body; + return this; + } + + public BatchShowUpgradeCandidateVersionsRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpgradeInstancesRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpgradeInstancesRequestBody getBody() { + return body; + } + + public void setBody(UpgradeInstancesRequestBody 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; + } + BatchShowUpgradeCandidateVersionsRequest that = (BatchShowUpgradeCandidateVersionsRequest) 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 BatchShowUpgradeCandidateVersionsRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/BatchShowUpgradeCandidateVersionsResponse.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/BatchShowUpgradeCandidateVersionsResponse.java new file mode 100644 index 0000000000..7e08d97a11 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/BatchShowUpgradeCandidateVersionsResponse.java @@ -0,0 +1,246 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class BatchShowUpgradeCandidateVersionsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "upgrade_type_list") + + private List upgradeTypeList = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_version") + + private String targetVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "upgrade_candidate_versions") + + private List upgradeCandidateVersions = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hotfix_upgrade_infos") + + private List hotfixUpgradeInfos = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hotfix_rollback_infos") + + private List hotfixRollbackInfos = null; + + public BatchShowUpgradeCandidateVersionsResponse withUpgradeTypeList(List upgradeTypeList) { + this.upgradeTypeList = upgradeTypeList; + return this; + } + + public BatchShowUpgradeCandidateVersionsResponse addUpgradeTypeListItem(UpgradeTypeInfo upgradeTypeListItem) { + if (this.upgradeTypeList == null) { + this.upgradeTypeList = new ArrayList<>(); + } + this.upgradeTypeList.add(upgradeTypeListItem); + return this; + } + + public BatchShowUpgradeCandidateVersionsResponse withUpgradeTypeList( + Consumer> upgradeTypeListSetter) { + if (this.upgradeTypeList == null) { + this.upgradeTypeList = new ArrayList<>(); + } + upgradeTypeListSetter.accept(this.upgradeTypeList); + return this; + } + + /** + * 升级类型信息列表。 + * @return upgradeTypeList + */ + public List getUpgradeTypeList() { + return upgradeTypeList; + } + + public void setUpgradeTypeList(List upgradeTypeList) { + this.upgradeTypeList = upgradeTypeList; + } + + public BatchShowUpgradeCandidateVersionsResponse withTargetVersion(String targetVersion) { + this.targetVersion = targetVersion; + return this; + } + + /** + * 升级目标版本,没有在滚动升级中返回null。 + * @return targetVersion + */ + public String getTargetVersion() { + return targetVersion; + } + + public void setTargetVersion(String targetVersion) { + this.targetVersion = targetVersion; + } + + public BatchShowUpgradeCandidateVersionsResponse withUpgradeCandidateVersions( + List upgradeCandidateVersions) { + this.upgradeCandidateVersions = upgradeCandidateVersions; + return this; + } + + public BatchShowUpgradeCandidateVersionsResponse addUpgradeCandidateVersionsItem( + String upgradeCandidateVersionsItem) { + if (this.upgradeCandidateVersions == null) { + this.upgradeCandidateVersions = new ArrayList<>(); + } + this.upgradeCandidateVersions.add(upgradeCandidateVersionsItem); + return this; + } + + public BatchShowUpgradeCandidateVersionsResponse withUpgradeCandidateVersions( + Consumer> upgradeCandidateVersionsSetter) { + if (this.upgradeCandidateVersions == null) { + this.upgradeCandidateVersions = new ArrayList<>(); + } + upgradeCandidateVersionsSetter.accept(this.upgradeCandidateVersions); + return this; + } + + /** + * 可以升级的版本,包括大小版本。 + * @return upgradeCandidateVersions + */ + public List getUpgradeCandidateVersions() { + return upgradeCandidateVersions; + } + + public void setUpgradeCandidateVersions(List upgradeCandidateVersions) { + this.upgradeCandidateVersions = upgradeCandidateVersions; + } + + public BatchShowUpgradeCandidateVersionsResponse withHotfixUpgradeInfos(List hotfixUpgradeInfos) { + this.hotfixUpgradeInfos = hotfixUpgradeInfos; + return this; + } + + public BatchShowUpgradeCandidateVersionsResponse addHotfixUpgradeInfosItem( + HotfixInfoResult hotfixUpgradeInfosItem) { + if (this.hotfixUpgradeInfos == null) { + this.hotfixUpgradeInfos = new ArrayList<>(); + } + this.hotfixUpgradeInfos.add(hotfixUpgradeInfosItem); + return this; + } + + public BatchShowUpgradeCandidateVersionsResponse withHotfixUpgradeInfos( + Consumer> hotfixUpgradeInfosSetter) { + if (this.hotfixUpgradeInfos == null) { + this.hotfixUpgradeInfos = new ArrayList<>(); + } + hotfixUpgradeInfosSetter.accept(this.hotfixUpgradeInfos); + return this; + } + + /** + * 可以升级的热补丁信息。 + * @return hotfixUpgradeInfos + */ + public List getHotfixUpgradeInfos() { + return hotfixUpgradeInfos; + } + + public void setHotfixUpgradeInfos(List hotfixUpgradeInfos) { + this.hotfixUpgradeInfos = hotfixUpgradeInfos; + } + + public BatchShowUpgradeCandidateVersionsResponse withHotfixRollbackInfos( + List hotfixRollbackInfos) { + this.hotfixRollbackInfos = hotfixRollbackInfos; + return this; + } + + public BatchShowUpgradeCandidateVersionsResponse addHotfixRollbackInfosItem( + HotfixInfoResult hotfixRollbackInfosItem) { + if (this.hotfixRollbackInfos == null) { + this.hotfixRollbackInfos = new ArrayList<>(); + } + this.hotfixRollbackInfos.add(hotfixRollbackInfosItem); + return this; + } + + public BatchShowUpgradeCandidateVersionsResponse withHotfixRollbackInfos( + Consumer> hotfixRollbackInfosSetter) { + if (this.hotfixRollbackInfos == null) { + this.hotfixRollbackInfos = new ArrayList<>(); + } + hotfixRollbackInfosSetter.accept(this.hotfixRollbackInfos); + return this; + } + + /** + * 可以回滚的热补丁信息。 + * @return hotfixRollbackInfos + */ + public List getHotfixRollbackInfos() { + return hotfixRollbackInfos; + } + + public void setHotfixRollbackInfos(List hotfixRollbackInfos) { + this.hotfixRollbackInfos = hotfixRollbackInfos; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchShowUpgradeCandidateVersionsResponse that = (BatchShowUpgradeCandidateVersionsResponse) obj; + return Objects.equals(this.upgradeTypeList, that.upgradeTypeList) + && Objects.equals(this.targetVersion, that.targetVersion) + && Objects.equals(this.upgradeCandidateVersions, that.upgradeCandidateVersions) + && Objects.equals(this.hotfixUpgradeInfos, that.hotfixUpgradeInfos) + && Objects.equals(this.hotfixRollbackInfos, that.hotfixRollbackInfos); + } + + @Override + public int hashCode() { + return Objects + .hash(upgradeTypeList, targetVersion, upgradeCandidateVersions, hotfixUpgradeInfos, hotfixRollbackInfos); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchShowUpgradeCandidateVersionsResponse {\n"); + sb.append(" upgradeTypeList: ").append(toIndentedString(upgradeTypeList)).append("\n"); + sb.append(" targetVersion: ").append(toIndentedString(targetVersion)).append("\n"); + sb.append(" upgradeCandidateVersions: ").append(toIndentedString(upgradeCandidateVersions)).append("\n"); + sb.append(" hotfixUpgradeInfos: ").append(toIndentedString(hotfixUpgradeInfos)).append("\n"); + sb.append(" hotfixRollbackInfos: ").append(toIndentedString(hotfixRollbackInfos)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CanBeRollbackedHotfixDetail.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CanBeRollbackedHotfixDetail.java new file mode 100644 index 0000000000..afafc7a14e --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CanBeRollbackedHotfixDetail.java @@ -0,0 +1,143 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 可以回退的热补丁信息。 + */ +public class CanBeRollbackedHotfixDetail { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version") + + private String version; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "common_patch") + + private String commonPatch; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "backup_sensitive") + + private Boolean backupSensitive; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "descripition") + + private String descripition; + + public CanBeRollbackedHotfixDetail withVersion(String version) { + this.version = version; + return this; + } + + /** + * 热补丁版本。 + * @return version + */ + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public CanBeRollbackedHotfixDetail withCommonPatch(String commonPatch) { + this.commonPatch = commonPatch; + return this; + } + + /** + * 通用/非通用补丁信息。 枚举值: \"common\": 通用补丁。 \"certain\": 定制补丁。 + * @return commonPatch + */ + public String getCommonPatch() { + return commonPatch; + } + + public void setCommonPatch(String commonPatch) { + this.commonPatch = commonPatch; + } + + public CanBeRollbackedHotfixDetail withBackupSensitive(Boolean backupSensitive) { + this.backupSensitive = backupSensitive; + return this; + } + + /** + * 是否和备份相关。 + * @return backupSensitive + */ + public Boolean getBackupSensitive() { + return backupSensitive; + } + + public void setBackupSensitive(Boolean backupSensitive) { + this.backupSensitive = backupSensitive; + } + + public CanBeRollbackedHotfixDetail withDescripition(String descripition) { + this.descripition = descripition; + return this; + } + + /** + * 补丁的描述信息。 + * @return descripition + */ + public String getDescripition() { + return descripition; + } + + public void setDescripition(String descripition) { + this.descripition = descripition; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CanBeRollbackedHotfixDetail that = (CanBeRollbackedHotfixDetail) obj; + return Objects.equals(this.version, that.version) && Objects.equals(this.commonPatch, that.commonPatch) + && Objects.equals(this.backupSensitive, that.backupSensitive) + && Objects.equals(this.descripition, that.descripition); + } + + @Override + public int hashCode() { + return Objects.hash(version, commonPatch, backupSensitive, descripition); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CanBeRollbackedHotfixDetail {\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" commonPatch: ").append(toIndentedString(commonPatch)).append("\n"); + sb.append(" backupSensitive: ").append(toIndentedString(backupSensitive)).append("\n"); + sb.append(" descripition: ").append(toIndentedString(descripition)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CanBeUpgradedHotfixDetail.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CanBeUpgradedHotfixDetail.java new file mode 100644 index 0000000000..d8827ea714 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CanBeUpgradedHotfixDetail.java @@ -0,0 +1,143 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 可以升级的热补丁信息。 + */ +public class CanBeUpgradedHotfixDetail { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version") + + private String version; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "common_patch") + + private String commonPatch; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "backup_sensitive") + + private Boolean backupSensitive; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "descripition") + + private String descripition; + + public CanBeUpgradedHotfixDetail withVersion(String version) { + this.version = version; + return this; + } + + /** + * 热补丁版本。 + * @return version + */ + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public CanBeUpgradedHotfixDetail withCommonPatch(String commonPatch) { + this.commonPatch = commonPatch; + return this; + } + + /** + * 通用/非通用补丁信息。 枚举值: \"common\": 通用补丁。 \"certain\": 定制补丁。 + * @return commonPatch + */ + public String getCommonPatch() { + return commonPatch; + } + + public void setCommonPatch(String commonPatch) { + this.commonPatch = commonPatch; + } + + public CanBeUpgradedHotfixDetail withBackupSensitive(Boolean backupSensitive) { + this.backupSensitive = backupSensitive; + return this; + } + + /** + * 是否和备份相关。 + * @return backupSensitive + */ + public Boolean getBackupSensitive() { + return backupSensitive; + } + + public void setBackupSensitive(Boolean backupSensitive) { + this.backupSensitive = backupSensitive; + } + + public CanBeUpgradedHotfixDetail withDescripition(String descripition) { + this.descripition = descripition; + return this; + } + + /** + * 补丁的描述信息。 + * @return descripition + */ + public String getDescripition() { + return descripition; + } + + public void setDescripition(String descripition) { + this.descripition = descripition; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CanBeUpgradedHotfixDetail that = (CanBeUpgradedHotfixDetail) obj; + return Objects.equals(this.version, that.version) && Objects.equals(this.commonPatch, that.commonPatch) + && Objects.equals(this.backupSensitive, that.backupSensitive) + && Objects.equals(this.descripition, that.descripition); + } + + @Override + public int hashCode() { + return Objects.hash(version, commonPatch, backupSensitive, descripition); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CanBeUpgradedHotfixDetail {\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" commonPatch: ").append(toIndentedString(commonPatch)).append("\n"); + sb.append(" backupSensitive: ").append(toIndentedString(backupSensitive)).append("\n"); + sb.append(" descripition: ").append(toIndentedString(descripition)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ConfigurationsResult.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ConfigurationsResult.java new file mode 100644 index 0000000000..e86f656b63 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ConfigurationsResult.java @@ -0,0 +1,262 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 参数模板信息。 + */ +public class ConfigurationsResult { + + @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 = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "datastore_version") + + private String datastoreVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "datastore_name") + + private String datastoreName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ha_mode") + + private String haMode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "created") + + private String created; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "updated") + + private String updated; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "user_defined") + + private Boolean userDefined; + + public ConfigurationsResult 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 ConfigurationsResult withName(String name) { + this.name = name; + return this; + } + + /** + * 参数组名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ConfigurationsResult withDescription(String description) { + this.description = description; + return this; + } + + /** + * 参数组描述。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ConfigurationsResult withDatastoreVersion(String datastoreVersion) { + this.datastoreVersion = datastoreVersion; + return this; + } + + /** + * 引擎版本。 + * @return datastoreVersion + */ + public String getDatastoreVersion() { + return datastoreVersion; + } + + public void setDatastoreVersion(String datastoreVersion) { + this.datastoreVersion = datastoreVersion; + } + + public ConfigurationsResult withDatastoreName(String datastoreName) { + this.datastoreName = datastoreName; + return this; + } + + /** + * 引擎名称。 + * @return datastoreName + */ + public String getDatastoreName() { + return datastoreName; + } + + public void setDatastoreName(String datastoreName) { + this.datastoreName = datastoreName; + } + + public ConfigurationsResult withHaMode(String haMode) { + this.haMode = haMode; + return this; + } + + /** + * 实例类型。 + * @return haMode + */ + public String getHaMode() { + return haMode; + } + + public void setHaMode(String haMode) { + this.haMode = haMode; + } + + public ConfigurationsResult withCreated(String created) { + this.created = created; + return this; + } + + /** + * 创建时间,格式为\"yyyy-MM-dd HH:mm:ss\"。 + * @return created + */ + public String getCreated() { + return created; + } + + public void setCreated(String created) { + this.created = created; + } + + public ConfigurationsResult withUpdated(String updated) { + this.updated = updated; + return this; + } + + /** + * 更新时间,格式为\"yyyy-MM-dd HH:mm:ss\"。 + * @return updated + */ + public String getUpdated() { + return updated; + } + + public void setUpdated(String updated) { + this.updated = updated; + } + + public ConfigurationsResult withUserDefined(Boolean userDefined) { + this.userDefined = userDefined; + return this; + } + + /** + * 是否是用户自定义参数模板: - false,表示为系统默认参数模板。 - true,表示为用户自定义参数模板。 + * @return userDefined + */ + public Boolean getUserDefined() { + return userDefined; + } + + public void setUserDefined(Boolean userDefined) { + this.userDefined = userDefined; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ConfigurationsResult that = (ConfigurationsResult) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.description, that.description) + && Objects.equals(this.datastoreVersion, that.datastoreVersion) + && Objects.equals(this.datastoreName, that.datastoreName) && Objects.equals(this.haMode, that.haMode) + && Objects.equals(this.created, that.created) && Objects.equals(this.updated, that.updated) + && Objects.equals(this.userDefined, that.userDefined); + } + + @Override + public int hashCode() { + return Objects + .hash(id, name, description, datastoreVersion, datastoreName, haMode, created, updated, userDefined); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConfigurationsResult {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" datastoreVersion: ").append(toIndentedString(datastoreVersion)).append("\n"); + sb.append(" datastoreName: ").append(toIndentedString(datastoreName)).append("\n"); + sb.append(" haMode: ").append(toIndentedString(haMode)).append("\n"); + sb.append(" created: ").append(toIndentedString(created)).append("\n"); + sb.append(" updated: ").append(toIndentedString(updated)).append("\n"); + sb.append(" userDefined: ").append(toIndentedString(userDefined)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDatabaseInstanceRequest.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDatabaseInstanceRequest.java new file mode 100644 index 0000000000..71d97dee6a --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDatabaseInstanceRequest.java @@ -0,0 +1,107 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CreateDatabaseInstanceRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateDatabaseInstanceRequestBody body; + + public CreateDatabaseInstanceRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 语言 + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + + public CreateDatabaseInstanceRequest withBody(CreateDatabaseInstanceRequestBody body) { + this.body = body; + return this; + } + + public CreateDatabaseInstanceRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateDatabaseInstanceRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateDatabaseInstanceRequestBody getBody() { + return body; + } + + public void setBody(CreateDatabaseInstanceRequestBody 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; + } + CreateDatabaseInstanceRequest that = (CreateDatabaseInstanceRequest) 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 CreateDatabaseInstanceRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDatabaseInstanceRequestBody.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDatabaseInstanceRequestBody.java new file mode 100644 index 0000000000..c3aadf85ef --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDatabaseInstanceRequestBody.java @@ -0,0 +1,731 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 实例信息 + */ +public class CreateDatabaseInstanceRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "datastore") + + private CreateInstanceDatastoreOption datastore; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ha") + + private OpenGaussHaOption ha; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "configuration_id") + + private String configurationId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "port") + + private String port; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "password") + + private String password; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "backup_strategy") + + private OpenGaussBackupStrategy backupStrategy; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private String enterpriseProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "disk_encryption_id") + + private String diskEncryptionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flavor_ref") + + private String flavorRef; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "volume") + + private OpenGaussVolume volume; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "region") + + private String region; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "availability_zone") + + private String availabilityZone; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "vpc_id") + + private String vpcId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "subnet_id") + + private String subnetId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "security_group_id") + + private String securityGroupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "charge_info") + + private OpenGaussChargeInfo chargeInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "time_zone") + + private String timeZone; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sharding_num") + + private Integer shardingNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "coordinator_num") + + private Integer coordinatorNum; + + /** + * 实例副本数,支持取值3。不填默认为3。仅支持V2.0-1.3.0及以上版本的实例。 + */ + public static final class ReplicaNumEnum { + + /** + * Enum NUMBER_3 for value: 3 + */ + public static final ReplicaNumEnum NUMBER_3 = new ReplicaNumEnum(3); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put(3, NUMBER_3); + return Collections.unmodifiableMap(map); + } + + private Integer value; + + ReplicaNumEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ReplicaNumEnum fromValue(Integer value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ReplicaNumEnum(value)); + } + + public static ReplicaNumEnum valueOf(Integer value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof ReplicaNumEnum) { + return this.value.equals(((ReplicaNumEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "replica_num") + + private ReplicaNumEnum replicaNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enable_force_switch") + + private Boolean enableForceSwitch; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enable_single_float_ip") + + private Boolean enableSingleFloatIp; + + public CreateDatabaseInstanceRequestBody withName(String name) { + this.name = name; + return this; + } + + /** + * 实例名称。 用于表示实例的名称,同一租户下,同类型的实例名可重名。 取值范围:4~64个字符之间,必须以字母开头,区分大小写,可以包含字母、数字、中划线或者下划线,不能包含其他的特殊字符。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateDatabaseInstanceRequestBody withDatastore(CreateInstanceDatastoreOption datastore) { + this.datastore = datastore; + return this; + } + + public CreateDatabaseInstanceRequestBody withDatastore(Consumer datastoreSetter) { + if (this.datastore == null) { + this.datastore = new CreateInstanceDatastoreOption(); + datastoreSetter.accept(this.datastore); + } + + return this; + } + + /** + * Get datastore + * @return datastore + */ + public CreateInstanceDatastoreOption getDatastore() { + return datastore; + } + + public void setDatastore(CreateInstanceDatastoreOption datastore) { + this.datastore = datastore; + } + + public CreateDatabaseInstanceRequestBody withHa(OpenGaussHaOption ha) { + this.ha = ha; + return this; + } + + public CreateDatabaseInstanceRequestBody withHa(Consumer haSetter) { + if (this.ha == null) { + this.ha = new OpenGaussHaOption(); + haSetter.accept(this.ha); + } + + return this; + } + + /** + * Get ha + * @return ha + */ + public OpenGaussHaOption getHa() { + return ha; + } + + public void setHa(OpenGaussHaOption ha) { + this.ha = ha; + } + + public CreateDatabaseInstanceRequestBody withConfigurationId(String configurationId) { + this.configurationId = configurationId; + return this; + } + + /** + * 参数模板ID。当不传该参数时,使用系统默认的参数模板。 + * @return configurationId + */ + public String getConfigurationId() { + return configurationId; + } + + public void setConfigurationId(String configurationId) { + this.configurationId = configurationId; + } + + public CreateDatabaseInstanceRequestBody withPort(String port) { + this.port = port; + return this; + } + + /** + * 数据库对外开放的端口,不填默认为8000,可选范围为:1024-39998。限制端口: 2378,2379,2380,4999,5000,5999,6000,6001,8097,8098,12016,12017,20049,20050,21731,21732,32122,32123,32124。 - GaussDB数据库端口当前只支持设置为8000,当不传该参数时,默认端口为8000。 + * @return port + */ + public String getPort() { + return port; + } + + public void setPort(String port) { + this.port = port; + } + + public CreateDatabaseInstanceRequestBody withPassword(String password) { + this.password = password; + return this; + } + + /** + * 数据库密码。必选。 取值范围: '非空; 至少包含大写字母(A-Z),小写字母(a-z),数字(0-9),非字母数字字符(限定为~!@#%^*-_=+?,)四类字符中的三类字符;长度8~32个字符。' '建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。' + * @return password + */ + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public CreateDatabaseInstanceRequestBody withBackupStrategy(OpenGaussBackupStrategy backupStrategy) { + this.backupStrategy = backupStrategy; + return this; + } + + public CreateDatabaseInstanceRequestBody withBackupStrategy( + Consumer backupStrategySetter) { + if (this.backupStrategy == null) { + this.backupStrategy = new OpenGaussBackupStrategy(); + backupStrategySetter.accept(this.backupStrategy); + } + + return this; + } + + /** + * Get backupStrategy + * @return backupStrategy + */ + public OpenGaussBackupStrategy getBackupStrategy() { + return backupStrategy; + } + + public void setBackupStrategy(OpenGaussBackupStrategy backupStrategy) { + this.backupStrategy = backupStrategy; + } + + public CreateDatabaseInstanceRequestBody withEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + return this; + } + + /** + * 企业项目ID。只有企业租户时该参数才生效。 使用请参考《企业管理 API参考》的“[查询企业项目列表](https://support.huaweicloud.com/api-em/zh-cn_topic_0121230880.html)”响应消息表“enterprise_project字段数据结构说明”的“id”。 + * @return enterpriseProjectId + */ + public String getEnterpriseProjectId() { + return enterpriseProjectId; + } + + public void setEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + } + + public CreateDatabaseInstanceRequestBody withDiskEncryptionId(String diskEncryptionId) { + this.diskEncryptionId = diskEncryptionId; + return this; + } + + /** + * 用于磁盘加密的密钥ID,默认为空。 + * @return diskEncryptionId + */ + public String getDiskEncryptionId() { + return diskEncryptionId; + } + + public void setDiskEncryptionId(String diskEncryptionId) { + this.diskEncryptionId = diskEncryptionId; + } + + public CreateDatabaseInstanceRequestBody withFlavorRef(String flavorRef) { + this.flavorRef = flavorRef; + return this; + } + + /** + * 规格码,取值范围:非空。参考[表1](https://support.huaweicloud.com/api-opengauss/opengauss_api_0037.html#opengauss_api_0037__ted9b9d433c8a4c52884e199e17f94479)中GaussDB的“规格编码”列内容获取。 + * @return flavorRef + */ + public String getFlavorRef() { + return flavorRef; + } + + public void setFlavorRef(String flavorRef) { + this.flavorRef = flavorRef; + } + + public CreateDatabaseInstanceRequestBody withVolume(OpenGaussVolume volume) { + this.volume = volume; + return this; + } + + public CreateDatabaseInstanceRequestBody withVolume(Consumer volumeSetter) { + if (this.volume == null) { + this.volume = new OpenGaussVolume(); + volumeSetter.accept(this.volume); + } + + return this; + } + + /** + * Get volume + * @return volume + */ + public OpenGaussVolume getVolume() { + return volume; + } + + public void setVolume(OpenGaussVolume volume) { + this.volume = volume; + } + + public CreateDatabaseInstanceRequestBody withRegion(String region) { + this.region = region; + return this; + } + + /** + * 区域ID。 取值范围:非空,请参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + * @return region + */ + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public CreateDatabaseInstanceRequestBody withAvailabilityZone(String availabilityZone) { + this.availabilityZone = availabilityZone; + return this; + } + + /** + * 可用区ID。 GaussDB取值范围:非空,可选部署在同一可用区或三个不同可用区,可用区之间用逗号隔开。详见示例。 - 部署在同一可用区:需要输入三个相同的可用区。例如:部署在“cn-north-4a”可用区,则需要在此处输入\"cn-north-4a,cn-north-4a,cn-north-4a\"。 - 部署在三个不同可用区:需要分别输入三个不同的可用区。 取值范围:非空,请参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + * @return availabilityZone + */ + public String getAvailabilityZone() { + return availabilityZone; + } + + public void setAvailabilityZone(String availabilityZone) { + this.availabilityZone = availabilityZone; + } + + public CreateDatabaseInstanceRequestBody withVpcId(String vpcId) { + this.vpcId = vpcId; + return this; + } + + /** + * 虚拟私有云ID,获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)。 + * @return vpcId + */ + public String getVpcId() { + return vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public CreateDatabaseInstanceRequestBody withSubnetId(String subnetId) { + this.subnetId = subnetId; + return this; + } + + /** + * 子网的网络ID信息,获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找网络ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。 + * @return subnetId + */ + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public CreateDatabaseInstanceRequestBody withSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + return this; + } + + /** + * 指定实例所属的安全组。如果不需要指定安全组,请联系客服申请白名单。 - 方法1:登录虚拟私有云服务的控制台界面,在安全组的详情页面查找安全组ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询安全组列表](https://support.huaweicloud.com/api-vpc/vpc_sg01_0003.html)。 + * @return securityGroupId + */ + public String getSecurityGroupId() { + return securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public CreateDatabaseInstanceRequestBody withChargeInfo(OpenGaussChargeInfo chargeInfo) { + this.chargeInfo = chargeInfo; + return this; + } + + public CreateDatabaseInstanceRequestBody withChargeInfo(Consumer chargeInfoSetter) { + if (this.chargeInfo == null) { + this.chargeInfo = new OpenGaussChargeInfo(); + chargeInfoSetter.accept(this.chargeInfo); + } + + return this; + } + + /** + * Get chargeInfo + * @return chargeInfo + */ + public OpenGaussChargeInfo getChargeInfo() { + return chargeInfo; + } + + public void setChargeInfo(OpenGaussChargeInfo chargeInfo) { + this.chargeInfo = chargeInfo; + } + + public CreateDatabaseInstanceRequestBody withTimeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * UTC时区。 - 不选择时,GaussDB国内站、默认为UTC时间。 - 选择填写时,取值范围为UTC-12:00~UTC+12:00,且只支持整段时间,如UTC+08:00,不支持UTC+08:30。 + * @return timeZone + */ + public String getTimeZone() { + return timeZone; + } + + public void setTimeZone(String timeZone) { + this.timeZone = timeZone; + } + + public CreateDatabaseInstanceRequestBody withShardingNum(Integer shardingNum) { + this.shardingNum = shardingNum; + return this; + } + + /** + * 仅分布式形态需要填写该参数。分片数量,取值范围1~9。 + * @return shardingNum + */ + public Integer getShardingNum() { + return shardingNum; + } + + public void setShardingNum(Integer shardingNum) { + this.shardingNum = shardingNum; + } + + public CreateDatabaseInstanceRequestBody withCoordinatorNum(Integer coordinatorNum) { + this.coordinatorNum = coordinatorNum; + return this; + } + + /** + * 仅分布式形态需要填写该参数。协调节点数量,取值范围1~9。CN数量必须小于或等于两倍的分片数。 + * @return coordinatorNum + */ + public Integer getCoordinatorNum() { + return coordinatorNum; + } + + public void setCoordinatorNum(Integer coordinatorNum) { + this.coordinatorNum = coordinatorNum; + } + + public CreateDatabaseInstanceRequestBody withReplicaNum(ReplicaNumEnum replicaNum) { + this.replicaNum = replicaNum; + return this; + } + + /** + * 实例副本数,支持取值3。不填默认为3。仅支持V2.0-1.3.0及以上版本的实例。 + * @return replicaNum + */ + public ReplicaNumEnum getReplicaNum() { + return replicaNum; + } + + public void setReplicaNum(ReplicaNumEnum replicaNum) { + this.replicaNum = replicaNum; + } + + public CreateDatabaseInstanceRequestBody withEnableForceSwitch(Boolean enableForceSwitch) { + this.enableForceSwitch = enableForceSwitch; + return this; + } + + /** + * enable_force_switch表示是否开启备机强升主功能,enable_force_switch=true表示开启备机强升主功能,enable_force_switch=false表示关闭,默认关闭。仅支持V2.0-1.2.2及以上版本。 说明: 备机强升主功能适用场景:在主机发生故障后,为了保障集群的可用性,强制拉起备机作为新主机对外提供服务的场景。 本功能在集群故障状态下,以丢失部分数据为代价换取集群尽可能快的恢复服务。本功能是集群状态为不可用时的一个逃生方法,如果操作者不清楚备机强升后丢失数据对业务的影响,请勿使用本功能。 备机强升主相关介绍请参考《故障处理》备机强升主章节。 + * @return enableForceSwitch + */ + public Boolean getEnableForceSwitch() { + return enableForceSwitch; + } + + public void setEnableForceSwitch(Boolean enableForceSwitch) { + this.enableForceSwitch = enableForceSwitch; + } + + public CreateDatabaseInstanceRequestBody withEnableSingleFloatIp(Boolean enableSingleFloatIp) { + this.enableSingleFloatIp = enableSingleFloatIp; + return this; + } + + /** + * 单浮动IP策略,仅主备版支持。默认值是false,表示不开启单浮动IP策略。 取值范围: true:开启单浮动IP策略,实例将只有一个浮动IP绑定主节点,如果发生主备倒换,浮动IP不会发生变化。 false:不开启单浮动IP策略,每个节点都会绑定一个浮动IP,如果发生主备倒换,浮动IP会发生变化。 说明: 仅支持V2.0-3.206及以上版本的主备版实例。 + * @return enableSingleFloatIp + */ + public Boolean getEnableSingleFloatIp() { + return enableSingleFloatIp; + } + + public void setEnableSingleFloatIp(Boolean enableSingleFloatIp) { + this.enableSingleFloatIp = enableSingleFloatIp; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateDatabaseInstanceRequestBody that = (CreateDatabaseInstanceRequestBody) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.datastore, that.datastore) + && Objects.equals(this.ha, that.ha) && Objects.equals(this.configurationId, that.configurationId) + && Objects.equals(this.port, that.port) && Objects.equals(this.password, that.password) + && Objects.equals(this.backupStrategy, that.backupStrategy) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) + && Objects.equals(this.diskEncryptionId, that.diskEncryptionId) + && Objects.equals(this.flavorRef, that.flavorRef) && Objects.equals(this.volume, that.volume) + && Objects.equals(this.region, that.region) && Objects.equals(this.availabilityZone, that.availabilityZone) + && Objects.equals(this.vpcId, that.vpcId) && Objects.equals(this.subnetId, that.subnetId) + && Objects.equals(this.securityGroupId, that.securityGroupId) + && Objects.equals(this.chargeInfo, that.chargeInfo) && Objects.equals(this.timeZone, that.timeZone) + && Objects.equals(this.shardingNum, that.shardingNum) + && Objects.equals(this.coordinatorNum, that.coordinatorNum) + && Objects.equals(this.replicaNum, that.replicaNum) + && Objects.equals(this.enableForceSwitch, that.enableForceSwitch) + && Objects.equals(this.enableSingleFloatIp, that.enableSingleFloatIp); + } + + @Override + public int hashCode() { + return Objects.hash(name, + datastore, + ha, + configurationId, + port, + password, + backupStrategy, + enterpriseProjectId, + diskEncryptionId, + flavorRef, + volume, + region, + availabilityZone, + vpcId, + subnetId, + securityGroupId, + chargeInfo, + timeZone, + shardingNum, + coordinatorNum, + replicaNum, + enableForceSwitch, + enableSingleFloatIp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateDatabaseInstanceRequestBody {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" datastore: ").append(toIndentedString(datastore)).append("\n"); + sb.append(" ha: ").append(toIndentedString(ha)).append("\n"); + sb.append(" configurationId: ").append(toIndentedString(configurationId)).append("\n"); + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" backupStrategy: ").append(toIndentedString(backupStrategy)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append(" diskEncryptionId: ").append(toIndentedString(diskEncryptionId)).append("\n"); + sb.append(" flavorRef: ").append(toIndentedString(flavorRef)).append("\n"); + sb.append(" volume: ").append(toIndentedString(volume)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" availabilityZone: ").append(toIndentedString(availabilityZone)).append("\n"); + sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n"); + sb.append(" subnetId: ").append(toIndentedString(subnetId)).append("\n"); + sb.append(" securityGroupId: ").append(toIndentedString(securityGroupId)).append("\n"); + sb.append(" chargeInfo: ").append(toIndentedString(chargeInfo)).append("\n"); + sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); + sb.append(" shardingNum: ").append(toIndentedString(shardingNum)).append("\n"); + sb.append(" coordinatorNum: ").append(toIndentedString(coordinatorNum)).append("\n"); + sb.append(" replicaNum: ").append(toIndentedString(replicaNum)).append("\n"); + sb.append(" enableForceSwitch: ").append(toIndentedString(enableForceSwitch)).append("\n"); + sb.append(" enableSingleFloatIp: ").append(toIndentedString(enableSingleFloatIp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDatabaseInstanceResponse.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDatabaseInstanceResponse.java new file mode 100644 index 0000000000..62c61e5e6e --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDatabaseInstanceResponse.java @@ -0,0 +1,130 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class CreateDatabaseInstanceResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance") + + private CreateDatabaseInstanceResult instance; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "order_id") + + private String orderId; + + public CreateDatabaseInstanceResponse withInstance(CreateDatabaseInstanceResult instance) { + this.instance = instance; + return this; + } + + public CreateDatabaseInstanceResponse withInstance(Consumer instanceSetter) { + if (this.instance == null) { + this.instance = new CreateDatabaseInstanceResult(); + instanceSetter.accept(this.instance); + } + + return this; + } + + /** + * Get instance + * @return instance + */ + public CreateDatabaseInstanceResult getInstance() { + return instance; + } + + public void setInstance(CreateDatabaseInstanceResult instance) { + this.instance = instance; + } + + public CreateDatabaseInstanceResponse 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 CreateDatabaseInstanceResponse withOrderId(String orderId) { + this.orderId = orderId; + return this; + } + + /** + * 创建实例的订单ID。 仅创建包周期实例时会返回该参数。 + * @return orderId + */ + public String getOrderId() { + return orderId; + } + + public void setOrderId(String orderId) { + this.orderId = orderId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateDatabaseInstanceResponse that = (CreateDatabaseInstanceResponse) obj; + return Objects.equals(this.instance, that.instance) && Objects.equals(this.jobId, that.jobId) + && Objects.equals(this.orderId, that.orderId); + } + + @Override + public int hashCode() { + return Objects.hash(instance, jobId, orderId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateDatabaseInstanceResponse {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDatabaseInstanceResult.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDatabaseInstanceResult.java new file mode 100644 index 0000000000..8aefc9fbdf --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDatabaseInstanceResult.java @@ -0,0 +1,512 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 实例信息。 + */ +public class CreateDatabaseInstanceResult { + + @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 = "datastore") + + private DatastoreResult datastore; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ha") + + private OpenGaussHaResult ha; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "replica_num") + + private Integer replicaNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "backup_strategy") + + private OpenGaussBackupStrategyForResponse backupStrategy; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "port") + + private String port; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private String enterpriseProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flavor_ref") + + private String flavorRef; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "volume") + + private OpenGaussVolumeResult volume; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "region") + + private String region; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "availability_zone") + + private String availabilityZone; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "vpc_id") + + private String vpcId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "subnet_id") + + private String subnetId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "security_group_id") + + private String securityGroupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "charge_info") + + private OpenGaussChargeInfoResponse chargeInfo; + + public CreateDatabaseInstanceResult 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 CreateDatabaseInstanceResult withName(String name) { + this.name = name; + return this; + } + + /** + * 实例名称。用于表示实例的名称,同一租户下,同类型的实例名称可相同。 取值范围:4~64个字符之间,必须以字母开头,不区分大小写,可以包含字母、数字、中划线或者下划线,不能包含其他的特殊字符。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateDatabaseInstanceResult withStatus(String status) { + this.status = status; + return this; + } + + /** + * 实例状态。如BUILD,表示创建中。 仅创建按需实例时会返回该参数。 + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public CreateDatabaseInstanceResult withDatastore(DatastoreResult datastore) { + this.datastore = datastore; + return this; + } + + public CreateDatabaseInstanceResult withDatastore(Consumer datastoreSetter) { + if (this.datastore == null) { + this.datastore = new DatastoreResult(); + datastoreSetter.accept(this.datastore); + } + + return this; + } + + /** + * Get datastore + * @return datastore + */ + public DatastoreResult getDatastore() { + return datastore; + } + + public void setDatastore(DatastoreResult datastore) { + this.datastore = datastore; + } + + public CreateDatabaseInstanceResult withHa(OpenGaussHaResult ha) { + this.ha = ha; + return this; + } + + public CreateDatabaseInstanceResult withHa(Consumer haSetter) { + if (this.ha == null) { + this.ha = new OpenGaussHaResult(); + haSetter.accept(this.ha); + } + + return this; + } + + /** + * Get ha + * @return ha + */ + public OpenGaussHaResult getHa() { + return ha; + } + + public void setHa(OpenGaussHaResult ha) { + this.ha = ha; + } + + public CreateDatabaseInstanceResult withReplicaNum(Integer replicaNum) { + this.replicaNum = replicaNum; + return this; + } + + /** + * 实例副本数。 + * @return replicaNum + */ + public Integer getReplicaNum() { + return replicaNum; + } + + public void setReplicaNum(Integer replicaNum) { + this.replicaNum = replicaNum; + } + + public CreateDatabaseInstanceResult withBackupStrategy(OpenGaussBackupStrategyForResponse backupStrategy) { + this.backupStrategy = backupStrategy; + return this; + } + + public CreateDatabaseInstanceResult withBackupStrategy( + Consumer backupStrategySetter) { + if (this.backupStrategy == null) { + this.backupStrategy = new OpenGaussBackupStrategyForResponse(); + backupStrategySetter.accept(this.backupStrategy); + } + + return this; + } + + /** + * Get backupStrategy + * @return backupStrategy + */ + public OpenGaussBackupStrategyForResponse getBackupStrategy() { + return backupStrategy; + } + + public void setBackupStrategy(OpenGaussBackupStrategyForResponse backupStrategy) { + this.backupStrategy = backupStrategy; + } + + public CreateDatabaseInstanceResult withPort(String port) { + this.port = port; + return this; + } + + /** + * 数据库端口信息,与请求参数相同。 + * @return port + */ + public String getPort() { + return port; + } + + public void setPort(String port) { + this.port = port; + } + + public CreateDatabaseInstanceResult withEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + return this; + } + + /** + * 项目标签。 + * @return enterpriseProjectId + */ + public String getEnterpriseProjectId() { + return enterpriseProjectId; + } + + public void setEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + } + + public CreateDatabaseInstanceResult withFlavorRef(String flavorRef) { + this.flavorRef = flavorRef; + return this; + } + + /** + * 规格码,取值范围:非空。参考[表1](https://support.huaweicloud.com/api-opengauss/opengauss_api_0037.html#opengauss_api_0037__ted9b9d433c8a4c52884e199e17f94479)中GaussDB的“规格编码”列内容获取。 + * @return flavorRef + */ + public String getFlavorRef() { + return flavorRef; + } + + public void setFlavorRef(String flavorRef) { + this.flavorRef = flavorRef; + } + + public CreateDatabaseInstanceResult withVolume(OpenGaussVolumeResult volume) { + this.volume = volume; + return this; + } + + public CreateDatabaseInstanceResult withVolume(Consumer volumeSetter) { + if (this.volume == null) { + this.volume = new OpenGaussVolumeResult(); + volumeSetter.accept(this.volume); + } + + return this; + } + + /** + * Get volume + * @return volume + */ + public OpenGaussVolumeResult getVolume() { + return volume; + } + + public void setVolume(OpenGaussVolumeResult volume) { + this.volume = volume; + } + + public CreateDatabaseInstanceResult withRegion(String region) { + this.region = region; + return this; + } + + /** + * 区域ID。 + * @return region + */ + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public CreateDatabaseInstanceResult withAvailabilityZone(String availabilityZone) { + this.availabilityZone = availabilityZone; + return this; + } + + /** + * 可用区ID。 + * @return availabilityZone + */ + public String getAvailabilityZone() { + return availabilityZone; + } + + public void setAvailabilityZone(String availabilityZone) { + this.availabilityZone = availabilityZone; + } + + public CreateDatabaseInstanceResult withVpcId(String vpcId) { + this.vpcId = vpcId; + return this; + } + + /** + * 虚拟私有云ID。 + * @return vpcId + */ + public String getVpcId() { + return vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public CreateDatabaseInstanceResult withSubnetId(String subnetId) { + this.subnetId = subnetId; + return this; + } + + /** + * 子网的网络ID信息。 + * @return subnetId + */ + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public CreateDatabaseInstanceResult withSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + return this; + } + + /** + * 实例所属的安全组。 + * @return securityGroupId + */ + public String getSecurityGroupId() { + return securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public CreateDatabaseInstanceResult withChargeInfo(OpenGaussChargeInfoResponse chargeInfo) { + this.chargeInfo = chargeInfo; + return this; + } + + public CreateDatabaseInstanceResult withChargeInfo(Consumer chargeInfoSetter) { + if (this.chargeInfo == null) { + this.chargeInfo = new OpenGaussChargeInfoResponse(); + chargeInfoSetter.accept(this.chargeInfo); + } + + return this; + } + + /** + * Get chargeInfo + * @return chargeInfo + */ + public OpenGaussChargeInfoResponse getChargeInfo() { + return chargeInfo; + } + + public void setChargeInfo(OpenGaussChargeInfoResponse chargeInfo) { + this.chargeInfo = chargeInfo; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateDatabaseInstanceResult that = (CreateDatabaseInstanceResult) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.status, that.status) && Objects.equals(this.datastore, that.datastore) + && Objects.equals(this.ha, that.ha) && Objects.equals(this.replicaNum, that.replicaNum) + && Objects.equals(this.backupStrategy, that.backupStrategy) && Objects.equals(this.port, that.port) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) + && Objects.equals(this.flavorRef, that.flavorRef) && Objects.equals(this.volume, that.volume) + && Objects.equals(this.region, that.region) && Objects.equals(this.availabilityZone, that.availabilityZone) + && Objects.equals(this.vpcId, that.vpcId) && Objects.equals(this.subnetId, that.subnetId) + && Objects.equals(this.securityGroupId, that.securityGroupId) + && Objects.equals(this.chargeInfo, that.chargeInfo); + } + + @Override + public int hashCode() { + return Objects.hash(id, + name, + status, + datastore, + ha, + replicaNum, + backupStrategy, + port, + enterpriseProjectId, + flavorRef, + volume, + region, + availabilityZone, + vpcId, + subnetId, + securityGroupId, + chargeInfo); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateDatabaseInstanceResult {\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(" datastore: ").append(toIndentedString(datastore)).append("\n"); + sb.append(" ha: ").append(toIndentedString(ha)).append("\n"); + sb.append(" replicaNum: ").append(toIndentedString(replicaNum)).append("\n"); + sb.append(" backupStrategy: ").append(toIndentedString(backupStrategy)).append("\n"); + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append(" flavorRef: ").append(toIndentedString(flavorRef)).append("\n"); + sb.append(" volume: ").append(toIndentedString(volume)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" availabilityZone: ").append(toIndentedString(availabilityZone)).append("\n"); + sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n"); + sb.append(" subnetId: ").append(toIndentedString(subnetId)).append("\n"); + sb.append(" securityGroupId: ").append(toIndentedString(securityGroupId)).append("\n"); + sb.append(" chargeInfo: ").append(toIndentedString(chargeInfo)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDbRoleRequest.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDbRoleRequest.java new file mode 100644 index 0000000000..991f29b126 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDbRoleRequest.java @@ -0,0 +1,131 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CreateDbRoleRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateDbRoleRequestBody body; + + public CreateDbRoleRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 语言 + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + + public CreateDbRoleRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public CreateDbRoleRequest withBody(CreateDbRoleRequestBody body) { + this.body = body; + return this; + } + + public CreateDbRoleRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateDbRoleRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateDbRoleRequestBody getBody() { + return body; + } + + public void setBody(CreateDbRoleRequestBody 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; + } + CreateDbRoleRequest that = (CreateDbRoleRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, instanceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateDbRoleRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDbRoleRequestBody.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDbRoleRequestBody.java new file mode 100644 index 0000000000..0494d586f0 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDbRoleRequestBody.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * CreateDbRoleRequestBody + */ +public class CreateDbRoleRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "password") + + private String password; + + public CreateDbRoleRequestBody withName(String name) { + this.name = name; + return this; + } + + /** + * 数据库角色名称,不可与已有角色名称重复。 数据库角色名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,不能和系统用户/角色名称相同。 系统用户/角色包括“rdsAdmin”,“ rdsMetric”, “rdsBackup”, “rdsRepl”, “root”。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateDbRoleRequestBody withPassword(String password) { + this.password = password; + return this; + } + + /** + * 数据库角色密码。 取值范围:非空,密码长度在8到32个字符之间,至少包含大写字母、小写字母、数字、特殊字符~!@#%^*-_=+?,三种字符的组合,不能和数据库账号“name”或“name”的逆序相同。 建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。 + * @return password + */ + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateDbRoleRequestBody that = (CreateDbRoleRequestBody) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.password, that.password); + } + + @Override + public int hashCode() { + return Objects.hash(name, password); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateDbRoleRequestBody {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDbRoleResponse.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDbRoleResponse.java new file mode 100644 index 0000000000..84ee233377 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateDbRoleResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class CreateDbRoleResponse 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 CreateDbRoleResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateInstanceDatastoreOption.java similarity index 57% rename from services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes.java rename to services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateInstanceDatastoreOption.java index 56c0cb92f6..9704f3cca6 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateInstanceDatastoreOption.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.dc.v3.model; +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; @@ -11,47 +11,25 @@ import java.util.Objects; /** - * UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes + * 数据库信息。 */ -public class UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "destination") - - private String destination; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "nexthop") - - private String nexthop; +public class CreateInstanceDatastoreOption { /** - * 类型 + * 数据库引擎,不区分大小写,取值如下: GaussDB。 */ public static final class TypeEnum { /** - * Enum VIF_PEER for value: "vif_peer" - */ - public static final TypeEnum VIF_PEER = new TypeEnum("vif_peer"); - - /** - * Enum PEER_LINK for value: "peer_link" - */ - public static final TypeEnum PEER_LINK = new TypeEnum("peer_link"); - - /** - * Enum GDGW for value: "gdgw" + * Enum GAUSSDB for value: "GaussDB" */ - public static final TypeEnum GDGW = new TypeEnum("gdgw"); + public static final TypeEnum GAUSSDB = new TypeEnum("GaussDB"); private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { Map map = new HashMap<>(); - map.put("vif_peer", VIF_PEER); - map.put("peer_link", PEER_LINK); - map.put("gdgw", GDGW); + map.put("GaussDB", GAUSSDB); return Collections.unmodifiableMap(map); } @@ -106,55 +84,43 @@ public int hashCode() { private TypeEnum type; - public UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes withDestination(String destination) { - this.destination = destination; - return this; - } - - /** - * 目的地址 - * @return destination - */ - public String getDestination() { - return destination; - } + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version") - public void setDestination(String destination) { - this.destination = destination; - } + private String version; - public UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes withNexthop(String nexthop) { - this.nexthop = nexthop; + public CreateInstanceDatastoreOption withType(TypeEnum type) { + this.type = type; return this; } /** - * 下一跳 - * @return nexthop + * 数据库引擎,不区分大小写,取值如下: GaussDB。 + * @return type */ - public String getNexthop() { - return nexthop; + public TypeEnum getType() { + return type; } - public void setNexthop(String nexthop) { - this.nexthop = nexthop; + public void setType(TypeEnum type) { + this.type = type; } - public UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes withType(TypeEnum type) { - this.type = type; + public CreateInstanceDatastoreOption withVersion(String version) { + this.version = version; return this; } /** - * 类型 - * @return type + * 数据库版本。不填时,默认为当前最新版本。 GaussDB支持的版本参考[查询数据库引擎的版本](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=GaussDB&api=ListDatastores)。 + * @return version */ - public TypeEnum getType() { - return type; + public String getVersion() { + return version; } - public void setType(TypeEnum type) { - this.type = type; + public void setVersion(String version) { + this.version = version; } @Override @@ -165,24 +131,21 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes that = - (UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes) obj; - return Objects.equals(this.destination, that.destination) && Objects.equals(this.nexthop, that.nexthop) - && Objects.equals(this.type, that.type); + CreateInstanceDatastoreOption that = (CreateInstanceDatastoreOption) obj; + return Objects.equals(this.type, that.type) && Objects.equals(this.version, that.version); } @Override public int hashCode() { - return Objects.hash(destination, nexthop, type); + return Objects.hash(type, version); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes {\n"); - sb.append(" destination: ").append(toIndentedString(destination)).append("\n"); - sb.append(" nexthop: ").append(toIndentedString(nexthop)).append("\n"); + sb.append("class CreateInstanceDatastoreOption {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/DatastoreResult.java similarity index 51% rename from services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes.java rename to services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/DatastoreResult.java index 8d6a6711ee..d64a23e352 100644 --- a/services/dc/src/main/java/com/huaweicloud/sdk/dc/v3/model/UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/DatastoreResult.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.dc.v3.model; +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; @@ -11,47 +11,25 @@ import java.util.Objects; /** - * UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes + * 数据库版本。不填时,默认为当前最新版本。 数据库支持版本可根据查询数据库引擎版本接口获取 */ -public class UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "destination") - - private String destination; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "nexthop") - - private String nexthop; +public class DatastoreResult { /** - * 类型 + * 数据库引擎,不区分大小写,取值如下: GaussDB */ public static final class TypeEnum { /** - * Enum VIF_PEER for value: "vif_peer" + * Enum GAUSSDB for value: "GaussDB" */ - public static final TypeEnum VIF_PEER = new TypeEnum("vif_peer"); - - /** - * Enum PEER_LINK for value: "peer_link" - */ - public static final TypeEnum PEER_LINK = new TypeEnum("peer_link"); - - /** - * Enum GDGW for value: "gdgw" - */ - public static final TypeEnum GDGW = new TypeEnum("gdgw"); + public static final TypeEnum GAUSSDB = new TypeEnum("GaussDB"); private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { Map map = new HashMap<>(); - map.put("vif_peer", VIF_PEER); - map.put("peer_link", PEER_LINK); - map.put("gdgw", GDGW); + map.put("GaussDB", GAUSSDB); return Collections.unmodifiableMap(map); } @@ -107,51 +85,17 @@ public int hashCode() { private TypeEnum type; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "description") - - private String description; - - public UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes withDestination(String destination) { - this.destination = destination; - return this; - } - - /** - * 目的地址 - * @return destination - */ - public String getDestination() { - return destination; - } - - public void setDestination(String destination) { - this.destination = destination; - } + @JsonProperty(value = "version") - public UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes withNexthop(String nexthop) { - this.nexthop = nexthop; - return this; - } - - /** - * 下一跳 - * @return nexthop - */ - public String getNexthop() { - return nexthop; - } - - public void setNexthop(String nexthop) { - this.nexthop = nexthop; - } + private String version; - public UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes withType(TypeEnum type) { + public DatastoreResult withType(TypeEnum type) { this.type = type; return this; } /** - * 类型 + * 数据库引擎,不区分大小写,取值如下: GaussDB * @return type */ public TypeEnum getType() { @@ -162,21 +106,21 @@ public void setType(TypeEnum type) { this.type = type; } - public UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes withDescription(String description) { - this.description = description; + public DatastoreResult withVersion(String version) { + this.version = version; return this; } /** - * 说明信息 - * @return description + * 数据库版本。 + * @return version */ - public String getDescription() { - return description; + public String getVersion() { + return version; } - public void setDescription(String description) { - this.description = description; + public void setVersion(String version) { + this.version = version; } @Override @@ -187,25 +131,21 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes that = - (UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes) obj; - return Objects.equals(this.destination, that.destination) && Objects.equals(this.nexthop, that.nexthop) - && Objects.equals(this.type, that.type) && Objects.equals(this.description, that.description); + DatastoreResult that = (DatastoreResult) obj; + return Objects.equals(this.type, that.type) && Objects.equals(this.version, that.version); } @Override public int hashCode() { - return Objects.hash(destination, nexthop, type, description); + return Objects.hash(type, version); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes {\n"); - sb.append(" destination: ").append(toIndentedString(destination)).append("\n"); - sb.append(" nexthop: ").append(toIndentedString(nexthop)).append("\n"); + sb.append("class DatastoreResult {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/DeleteDatabaseSchemaRequest.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/DeleteDatabaseSchemaRequest.java new file mode 100644 index 0000000000..ab34ff975c --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/DeleteDatabaseSchemaRequest.java @@ -0,0 +1,131 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class DeleteDatabaseSchemaRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private DeleteDatabaseSchemaRequestBody body; + + public DeleteDatabaseSchemaRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 语言 + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + + public DeleteDatabaseSchemaRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public DeleteDatabaseSchemaRequest withBody(DeleteDatabaseSchemaRequestBody body) { + this.body = body; + return this; + } + + public DeleteDatabaseSchemaRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new DeleteDatabaseSchemaRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public DeleteDatabaseSchemaRequestBody getBody() { + return body; + } + + public void setBody(DeleteDatabaseSchemaRequestBody 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; + } + DeleteDatabaseSchemaRequest that = (DeleteDatabaseSchemaRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, instanceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteDatabaseSchemaRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/DeleteDatabaseSchemaRequestBody.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/DeleteDatabaseSchemaRequestBody.java new file mode 100644 index 0000000000..6081f2252f --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/DeleteDatabaseSchemaRequestBody.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 删除数据库schema信息。 + */ +public class DeleteDatabaseSchemaRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "db_name") + + private String dbName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schema") + + private String schema; + + public DeleteDatabaseSchemaRequestBody withDbName(String dbName) { + this.dbName = dbName; + return this; + } + + /** + * 数据库名称。 使用已存在的数据库名称,且不能为模板库。 模板库包括postgres, template0 ,template1,templatea,template_pdb,templatem。 + * @return dbName + */ + public String getDbName() { + return dbName; + } + + public void setDbName(String dbName) { + this.dbName = dbName; + } + + public DeleteDatabaseSchemaRequestBody withSchema(String schema) { + this.schema = schema; + return this; + } + + /** + * SCHEMA名称。 SCHEMA名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和模板库和已存在的SCHEMA重名。 模板库包括postgres, template0 ,template1,templatea,template_pdb,templatem。 已存在的SCHEMA包括public,information_schema。 + * @return schema + */ + public String getSchema() { + return schema; + } + + public void setSchema(String schema) { + this.schema = schema; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteDatabaseSchemaRequestBody that = (DeleteDatabaseSchemaRequestBody) obj; + return Objects.equals(this.dbName, that.dbName) && Objects.equals(this.schema, that.schema); + } + + @Override + public int hashCode() { + return Objects.hash(dbName, schema); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteDatabaseSchemaRequestBody {\n"); + sb.append(" dbName: ").append(toIndentedString(dbName)).append("\n"); + sb.append(" schema: ").append(toIndentedString(schema)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/DeleteDatabaseSchemaResponse.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/DeleteDatabaseSchemaResponse.java new file mode 100644 index 0000000000..e2ea195211 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/DeleteDatabaseSchemaResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeleteDatabaseSchemaResponse 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 DeleteDatabaseSchemaResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/GaussDBListDatabaseRoles.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/GaussDBListDatabaseRoles.java new file mode 100644 index 0000000000..c5605e4f02 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/GaussDBListDatabaseRoles.java @@ -0,0 +1,142 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * GaussDBListDatabaseRoles + */ +public class GaussDBListDatabaseRoles { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "memberof") + + private String memberof; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "lock_status") + + private Boolean lockStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "attribute") + + private Object attribute; + + public GaussDBListDatabaseRoles withName(String name) { + this.name = name; + return this; + } + + /** + * 数据库用户/角色名。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public GaussDBListDatabaseRoles withMemberof(String memberof) { + this.memberof = memberof; + return this; + } + + /** + * 用户/角色的默认权限。 + * @return memberof + */ + public String getMemberof() { + return memberof; + } + + public void setMemberof(String memberof) { + this.memberof = memberof; + } + + public GaussDBListDatabaseRoles withLockStatus(Boolean lockStatus) { + this.lockStatus = lockStatus; + return this; + } + + /** + * 用户/角色是否被锁。 + * @return lockStatus + */ + public Boolean getLockStatus() { + return lockStatus; + } + + public void setLockStatus(Boolean lockStatus) { + this.lockStatus = lockStatus; + } + + public GaussDBListDatabaseRoles withAttribute(Object attribute) { + this.attribute = attribute; + return this; + } + + /** + * 用户/角色的权限属性。 + * @return attribute + */ + public Object getAttribute() { + return attribute; + } + + public void setAttribute(Object attribute) { + this.attribute = attribute; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + GaussDBListDatabaseRoles that = (GaussDBListDatabaseRoles) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.memberof, that.memberof) + && Objects.equals(this.lockStatus, that.lockStatus) && Objects.equals(this.attribute, that.attribute); + } + + @Override + public int hashCode() { + return Objects.hash(name, memberof, lockStatus, attribute); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GaussDBListDatabaseRoles {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" memberof: ").append(toIndentedString(memberof)).append("\n"); + sb.append(" lockStatus: ").append(toIndentedString(lockStatus)).append("\n"); + sb.append(" attribute: ").append(toIndentedString(attribute)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/HotfixInfoResult.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/HotfixInfoResult.java new file mode 100644 index 0000000000..002826484a --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/HotfixInfoResult.java @@ -0,0 +1,218 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * 热补丁信息 + */ +public class HotfixInfoResult { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version") + + private String version; + + /** + * 通用非通用信息,common=通用补丁,certain=定制补丁 + */ + public static final class CommonPatchEnum { + + /** + * Enum COMMON for value: "common" + */ + public static final CommonPatchEnum COMMON = new CommonPatchEnum("common"); + + /** + * Enum CERTAIN for value: "certain" + */ + public static final CommonPatchEnum CERTAIN = new CommonPatchEnum("certain"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("common", COMMON); + map.put("certain", CERTAIN); + return Collections.unmodifiableMap(map); + } + + private String value; + + CommonPatchEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CommonPatchEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new CommonPatchEnum(value)); + } + + public static CommonPatchEnum 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 CommonPatchEnum) { + return this.value.equals(((CommonPatchEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "common_patch") + + private CommonPatchEnum commonPatch; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "backup_sensitive") + + private Boolean backupSensitive; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "descripition") + + private String descripition; + + public HotfixInfoResult withVersion(String version) { + this.version = version; + return this; + } + + /** + * 热补丁版本 + * @return version + */ + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public HotfixInfoResult withCommonPatch(CommonPatchEnum commonPatch) { + this.commonPatch = commonPatch; + return this; + } + + /** + * 通用非通用信息,common=通用补丁,certain=定制补丁 + * @return commonPatch + */ + public CommonPatchEnum getCommonPatch() { + return commonPatch; + } + + public void setCommonPatch(CommonPatchEnum commonPatch) { + this.commonPatch = commonPatch; + } + + public HotfixInfoResult withBackupSensitive(Boolean backupSensitive) { + this.backupSensitive = backupSensitive; + return this; + } + + /** + * 是否和备份相关 + * @return backupSensitive + */ + public Boolean getBackupSensitive() { + return backupSensitive; + } + + public void setBackupSensitive(Boolean backupSensitive) { + this.backupSensitive = backupSensitive; + } + + public HotfixInfoResult withDescripition(String descripition) { + this.descripition = descripition; + return this; + } + + /** + * 补丁的描述信息 + * @return descripition + */ + public String getDescripition() { + return descripition; + } + + public void setDescripition(String descripition) { + this.descripition = descripition; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + HotfixInfoResult that = (HotfixInfoResult) obj; + return Objects.equals(this.version, that.version) && Objects.equals(this.commonPatch, that.commonPatch) + && Objects.equals(this.backupSensitive, that.backupSensitive) + && Objects.equals(this.descripition, that.descripition); + } + + @Override + public int hashCode() { + return Objects.hash(version, commonPatch, backupSensitive, descripition); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HotfixInfoResult {\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" commonPatch: ").append(toIndentedString(commonPatch)).append("\n"); + sb.append(" backupSensitive: ").append(toIndentedString(backupSensitive)).append("\n"); + sb.append(" descripition: ").append(toIndentedString(descripition)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListBackupsDetailsRequest.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListBackupsDetailsRequest.java new file mode 100644 index 0000000000..319d119d74 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListBackupsDetailsRequest.java @@ -0,0 +1,316 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Request Object + */ +public class ListBackupsDetailsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "backup_id") + + private String backupId; + + /** + * 备份类型,取值: \"auto\":自动全量备份 \"manual\":手动全量备份 + */ + public static final class BackupTypeEnum { + + /** + * Enum AUTO for value: "auto" + */ + public static final BackupTypeEnum AUTO = new BackupTypeEnum("auto"); + + /** + * Enum MANUAL for value: "manual" + */ + public static final BackupTypeEnum MANUAL = new BackupTypeEnum("manual"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("auto", AUTO); + map.put("manual", MANUAL); + return Collections.unmodifiableMap(map); + } + + private String value; + + BackupTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static BackupTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new BackupTypeEnum(value)); + } + + public static BackupTypeEnum 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 BackupTypeEnum) { + return this.value.equals(((BackupTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "backup_type") + + private BackupTypeEnum backupType; + + @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 = "begin_time") + + private String beginTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "end_time") + + private String endTime; + + public ListBackupsDetailsRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 语言 + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + + public ListBackupsDetailsRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ListBackupsDetailsRequest withBackupId(String backupId) { + this.backupId = backupId; + return this; + } + + /** + * 备份ID。 + * @return backupId + */ + public String getBackupId() { + return backupId; + } + + public void setBackupId(String backupId) { + this.backupId = backupId; + } + + public ListBackupsDetailsRequest withBackupType(BackupTypeEnum backupType) { + this.backupType = backupType; + return this; + } + + /** + * 备份类型,取值: \"auto\":自动全量备份 \"manual\":手动全量备份 + * @return backupType + */ + public BackupTypeEnum getBackupType() { + return backupType; + } + + public void setBackupType(BackupTypeEnum backupType) { + this.backupType = backupType; + } + + public ListBackupsDetailsRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + * minimum: 0 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListBackupsDetailsRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。 + * minimum: 1 + * maximum: 100 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListBackupsDetailsRequest withBeginTime(String beginTime) { + this.beginTime = beginTime; + return this; + } + + /** + * 查询开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。与end_time必须同时使用。 + * @return beginTime + */ + public String getBeginTime() { + return beginTime; + } + + public void setBeginTime(String beginTime) { + this.beginTime = beginTime; + } + + public ListBackupsDetailsRequest withEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * 查询结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”,且大于查询开始时间。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。与begin_time必须同时使用。 + * @return endTime + */ + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListBackupsDetailsRequest that = (ListBackupsDetailsRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.backupId, that.backupId) && Objects.equals(this.backupType, that.backupType) + && Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.beginTime, that.beginTime) && Objects.equals(this.endTime, that.endTime); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, instanceId, backupId, backupType, offset, limit, beginTime, endTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListBackupsDetailsRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" backupId: ").append(toIndentedString(backupId)).append("\n"); + sb.append(" backupType: ").append(toIndentedString(backupType)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" beginTime: ").append(toIndentedString(beginTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListBackupsDetailsResponse.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListBackupsDetailsResponse.java new file mode 100644 index 0000000000..1337a5b2cb --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListBackupsDetailsResponse.java @@ -0,0 +1,115 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListBackupsDetailsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "backups") + + private List backups = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_count") + + private Long totalCount; + + public ListBackupsDetailsResponse withBackups(List backups) { + this.backups = backups; + return this; + } + + public ListBackupsDetailsResponse addBackupsItem(ListBackupsResult backupsItem) { + if (this.backups == null) { + this.backups = new ArrayList<>(); + } + this.backups.add(backupsItem); + return this; + } + + public ListBackupsDetailsResponse withBackups(Consumer> backupsSetter) { + if (this.backups == null) { + this.backups = new ArrayList<>(); + } + backupsSetter.accept(this.backups); + return this; + } + + /** + * 备份信息。 + * @return backups + */ + public List getBackups() { + return backups; + } + + public void setBackups(List backups) { + this.backups = backups; + } + + public ListBackupsDetailsResponse withTotalCount(Long totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * 备份文件的总数。 + * @return totalCount + */ + public Long getTotalCount() { + return totalCount; + } + + public void setTotalCount(Long 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; + } + ListBackupsDetailsResponse that = (ListBackupsDetailsResponse) obj; + return Objects.equals(this.backups, that.backups) && Objects.equals(this.totalCount, that.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(backups, totalCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListBackupsDetailsResponse {\n"); + sb.append(" backups: ").append(toIndentedString(backups)).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/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListBackupsResult.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListBackupsResult.java new file mode 100644 index 0000000000..ec9d1526a9 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListBackupsResult.java @@ -0,0 +1,444 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * ListBackupsResult + */ +public class ListBackupsResult { + + @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 = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "begin_time") + + private String beginTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "end_time") + + private String endTime; + + /** + * 备份状态 + */ + public static final class StatusEnum { + + /** + * Enum BUILDING_ for value: "BUILDING:备份中。" + */ + public static final StatusEnum BUILDING_ = new StatusEnum("BUILDING:备份中。"); + + /** + * Enum COMPLETED_ for value: "COMPLETED:备份完成。" + */ + public static final StatusEnum COMPLETED_ = new StatusEnum("COMPLETED:备份完成。"); + + /** + * Enum FAILED_ for value: "FAILED:备份失败。。" + */ + public static final StatusEnum FAILED_ = new StatusEnum("FAILED:备份失败。。"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("BUILDING:备份中。", BUILDING_); + map.put("COMPLETED:备份完成。", COMPLETED_); + map.put("FAILED:备份失败。。", 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 StatusEnum status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "size") + + private Double size; + + /** + * 备份类型 + */ + public static final class TypeEnum { + + /** + * Enum AUTO_ for value: "auto:自动全量备份。" + */ + public static final TypeEnum AUTO_ = new TypeEnum("auto:自动全量备份。"); + + /** + * Enum MANUAL_ for value: "manual:手动全量备份。" + */ + public static final TypeEnum MANUAL_ = new TypeEnum("manual:手动全量备份。"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("auto:自动全量备份。", AUTO_); + map.put("manual:手动全量备份。", MANUAL_); + return Collections.unmodifiableMap(map); + } + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new TypeEnum(value)); + } + + public static TypeEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof TypeEnum) { + return this.value.equals(((TypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private TypeEnum type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "datastore") + + private DatastoreResult datastore; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + public ListBackupsResult 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 ListBackupsResult withName(String name) { + this.name = name; + return this; + } + + /** + * 备份名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ListBackupsResult withDescription(String description) { + this.description = description; + return this; + } + + /** + * 备份文件描述信息。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ListBackupsResult withBeginTime(String beginTime) { + this.beginTime = beginTime; + return this; + } + + /** + * 备份开始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + * @return beginTime + */ + public String getBeginTime() { + return beginTime; + } + + public void setBeginTime(String beginTime) { + this.beginTime = beginTime; + } + + public ListBackupsResult withEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * 备份结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + * @return endTime + */ + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public ListBackupsResult withStatus(StatusEnum status) { + this.status = status; + return this; + } + + /** + * 备份状态 + * @return status + */ + public StatusEnum getStatus() { + return status; + } + + public void setStatus(StatusEnum status) { + this.status = status; + } + + public ListBackupsResult withSize(Double size) { + this.size = size; + return this; + } + + /** + * 备份大小(单位:MB) + * @return size + */ + public Double getSize() { + return size; + } + + public void setSize(Double size) { + this.size = size; + } + + public ListBackupsResult withType(TypeEnum type) { + this.type = type; + return this; + } + + /** + * 备份类型 + * @return type + */ + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public ListBackupsResult withDatastore(DatastoreResult datastore) { + this.datastore = datastore; + return this; + } + + public ListBackupsResult withDatastore(Consumer datastoreSetter) { + if (this.datastore == null) { + this.datastore = new DatastoreResult(); + datastoreSetter.accept(this.datastore); + } + + return this; + } + + /** + * Get datastore + * @return datastore + */ + public DatastoreResult getDatastore() { + return datastore; + } + + public void setDatastore(DatastoreResult datastore) { + this.datastore = datastore; + } + + public ListBackupsResult withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListBackupsResult that = (ListBackupsResult) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.description, that.description) && Objects.equals(this.beginTime, that.beginTime) + && Objects.equals(this.endTime, that.endTime) && Objects.equals(this.status, that.status) + && Objects.equals(this.size, that.size) && Objects.equals(this.type, that.type) + && Objects.equals(this.datastore, that.datastore) && Objects.equals(this.instanceId, that.instanceId); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, description, beginTime, endTime, status, size, type, datastore, instanceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListBackupsResult {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" beginTime: ").append(toIndentedString(beginTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" datastore: ").append(toIndentedString(datastore)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListDatabaseInstancesRequest.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListDatabaseInstancesRequest.java new file mode 100644 index 0000000000..6a54552e04 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListDatabaseInstancesRequest.java @@ -0,0 +1,537 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class ListDatabaseInstancesRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + /** + * 按照实例类型查询。目前仅支持取值“Enterprise”(区分大小写),对应分布式实例(企业版)。当前支持取值\"Ha\"(区分大小写),对应主备式实例。 + */ + public static final class TypeEnum { + + /** + * Enum ENTERPRISE for value: "Enterprise" + */ + public static final TypeEnum ENTERPRISE = new TypeEnum("Enterprise"); + + /** + * Enum HA for value: "Ha" + */ + public static final TypeEnum HA = new TypeEnum("Ha"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("Enterprise", ENTERPRISE); + map.put("Ha", HA); + return Collections.unmodifiableMap(map); + } + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new TypeEnum(value)); + } + + public static TypeEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof TypeEnum) { + return this.value.equals(((TypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private TypeEnum type; + + /** + * 数据库类型,区分大小写。 - GaussDB + */ + public static final class DatastoreTypeEnum { + + /** + * Enum GAUSSDB for value: "GaussDB" + */ + public static final DatastoreTypeEnum GAUSSDB = new DatastoreTypeEnum("GaussDB"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("GaussDB", GAUSSDB); + return Collections.unmodifiableMap(map); + } + + private String value; + + DatastoreTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static DatastoreTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new DatastoreTypeEnum(value)); + } + + public static DatastoreTypeEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof DatastoreTypeEnum) { + return this.value.equals(((DatastoreTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "datastore_type") + + private DatastoreTypeEnum datastoreType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "vpc_id") + + private String vpcId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "subnet_id") + + private String subnetId; + + @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 = "tags") + + private List tags = null; + + /** + * 计费模式。 取值范围: postPaid:后付费,即按需付费。 prePaid:预付费,即包年/包月。 + */ + public static final class ChargeModeEnum { + + /** + * Enum POSTPAID for value: "postPaid" + */ + public static final ChargeModeEnum POSTPAID = new ChargeModeEnum("postPaid"); + + /** + * Enum PREPAID for value: "prePaid" + */ + public static final ChargeModeEnum PREPAID = new ChargeModeEnum("prePaid"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("postPaid", POSTPAID); + map.put("prePaid", PREPAID); + return Collections.unmodifiableMap(map); + } + + private String value; + + ChargeModeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ChargeModeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ChargeModeEnum(value)); + } + + public static ChargeModeEnum 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 ChargeModeEnum) { + return this.value.equals(((ChargeModeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "charge_mode") + + private ChargeModeEnum chargeMode; + + public ListDatabaseInstancesRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 语言 + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + + public ListDatabaseInstancesRequest withId(String id) { + this.id = id; + return this; + } + + /** + * 实例ID。 “\\*”为系统保留字符,如果id是以“\\*”起始,表示按照\\*后面的值模糊匹配,否则,按照id精确匹配查询。不能只传入“\\*”。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ListDatabaseInstancesRequest withName(String name) { + this.name = name; + return this; + } + + /** + * 实例名称。 “\\*”为系统保留字符,如果name是以“\\*”起始,表示按照\\*后面的值模糊匹配,否则,按照name精确匹配查询。不能只传入“\\*”。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ListDatabaseInstancesRequest withType(TypeEnum type) { + this.type = type; + return this; + } + + /** + * 按照实例类型查询。目前仅支持取值“Enterprise”(区分大小写),对应分布式实例(企业版)。当前支持取值\"Ha\"(区分大小写),对应主备式实例。 + * @return type + */ + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public ListDatabaseInstancesRequest withDatastoreType(DatastoreTypeEnum datastoreType) { + this.datastoreType = datastoreType; + return this; + } + + /** + * 数据库类型,区分大小写。 - GaussDB + * @return datastoreType + */ + public DatastoreTypeEnum getDatastoreType() { + return datastoreType; + } + + public void setDatastoreType(DatastoreTypeEnum datastoreType) { + this.datastoreType = datastoreType; + } + + public ListDatabaseInstancesRequest withVpcId(String vpcId) { + this.vpcId = vpcId; + return this; + } + + /** + * 虚拟私有云ID。 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)。 + * @return vpcId + */ + public String getVpcId() { + return vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public ListDatabaseInstancesRequest withSubnetId(String subnetId) { + this.subnetId = subnetId; + return this; + } + + /** + * 子网的网络ID信息。 - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找网络ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。 + * @return subnetId + */ + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public ListDatabaseInstancesRequest 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 ListDatabaseInstancesRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 查询记录数。默认为100,不能为负数,最小值为1,最大值为100 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListDatabaseInstancesRequest withTags(List tags) { + this.tags = tags; + return this; + } + + public ListDatabaseInstancesRequest addTagsItem(String tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public ListDatabaseInstancesRequest withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 根据实例标签键值对进行查询。 {key}表示标签键,不可以为空或重复。最大长度127个unicode字符。key不能为空或者空字符串,不能为空格,使用之前先trim前后半角空格。不能包含+/?#&=,%特殊字符。 {value}表示标签值,可以为空。最大长度255个unicode字符,使用之前先trim 前后半角空格。不能包含+/?#&=,%特殊字符。 如果value为空,则表示any_value(查询任意value)。 如果同时使用多个标签键值对进行查询,中间使用逗号分隔开,最多包含10组。 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public ListDatabaseInstancesRequest withChargeMode(ChargeModeEnum chargeMode) { + this.chargeMode = chargeMode; + return this; + } + + /** + * 计费模式。 取值范围: postPaid:后付费,即按需付费。 prePaid:预付费,即包年/包月。 + * @return chargeMode + */ + public ChargeModeEnum getChargeMode() { + return chargeMode; + } + + public void setChargeMode(ChargeModeEnum chargeMode) { + this.chargeMode = chargeMode; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListDatabaseInstancesRequest that = (ListDatabaseInstancesRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.id, that.id) + && Objects.equals(this.name, that.name) && Objects.equals(this.type, that.type) + && Objects.equals(this.datastoreType, that.datastoreType) && Objects.equals(this.vpcId, that.vpcId) + && Objects.equals(this.subnetId, that.subnetId) && Objects.equals(this.offset, that.offset) + && Objects.equals(this.limit, that.limit) && Objects.equals(this.tags, that.tags) + && Objects.equals(this.chargeMode, that.chargeMode); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, id, name, type, datastoreType, vpcId, subnetId, offset, limit, tags, chargeMode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDatabaseInstancesRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" datastoreType: ").append(toIndentedString(datastoreType)).append("\n"); + sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n"); + sb.append(" subnetId: ").append(toIndentedString(subnetId)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" chargeMode: ").append(toIndentedString(chargeMode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListDatabaseInstancesResponse.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListDatabaseInstancesResponse.java new file mode 100644 index 0000000000..e3a9a90c17 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListDatabaseInstancesResponse.java @@ -0,0 +1,115 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListDatabaseInstancesResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instances") + + private List instances = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_count") + + private Integer totalCount; + + public ListDatabaseInstancesResponse withInstances(List instances) { + this.instances = instances; + return this; + } + + public ListDatabaseInstancesResponse addInstancesItem(ListInstancesResult instancesItem) { + if (this.instances == null) { + this.instances = new ArrayList<>(); + } + this.instances.add(instancesItem); + return this; + } + + public ListDatabaseInstancesResponse withInstances(Consumer> instancesSetter) { + if (this.instances == null) { + this.instances = new ArrayList<>(); + } + instancesSetter.accept(this.instances); + return this; + } + + /** + * 实例信息。 + * @return instances + */ + public List getInstances() { + return instances; + } + + public void setInstances(List instances) { + this.instances = instances; + } + + public ListDatabaseInstancesResponse 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; + } + ListDatabaseInstancesResponse that = (ListDatabaseInstancesResponse) obj; + return Objects.equals(this.instances, that.instances) && Objects.equals(this.totalCount, that.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(instances, totalCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDatabaseInstancesResponse {\n"); + sb.append(" instances: ").append(toIndentedString(instances)).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/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListDatabaseRolesRequest.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListDatabaseRolesRequest.java new file mode 100644 index 0000000000..7a8d3f4592 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListDatabaseRolesRequest.java @@ -0,0 +1,144 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListDatabaseRolesRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + public ListDatabaseRolesRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 语言 + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + + public ListDatabaseRolesRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ListDatabaseRolesRequest 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 ListDatabaseRolesRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 每页显示的条目数量,取值范围[1, 100],默认10。 + * @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; + } + ListDatabaseRolesRequest that = (ListDatabaseRolesRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, instanceId, offset, limit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDatabaseRolesRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).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/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListDatabaseRolesResponse.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListDatabaseRolesResponse.java new file mode 100644 index 0000000000..95b7588cf4 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListDatabaseRolesResponse.java @@ -0,0 +1,115 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListDatabaseRolesResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "roles") + + private List roles = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_count") + + private Long totalCount; + + public ListDatabaseRolesResponse withRoles(List roles) { + this.roles = roles; + return this; + } + + public ListDatabaseRolesResponse addRolesItem(GaussDBListDatabaseRoles rolesItem) { + if (this.roles == null) { + this.roles = new ArrayList<>(); + } + this.roles.add(rolesItem); + return this; + } + + public ListDatabaseRolesResponse withRoles(Consumer> rolesSetter) { + if (this.roles == null) { + this.roles = new ArrayList<>(); + } + rolesSetter.accept(this.roles); + return this; + } + + /** + * 列表中每个元素表示一个用户/角色。 + * @return roles + */ + public List getRoles() { + return roles; + } + + public void setRoles(List roles) { + this.roles = roles; + } + + public ListDatabaseRolesResponse withTotalCount(Long totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * 数据库用户/角色总数。 + * @return totalCount + */ + public Long getTotalCount() { + return totalCount; + } + + public void setTotalCount(Long 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; + } + ListDatabaseRolesResponse that = (ListDatabaseRolesResponse) obj; + return Objects.equals(this.roles, that.roles) && Objects.equals(this.totalCount, that.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(roles, totalCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDatabaseRolesResponse {\n"); + sb.append(" roles: ").append(toIndentedString(roles)).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/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListDatastoresDetailsRequest.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListDatastoresDetailsRequest.java new file mode 100644 index 0000000000..c8da578edc --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListDatastoresDetailsRequest.java @@ -0,0 +1,149 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Request Object + */ +public class ListDatastoresDetailsRequest { + + /** + * 语言 + */ + public static final class XLanguageEnum { + + /** + * Enum ZH_CN for value: "zh-cn" + */ + public static final XLanguageEnum ZH_CN = new XLanguageEnum("zh-cn"); + + /** + * Enum EN_US for value: "en-us" + */ + public static final XLanguageEnum EN_US = new XLanguageEnum("en-us"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("zh-cn", ZH_CN); + map.put("en-us", EN_US); + return Collections.unmodifiableMap(map); + } + + private String value; + + XLanguageEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static XLanguageEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new XLanguageEnum(value)); + } + + public static XLanguageEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof XLanguageEnum) { + return this.value.equals(((XLanguageEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private XLanguageEnum xLanguage; + + public ListDatastoresDetailsRequest 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; + } + ListDatastoresDetailsRequest that = (ListDatastoresDetailsRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDatastoresDetailsRequest {\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/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListDatastoresDetailsResponse.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListDatastoresDetailsResponse.java new file mode 100644 index 0000000000..12d4a5db90 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListDatastoresDetailsResponse.java @@ -0,0 +1,92 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListDatastoresDetailsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "datastores") + + private List datastores = null; + + public ListDatastoresDetailsResponse withDatastores(List datastores) { + this.datastores = datastores; + return this; + } + + public ListDatastoresDetailsResponse addDatastoresItem(DatastoresResult datastoresItem) { + if (this.datastores == null) { + this.datastores = new ArrayList<>(); + } + this.datastores.add(datastoresItem); + return this; + } + + public ListDatastoresDetailsResponse withDatastores(Consumer> datastoresSetter) { + if (this.datastores == null) { + this.datastores = new ArrayList<>(); + } + datastoresSetter.accept(this.datastores); + return this; + } + + /** + * Get datastores + * @return datastores + */ + public List getDatastores() { + return datastores; + } + + public void setDatastores(List datastores) { + this.datastores = datastores; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListDatastoresDetailsResponse that = (ListDatastoresDetailsResponse) obj; + return Objects.equals(this.datastores, that.datastores); + } + + @Override + public int hashCode() { + return Objects.hash(datastores); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDatastoresDetailsResponse {\n"); + sb.append(" datastores: ").append(toIndentedString(datastores)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListFlavorsDetailsRequest.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListFlavorsDetailsRequest.java new file mode 100644 index 0000000000..6280838adc --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListFlavorsDetailsRequest.java @@ -0,0 +1,191 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListFlavorsDetailsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version") + + private String version; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "spec_code") + + private String specCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ha_mode") + + private String haMode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + public ListFlavorsDetailsRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 语言 + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + + public ListFlavorsDetailsRequest withVersion(String version) { + this.version = version; + return this; + } + + /** + * 数据库版本号。 + * @return version + */ + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public ListFlavorsDetailsRequest withSpecCode(String specCode) { + this.specCode = specCode; + return this; + } + + /** + * 规格编码 + * @return specCode + */ + public String getSpecCode() { + return specCode; + } + + public void setSpecCode(String specCode) { + this.specCode = specCode; + } + + public ListFlavorsDetailsRequest withHaMode(String haMode) { + this.haMode = haMode; + return this; + } + + /** + * 实例类型 集中式centralization_standard 分布式enterprise + * @return haMode + */ + public String getHaMode() { + return haMode; + } + + public void setHaMode(String haMode) { + this.haMode = haMode; + } + + public ListFlavorsDetailsRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListFlavorsDetailsRequest 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; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListFlavorsDetailsRequest that = (ListFlavorsDetailsRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.version, that.version) + && Objects.equals(this.specCode, that.specCode) && Objects.equals(this.haMode, that.haMode) + && Objects.equals(this.limit, that.limit) && Objects.equals(this.offset, that.offset); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, version, specCode, haMode, limit, offset); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListFlavorsDetailsRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" specCode: ").append(toIndentedString(specCode)).append("\n"); + sb.append(" haMode: ").append(toIndentedString(haMode)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListFlavorsDetailsResponse.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListFlavorsDetailsResponse.java new file mode 100644 index 0000000000..eb44962e23 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListFlavorsDetailsResponse.java @@ -0,0 +1,115 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListFlavorsDetailsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flavors") + + private List flavors = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + public ListFlavorsDetailsResponse withFlavors(List flavors) { + this.flavors = flavors; + return this; + } + + public ListFlavorsDetailsResponse addFlavorsItem(FlavorResult flavorsItem) { + if (this.flavors == null) { + this.flavors = new ArrayList<>(); + } + this.flavors.add(flavorsItem); + return this; + } + + public ListFlavorsDetailsResponse withFlavors(Consumer> flavorsSetter) { + if (this.flavors == null) { + this.flavors = new ArrayList<>(); + } + flavorsSetter.accept(this.flavors); + return this; + } + + /** + * 实例规格信息。 + * @return flavors + */ + public List getFlavors() { + return flavors; + } + + public void setFlavors(List flavors) { + this.flavors = flavors; + } + + public ListFlavorsDetailsResponse withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 查询总数 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListFlavorsDetailsResponse that = (ListFlavorsDetailsResponse) obj; + return Objects.equals(this.flavors, that.flavors) && Objects.equals(this.total, that.total); + } + + @Override + public int hashCode() { + return Objects.hash(flavors, total); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListFlavorsDetailsResponse {\n"); + sb.append(" flavors: ").append(toIndentedString(flavors)).append("\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListParameterGroupTemplatesRequest.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListParameterGroupTemplatesRequest.java new file mode 100644 index 0000000000..166bff7921 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListParameterGroupTemplatesRequest.java @@ -0,0 +1,196 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Request Object + */ +public class ListParameterGroupTemplatesRequest { + + /** + * 语言 + */ + public static final class XLanguageEnum { + + /** + * Enum ZH_CN for value: "zh-cn" + */ + public static final XLanguageEnum ZH_CN = new XLanguageEnum("zh-cn"); + + /** + * Enum EN_US for value: "en-us" + */ + public static final XLanguageEnum EN_US = new XLanguageEnum("en-us"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("zh-cn", ZH_CN); + map.put("en-us", EN_US); + return Collections.unmodifiableMap(map); + } + + private String value; + + XLanguageEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static XLanguageEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new XLanguageEnum(value)); + } + + public static XLanguageEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof XLanguageEnum) { + return this.value.equals(((XLanguageEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private XLanguageEnum xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + public ListParameterGroupTemplatesRequest 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 ListParameterGroupTemplatesRequest 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 ListParameterGroupTemplatesRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListParameterGroupTemplatesRequest that = (ListParameterGroupTemplatesRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.offset, that.offset) + && Objects.equals(this.limit, that.limit); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, offset, limit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListParameterGroupTemplatesRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).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/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListParameterGroupTemplatesResponse.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListParameterGroupTemplatesResponse.java new file mode 100644 index 0000000000..09c79cbf98 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListParameterGroupTemplatesResponse.java @@ -0,0 +1,116 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListParameterGroupTemplatesResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "count") + + private Integer count; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "configurations") + + private List configurations = null; + + public ListParameterGroupTemplatesResponse withCount(Integer count) { + this.count = count; + return this; + } + + /** + * 参数模板数量。 + * @return count + */ + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public ListParameterGroupTemplatesResponse withConfigurations(List configurations) { + this.configurations = configurations; + return this; + } + + public ListParameterGroupTemplatesResponse addConfigurationsItem(ConfigurationsResult configurationsItem) { + if (this.configurations == null) { + this.configurations = new ArrayList<>(); + } + this.configurations.add(configurationsItem); + return this; + } + + public ListParameterGroupTemplatesResponse withConfigurations( + Consumer> configurationsSetter) { + if (this.configurations == null) { + this.configurations = new ArrayList<>(); + } + configurationsSetter.accept(this.configurations); + return this; + } + + /** + * 参数模板列表。 + * @return configurations + */ + public List getConfigurations() { + return configurations; + } + + public void setConfigurations(List configurations) { + this.configurations = configurations; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListParameterGroupTemplatesResponse that = (ListParameterGroupTemplatesResponse) obj; + return Objects.equals(this.count, that.count) && Objects.equals(this.configurations, that.configurations); + } + + @Override + public int hashCode() { + return Objects.hash(count, configurations); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListParameterGroupTemplatesResponse {\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" configurations: ").append(toIndentedString(configurations)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListRecycleInstancesDetailsRequest.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListRecycleInstancesDetailsRequest.java new file mode 100644 index 0000000000..cf684cf03f --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListRecycleInstancesDetailsRequest.java @@ -0,0 +1,219 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Request Object + */ +public class ListRecycleInstancesDetailsRequest { + + /** + * 语言。默认值:en-us。 + */ + public static final class XLanguageEnum { + + /** + * Enum ZH_CN for value: "zh-cn" + */ + public static final XLanguageEnum ZH_CN = new XLanguageEnum("zh-cn"); + + /** + * Enum EN_US for value: "en-us" + */ + public static final XLanguageEnum EN_US = new XLanguageEnum("en-us"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("zh-cn", ZH_CN); + map.put("en-us", EN_US); + return Collections.unmodifiableMap(map); + } + + private String value; + + XLanguageEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static XLanguageEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new XLanguageEnum(value)); + } + + public static XLanguageEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof XLanguageEnum) { + return this.value.equals(((XLanguageEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private XLanguageEnum xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_name") + + private String instanceName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + public ListRecycleInstancesDetailsRequest withXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 语言。默认值:en-us。 + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public XLanguageEnum getXLanguage() { + return xLanguage; + } + + public void setXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + } + + public ListRecycleInstancesDetailsRequest withInstanceName(String instanceName) { + this.instanceName = instanceName; + return this; + } + + /** + * 实例名称。 + * @return instanceName + */ + public String getInstanceName() { + return instanceName; + } + + public void setInstanceName(String instanceName) { + this.instanceName = instanceName; + } + + public ListRecycleInstancesDetailsRequest 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 ListRecycleInstancesDetailsRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 查询记录数。默认为50,不能为负数,最小值为1,最大值为50。 + * @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; + } + ListRecycleInstancesDetailsRequest that = (ListRecycleInstancesDetailsRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.instanceName, that.instanceName) + && Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, instanceName, offset, limit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListRecycleInstancesDetailsRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" instanceName: ").append(toIndentedString(instanceName)).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/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListRecycleInstancesDetailsResponse.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListRecycleInstancesDetailsResponse.java new file mode 100644 index 0000000000..23f857e543 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListRecycleInstancesDetailsResponse.java @@ -0,0 +1,116 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListRecycleInstancesDetailsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_count") + + private Integer totalCount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instances") + + private List instances = null; + + public ListRecycleInstancesDetailsResponse withTotalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * 回收站所有引擎实例总数。 + * @return totalCount + */ + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public ListRecycleInstancesDetailsResponse withInstances(List instances) { + this.instances = instances; + return this; + } + + public ListRecycleInstancesDetailsResponse addInstancesItem(RecycleInstancesDetailResultV1 instancesItem) { + if (this.instances == null) { + this.instances = new ArrayList<>(); + } + this.instances.add(instancesItem); + return this; + } + + public ListRecycleInstancesDetailsResponse withInstances( + Consumer> instancesSetter) { + if (this.instances == null) { + this.instances = new ArrayList<>(); + } + instancesSetter.accept(this.instances); + return this; + } + + /** + * 回收站所有引擎实例信息。 + * @return instances + */ + public List getInstances() { + return instances; + } + + public void setInstances(List instances) { + this.instances = instances; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListRecycleInstancesDetailsResponse that = (ListRecycleInstancesDetailsResponse) obj; + return Objects.equals(this.totalCount, that.totalCount) && Objects.equals(this.instances, that.instances); + } + + @Override + public int hashCode() { + return Objects.hash(totalCount, instances); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListRecycleInstancesDetailsResponse {\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" instances: ").append(toIndentedString(instances)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListRestorableInstancesDetailsRequest.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListRestorableInstancesDetailsRequest.java new file mode 100644 index 0000000000..807f5963a1 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListRestorableInstancesDetailsRequest.java @@ -0,0 +1,192 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListRestorableInstancesDetailsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_instance_id") + + private String sourceInstanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "backup_id") + + private String backupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "restore_time") + + private String restoreTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + public ListRestorableInstancesDetailsRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 语言。 + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + + public ListRestorableInstancesDetailsRequest withSourceInstanceId(String sourceInstanceId) { + this.sourceInstanceId = sourceInstanceId; + return this; + } + + /** + * 源实例id,需要恢复的实例ID。 + * @return sourceInstanceId + */ + public String getSourceInstanceId() { + return sourceInstanceId; + } + + public void setSourceInstanceId(String sourceInstanceId) { + this.sourceInstanceId = sourceInstanceId; + } + + public ListRestorableInstancesDetailsRequest withBackupId(String backupId) { + this.backupId = backupId; + return this; + } + + /** + * 实例备份信息ID,根据备份ID查询实例拓扑信息,过滤查询出来的实例,包含节点数,副本数等。参数为空时,根据restore_time查询。。 + * @return backupId + */ + public String getBackupId() { + return backupId; + } + + public void setBackupId(String backupId) { + this.backupId = backupId; + } + + public ListRestorableInstancesDetailsRequest withRestoreTime(String restoreTime) { + this.restoreTime = restoreTime; + return this; + } + + /** + * 恢复点,当备份ID为空时,通过此参数查询实例拓扑信息,过滤实例列表。 + * @return restoreTime + */ + public String getRestoreTime() { + return restoreTime; + } + + public void setRestoreTime(String restoreTime) { + this.restoreTime = restoreTime; + } + + public ListRestorableInstancesDetailsRequest 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 ListRestorableInstancesDetailsRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListRestorableInstancesDetailsRequest that = (ListRestorableInstancesDetailsRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) + && Objects.equals(this.sourceInstanceId, that.sourceInstanceId) + && Objects.equals(this.backupId, that.backupId) && Objects.equals(this.restoreTime, that.restoreTime) + && Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, sourceInstanceId, backupId, restoreTime, offset, limit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListRestorableInstancesDetailsRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" sourceInstanceId: ").append(toIndentedString(sourceInstanceId)).append("\n"); + sb.append(" backupId: ").append(toIndentedString(backupId)).append("\n"); + sb.append(" restoreTime: ").append(toIndentedString(restoreTime)).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/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListRestorableInstancesDetailsResponse.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListRestorableInstancesDetailsResponse.java new file mode 100644 index 0000000000..c62f74d275 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ListRestorableInstancesDetailsResponse.java @@ -0,0 +1,115 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListRestorableInstancesDetailsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instances") + + private List instances = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_count") + + private Integer totalCount; + + public ListRestorableInstancesDetailsResponse withInstances(List instances) { + this.instances = instances; + return this; + } + + public ListRestorableInstancesDetailsResponse addInstancesItem(InstancesResult instancesItem) { + if (this.instances == null) { + this.instances = new ArrayList<>(); + } + this.instances.add(instancesItem); + return this; + } + + public ListRestorableInstancesDetailsResponse withInstances(Consumer> instancesSetter) { + if (this.instances == null) { + this.instances = new ArrayList<>(); + } + instancesSetter.accept(this.instances); + return this; + } + + /** + * 返回可用于备份恢复的实例列表。 + * @return instances + */ + public List getInstances() { + return instances; + } + + public void setInstances(List instances) { + this.instances = instances; + } + + public ListRestorableInstancesDetailsResponse 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; + } + ListRestorableInstancesDetailsResponse that = (ListRestorableInstancesDetailsResponse) obj; + return Objects.equals(this.instances, that.instances) && Objects.equals(this.totalCount, that.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(instances, totalCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListRestorableInstancesDetailsResponse {\n"); + sb.append(" instances: ").append(toIndentedString(instances)).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/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RecycleInstancesDetailResultV1.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RecycleInstancesDetailResultV1.java new file mode 100644 index 0000000000..ae9235448f --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RecycleInstancesDetailResultV1.java @@ -0,0 +1,833 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * RecycleInstancesDetailResultV1 + */ +public class RecycleInstancesDetailResultV1 { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + /** + * 部署形态(Ha:主备版;Independent:独立部署;Combined:混合部署)。 + */ + public static final class HaModeEnum { + + /** + * Enum HA for value: "Ha" + */ + public static final HaModeEnum HA = new HaModeEnum("Ha"); + + /** + * Enum INDEPENDENT for value: "Independent" + */ + public static final HaModeEnum INDEPENDENT = new HaModeEnum("Independent"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("Ha", HA); + map.put("Independent", INDEPENDENT); + return Collections.unmodifiableMap(map); + } + + private String value; + + HaModeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static HaModeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new HaModeEnum(value)); + } + + public static HaModeEnum 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 HaModeEnum) { + return this.value.equals(((HaModeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ha_mode") + + private HaModeEnum haMode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "engine_name") + + private String engineName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "engine_version") + + private String engineVersion; + + /** + * 计费模式(0:按需计费;1:包年/包月)。 + */ + public static final class PayModelEnum { + + /** + * Enum _0 for value: "0" + */ + public static final PayModelEnum _0 = new PayModelEnum("0"); + + /** + * Enum _1 for value: "1" + */ + public static final PayModelEnum _1 = new PayModelEnum("1"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("0", _0); + map.put("1", _1); + return Collections.unmodifiableMap(map); + } + + private String value; + + PayModelEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static PayModelEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new PayModelEnum(value)); + } + + public static PayModelEnum 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 PayModelEnum) { + return this.value.equals(((PayModelEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pay_model") + + private PayModelEnum payModel; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "created_at") + + private String createdAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "deleted_at") + + private String deletedAt; + + /** + * 磁盘类型。(SAS:high;SSD:ultrahigh;ESSD:essd)。 + */ + public static final class VolumeTypeEnum { + + /** + * Enum HIGH for value: "high" + */ + public static final VolumeTypeEnum HIGH = new VolumeTypeEnum("high"); + + /** + * Enum ULTRAHIGH for value: "ultrahigh" + */ + public static final VolumeTypeEnum ULTRAHIGH = new VolumeTypeEnum("ultrahigh"); + + /** + * Enum ESSD for value: "essd" + */ + public static final VolumeTypeEnum ESSD = new VolumeTypeEnum("essd"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("high", HIGH); + map.put("ultrahigh", ULTRAHIGH); + map.put("essd", ESSD); + return Collections.unmodifiableMap(map); + } + + private String value; + + VolumeTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static VolumeTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new VolumeTypeEnum(value)); + } + + public static VolumeTypeEnum 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 VolumeTypeEnum) { + return this.value.equals(((VolumeTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "volume_type") + + private VolumeTypeEnum volumeType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "volume_size") + + private String volumeSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_vip") + + private String dataVip; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private String enterpriseProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_name") + + private String enterpriseProjectName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "backup_level") + + private String backupLevel; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "recycle_backup_id") + + private String recycleBackupId; + + /** + * 回收站备份状态。(Running:运行中;Active:有效的)。 + */ + public static final class RecycleStatusEnum { + + /** + * Enum RUNNING for value: "Running" + */ + public static final RecycleStatusEnum RUNNING = new RecycleStatusEnum("Running"); + + /** + * Enum ACTIVE for value: "Active" + */ + public static final RecycleStatusEnum ACTIVE = new RecycleStatusEnum("Active"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("Running", RUNNING); + map.put("Active", ACTIVE); + return Collections.unmodifiableMap(map); + } + + private String value; + + RecycleStatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static RecycleStatusEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new RecycleStatusEnum(value)); + } + + public static RecycleStatusEnum 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 RecycleStatusEnum) { + return this.value.equals(((RecycleStatusEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "recycle_status") + + private RecycleStatusEnum recycleStatus; + + /** + * 产品类型(basic:基础版;standard:标准版;enterprise:企业版)。 + */ + public static final class ModeEnum { + + /** + * Enum BASIC for value: "basic" + */ + public static final ModeEnum BASIC = new ModeEnum("basic"); + + /** + * Enum STANDARD for value: "standard" + */ + public static final ModeEnum STANDARD = new ModeEnum("standard"); + + /** + * Enum ENTERPRISE for value: "enterprise" + */ + public static final ModeEnum ENTERPRISE = new ModeEnum("enterprise"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("basic", BASIC); + map.put("standard", STANDARD); + map.put("enterprise", ENTERPRISE); + return Collections.unmodifiableMap(map); + } + + private String value; + + ModeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ModeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ModeEnum(value)); + } + + public static ModeEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof ModeEnum) { + return this.value.equals(((ModeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "mode") + + private ModeEnum mode; + + public RecycleInstancesDetailResultV1 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 RecycleInstancesDetailResultV1 withName(String name) { + this.name = name; + return this; + } + + /** + * 实例名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public RecycleInstancesDetailResultV1 withHaMode(HaModeEnum haMode) { + this.haMode = haMode; + return this; + } + + /** + * 部署形态(Ha:主备版;Independent:独立部署;Combined:混合部署)。 + * @return haMode + */ + public HaModeEnum getHaMode() { + return haMode; + } + + public void setHaMode(HaModeEnum haMode) { + this.haMode = haMode; + } + + public RecycleInstancesDetailResultV1 withEngineName(String engineName) { + this.engineName = engineName; + return this; + } + + /** + * 引擎名称 + * @return engineName + */ + public String getEngineName() { + return engineName; + } + + public void setEngineName(String engineName) { + this.engineName = engineName; + } + + public RecycleInstancesDetailResultV1 withEngineVersion(String engineVersion) { + this.engineVersion = engineVersion; + return this; + } + + /** + * 引擎版本号。 + * @return engineVersion + */ + public String getEngineVersion() { + return engineVersion; + } + + public void setEngineVersion(String engineVersion) { + this.engineVersion = engineVersion; + } + + public RecycleInstancesDetailResultV1 withPayModel(PayModelEnum payModel) { + this.payModel = payModel; + return this; + } + + /** + * 计费模式(0:按需计费;1:包年/包月)。 + * @return payModel + */ + public PayModelEnum getPayModel() { + return payModel; + } + + public void setPayModel(PayModelEnum payModel) { + this.payModel = payModel; + } + + public RecycleInstancesDetailResultV1 withCreatedAt(String createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * 创建时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + * @return createdAt + */ + public String getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(String createdAt) { + this.createdAt = createdAt; + } + + public RecycleInstancesDetailResultV1 withDeletedAt(String deletedAt) { + this.deletedAt = deletedAt; + return this; + } + + /** + * 删除时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + * @return deletedAt + */ + public String getDeletedAt() { + return deletedAt; + } + + public void setDeletedAt(String deletedAt) { + this.deletedAt = deletedAt; + } + + public RecycleInstancesDetailResultV1 withVolumeType(VolumeTypeEnum volumeType) { + this.volumeType = volumeType; + return this; + } + + /** + * 磁盘类型。(SAS:high;SSD:ultrahigh;ESSD:essd)。 + * @return volumeType + */ + public VolumeTypeEnum getVolumeType() { + return volumeType; + } + + public void setVolumeType(VolumeTypeEnum volumeType) { + this.volumeType = volumeType; + } + + public RecycleInstancesDetailResultV1 withVolumeSize(String volumeSize) { + this.volumeSize = volumeSize; + return this; + } + + /** + * 磁盘大小 + * @return volumeSize + */ + public String getVolumeSize() { + return volumeSize; + } + + public void setVolumeSize(String volumeSize) { + this.volumeSize = volumeSize; + } + + public RecycleInstancesDetailResultV1 withDataVip(String dataVip) { + this.dataVip = dataVip; + return this; + } + + /** + * 数据vip。 + * @return dataVip + */ + public String getDataVip() { + return dataVip; + } + + public void setDataVip(String dataVip) { + this.dataVip = dataVip; + } + + public RecycleInstancesDetailResultV1 withEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + return this; + } + + /** + * 企业项目ID。 + * @return enterpriseProjectId + */ + public String getEnterpriseProjectId() { + return enterpriseProjectId; + } + + public void setEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + } + + public RecycleInstancesDetailResultV1 withEnterpriseProjectName(String enterpriseProjectName) { + this.enterpriseProjectName = enterpriseProjectName; + return this; + } + + /** + * 企业项目名称 + * @return enterpriseProjectName + */ + public String getEnterpriseProjectName() { + return enterpriseProjectName; + } + + public void setEnterpriseProjectName(String enterpriseProjectName) { + this.enterpriseProjectName = enterpriseProjectName; + } + + public RecycleInstancesDetailResultV1 withBackupLevel(String backupLevel) { + this.backupLevel = backupLevel; + return this; + } + + /** + * 备份级别 + * @return backupLevel + */ + public String getBackupLevel() { + return backupLevel; + } + + public void setBackupLevel(String backupLevel) { + this.backupLevel = backupLevel; + } + + public RecycleInstancesDetailResultV1 withRecycleBackupId(String recycleBackupId) { + this.recycleBackupId = recycleBackupId; + return this; + } + + /** + * 备份ID。(指删除实例时产生备份信息中的备份ID)。 + * @return recycleBackupId + */ + public String getRecycleBackupId() { + return recycleBackupId; + } + + public void setRecycleBackupId(String recycleBackupId) { + this.recycleBackupId = recycleBackupId; + } + + public RecycleInstancesDetailResultV1 withRecycleStatus(RecycleStatusEnum recycleStatus) { + this.recycleStatus = recycleStatus; + return this; + } + + /** + * 回收站备份状态。(Running:运行中;Active:有效的)。 + * @return recycleStatus + */ + public RecycleStatusEnum getRecycleStatus() { + return recycleStatus; + } + + public void setRecycleStatus(RecycleStatusEnum recycleStatus) { + this.recycleStatus = recycleStatus; + } + + public RecycleInstancesDetailResultV1 withMode(ModeEnum mode) { + this.mode = mode; + return this; + } + + /** + * 产品类型(basic:基础版;standard:标准版;enterprise:企业版)。 + * @return mode + */ + public ModeEnum getMode() { + return mode; + } + + public void setMode(ModeEnum mode) { + this.mode = mode; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RecycleInstancesDetailResultV1 that = (RecycleInstancesDetailResultV1) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.haMode, that.haMode) && Objects.equals(this.engineName, that.engineName) + && Objects.equals(this.engineVersion, that.engineVersion) && Objects.equals(this.payModel, that.payModel) + && Objects.equals(this.createdAt, that.createdAt) && Objects.equals(this.deletedAt, that.deletedAt) + && Objects.equals(this.volumeType, that.volumeType) && Objects.equals(this.volumeSize, that.volumeSize) + && Objects.equals(this.dataVip, that.dataVip) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) + && Objects.equals(this.enterpriseProjectName, that.enterpriseProjectName) + && Objects.equals(this.backupLevel, that.backupLevel) + && Objects.equals(this.recycleBackupId, that.recycleBackupId) + && Objects.equals(this.recycleStatus, that.recycleStatus) && Objects.equals(this.mode, that.mode); + } + + @Override + public int hashCode() { + return Objects.hash(id, + name, + haMode, + engineName, + engineVersion, + payModel, + createdAt, + deletedAt, + volumeType, + volumeSize, + dataVip, + enterpriseProjectId, + enterpriseProjectName, + backupLevel, + recycleBackupId, + recycleStatus, + mode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RecycleInstancesDetailResultV1 {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" haMode: ").append(toIndentedString(haMode)).append("\n"); + sb.append(" engineName: ").append(toIndentedString(engineName)).append("\n"); + sb.append(" engineVersion: ").append(toIndentedString(engineVersion)).append("\n"); + sb.append(" payModel: ").append(toIndentedString(payModel)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" deletedAt: ").append(toIndentedString(deletedAt)).append("\n"); + sb.append(" volumeType: ").append(toIndentedString(volumeType)).append("\n"); + sb.append(" volumeSize: ").append(toIndentedString(volumeSize)).append("\n"); + sb.append(" dataVip: ").append(toIndentedString(dataVip)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append(" enterpriseProjectName: ").append(toIndentedString(enterpriseProjectName)).append("\n"); + sb.append(" backupLevel: ").append(toIndentedString(backupLevel)).append("\n"); + sb.append(" recycleBackupId: ").append(toIndentedString(recycleBackupId)).append("\n"); + sb.append(" recycleStatus: ").append(toIndentedString(recycleStatus)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowInstanceParamGroupDetailRequest.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowInstanceParamGroupDetailRequest.java new file mode 100644 index 0000000000..9fc84d1f76 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowInstanceParamGroupDetailRequest.java @@ -0,0 +1,97 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowInstanceParamGroupDetailRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + public ShowInstanceParamGroupDetailRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 语言 + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + + public ShowInstanceParamGroupDetailRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowInstanceParamGroupDetailRequest that = (ShowInstanceParamGroupDetailRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.instanceId, that.instanceId); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, instanceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowInstanceParamGroupDetailRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowInstanceParamGroupDetailResponse.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowInstanceParamGroupDetailResponse.java new file mode 100644 index 0000000000..8dc660d27c --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowInstanceParamGroupDetailResponse.java @@ -0,0 +1,190 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import 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 ShowInstanceParamGroupDetailResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "datastore_version") + + private String datastoreVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "datastore_name") + + private String datastoreName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "created") + + private String created; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "updated") + + private String updated; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "configuration_parameters") + + private List configurationParameters = null; + + public ShowInstanceParamGroupDetailResponse withDatastoreVersion(String datastoreVersion) { + this.datastoreVersion = datastoreVersion; + return this; + } + + /** + * 引擎版本。 + * @return datastoreVersion + */ + public String getDatastoreVersion() { + return datastoreVersion; + } + + public void setDatastoreVersion(String datastoreVersion) { + this.datastoreVersion = datastoreVersion; + } + + public ShowInstanceParamGroupDetailResponse withDatastoreName(String datastoreName) { + this.datastoreName = datastoreName; + return this; + } + + /** + * 引擎名称。 + * @return datastoreName + */ + public String getDatastoreName() { + return datastoreName; + } + + public void setDatastoreName(String datastoreName) { + this.datastoreName = datastoreName; + } + + public ShowInstanceParamGroupDetailResponse withCreated(String created) { + this.created = created; + return this; + } + + /** + * 创建时间,格式为\"yyyy-MM-dd HH:mm:ss\"。 + * @return created + */ + public String getCreated() { + return created; + } + + public void setCreated(String created) { + this.created = created; + } + + public ShowInstanceParamGroupDetailResponse withUpdated(String updated) { + this.updated = updated; + return this; + } + + /** + * 更新时间,格式为\"yyyy-MM-ddHH:mm:ss\"。 + * @return updated + */ + public String getUpdated() { + return updated; + } + + public void setUpdated(String updated) { + this.updated = updated; + } + + public ShowInstanceParamGroupDetailResponse withConfigurationParameters( + List configurationParameters) { + this.configurationParameters = configurationParameters; + return this; + } + + public ShowInstanceParamGroupDetailResponse addConfigurationParametersItem( + ConfigurationParameter configurationParametersItem) { + if (this.configurationParameters == null) { + this.configurationParameters = new ArrayList<>(); + } + this.configurationParameters.add(configurationParametersItem); + return this; + } + + public ShowInstanceParamGroupDetailResponse withConfigurationParameters( + Consumer> configurationParametersSetter) { + if (this.configurationParameters == null) { + this.configurationParameters = new ArrayList<>(); + } + configurationParametersSetter.accept(this.configurationParameters); + return this; + } + + /** + * 参数对象,用户基于默认参数模板自定义的参数配置。 + * @return configurationParameters + */ + public List getConfigurationParameters() { + return configurationParameters; + } + + public void setConfigurationParameters(List configurationParameters) { + this.configurationParameters = configurationParameters; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowInstanceParamGroupDetailResponse that = (ShowInstanceParamGroupDetailResponse) obj; + return Objects.equals(this.datastoreVersion, that.datastoreVersion) + && Objects.equals(this.datastoreName, that.datastoreName) && Objects.equals(this.created, that.created) + && Objects.equals(this.updated, that.updated) + && Objects.equals(this.configurationParameters, that.configurationParameters); + } + + @Override + public int hashCode() { + return Objects.hash(datastoreVersion, datastoreName, created, updated, configurationParameters); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowInstanceParamGroupDetailResponse {\n"); + sb.append(" datastoreVersion: ").append(toIndentedString(datastoreVersion)).append("\n"); + sb.append(" datastoreName: ").append(toIndentedString(datastoreName)).append("\n"); + sb.append(" created: ").append(toIndentedString(created)).append("\n"); + sb.append(" updated: ").append(toIndentedString(updated)).append("\n"); + sb.append(" configurationParameters: ").append(toIndentedString(configurationParameters)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowParameterGroupDetailRequest.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowParameterGroupDetailRequest.java new file mode 100644 index 0000000000..56ecfeb3f7 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowParameterGroupDetailRequest.java @@ -0,0 +1,172 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Request Object + */ +public class ShowParameterGroupDetailRequest { + + /** + * 语言,默认:en-us。 + */ + public static final class XLanguageEnum { + + /** + * Enum ZH_CN for value: "zh-cn" + */ + public static final XLanguageEnum ZH_CN = new XLanguageEnum("zh-cn"); + + /** + * Enum EN_US for value: "en-us" + */ + public static final XLanguageEnum EN_US = new XLanguageEnum("en-us"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("zh-cn", ZH_CN); + map.put("en-us", EN_US); + return Collections.unmodifiableMap(map); + } + + private String value; + + XLanguageEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static XLanguageEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new XLanguageEnum(value)); + } + + public static XLanguageEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof XLanguageEnum) { + return this.value.equals(((XLanguageEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private XLanguageEnum xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "config_id") + + private String configId; + + public ShowParameterGroupDetailRequest withXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 语言,默认:en-us。 + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public XLanguageEnum getXLanguage() { + return xLanguage; + } + + public void setXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + } + + public ShowParameterGroupDetailRequest withConfigId(String configId) { + this.configId = configId; + return this; + } + + /** + * 参数模板ID + * @return configId + */ + public String getConfigId() { + return configId; + } + + public void setConfigId(String configId) { + this.configId = configId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowParameterGroupDetailRequest that = (ShowParameterGroupDetailRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.configId, that.configId); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, configId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowParameterGroupDetailRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" configId: ").append(toIndentedString(configId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowParameterGroupDetailResponse.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowParameterGroupDetailResponse.java new file mode 100644 index 0000000000..4231f037f6 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowParameterGroupDetailResponse.java @@ -0,0 +1,337 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowParameterGroupDetailResponse extends SdkResponse { + + @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 = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "engine_version") + + private String engineVersion; + + /** + * 实例部署形态。independent:独立;ha:主备。 + */ + public static final class InstanceModeEnum { + + /** + * Enum INDEPENDENT for value: "independent" + */ + public static final InstanceModeEnum INDEPENDENT = new InstanceModeEnum("independent"); + + /** + * Enum HA for value: "ha" + */ + public static final InstanceModeEnum HA = new InstanceModeEnum("ha"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("independent", INDEPENDENT); + map.put("ha", HA); + 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; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "created_at") + + private String createdAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "updated_at") + + private String updatedAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "configuration_parameters") + + private List configurationParameters = null; + + public ShowParameterGroupDetailResponse 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 ShowParameterGroupDetailResponse withName(String name) { + this.name = name; + return this; + } + + /** + * 参数模板名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ShowParameterGroupDetailResponse withDescription(String description) { + this.description = description; + return this; + } + + /** + * 参数模板描述。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ShowParameterGroupDetailResponse withEngineVersion(String engineVersion) { + this.engineVersion = engineVersion; + return this; + } + + /** + * 引擎版本。 [数据库版本。支持V2.0-2.3版本,取值为“V2.0-2.3”]。 + * @return engineVersion + */ + public String getEngineVersion() { + return engineVersion; + } + + public void setEngineVersion(String engineVersion) { + this.engineVersion = engineVersion; + } + + public ShowParameterGroupDetailResponse withInstanceMode(InstanceModeEnum instanceMode) { + this.instanceMode = instanceMode; + return this; + } + + /** + * 实例部署形态。independent:独立;ha:主备。 + * @return instanceMode + */ + public InstanceModeEnum getInstanceMode() { + return instanceMode; + } + + public void setInstanceMode(InstanceModeEnum instanceMode) { + this.instanceMode = instanceMode; + } + + public ShowParameterGroupDetailResponse withCreatedAt(String createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * 创建时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + * @return createdAt + */ + public String getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(String createdAt) { + this.createdAt = createdAt; + } + + public ShowParameterGroupDetailResponse withUpdatedAt(String updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + /** + * 修改时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + * @return updatedAt + */ + public String getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(String updatedAt) { + this.updatedAt = updatedAt; + } + + public ShowParameterGroupDetailResponse withConfigurationParameters( + List configurationParameters) { + this.configurationParameters = configurationParameters; + return this; + } + + public ShowParameterGroupDetailResponse addConfigurationParametersItem( + ParaGroupParameterResult configurationParametersItem) { + if (this.configurationParameters == null) { + this.configurationParameters = new ArrayList<>(); + } + this.configurationParameters.add(configurationParametersItem); + return this; + } + + public ShowParameterGroupDetailResponse withConfigurationParameters( + Consumer> configurationParametersSetter) { + if (this.configurationParameters == null) { + this.configurationParameters = new ArrayList<>(); + } + configurationParametersSetter.accept(this.configurationParameters); + return this; + } + + /** + * 参数详情。 + * @return configurationParameters + */ + public List getConfigurationParameters() { + return configurationParameters; + } + + public void setConfigurationParameters(List configurationParameters) { + this.configurationParameters = configurationParameters; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowParameterGroupDetailResponse that = (ShowParameterGroupDetailResponse) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.description, that.description) + && Objects.equals(this.engineVersion, that.engineVersion) + && Objects.equals(this.instanceMode, that.instanceMode) && Objects.equals(this.createdAt, that.createdAt) + && Objects.equals(this.updatedAt, that.updatedAt) + && Objects.equals(this.configurationParameters, that.configurationParameters); + } + + @Override + public int hashCode() { + return Objects + .hash(id, name, description, engineVersion, instanceMode, createdAt, updatedAt, configurationParameters); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowParameterGroupDetailResponse {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" engineVersion: ").append(toIndentedString(engineVersion)).append("\n"); + sb.append(" instanceMode: ").append(toIndentedString(instanceMode)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" configurationParameters: ").append(toIndentedString(configurationParameters)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowSourceInstanceDetailRequest.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowSourceInstanceDetailRequest.java new file mode 100644 index 0000000000..f1b436fcff --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowSourceInstanceDetailRequest.java @@ -0,0 +1,219 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Request Object + */ +public class ShowSourceInstanceDetailRequest { + + /** + * 语言。默认值:en-us。 + */ + public static final class XLanguageEnum { + + /** + * Enum ZH_CN for value: "zh-cn" + */ + public static final XLanguageEnum ZH_CN = new XLanguageEnum("zh-cn"); + + /** + * Enum EN_US for value: "en-us" + */ + public static final XLanguageEnum EN_US = new XLanguageEnum("en-us"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("zh-cn", ZH_CN); + map.put("en-us", EN_US); + return Collections.unmodifiableMap(map); + } + + private String value; + + XLanguageEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static XLanguageEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new XLanguageEnum(value)); + } + + public static XLanguageEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof XLanguageEnum) { + return this.value.equals(((XLanguageEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private XLanguageEnum xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "restore_time") + + private String restoreTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "backup_id") + + private String backupId; + + public ShowSourceInstanceDetailRequest withXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 语言。默认值:en-us。 + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public XLanguageEnum getXLanguage() { + return xLanguage; + } + + public void setXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + } + + public ShowSourceInstanceDetailRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 原实例ID。 (instance_id 、restore_time为一组) + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ShowSourceInstanceDetailRequest withRestoreTime(String restoreTime) { + this.restoreTime = restoreTime; + return this; + } + + /** + * UNIX时间戳格式,单位是毫秒,时区是UTC,某时间点实例的信息。 (instance_id 、restore_time为一组) + * @return restoreTime + */ + public String getRestoreTime() { + return restoreTime; + } + + public void setRestoreTime(String restoreTime) { + this.restoreTime = restoreTime; + } + + public ShowSourceInstanceDetailRequest withBackupId(String backupId) { + this.backupId = backupId; + return this; + } + + /** + * 备份ID。 (backup_id为一组) 备份ID不为空时,可以不需要实例ID和时间戳。 + * @return backupId + */ + public String getBackupId() { + return backupId; + } + + public void setBackupId(String backupId) { + this.backupId = backupId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowSourceInstanceDetailRequest that = (ShowSourceInstanceDetailRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.restoreTime, that.restoreTime) && Objects.equals(this.backupId, that.backupId); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, instanceId, restoreTime, backupId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowSourceInstanceDetailRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" restoreTime: ").append(toIndentedString(restoreTime)).append("\n"); + sb.append(" backupId: ").append(toIndentedString(backupId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowSourceInstanceDetailResponse.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowSourceInstanceDetailResponse.java new file mode 100644 index 0000000000..4a79a7af58 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowSourceInstanceDetailResponse.java @@ -0,0 +1,491 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Response Object + */ +public class ShowSourceInstanceDetailResponse extends SdkResponse { + + /** + * 实例部署形态。集中式Ha(主备)、分布式Independent(独立部署)。 + */ + public static final class ClusterModeEnum { + + /** + * Enum HA for value: "Ha" + */ + public static final ClusterModeEnum HA = new ClusterModeEnum("Ha"); + + /** + * Enum INDEPENDENT for value: "Independent" + */ + public static final ClusterModeEnum INDEPENDENT = new ClusterModeEnum("Independent"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("Ha", HA); + map.put("Independent", INDEPENDENT); + return Collections.unmodifiableMap(map); + } + + private String value; + + ClusterModeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ClusterModeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ClusterModeEnum(value)); + } + + public static ClusterModeEnum 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 ClusterModeEnum) { + return this.value.equals(((ClusterModeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cluster_mode") + + private ClusterModeEnum clusterMode; + + /** + * 实例模型,企业版enterprise,标准版standard,基础版basic。 + */ + public static final class InstanceModeEnum { + + /** + * Enum BASIC for value: "basic" + */ + public static final InstanceModeEnum BASIC = new InstanceModeEnum("basic"); + + /** + * Enum STANDARD for value: "standard" + */ + public static final InstanceModeEnum STANDARD = new InstanceModeEnum("standard"); + + /** + * Enum ENTERPRISE for value: "enterprise" + */ + public static final InstanceModeEnum ENTERPRISE = new InstanceModeEnum("enterprise"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("basic", BASIC); + map.put("standard", STANDARD); + map.put("enterprise", ENTERPRISE); + 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; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_volume_size") + + private String dataVolumeSize; + + /** + * 解决方案模板类型。集中式Ha一般用triset,分布式Independent一般为空或者默认hws。 描述如下: triset:高可用(1主2备) hws:默认。 + */ + public static final class SolutionEnum { + + /** + * Enum TRISET for value: "triset" + */ + public static final SolutionEnum TRISET = new SolutionEnum("triset"); + + /** + * Enum HWS for value: "hws" + */ + public static final SolutionEnum HWS = new SolutionEnum("hws"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("triset", TRISET); + map.put("hws", HWS); + return Collections.unmodifiableMap(map); + } + + private String value; + + SolutionEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static SolutionEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new SolutionEnum(value)); + } + + public static SolutionEnum 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 SolutionEnum) { + return this.value.equals(((SolutionEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "solution") + + private SolutionEnum solution; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "node_num") + + private Integer nodeNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "coordinator_num") + + private Integer coordinatorNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sharding_num") + + private Integer shardingNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "replica_num") + + private Integer replicaNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "engine_version") + + private String engineVersion; + + public ShowSourceInstanceDetailResponse withClusterMode(ClusterModeEnum clusterMode) { + this.clusterMode = clusterMode; + return this; + } + + /** + * 实例部署形态。集中式Ha(主备)、分布式Independent(独立部署)。 + * @return clusterMode + */ + public ClusterModeEnum getClusterMode() { + return clusterMode; + } + + public void setClusterMode(ClusterModeEnum clusterMode) { + this.clusterMode = clusterMode; + } + + public ShowSourceInstanceDetailResponse withInstanceMode(InstanceModeEnum instanceMode) { + this.instanceMode = instanceMode; + return this; + } + + /** + * 实例模型,企业版enterprise,标准版standard,基础版basic。 + * @return instanceMode + */ + public InstanceModeEnum getInstanceMode() { + return instanceMode; + } + + public void setInstanceMode(InstanceModeEnum instanceMode) { + this.instanceMode = instanceMode; + } + + public ShowSourceInstanceDetailResponse withDataVolumeSize(String dataVolumeSize) { + this.dataVolumeSize = dataVolumeSize; + return this; + } + + /** + * 磁盘大小,单位:GB。 + * @return dataVolumeSize + */ + public String getDataVolumeSize() { + return dataVolumeSize; + } + + public void setDataVolumeSize(String dataVolumeSize) { + this.dataVolumeSize = dataVolumeSize; + } + + public ShowSourceInstanceDetailResponse withSolution(SolutionEnum solution) { + this.solution = solution; + return this; + } + + /** + * 解决方案模板类型。集中式Ha一般用triset,分布式Independent一般为空或者默认hws。 描述如下: triset:高可用(1主2备) hws:默认。 + * @return solution + */ + public SolutionEnum getSolution() { + return solution; + } + + public void setSolution(SolutionEnum solution) { + this.solution = solution; + } + + public ShowSourceInstanceDetailResponse withNodeNum(Integer nodeNum) { + this.nodeNum = nodeNum; + return this; + } + + /** + * 节点数量。 + * @return nodeNum + */ + public Integer getNodeNum() { + return nodeNum; + } + + public void setNodeNum(Integer nodeNum) { + this.nodeNum = nodeNum; + } + + public ShowSourceInstanceDetailResponse withCoordinatorNum(Integer coordinatorNum) { + this.coordinatorNum = coordinatorNum; + return this; + } + + /** + * 协调节点数量。 + * @return coordinatorNum + */ + public Integer getCoordinatorNum() { + return coordinatorNum; + } + + public void setCoordinatorNum(Integer coordinatorNum) { + this.coordinatorNum = coordinatorNum; + } + + public ShowSourceInstanceDetailResponse withShardingNum(Integer shardingNum) { + this.shardingNum = shardingNum; + return this; + } + + /** + * 分片数量。 + * @return shardingNum + */ + public Integer getShardingNum() { + return shardingNum; + } + + public void setShardingNum(Integer shardingNum) { + this.shardingNum = shardingNum; + } + + public ShowSourceInstanceDetailResponse withReplicaNum(Integer replicaNum) { + this.replicaNum = replicaNum; + return this; + } + + /** + * 副本数量。 + * @return replicaNum + */ + public Integer getReplicaNum() { + return replicaNum; + } + + public void setReplicaNum(Integer replicaNum) { + this.replicaNum = replicaNum; + } + + public ShowSourceInstanceDetailResponse withEngineVersion(String engineVersion) { + this.engineVersion = engineVersion; + return this; + } + + /** + * 引擎版本。 + * @return engineVersion + */ + public String getEngineVersion() { + return engineVersion; + } + + public void setEngineVersion(String engineVersion) { + this.engineVersion = engineVersion; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowSourceInstanceDetailResponse that = (ShowSourceInstanceDetailResponse) obj; + return Objects.equals(this.clusterMode, that.clusterMode) + && Objects.equals(this.instanceMode, that.instanceMode) + && Objects.equals(this.dataVolumeSize, that.dataVolumeSize) && Objects.equals(this.solution, that.solution) + && Objects.equals(this.nodeNum, that.nodeNum) && Objects.equals(this.coordinatorNum, that.coordinatorNum) + && Objects.equals(this.shardingNum, that.shardingNum) && Objects.equals(this.replicaNum, that.replicaNum) + && Objects.equals(this.engineVersion, that.engineVersion); + } + + @Override + public int hashCode() { + return Objects.hash(clusterMode, + instanceMode, + dataVolumeSize, + solution, + nodeNum, + coordinatorNum, + shardingNum, + replicaNum, + engineVersion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowSourceInstanceDetailResponse {\n"); + sb.append(" clusterMode: ").append(toIndentedString(clusterMode)).append("\n"); + sb.append(" instanceMode: ").append(toIndentedString(instanceMode)).append("\n"); + sb.append(" dataVolumeSize: ").append(toIndentedString(dataVolumeSize)).append("\n"); + sb.append(" solution: ").append(toIndentedString(solution)).append("\n"); + sb.append(" nodeNum: ").append(toIndentedString(nodeNum)).append("\n"); + sb.append(" coordinatorNum: ").append(toIndentedString(coordinatorNum)).append("\n"); + sb.append(" shardingNum: ").append(toIndentedString(shardingNum)).append("\n"); + sb.append(" replicaNum: ").append(toIndentedString(replicaNum)).append("\n"); + sb.append(" engineVersion: ").append(toIndentedString(engineVersion)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowUpgradeCandidateVersionsDetailsRequest.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowUpgradeCandidateVersionsDetailsRequest.java new file mode 100644 index 0000000000..dd58f8cba3 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowUpgradeCandidateVersionsDetailsRequest.java @@ -0,0 +1,172 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Request Object + */ +public class ShowUpgradeCandidateVersionsDetailsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + /** + * 语言[zh-cn, en-us]。 + */ + public static final class XLanguageEnum { + + /** + * Enum ZH_CN for value: "zh-cn" + */ + public static final XLanguageEnum ZH_CN = new XLanguageEnum("zh-cn"); + + /** + * Enum EN_US for value: "en-us" + */ + public static final XLanguageEnum EN_US = new XLanguageEnum("en-us"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("zh-cn", ZH_CN); + map.put("en-us", EN_US); + return Collections.unmodifiableMap(map); + } + + private String value; + + XLanguageEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static XLanguageEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new XLanguageEnum(value)); + } + + public static XLanguageEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof XLanguageEnum) { + return this.value.equals(((XLanguageEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private XLanguageEnum xLanguage; + + public ShowUpgradeCandidateVersionsDetailsRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ShowUpgradeCandidateVersionsDetailsRequest withXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 语言[zh-cn, en-us]。 + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public XLanguageEnum getXLanguage() { + return xLanguage; + } + + public void setXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowUpgradeCandidateVersionsDetailsRequest that = (ShowUpgradeCandidateVersionsDetailsRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.xLanguage, that.xLanguage); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, xLanguage); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowUpgradeCandidateVersionsDetailsRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowUpgradeCandidateVersionsDetailsResponse.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowUpgradeCandidateVersionsDetailsResponse.java new file mode 100644 index 0000000000..175b0785ac --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowUpgradeCandidateVersionsDetailsResponse.java @@ -0,0 +1,428 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowUpgradeCandidateVersionsDetailsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "upgrade_type_list") + + private List upgradeTypeList = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "rollback_enabled") + + private Boolean rollbackEnabled; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_version") + + private String sourceVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_version") + + private String targetVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "roll_upgrade_progress") + + private RollUpgradeProgress rollUpgradeProgress; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "upgrade_candidate_versions") + + private List upgradeCandidateVersions = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hotfix_upgrade_candidate_versions") + + private List hotfixUpgradeCandidateVersions = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hotfix_rollback_candidate_versions") + + private List hotfixRollbackCandidateVersions = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hotfix_upgrade_infos") + + private List hotfixUpgradeInfos = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hotfix_rollback_infos") + + private List hotfixRollbackInfos = null; + + public ShowUpgradeCandidateVersionsDetailsResponse withUpgradeTypeList(List upgradeTypeList) { + this.upgradeTypeList = upgradeTypeList; + return this; + } + + public ShowUpgradeCandidateVersionsDetailsResponse addUpgradeTypeListItem(UpgradeTypeInfo upgradeTypeListItem) { + if (this.upgradeTypeList == null) { + this.upgradeTypeList = new ArrayList<>(); + } + this.upgradeTypeList.add(upgradeTypeListItem); + return this; + } + + public ShowUpgradeCandidateVersionsDetailsResponse withUpgradeTypeList( + Consumer> upgradeTypeListSetter) { + if (this.upgradeTypeList == null) { + this.upgradeTypeList = new ArrayList<>(); + } + upgradeTypeListSetter.accept(this.upgradeTypeList); + return this; + } + + /** + * 升级类型信息列表 + * @return upgradeTypeList + */ + public List getUpgradeTypeList() { + return upgradeTypeList; + } + + public void setUpgradeTypeList(List upgradeTypeList) { + this.upgradeTypeList = upgradeTypeList; + } + + public ShowUpgradeCandidateVersionsDetailsResponse withRollbackEnabled(Boolean rollbackEnabled) { + this.rollbackEnabled = rollbackEnabled; + return this; + } + + /** + * 是否可以回滚,true可以回滚,false不可以回滚。 + * @return rollbackEnabled + */ + public Boolean getRollbackEnabled() { + return rollbackEnabled; + } + + public void setRollbackEnabled(Boolean rollbackEnabled) { + this.rollbackEnabled = rollbackEnabled; + } + + public ShowUpgradeCandidateVersionsDetailsResponse withSourceVersion(String sourceVersion) { + this.sourceVersion = sourceVersion; + return this; + } + + /** + * 原版本 + * @return sourceVersion + */ + public String getSourceVersion() { + return sourceVersion; + } + + public void setSourceVersion(String sourceVersion) { + this.sourceVersion = sourceVersion; + } + + public ShowUpgradeCandidateVersionsDetailsResponse withTargetVersion(String targetVersion) { + this.targetVersion = targetVersion; + return this; + } + + /** + * 升级目标版本,没有在滚动升级中返回null。 + * @return targetVersion + */ + public String getTargetVersion() { + return targetVersion; + } + + public void setTargetVersion(String targetVersion) { + this.targetVersion = targetVersion; + } + + public ShowUpgradeCandidateVersionsDetailsResponse withRollUpgradeProgress( + RollUpgradeProgress rollUpgradeProgress) { + this.rollUpgradeProgress = rollUpgradeProgress; + return this; + } + + public ShowUpgradeCandidateVersionsDetailsResponse withRollUpgradeProgress( + Consumer rollUpgradeProgressSetter) { + if (this.rollUpgradeProgress == null) { + this.rollUpgradeProgress = new RollUpgradeProgress(); + rollUpgradeProgressSetter.accept(this.rollUpgradeProgress); + } + + return this; + } + + /** + * Get rollUpgradeProgress + * @return rollUpgradeProgress + */ + public RollUpgradeProgress getRollUpgradeProgress() { + return rollUpgradeProgress; + } + + public void setRollUpgradeProgress(RollUpgradeProgress rollUpgradeProgress) { + this.rollUpgradeProgress = rollUpgradeProgress; + } + + public ShowUpgradeCandidateVersionsDetailsResponse withUpgradeCandidateVersions( + List upgradeCandidateVersions) { + this.upgradeCandidateVersions = upgradeCandidateVersions; + return this; + } + + public ShowUpgradeCandidateVersionsDetailsResponse addUpgradeCandidateVersionsItem( + String upgradeCandidateVersionsItem) { + if (this.upgradeCandidateVersions == null) { + this.upgradeCandidateVersions = new ArrayList<>(); + } + this.upgradeCandidateVersions.add(upgradeCandidateVersionsItem); + return this; + } + + public ShowUpgradeCandidateVersionsDetailsResponse withUpgradeCandidateVersions( + Consumer> upgradeCandidateVersionsSetter) { + if (this.upgradeCandidateVersions == null) { + this.upgradeCandidateVersions = new ArrayList<>(); + } + upgradeCandidateVersionsSetter.accept(this.upgradeCandidateVersions); + return this; + } + + /** + * 可以升级的版本,包括大小版本,滚动升级中返回空数组。 + * @return upgradeCandidateVersions + */ + public List getUpgradeCandidateVersions() { + return upgradeCandidateVersions; + } + + public void setUpgradeCandidateVersions(List upgradeCandidateVersions) { + this.upgradeCandidateVersions = upgradeCandidateVersions; + } + + public ShowUpgradeCandidateVersionsDetailsResponse withHotfixUpgradeCandidateVersions( + List hotfixUpgradeCandidateVersions) { + this.hotfixUpgradeCandidateVersions = hotfixUpgradeCandidateVersions; + return this; + } + + public ShowUpgradeCandidateVersionsDetailsResponse addHotfixUpgradeCandidateVersionsItem( + String hotfixUpgradeCandidateVersionsItem) { + if (this.hotfixUpgradeCandidateVersions == null) { + this.hotfixUpgradeCandidateVersions = new ArrayList<>(); + } + this.hotfixUpgradeCandidateVersions.add(hotfixUpgradeCandidateVersionsItem); + return this; + } + + public ShowUpgradeCandidateVersionsDetailsResponse withHotfixUpgradeCandidateVersions( + Consumer> hotfixUpgradeCandidateVersionsSetter) { + if (this.hotfixUpgradeCandidateVersions == null) { + this.hotfixUpgradeCandidateVersions = new ArrayList<>(); + } + hotfixUpgradeCandidateVersionsSetter.accept(this.hotfixUpgradeCandidateVersions); + return this; + } + + /** + * 可以升级的热补丁版本,滚动升级中返回空数组。 + * @return hotfixUpgradeCandidateVersions + */ + public List getHotfixUpgradeCandidateVersions() { + return hotfixUpgradeCandidateVersions; + } + + public void setHotfixUpgradeCandidateVersions(List hotfixUpgradeCandidateVersions) { + this.hotfixUpgradeCandidateVersions = hotfixUpgradeCandidateVersions; + } + + public ShowUpgradeCandidateVersionsDetailsResponse withHotfixRollbackCandidateVersions( + List hotfixRollbackCandidateVersions) { + this.hotfixRollbackCandidateVersions = hotfixRollbackCandidateVersions; + return this; + } + + public ShowUpgradeCandidateVersionsDetailsResponse addHotfixRollbackCandidateVersionsItem( + String hotfixRollbackCandidateVersionsItem) { + if (this.hotfixRollbackCandidateVersions == null) { + this.hotfixRollbackCandidateVersions = new ArrayList<>(); + } + this.hotfixRollbackCandidateVersions.add(hotfixRollbackCandidateVersionsItem); + return this; + } + + public ShowUpgradeCandidateVersionsDetailsResponse withHotfixRollbackCandidateVersions( + Consumer> hotfixRollbackCandidateVersionsSetter) { + if (this.hotfixRollbackCandidateVersions == null) { + this.hotfixRollbackCandidateVersions = new ArrayList<>(); + } + hotfixRollbackCandidateVersionsSetter.accept(this.hotfixRollbackCandidateVersions); + return this; + } + + /** + * 可以回滚的热补丁版本,滚动升级中返回空数组。 + * @return hotfixRollbackCandidateVersions + */ + public List getHotfixRollbackCandidateVersions() { + return hotfixRollbackCandidateVersions; + } + + public void setHotfixRollbackCandidateVersions(List hotfixRollbackCandidateVersions) { + this.hotfixRollbackCandidateVersions = hotfixRollbackCandidateVersions; + } + + public ShowUpgradeCandidateVersionsDetailsResponse withHotfixUpgradeInfos( + List hotfixUpgradeInfos) { + this.hotfixUpgradeInfos = hotfixUpgradeInfos; + return this; + } + + public ShowUpgradeCandidateVersionsDetailsResponse addHotfixUpgradeInfosItem( + CanBeUpgradedHotfixDetail hotfixUpgradeInfosItem) { + if (this.hotfixUpgradeInfos == null) { + this.hotfixUpgradeInfos = new ArrayList<>(); + } + this.hotfixUpgradeInfos.add(hotfixUpgradeInfosItem); + return this; + } + + public ShowUpgradeCandidateVersionsDetailsResponse withHotfixUpgradeInfos( + Consumer> hotfixUpgradeInfosSetter) { + if (this.hotfixUpgradeInfos == null) { + this.hotfixUpgradeInfos = new ArrayList<>(); + } + hotfixUpgradeInfosSetter.accept(this.hotfixUpgradeInfos); + return this; + } + + /** + * 可以升级的热补丁信息。 + * @return hotfixUpgradeInfos + */ + public List getHotfixUpgradeInfos() { + return hotfixUpgradeInfos; + } + + public void setHotfixUpgradeInfos(List hotfixUpgradeInfos) { + this.hotfixUpgradeInfos = hotfixUpgradeInfos; + } + + public ShowUpgradeCandidateVersionsDetailsResponse withHotfixRollbackInfos( + List hotfixRollbackInfos) { + this.hotfixRollbackInfos = hotfixRollbackInfos; + return this; + } + + public ShowUpgradeCandidateVersionsDetailsResponse addHotfixRollbackInfosItem( + CanBeRollbackedHotfixDetail hotfixRollbackInfosItem) { + if (this.hotfixRollbackInfos == null) { + this.hotfixRollbackInfos = new ArrayList<>(); + } + this.hotfixRollbackInfos.add(hotfixRollbackInfosItem); + return this; + } + + public ShowUpgradeCandidateVersionsDetailsResponse withHotfixRollbackInfos( + Consumer> hotfixRollbackInfosSetter) { + if (this.hotfixRollbackInfos == null) { + this.hotfixRollbackInfos = new ArrayList<>(); + } + hotfixRollbackInfosSetter.accept(this.hotfixRollbackInfos); + return this; + } + + /** + * 可以回滚的热补丁信息。 + * @return hotfixRollbackInfos + */ + public List getHotfixRollbackInfos() { + return hotfixRollbackInfos; + } + + public void setHotfixRollbackInfos(List hotfixRollbackInfos) { + this.hotfixRollbackInfos = hotfixRollbackInfos; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowUpgradeCandidateVersionsDetailsResponse that = (ShowUpgradeCandidateVersionsDetailsResponse) obj; + return Objects.equals(this.upgradeTypeList, that.upgradeTypeList) + && Objects.equals(this.rollbackEnabled, that.rollbackEnabled) + && Objects.equals(this.sourceVersion, that.sourceVersion) + && Objects.equals(this.targetVersion, that.targetVersion) + && Objects.equals(this.rollUpgradeProgress, that.rollUpgradeProgress) + && Objects.equals(this.upgradeCandidateVersions, that.upgradeCandidateVersions) + && Objects.equals(this.hotfixUpgradeCandidateVersions, that.hotfixUpgradeCandidateVersions) + && Objects.equals(this.hotfixRollbackCandidateVersions, that.hotfixRollbackCandidateVersions) + && Objects.equals(this.hotfixUpgradeInfos, that.hotfixUpgradeInfos) + && Objects.equals(this.hotfixRollbackInfos, that.hotfixRollbackInfos); + } + + @Override + public int hashCode() { + return Objects.hash(upgradeTypeList, + rollbackEnabled, + sourceVersion, + targetVersion, + rollUpgradeProgress, + upgradeCandidateVersions, + hotfixUpgradeCandidateVersions, + hotfixRollbackCandidateVersions, + hotfixUpgradeInfos, + hotfixRollbackInfos); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowUpgradeCandidateVersionsDetailsResponse {\n"); + sb.append(" upgradeTypeList: ").append(toIndentedString(upgradeTypeList)).append("\n"); + sb.append(" rollbackEnabled: ").append(toIndentedString(rollbackEnabled)).append("\n"); + sb.append(" sourceVersion: ").append(toIndentedString(sourceVersion)).append("\n"); + sb.append(" targetVersion: ").append(toIndentedString(targetVersion)).append("\n"); + sb.append(" rollUpgradeProgress: ").append(toIndentedString(rollUpgradeProgress)).append("\n"); + sb.append(" upgradeCandidateVersions: ").append(toIndentedString(upgradeCandidateVersions)).append("\n"); + sb.append(" hotfixUpgradeCandidateVersions: ") + .append(toIndentedString(hotfixUpgradeCandidateVersions)) + .append("\n"); + sb.append(" hotfixRollbackCandidateVersions: ") + .append(toIndentedString(hotfixRollbackCandidateVersions)) + .append("\n"); + sb.append(" hotfixUpgradeInfos: ").append(toIndentedString(hotfixUpgradeInfos)).append("\n"); + sb.append(" hotfixRollbackInfos: ").append(toIndentedString(hotfixRollbackInfos)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowUpgradeCandidateVersionsResponse.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowUpgradeCandidateVersionsResponse.java index 3256140268..ae065b0414 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowUpgradeCandidateVersionsResponse.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ShowUpgradeCandidateVersionsResponse.java @@ -57,12 +57,12 @@ public class ShowUpgradeCandidateVersionsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "hotfix_upgrade_infos") - private HotfixUpgradeInfos hotfixUpgradeInfos; + private List hotfixUpgradeInfos = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "hotfix_rollback_infos") - private HotfixRollbackInfos hotfixRollbackInfos; + private List hotfixRollbackInfos = null; public ShowUpgradeCandidateVersionsResponse withUpgradeTypeList(List upgradeTypeList) { this.upgradeTypeList = upgradeTypeList; @@ -282,57 +282,72 @@ public void setHotfixRollbackCandidateVersions(List hotfixRollbackCandid this.hotfixRollbackCandidateVersions = hotfixRollbackCandidateVersions; } - public ShowUpgradeCandidateVersionsResponse withHotfixUpgradeInfos(HotfixUpgradeInfos hotfixUpgradeInfos) { + public ShowUpgradeCandidateVersionsResponse withHotfixUpgradeInfos(List hotfixUpgradeInfos) { this.hotfixUpgradeInfos = hotfixUpgradeInfos; return this; } - public ShowUpgradeCandidateVersionsResponse withHotfixUpgradeInfos( - Consumer hotfixUpgradeInfosSetter) { + public ShowUpgradeCandidateVersionsResponse addHotfixUpgradeInfosItem(HotfixUpgradeInfos hotfixUpgradeInfosItem) { if (this.hotfixUpgradeInfos == null) { - this.hotfixUpgradeInfos = new HotfixUpgradeInfos(); - hotfixUpgradeInfosSetter.accept(this.hotfixUpgradeInfos); + this.hotfixUpgradeInfos = new ArrayList<>(); } + this.hotfixUpgradeInfos.add(hotfixUpgradeInfosItem); + return this; + } + public ShowUpgradeCandidateVersionsResponse withHotfixUpgradeInfos( + Consumer> hotfixUpgradeInfosSetter) { + if (this.hotfixUpgradeInfos == null) { + this.hotfixUpgradeInfos = new ArrayList<>(); + } + hotfixUpgradeInfosSetter.accept(this.hotfixUpgradeInfos); return this; } /** - * Get hotfixUpgradeInfos + * 可以升级的热补丁信息。 * @return hotfixUpgradeInfos */ - public HotfixUpgradeInfos getHotfixUpgradeInfos() { + public List getHotfixUpgradeInfos() { return hotfixUpgradeInfos; } - public void setHotfixUpgradeInfos(HotfixUpgradeInfos hotfixUpgradeInfos) { + public void setHotfixUpgradeInfos(List hotfixUpgradeInfos) { this.hotfixUpgradeInfos = hotfixUpgradeInfos; } - public ShowUpgradeCandidateVersionsResponse withHotfixRollbackInfos(HotfixRollbackInfos hotfixRollbackInfos) { + public ShowUpgradeCandidateVersionsResponse withHotfixRollbackInfos(List hotfixRollbackInfos) { this.hotfixRollbackInfos = hotfixRollbackInfos; return this; } - public ShowUpgradeCandidateVersionsResponse withHotfixRollbackInfos( - Consumer hotfixRollbackInfosSetter) { + public ShowUpgradeCandidateVersionsResponse addHotfixRollbackInfosItem( + HotfixRollbackInfos hotfixRollbackInfosItem) { if (this.hotfixRollbackInfos == null) { - this.hotfixRollbackInfos = new HotfixRollbackInfos(); - hotfixRollbackInfosSetter.accept(this.hotfixRollbackInfos); + this.hotfixRollbackInfos = new ArrayList<>(); } + this.hotfixRollbackInfos.add(hotfixRollbackInfosItem); + return this; + } + public ShowUpgradeCandidateVersionsResponse withHotfixRollbackInfos( + Consumer> hotfixRollbackInfosSetter) { + if (this.hotfixRollbackInfos == null) { + this.hotfixRollbackInfos = new ArrayList<>(); + } + hotfixRollbackInfosSetter.accept(this.hotfixRollbackInfos); return this; } /** - * Get hotfixRollbackInfos + * 可以回滚的热补丁信息。 * @return hotfixRollbackInfos */ - public HotfixRollbackInfos getHotfixRollbackInfos() { + public List getHotfixRollbackInfos() { return hotfixRollbackInfos; } - public void setHotfixRollbackInfos(HotfixRollbackInfos hotfixRollbackInfos) { + public void setHotfixRollbackInfos(List hotfixRollbackInfos) { this.hotfixRollbackInfos = hotfixRollbackInfos; } diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/SyncLimitDataRequest.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/SyncLimitDataRequest.java new file mode 100644 index 0000000000..0c72f42cf3 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/SyncLimitDataRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class SyncLimitDataRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + public SyncLimitDataRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SyncLimitDataRequest that = (SyncLimitDataRequest) obj; + return Objects.equals(this.instanceId, that.instanceId); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SyncLimitDataRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/SyncLimitDataResponse.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/SyncLimitDataResponse.java new file mode 100644 index 0000000000..4f2a0fedf2 --- /dev/null +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/SyncLimitDataResponse.java @@ -0,0 +1,143 @@ +package com.huaweicloud.sdk.gaussdbforopengauss.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 SyncLimitDataResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private String result; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "node_id") + + private String nodeId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_count") + + private Integer totalCount; + + public SyncLimitDataResponse withResult(String result) { + this.result = result; + return this; + } + + /** + * 同步结果,success成功,fail失败 + * @return result + */ + public String getResult() { + return result; + } + + public void setResult(String result) { + this.result = result; + } + + public SyncLimitDataResponse withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 同步数据的实例ID + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public SyncLimitDataResponse withNodeId(String nodeId) { + this.nodeId = nodeId; + return this; + } + + /** + * 同步数据的节点ID,集中式表示主节点ID,分布式表示CN节点ID + * @return nodeId + */ + public String getNodeId() { + return nodeId; + } + + public void setNodeId(String nodeId) { + this.nodeId = nodeId; + } + + public SyncLimitDataResponse 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; + } + SyncLimitDataResponse that = (SyncLimitDataResponse) obj; + return Objects.equals(this.result, that.result) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.nodeId, that.nodeId) && Objects.equals(this.totalCount, that.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(result, instanceId, nodeId, totalCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SyncLimitDataResponse {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" nodeId: ").append(toIndentedString(nodeId)).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/geip/pom.xml b/services/geip/pom.xml index ed95c1f0c2..af9369d514 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-geip - 3.1.127 + 3.1.128 Huawei Cloud SDK for GEIP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/ges/pom.xml b/services/ges/pom.xml index ddc5ed445c..cf21714717 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-ges - 3.1.127 + 3.1.128 Huawei Cloud SDK for GES 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/gsl/pom.xml b/services/gsl/pom.xml index df46e770d5..3f70c4248e 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-gsl - 3.1.127 + 3.1.128 Huawei Cloud SDK for GSL 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/hilens/pom.xml b/services/hilens/pom.xml index bea7d05970..f614d22749 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-hilens - 3.1.127 + 3.1.128 Huawei Cloud SDK for HILENS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/hss/pom.xml b/services/hss/pom.xml index 5198dd4cfb..03253fe639 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-hss - 3.1.127 + 3.1.128 Huawei Cloud SDK for HSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/iam/pom.xml b/services/iam/pom.xml index 5cf5e1fb71..5e255e00a5 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-iam - 3.1.127 + 3.1.128 Huawei Cloud SDK for IAM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/iamaccessanalyzer/pom.xml b/services/iamaccessanalyzer/pom.xml index cbc11f984c..388935b671 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-iamaccessanalyzer - 3.1.127 + 3.1.128 Huawei Cloud SDK for IAMACCESSANALYZER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/identitycenter/pom.xml b/services/identitycenter/pom.xml index 5e6d9e0f94..1a4bc226f9 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-identitycenter - 3.1.127 + 3.1.128 Huawei Cloud SDK for IDENTITYCENTER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/identitycenterstore/pom.xml b/services/identitycenterstore/pom.xml index 621b1ce3ac..ffebba5c25 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-identitycenterstore - 3.1.127 + 3.1.128 Huawei Cloud SDK for IDENTITYCENTERSTORE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/idme/pom.xml b/services/idme/pom.xml index 3ec216038c..fcdbb1a004 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-idme - 3.1.127 + 3.1.128 Huawei Cloud SDK for IDME 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/idmeclassicapi/pom.xml b/services/idmeclassicapi/pom.xml index 3ddccb6870..dfd313df5a 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-idmeclassicapi - 3.1.127 + 3.1.128 Huawei Cloud SDK for IDMECLASSICAPI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/iec/pom.xml b/services/iec/pom.xml index 3e2932e1a3..95a2acb67e 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-iec - 3.1.127 + 3.1.128 Huawei Cloud SDK for IEC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/ief/pom.xml b/services/ief/pom.xml index 276a22fbc7..75caa7cc6e 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-ief - 3.1.127 + 3.1.128 Huawei Cloud SDK for IEF 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/image/pom.xml b/services/image/pom.xml index 13c11d49e7..def20ca0ae 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-image - 3.1.127 + 3.1.128 Huawei Cloud SDK for IMAGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/imagesearch/pom.xml b/services/imagesearch/pom.xml index d58d15a6d6..b097f3d52e 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-imagesearch - 3.1.127 + 3.1.128 Huawei Cloud SDK for IMAGESEARCH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/ims/pom.xml b/services/ims/pom.xml index 94cce23e08..2e49f22c00 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-ims - 3.1.127 + 3.1.128 Huawei Cloud SDK for IMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/ims/src/main/java/com/huaweicloud/sdk/ims/v2/model/QuickImportImageByFileRequestBody.java b/services/ims/src/main/java/com/huaweicloud/sdk/ims/v2/model/QuickImportImageByFileRequestBody.java index 03850f70e3..9ed2428626 100644 --- a/services/ims/src/main/java/com/huaweicloud/sdk/ims/v2/model/QuickImportImageByFileRequestBody.java +++ b/services/ims/src/main/java/com/huaweicloud/sdk/ims/v2/model/QuickImportImageByFileRequestBody.java @@ -43,6 +43,11 @@ public class QuickImportImageByFileRequestBody { private Integer minDisk; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "license_type") + + private String licenseType; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "tags") @@ -376,6 +381,23 @@ public void setMinDisk(Integer minDisk) { this.minDisk = minDisk; } + public QuickImportImageByFileRequestBody withLicenseType(String licenseType) { + this.licenseType = licenseType; + return this; + } + + /** + * 操作系统使用的许可证类型。取值范围: platform:华为云官方许可证 byol:自带许可证(Bring Your Own License) 目前仅Windows操作系统支持设置该参数。 + * @return licenseType + */ + public String getLicenseType() { + return licenseType; + } + + public void setLicenseType(String licenseType) { + this.licenseType = licenseType; + } + public QuickImportImageByFileRequestBody withTags(List tags) { this.tags = tags; return this; @@ -521,8 +543,8 @@ public boolean equals(java.lang.Object obj) { QuickImportImageByFileRequestBody that = (QuickImportImageByFileRequestBody) obj; return Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) && Objects.equals(this.osVersion, that.osVersion) && Objects.equals(this.imageUrl, that.imageUrl) - && Objects.equals(this.minDisk, that.minDisk) && Objects.equals(this.tags, that.tags) - && Objects.equals(this.type, that.type) + && Objects.equals(this.minDisk, that.minDisk) && Objects.equals(this.licenseType, that.licenseType) + && Objects.equals(this.tags, that.tags) && Objects.equals(this.type, that.type) && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) && Objects.equals(this.architecture, that.architecture) && Objects.equals(this.osType, that.osType) && Objects.equals(this.imageTags, that.imageTags); @@ -535,6 +557,7 @@ public int hashCode() { osVersion, imageUrl, minDisk, + licenseType, tags, type, enterpriseProjectId, @@ -552,6 +575,7 @@ public String toString() { sb.append(" osVersion: ").append(toIndentedString(osVersion)).append("\n"); sb.append(" imageUrl: ").append(toIndentedString(imageUrl)).append("\n"); sb.append(" minDisk: ").append(toIndentedString(minDisk)).append("\n"); + sb.append(" licenseType: ").append(toIndentedString(licenseType)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); diff --git a/services/iotanalytics/pom.xml b/services/iotanalytics/pom.xml index 5e817a8393..df8906d932 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-iotanalytics - 3.1.127 + 3.1.128 Huawei Cloud SDK for IOTANALYTICS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/iotda/pom.xml b/services/iotda/pom.xml index 073ba358da..c3f80aeb38 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-iotda - 3.1.127 + 3.1.128 Huawei Cloud SDK for IOTDA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 junit diff --git a/services/iotdm/pom.xml b/services/iotdm/pom.xml index 9ecf4e8156..196be350db 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-iotdm - 3.1.127 + 3.1.128 Huawei Cloud SDK for IOTDM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/iotedge/pom.xml b/services/iotedge/pom.xml index f7c752ab85..adcb97a6e3 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-iotedge - 3.1.127 + 3.1.128 Huawei Cloud SDK for IOTEDGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeAsyncClient.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeAsyncClient.java index b68dd811df..863e734b55 100644 --- a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeAsyncClient.java +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeAsyncClient.java @@ -101,6 +101,8 @@ import com.huaweicloud.sdk.iotedge.v2.model.ListNaAuthorizedNodesResponse; import com.huaweicloud.sdk.iotedge.v2.model.ListNasRequest; import com.huaweicloud.sdk.iotedge.v2.model.ListNasResponse; +import com.huaweicloud.sdk.iotedge.v2.model.ListPropertyActiveControlsRequest; +import com.huaweicloud.sdk.iotedge.v2.model.ListPropertyActiveControlsResponse; import com.huaweicloud.sdk.iotedge.v2.model.ListRoutesRequest; import com.huaweicloud.sdk.iotedge.v2.model.ListRoutesResponse; import com.huaweicloud.sdk.iotedge.v2.model.SetDeviceControlDefaultValuesRequest; @@ -445,6 +447,36 @@ public AsyncInvoker(request, IoTEdgeMeta.executeDeviceControlsSet, hcClient); } + /** + * 获取属性执行中的控制 + * + * 获取属性执行中的控制 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListPropertyActiveControlsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listPropertyActiveControlsAsync( + ListPropertyActiveControlsRequest request) { + return hcClient.asyncInvokeHttp(request, IoTEdgeMeta.listPropertyActiveControls); + } + + /** + * 获取属性执行中的控制 + * + * 获取属性执行中的控制 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListPropertyActiveControlsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listPropertyActiveControlsAsyncInvoker( + ListPropertyActiveControlsRequest request) { + return new AsyncInvoker<>(request, IoTEdgeMeta.listPropertyActiveControls, hcClient); + } + /** * 设备控制默认值 * diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeClient.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeClient.java index 07b2655f2c..0b961dce48 100644 --- a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeClient.java +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeClient.java @@ -101,6 +101,8 @@ import com.huaweicloud.sdk.iotedge.v2.model.ListNaAuthorizedNodesResponse; import com.huaweicloud.sdk.iotedge.v2.model.ListNasRequest; import com.huaweicloud.sdk.iotedge.v2.model.ListNasResponse; +import com.huaweicloud.sdk.iotedge.v2.model.ListPropertyActiveControlsRequest; +import com.huaweicloud.sdk.iotedge.v2.model.ListPropertyActiveControlsResponse; import com.huaweicloud.sdk.iotedge.v2.model.ListRoutesRequest; import com.huaweicloud.sdk.iotedge.v2.model.ListRoutesResponse; import com.huaweicloud.sdk.iotedge.v2.model.SetDeviceControlDefaultValuesRequest; @@ -439,6 +441,35 @@ public SyncInvoker(request, IoTEdgeMeta.executeDeviceControlsSet, hcClient); } + /** + * 获取属性执行中的控制 + * + * 获取属性执行中的控制 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListPropertyActiveControlsRequest 请求对象 + * @return ListPropertyActiveControlsResponse + */ + public ListPropertyActiveControlsResponse listPropertyActiveControls(ListPropertyActiveControlsRequest request) { + return hcClient.syncInvokeHttp(request, IoTEdgeMeta.listPropertyActiveControls); + } + + /** + * 获取属性执行中的控制 + * + * 获取属性执行中的控制 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListPropertyActiveControlsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listPropertyActiveControlsInvoker( + ListPropertyActiveControlsRequest request) { + return new SyncInvoker<>(request, IoTEdgeMeta.listPropertyActiveControls, hcClient); + } + /** * 设备控制默认值 * diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeMeta.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeMeta.java index 5d65c48e1a..cfafa414d5 100644 --- a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeMeta.java +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeMeta.java @@ -124,6 +124,8 @@ import com.huaweicloud.sdk.iotedge.v2.model.ListNaAuthorizedNodesResponse; import com.huaweicloud.sdk.iotedge.v2.model.ListNasRequest; import com.huaweicloud.sdk.iotedge.v2.model.ListNasResponse; +import com.huaweicloud.sdk.iotedge.v2.model.ListPropertyActiveControlsRequest; +import com.huaweicloud.sdk.iotedge.v2.model.ListPropertyActiveControlsResponse; import com.huaweicloud.sdk.iotedge.v2.model.ListRoutesRequest; import com.huaweicloud.sdk.iotedge.v2.model.ListRoutesResponse; import com.huaweicloud.sdk.iotedge.v2.model.SetDeviceControlDefaultValuesRequest; @@ -504,6 +506,51 @@ private static HttpRequestDef listPropertyActiveControls = + genForListPropertyActiveControls(); + + private static HttpRequestDef genForListPropertyActiveControls() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ListPropertyActiveControlsRequest.class, + ListPropertyActiveControlsResponse.class) + .withName("ListPropertyActiveControls") + .withUri("/v2/{project_id}/edge-nodes/{edge_node_id}/devices/{device_id}/active-controls") + .withContentType("application/json"); + + // requests + builder.withRequestField("edge_node_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListPropertyActiveControlsRequest::getEdgeNodeId, + ListPropertyActiveControlsRequest::setEdgeNodeId)); + builder.withRequestField("device_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListPropertyActiveControlsRequest::getDeviceId, + ListPropertyActiveControlsRequest::setDeviceId)); + builder.withRequestField("service_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListPropertyActiveControlsRequest::getServiceId, + ListPropertyActiveControlsRequest::setServiceId)); + builder.withRequestField("property", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListPropertyActiveControlsRequest::getProperty, + ListPropertyActiveControlsRequest::setProperty)); + + // response + + return builder.build(); + } + public static final HttpRequestDef setDeviceControlDefaultValues = genForSetDeviceControlDefaultValues(); diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/ActiveControlRspDTO.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/ActiveControlRspDTO.java new file mode 100644 index 0000000000..7f800a0ed3 --- /dev/null +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/ActiveControlRspDTO.java @@ -0,0 +1,189 @@ +package com.huaweicloud.sdk.iotedge.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 执行中控制响应结构体 + */ +public class ActiveControlRspDTO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "control_type") + + private String controlType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "control_id") + + private String controlId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "priority") + + private Integer priority; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private Object value; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "end_time") + + private Long endTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private Long createTime; + + public ActiveControlRspDTO withControlType(String controlType) { + this.controlType = controlType; + return this; + } + + /** + * 控制类型,包括control、schedule、local_control + * @return controlType + */ + public String getControlType() { + return controlType; + } + + public void setControlType(String controlType) { + this.controlType = controlType; + } + + public ActiveControlRspDTO withControlId(String controlId) { + this.controlId = controlId; + return this; + } + + /** + * 控制id + * @return controlId + */ + public String getControlId() { + return controlId; + } + + public void setControlId(String controlId) { + this.controlId = controlId; + } + + public ActiveControlRspDTO withPriority(Integer priority) { + this.priority = priority; + return this; + } + + /** + * 控制的优先级 + * @return priority + */ + public Integer getPriority() { + return priority; + } + + public void setPriority(Integer priority) { + this.priority = priority; + } + + public ActiveControlRspDTO withValue(Object value) { + this.value = value; + return this; + } + + /** + * 此次控制的值 + * @return value + */ + public Object getValue() { + return value; + } + + public void setValue(Object value) { + this.value = value; + } + + public ActiveControlRspDTO withEndTime(Long endTime) { + this.endTime = endTime; + return this; + } + + /** + * 控制的结束时间 + * @return endTime + */ + public Long getEndTime() { + return endTime; + } + + public void setEndTime(Long endTime) { + this.endTime = endTime; + } + + public ActiveControlRspDTO withCreateTime(Long createTime) { + this.createTime = createTime; + return this; + } + + /** + * 记录创建的时间 + * @return createTime + */ + public Long getCreateTime() { + return createTime; + } + + public void setCreateTime(Long createTime) { + this.createTime = createTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ActiveControlRspDTO that = (ActiveControlRspDTO) obj; + return Objects.equals(this.controlType, that.controlType) && Objects.equals(this.controlId, that.controlId) + && Objects.equals(this.priority, that.priority) && Objects.equals(this.value, that.value) + && Objects.equals(this.endTime, that.endTime) && Objects.equals(this.createTime, that.createTime); + } + + @Override + public int hashCode() { + return Objects.hash(controlType, controlId, priority, value, endTime, createTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ActiveControlRspDTO {\n"); + sb.append(" controlType: ").append(toIndentedString(controlType)).append("\n"); + sb.append(" controlId: ").append(toIndentedString(controlId)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/ListPropertyActiveControlsRequest.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/ListPropertyActiveControlsRequest.java new file mode 100644 index 0000000000..1fa25f7316 --- /dev/null +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/ListPropertyActiveControlsRequest.java @@ -0,0 +1,142 @@ +package com.huaweicloud.sdk.iotedge.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListPropertyActiveControlsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "edge_node_id") + + private String edgeNodeId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "device_id") + + private String deviceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_id") + + private String serviceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "property") + + private String property; + + public ListPropertyActiveControlsRequest withEdgeNodeId(String edgeNodeId) { + this.edgeNodeId = edgeNodeId; + return this; + } + + /** + * 边缘节点ID + * @return edgeNodeId + */ + public String getEdgeNodeId() { + return edgeNodeId; + } + + public void setEdgeNodeId(String edgeNodeId) { + this.edgeNodeId = edgeNodeId; + } + + public ListPropertyActiveControlsRequest withDeviceId(String deviceId) { + this.deviceId = deviceId; + return this; + } + + /** + * 设备ID + * @return deviceId + */ + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public ListPropertyActiveControlsRequest withServiceId(String serviceId) { + this.serviceId = serviceId; + return this; + } + + /** + * 设备服务id。可选,在属性平铺场景不需要填,如果不填则表示service_id为空字符串 + * @return serviceId + */ + public String getServiceId() { + return serviceId; + } + + public void setServiceId(String serviceId) { + this.serviceId = serviceId; + } + + public ListPropertyActiveControlsRequest withProperty(String property) { + this.property = property; + return this; + } + + /** + * 设备属性。必选 + * @return property + */ + public String getProperty() { + return property; + } + + public void setProperty(String property) { + this.property = property; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListPropertyActiveControlsRequest that = (ListPropertyActiveControlsRequest) obj; + return Objects.equals(this.edgeNodeId, that.edgeNodeId) && Objects.equals(this.deviceId, that.deviceId) + && Objects.equals(this.serviceId, that.serviceId) && Objects.equals(this.property, that.property); + } + + @Override + public int hashCode() { + return Objects.hash(edgeNodeId, deviceId, serviceId, property); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListPropertyActiveControlsRequest {\n"); + sb.append(" edgeNodeId: ").append(toIndentedString(edgeNodeId)).append("\n"); + sb.append(" deviceId: ").append(toIndentedString(deviceId)).append("\n"); + sb.append(" serviceId: ").append(toIndentedString(serviceId)).append("\n"); + sb.append(" property: ").append(toIndentedString(property)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/ListPropertyActiveControlsResponse.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/ListPropertyActiveControlsResponse.java new file mode 100644 index 0000000000..b9fafa6448 --- /dev/null +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/ListPropertyActiveControlsResponse.java @@ -0,0 +1,210 @@ +package com.huaweicloud.sdk.iotedge.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListPropertyActiveControlsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "device_id") + + private String deviceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_id") + + private String serviceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "property") + + private String property; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "active_controls") + + private List activeControls = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result_code") + + private Integer resultCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result_desc") + + private String resultDesc; + + public ListPropertyActiveControlsResponse withDeviceId(String deviceId) { + this.deviceId = deviceId; + return this; + } + + /** + * 设备id + * @return deviceId + */ + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public ListPropertyActiveControlsResponse withServiceId(String serviceId) { + this.serviceId = serviceId; + return this; + } + + /** + * 设备的服务id + * @return serviceId + */ + public String getServiceId() { + return serviceId; + } + + public void setServiceId(String serviceId) { + this.serviceId = serviceId; + } + + public ListPropertyActiveControlsResponse withProperty(String property) { + this.property = property; + return this; + } + + /** + * 设备的属性 + * @return property + */ + public String getProperty() { + return property; + } + + public void setProperty(String property) { + this.property = property; + } + + public ListPropertyActiveControlsResponse withActiveControls(List activeControls) { + this.activeControls = activeControls; + return this; + } + + public ListPropertyActiveControlsResponse addActiveControlsItem(ActiveControlRspDTO activeControlsItem) { + if (this.activeControls == null) { + this.activeControls = new ArrayList<>(); + } + this.activeControls.add(activeControlsItem); + return this; + } + + public ListPropertyActiveControlsResponse withActiveControls( + Consumer> activeControlsSetter) { + if (this.activeControls == null) { + this.activeControls = new ArrayList<>(); + } + activeControlsSetter.accept(this.activeControls); + return this; + } + + /** + * 正在执行中的控制列表 + * @return activeControls + */ + public List getActiveControls() { + return activeControls; + } + + public void setActiveControls(List activeControls) { + this.activeControls = activeControls; + } + + public ListPropertyActiveControlsResponse withResultCode(Integer resultCode) { + this.resultCode = resultCode; + return this; + } + + /** + * 结果响应码,大于等于400表示失败,小于400表示成功 + * @return resultCode + */ + public Integer getResultCode() { + return resultCode; + } + + public void setResultCode(Integer resultCode) { + this.resultCode = resultCode; + } + + public ListPropertyActiveControlsResponse withResultDesc(String resultDesc) { + this.resultDesc = resultDesc; + return this; + } + + /** + * 结果描述 + * @return resultDesc + */ + public String getResultDesc() { + return resultDesc; + } + + public void setResultDesc(String resultDesc) { + this.resultDesc = resultDesc; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListPropertyActiveControlsResponse that = (ListPropertyActiveControlsResponse) obj; + return Objects.equals(this.deviceId, that.deviceId) && Objects.equals(this.serviceId, that.serviceId) + && Objects.equals(this.property, that.property) && Objects.equals(this.activeControls, that.activeControls) + && Objects.equals(this.resultCode, that.resultCode) && Objects.equals(this.resultDesc, that.resultDesc); + } + + @Override + public int hashCode() { + return Objects.hash(deviceId, serviceId, property, activeControls, resultCode, resultDesc); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListPropertyActiveControlsResponse {\n"); + sb.append(" deviceId: ").append(toIndentedString(deviceId)).append("\n"); + sb.append(" serviceId: ").append(toIndentedString(serviceId)).append("\n"); + sb.append(" property: ").append(toIndentedString(property)).append("\n"); + sb.append(" activeControls: ").append(toIndentedString(activeControls)).append("\n"); + sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); + sb.append(" resultDesc: ").append(toIndentedString(resultDesc)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/ivs/pom.xml b/services/ivs/pom.xml index ac89311ad0..5f1de847c3 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-ivs - 3.1.127 + 3.1.128 Huawei Cloud SDK for IVS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/kafka/pom.xml b/services/kafka/pom.xml index 4e655e8ef5..2f25aa5c47 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-kafka - 3.1.127 + 3.1.128 Huawei Cloud SDK for KAFKA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/kms/pom.xml b/services/kms/pom.xml index 22b172322c..d9c0494de7 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-kms - 3.1.127 + 3.1.128 Huawei Cloud SDK for KMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/koomap/pom.xml b/services/koomap/pom.xml index d0b306f5ae..03fe56671e 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-koomap - 3.1.127 + 3.1.128 Huawei Cloud SDK for KOOMAP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/koomessage/pom.xml b/services/koomessage/pom.xml index 996b0114eb..04ed584740 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-koomessage - 3.1.127 + 3.1.128 Huawei Cloud SDK for KOOMESSAGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/koophone/pom.xml b/services/koophone/pom.xml index e9e655708f..23cef4eba3 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-koophone - 3.1.127 + 3.1.128 Huawei Cloud SDK for KOOPHONE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/kps/pom.xml b/services/kps/pom.xml index 436231a159..d167b87813 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-kps - 3.1.127 + 3.1.128 Huawei Cloud SDK for KPS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/kvs/pom.xml b/services/kvs/pom.xml index 2cbc243928..2a22e18215 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-kvs - 3.1.127 + 3.1.128 Huawei Cloud SDK for KVS 4.0.0 @@ -17,12 +17,12 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-core-bson - 3.1.127 + 3.1.128 org.apache.commons diff --git a/services/lakeformation/pom.xml b/services/lakeformation/pom.xml index bd5264f228..b9141c509c 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-lakeformation - 3.1.127 + 3.1.128 Huawei Cloud SDK for LAKEFORMATION 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/live/pom.xml b/services/live/pom.xml index 24f2b8b724..68855c11f4 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-live - 3.1.127 + 3.1.128 Huawei Cloud SDK for LIVE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/lts/pom.xml b/services/lts/pom.xml index 57961be2f0..3035fca63e 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-lts - 3.1.127 + 3.1.128 Huawei Cloud SDK for LTS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/mapds/pom.xml b/services/mapds/pom.xml index 25b5e7c777..9252e5ff37 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-mapds - 3.1.127 + 3.1.128 Huawei Cloud SDK for MAPDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/mas/pom.xml b/services/mas/pom.xml index 24fd1e5a2c..9ca1779211 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-mas - 3.1.127 + 3.1.128 Huawei Cloud SDK for MAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/mastudio/pom.xml b/services/mastudio/pom.xml index ef8c6d7dd4..b1f90ace97 100644 --- a/services/mastudio/pom.xml +++ b/services/mastudio/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-mastudio - 3.1.127 + 3.1.128 Huawei Cloud SDK for MASTUDIO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/meeting/pom.xml b/services/meeting/pom.xml index c4c8cbf006..ac35c829ea 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-meeting - 3.1.127 + 3.1.128 Huawei Cloud SDK for MEETING 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/metastudio/pom.xml b/services/metastudio/pom.xml index 7aeb5f7c58..cfe8d0ad19 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-metastudio - 3.1.127 + 3.1.128 Huawei Cloud SDK for METASTUDIO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/moderation/pom.xml b/services/moderation/pom.xml index 3d4de661c7..0555503ca7 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-moderation - 3.1.127 + 3.1.128 Huawei Cloud SDK for MODERATION 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/mpc/pom.xml b/services/mpc/pom.xml index dbc720792b..c81ccb28ce 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-mpc - 3.1.127 + 3.1.128 Huawei Cloud SDK for MPC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/mrs/pom.xml b/services/mrs/pom.xml index 6e86ed7941..dd7723c8c4 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-mrs - 3.1.127 + 3.1.128 Huawei Cloud SDK for MRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/msgsms/pom.xml b/services/msgsms/pom.xml index b89acde558..88e2705695 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-msgsms - 3.1.127 + 3.1.128 Huawei Cloud SDK for MSGSMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/mssi/pom.xml b/services/mssi/pom.xml index 8181109592..cf0f57f607 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-mssi - 3.1.127 + 3.1.128 Huawei Cloud SDK for MSSI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/nat/pom.xml b/services/nat/pom.xml index 5fe45c87a9..d8eae2327f 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-nat - 3.1.127 + 3.1.128 Huawei Cloud SDK for NAT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/nlp/pom.xml b/services/nlp/pom.xml index 7b60d83178..fcc8589917 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-nlp - 3.1.127 + 3.1.128 Huawei Cloud SDK for NLP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/oa/pom.xml b/services/oa/pom.xml index 949efafb4f..b1f881685a 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-oa - 3.1.127 + 3.1.128 Huawei Cloud SDK for OA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/obs/pom.xml b/services/obs/pom.xml index f9584df633..50e58b7319 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-obs - 3.1.127 + 3.1.128 Huawei Cloud SDK for OBS 4.0.0 @@ -17,12 +17,12 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 com.huaweicloud.sdk huaweicloud-sdk-core-xml - 3.1.127 + 3.1.128 diff --git a/services/ocr/pom.xml b/services/ocr/pom.xml index 71dd8b7252..23971ffccc 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-ocr - 3.1.127 + 3.1.128 Huawei Cloud SDK for OCR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/AutoClassificationRequestBody.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/AutoClassificationRequestBody.java index c3ed8698d8..c7c1d7f1ff 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/AutoClassificationRequestBody.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/AutoClassificationRequestBody.java @@ -28,6 +28,11 @@ public class AutoClassificationRequestBody { private List typeList = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pdf_page_number") + + private Integer pdfPageNumber; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "extended_parameters") @@ -44,7 +49,7 @@ public AutoClassificationRequestBody withImage(String image) { } /** - * 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8000px,支持JPEG、JPG、PNG、BMP、TIFF、PDF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + * 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF、PDF、OFD格式,OFD格式数据仅支持增值税发票服务。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 * @return image */ public String getImage() { @@ -105,6 +110,23 @@ public void setTypeList(List typeList) { this.typeList = typeList; } + public AutoClassificationRequestBody withPdfPageNumber(Integer pdfPageNumber) { + this.pdfPageNumber = pdfPageNumber; + return this; + } + + /** + * 指定PDF页码识别。传入该参数时,则识别指定页码的内容。如果不传该参数,则默认识别第1页。 > 说明: - 如果需要指定PDF页码识别,请通过该参数传入页码。目前不支持通过extended_parameters参数指定票证PDF页码。 + * @return pdfPageNumber + */ + public Integer getPdfPageNumber() { + return pdfPageNumber; + } + + public void setPdfPageNumber(Integer pdfPageNumber) { + this.pdfPageNumber = pdfPageNumber; + } + public AutoClassificationRequestBody withExtendedParameters(Object extendedParameters) { this.extendedParameters = extendedParameters; return this; @@ -149,14 +171,14 @@ public boolean equals(java.lang.Object obj) { } AutoClassificationRequestBody that = (AutoClassificationRequestBody) obj; return Objects.equals(this.image, that.image) && Objects.equals(this.url, that.url) - && Objects.equals(this.typeList, that.typeList) + && Objects.equals(this.typeList, that.typeList) && Objects.equals(this.pdfPageNumber, that.pdfPageNumber) && Objects.equals(this.extendedParameters, that.extendedParameters) && Objects.equals(this.detectSeal, that.detectSeal); } @Override public int hashCode() { - return Objects.hash(image, url, typeList, extendedParameters, detectSeal); + return Objects.hash(image, url, typeList, pdfPageNumber, extendedParameters, detectSeal); } @Override @@ -166,6 +188,7 @@ public String toString() { sb.append(" image: ").append(toIndentedString(image)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" typeList: ").append(toIndentedString(typeList)).append("\n"); + sb.append(" pdfPageNumber: ").append(toIndentedString(pdfPageNumber)).append("\n"); sb.append(" extendedParameters: ").append(toIndentedString(extendedParameters)).append("\n"); sb.append(" detectSeal: ").append(toIndentedString(detectSeal)).append("\n"); sb.append("}"); diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/AutoClassificationResult.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/AutoClassificationResult.java index d8363753d6..6821b055b8 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/AutoClassificationResult.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/AutoClassificationResult.java @@ -120,7 +120,7 @@ public AutoClassificationResult withLocation(Consumer>> locat } /** - * 文字块的区域位置信息,列表形式,包含文字区域四个顶点的二维坐标(x,y);坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 + * 票证的区域位置信息,列表形式,包含票证区域四个顶点的二维坐标(x,y);坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 * @return location */ public List> getLocation() { diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/SmartDocumentRecognizerRequestBody.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/SmartDocumentRecognizerRequestBody.java index fedce2e7bb..a8e8e1be2d 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/SmartDocumentRecognizerRequestBody.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/SmartDocumentRecognizerRequestBody.java @@ -65,6 +65,11 @@ public class SmartDocumentRecognizerRequestBody { private String kvMap; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "erase_seal") + + private Boolean eraseSeal; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "pdf_page_number") @@ -257,6 +262,23 @@ public void setKvMap(String kvMap) { this.kvMap = kvMap; } + public SmartDocumentRecognizerRequestBody withEraseSeal(Boolean eraseSeal) { + this.eraseSeal = eraseSeal; + return this; + } + + /** + * 是否进行印章擦除。开启后,可提升印章遮挡区域的文字识别精度。 + * @return eraseSeal + */ + public Boolean getEraseSeal() { + return eraseSeal; + } + + public void setEraseSeal(Boolean eraseSeal) { + this.eraseSeal = eraseSeal; + } + public SmartDocumentRecognizerRequestBody withPdfPageNumber(Integer pdfPageNumber) { this.pdfPageNumber = pdfPageNumber; return this; @@ -289,7 +311,7 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.table, that.table) && Objects.equals(this.layout, that.layout) && Objects.equals(this.returnExcel, that.returnExcel) && Objects.equals(this.form, that.form) && Objects.equals(this.formula, that.formula) && Objects.equals(this.kvMap, that.kvMap) - && Objects.equals(this.pdfPageNumber, that.pdfPageNumber); + && Objects.equals(this.eraseSeal, that.eraseSeal) && Objects.equals(this.pdfPageNumber, that.pdfPageNumber); } @Override @@ -305,6 +327,7 @@ public int hashCode() { form, formula, kvMap, + eraseSeal, pdfPageNumber); } @@ -323,6 +346,7 @@ public String toString() { sb.append(" form: ").append(toIndentedString(form)).append("\n"); sb.append(" formula: ").append(toIndentedString(formula)).append("\n"); sb.append(" kvMap: ").append(toIndentedString(kvMap)).append("\n"); + sb.append(" eraseSeal: ").append(toIndentedString(eraseSeal)).append("\n"); sb.append(" pdfPageNumber: ").append(toIndentedString(pdfPageNumber)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/oms/pom.xml b/services/oms/pom.xml index c1eedf4f3c..f2aaa83e11 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-oms - 3.1.127 + 3.1.128 Huawei Cloud SDK for OMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/optverse/pom.xml b/services/optverse/pom.xml index 1f5e879176..bbcb284df2 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-optverse - 3.1.127 + 3.1.128 Huawei Cloud SDK for OPTVERSE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/organizations/pom.xml b/services/organizations/pom.xml index 02025a2097..acf809dd3f 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-organizations - 3.1.127 + 3.1.128 Huawei Cloud SDK for ORGANIZATIONS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/orgid/pom.xml b/services/orgid/pom.xml index fdaf5289c0..4ce33cf6fe 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-orgid - 3.1.127 + 3.1.128 Huawei Cloud SDK for ORGID 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/oroas/pom.xml b/services/oroas/pom.xml index 856505af7d..9b3264e279 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-oroas - 3.1.127 + 3.1.128 Huawei Cloud SDK for OROAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/osm/pom.xml b/services/osm/pom.xml index 131017f296..f6ec182be5 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-osm - 3.1.127 + 3.1.128 Huawei Cloud SDK for OSM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/pangulargemodels/pom.xml b/services/pangulargemodels/pom.xml index a831bf4de1..93ffc0f3b3 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-pangulargemodels - 3.1.127 + 3.1.128 Huawei Cloud SDK for PANGULARGEMODELS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 org.springframework.boot diff --git a/services/pom.xml b/services/pom.xml index 6de5681b25..fa82a5c6df 100644 --- a/services/pom.xml +++ b/services/pom.xml @@ -6,194 +6,194 @@ com.huaweicloud.sdk - 3.1.127 + 3.1.128 huaweicloud-sdk com.huaweicloud.sdk huaweicloud-sdk-services - 3.1.127 + 3.1.128 pom Huawei Cloud SDK for Java Services Services code for Huawei Cloud SDK for Java https://github.com/huaweicloud/huaweicloud-sdk-java-v3 - asm - oa - dss - cdm - ivs - imagesearch - vcm - idme - meeting - workspace - codecraft - koophone - mastudio - projectman - cce - codeartsartifact - ims - oms - apm - eds - smsapi - sis - waf - optverse - expert - sdrs - ges - cbs - cms - dli - moderation - rocketmq - aos - rgc - cloudtable - orgid - gsl - smn - identitycenterstore - eps - sts + eip + cloudpond koomessage - ccm codeartscheck + csms dsc - cbh - servicestage - rds - gaussdbfornosql - nat - gaussdb - codeartsinspector - antiddos - evs - secmaster - sms - vas - campusgo + oms + gsl + dataartsinsight + cse + metastudio + bcs + cbs + cbr + ram + ocr + ddm + cts + eps + codeartsartifact bms - dataartsstudio + cfw + eg + kms + workspaceapp + sdrs + oa + dwr + dcs + vias + dss ief - kps - dataartsfabric - codeartsbuild - classroom - vod - dataartsfabricep - cpts - scm - ecs - mssi - bssintl - elb - das - dgc + sts + waf + obs + identitycenter + sa + ccm mapds + res + dgc cph - identitycenter - dc - edgesec - mas - eihealth - iotdm - mrs - ram - organizations - dds + cc + bss + das + ecs + evs + koophone + tms + dbss + deh + servicestage aom - er - mpc - rabbitmq - koomap - kafka - vias - swr - pangulargemodels - cgs - tics - live - dns - iotda - geip - codeartsgovernance - cloudrtc - ga - apig + cloudtest + lts + optverse ces - as - tms - cse - csms vpc - dws - cloudide - res - rms - cfw - idmeclassicapi - ddm - config - iam + iotda + identitycenterstore + dris + rds + mssi + ga + aos + codeartsdeploy + cbh + organizations + frs + rgc + swr cdn - codehub + dds hss - cae - dcs - gaussdbforopengauss - dris - ocr - codeartspipeline - cloudtest - cbr + codeartsgovernance + imagesearch + css + classroom + asm + codeartsinspector + iotanalytics + tics + rocketmq + iotdm + vcm + vas drs - image + expert + cpts + cms + moderation + iec + secmaster + mastudio + codehub + workspace + pangulargemodels + ec + smsapi + iotedge + rabbitmq + sis + orgid kvs - workspaceapp - vpn - bss - roma + dli ugo - eg - sa - dbss + lakeformation + dataartsfabricep + coc + dws + eihealth + smn + roma + cce + codecraft + eds + koomap sfsturbo - iamaccessanalyzer - iotanalytics - eip - cts + nlp + iam + gaussdbforopengauss + dis + codeartsbuild devstar - kms - obs - hilens + cdm + codeartspipeline + dlf + live + as functiongraph - ec - dataartsinsight - deh - frs - dwr - osm + ims vpcep - nlp - cloudpond - codeartsdeploy - css - coc - bcs - lakeformation - metastudio - aad - cc - dlf - oroas - lts - iotedge - iec + gaussdb + config + nat + apig + dc + gaussdbfornosql + rms + ivs + projectman + cloudide + cloudrtc msgsms - dis + er + dns + oroas + bssintl + dataartsfabric + image + dataartsstudio + kps + osm + cgs + iamaccessanalyzer + campusgo + mas + geip + ges + vpn + cloudtable + hilens + elb + idme + edgesec + apm + idmeclassicapi + vod + scm + kafka + antiddos + aad + sms + mrs + cae + meeting + mpc diff --git a/services/projectman/pom.xml b/services/projectman/pom.xml index 1cbbdefc7f..9ee157a2bd 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-projectman - 3.1.127 + 3.1.128 Huawei Cloud SDK for PROJECTMAN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/rabbitmq/pom.xml b/services/rabbitmq/pom.xml index ac2e3823f2..915a24bbbc 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-rabbitmq - 3.1.127 + 3.1.128 Huawei Cloud SDK for RABBITMQ 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/ram/pom.xml b/services/ram/pom.xml index e3dc9f6df7..953dd745b6 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-ram - 3.1.127 + 3.1.128 Huawei Cloud SDK for RAM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/rds/pom.xml b/services/rds/pom.xml index 1286dbcd95..b95646d0c8 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-rds - 3.1.127 + 3.1.128 Huawei Cloud SDK for RDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/RdsAsyncClient.java b/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/RdsAsyncClient.java index c080b0c488..9e7549b248 100644 --- a/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/RdsAsyncClient.java +++ b/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/RdsAsyncClient.java @@ -245,6 +245,8 @@ import com.huaweicloud.sdk.rds.v3.model.ListSslCertDownloadLinkResponse; import com.huaweicloud.sdk.rds.v3.model.ListStorageTypesRequest; import com.huaweicloud.sdk.rds.v3.model.ListStorageTypesResponse; +import com.huaweicloud.sdk.rds.v3.model.ListUpdateBackupEnhancePolicyRequest; +import com.huaweicloud.sdk.rds.v3.model.ListUpdateBackupEnhancePolicyResponse; import com.huaweicloud.sdk.rds.v3.model.ListUpgradeHistoriesRequest; import com.huaweicloud.sdk.rds.v3.model.ListUpgradeHistoriesResponse; import com.huaweicloud.sdk.rds.v3.model.ListXellogFilesRequest; @@ -2813,6 +2815,36 @@ public AsyncInvoker listStora return new AsyncInvoker<>(request, RdsMeta.listStorageTypes, hcClient); } + /** + * 查询高级备份策略 + * + * 查询高级备份策略,可查看自定义稀疏备份等 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListUpdateBackupEnhancePolicyRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listUpdateBackupEnhancePolicyAsync( + ListUpdateBackupEnhancePolicyRequest request) { + return hcClient.asyncInvokeHttp(request, RdsMeta.listUpdateBackupEnhancePolicy); + } + + /** + * 查询高级备份策略 + * + * 查询高级备份策略,可查看自定义稀疏备份等 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListUpdateBackupEnhancePolicyRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listUpdateBackupEnhancePolicyAsyncInvoker( + ListUpdateBackupEnhancePolicyRequest request) { + return new AsyncInvoker<>(request, RdsMeta.listUpdateBackupEnhancePolicy, hcClient); + } + /** * * diff --git a/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/RdsClient.java b/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/RdsClient.java index af64b40aa2..cc3a03b059 100644 --- a/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/RdsClient.java +++ b/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/RdsClient.java @@ -245,6 +245,8 @@ import com.huaweicloud.sdk.rds.v3.model.ListSslCertDownloadLinkResponse; import com.huaweicloud.sdk.rds.v3.model.ListStorageTypesRequest; import com.huaweicloud.sdk.rds.v3.model.ListStorageTypesResponse; +import com.huaweicloud.sdk.rds.v3.model.ListUpdateBackupEnhancePolicyRequest; +import com.huaweicloud.sdk.rds.v3.model.ListUpdateBackupEnhancePolicyResponse; import com.huaweicloud.sdk.rds.v3.model.ListUpgradeHistoriesRequest; import com.huaweicloud.sdk.rds.v3.model.ListUpgradeHistoriesResponse; import com.huaweicloud.sdk.rds.v3.model.ListXellogFilesRequest; @@ -2780,6 +2782,36 @@ public SyncInvoker listStorag return new SyncInvoker<>(request, RdsMeta.listStorageTypes, hcClient); } + /** + * 查询高级备份策略 + * + * 查询高级备份策略,可查看自定义稀疏备份等 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListUpdateBackupEnhancePolicyRequest 请求对象 + * @return ListUpdateBackupEnhancePolicyResponse + */ + public ListUpdateBackupEnhancePolicyResponse listUpdateBackupEnhancePolicy( + ListUpdateBackupEnhancePolicyRequest request) { + return hcClient.syncInvokeHttp(request, RdsMeta.listUpdateBackupEnhancePolicy); + } + + /** + * 查询高级备份策略 + * + * 查询高级备份策略,可查看自定义稀疏备份等 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListUpdateBackupEnhancePolicyRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listUpdateBackupEnhancePolicyInvoker( + ListUpdateBackupEnhancePolicyRequest request) { + return new SyncInvoker<>(request, RdsMeta.listUpdateBackupEnhancePolicy, hcClient); + } + /** * * diff --git a/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/RdsMeta.java b/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/RdsMeta.java index 70702d7e9f..aefd412cc8 100644 --- a/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/RdsMeta.java +++ b/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/RdsMeta.java @@ -293,6 +293,8 @@ import com.huaweicloud.sdk.rds.v3.model.ListSslCertDownloadLinkResponse; import com.huaweicloud.sdk.rds.v3.model.ListStorageTypesRequest; import com.huaweicloud.sdk.rds.v3.model.ListStorageTypesResponse; +import com.huaweicloud.sdk.rds.v3.model.ListUpdateBackupEnhancePolicyRequest; +import com.huaweicloud.sdk.rds.v3.model.ListUpdateBackupEnhancePolicyResponse; import com.huaweicloud.sdk.rds.v3.model.ListUpgradeHistoriesRequest; import com.huaweicloud.sdk.rds.v3.model.ListUpgradeHistoriesResponse; import com.huaweicloud.sdk.rds.v3.model.ListXellogFilesRequest; @@ -3461,6 +3463,39 @@ private static HttpRequestDef return builder.build(); } + public static final HttpRequestDef listUpdateBackupEnhancePolicy = + genForListUpdateBackupEnhancePolicy(); + + private static HttpRequestDef genForListUpdateBackupEnhancePolicy() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ListUpdateBackupEnhancePolicyRequest.class, + ListUpdateBackupEnhancePolicyResponse.class) + .withName("ListUpdateBackupEnhancePolicy") + .withUri("/v3/{project_id}/instances/{instance_id}/backups/enhance-policy") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListUpdateBackupEnhancePolicyRequest::getInstanceId, + ListUpdateBackupEnhancePolicyRequest::setInstanceId)); + builder.withRequestField("time_zone", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListUpdateBackupEnhancePolicyRequest::getTimeZone, + ListUpdateBackupEnhancePolicyRequest::setTimeZone)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listUpgradeHistories = genForListUpgradeHistories(); diff --git a/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/model/ListUpdateBackupEnhancePolicyRequest.java b/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/model/ListUpdateBackupEnhancePolicyRequest.java new file mode 100644 index 0000000000..d33986d538 --- /dev/null +++ b/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/model/ListUpdateBackupEnhancePolicyRequest.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.rds.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListUpdateBackupEnhancePolicyRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "time_zone") + + private String timeZone; + + public ListUpdateBackupEnhancePolicyRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ListUpdateBackupEnhancePolicyRequest withTimeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * 用户当前时区,例:plus08 + * @return timeZone + */ + public String getTimeZone() { + return timeZone; + } + + public void setTimeZone(String timeZone) { + this.timeZone = timeZone; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListUpdateBackupEnhancePolicyRequest that = (ListUpdateBackupEnhancePolicyRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.timeZone, that.timeZone); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, timeZone); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListUpdateBackupEnhancePolicyRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/model/ListUpdateBackupEnhancePolicyResponse.java b/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/model/ListUpdateBackupEnhancePolicyResponse.java new file mode 100644 index 0000000000..d707bf4e8f --- /dev/null +++ b/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/model/ListUpdateBackupEnhancePolicyResponse.java @@ -0,0 +1,186 @@ +package com.huaweicloud.sdk.rds.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListUpdateBackupEnhancePolicyResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "begin_time") + + private String beginTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "end_time") + + private String endTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "manual_backup_retention_days") + + private String manualBackupRetentionDays; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "frequency") + + private String frequency; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "policies") + + private List policies = null; + + public ListUpdateBackupEnhancePolicyResponse withBeginTime(String beginTime) { + this.beginTime = beginTime; + return this; + } + + /** + * 备份时间段开始时间 + * @return beginTime + */ + public String getBeginTime() { + return beginTime; + } + + public void setBeginTime(String beginTime) { + this.beginTime = beginTime; + } + + public ListUpdateBackupEnhancePolicyResponse withEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * 备份时间段结束时间 + * @return endTime + */ + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public ListUpdateBackupEnhancePolicyResponse withManualBackupRetentionDays(String manualBackupRetentionDays) { + this.manualBackupRetentionDays = manualBackupRetentionDays; + return this; + } + + /** + * 手动备份保留时长 + * @return manualBackupRetentionDays + */ + public String getManualBackupRetentionDays() { + return manualBackupRetentionDays; + } + + public void setManualBackupRetentionDays(String manualBackupRetentionDays) { + this.manualBackupRetentionDays = manualBackupRetentionDays; + } + + public ListUpdateBackupEnhancePolicyResponse withFrequency(String frequency) { + this.frequency = frequency; + return this; + } + + /** + * 高频备份的频率 + * @return frequency + */ + public String getFrequency() { + return frequency; + } + + public void setFrequency(String frequency) { + this.frequency = frequency; + } + + public ListUpdateBackupEnhancePolicyResponse withPolicies(List policies) { + this.policies = policies; + return this; + } + + public ListUpdateBackupEnhancePolicyResponse addPoliciesItem(Policy policiesItem) { + if (this.policies == null) { + this.policies = new ArrayList<>(); + } + this.policies.add(policiesItem); + return this; + } + + public ListUpdateBackupEnhancePolicyResponse withPolicies(Consumer> policiesSetter) { + if (this.policies == null) { + this.policies = new ArrayList<>(); + } + policiesSetter.accept(this.policies); + return this; + } + + /** + * 备份策略集 + * @return policies + */ + public List getPolicies() { + return policies; + } + + public void setPolicies(List policies) { + this.policies = policies; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListUpdateBackupEnhancePolicyResponse that = (ListUpdateBackupEnhancePolicyResponse) obj; + return Objects.equals(this.beginTime, that.beginTime) && Objects.equals(this.endTime, that.endTime) + && Objects.equals(this.manualBackupRetentionDays, that.manualBackupRetentionDays) + && Objects.equals(this.frequency, that.frequency) && Objects.equals(this.policies, that.policies); + } + + @Override + public int hashCode() { + return Objects.hash(beginTime, endTime, manualBackupRetentionDays, frequency, policies); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListUpdateBackupEnhancePolicyResponse {\n"); + sb.append(" beginTime: ").append(toIndentedString(beginTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" manualBackupRetentionDays: ").append(toIndentedString(manualBackupRetentionDays)).append("\n"); + sb.append(" frequency: ").append(toIndentedString(frequency)).append("\n"); + sb.append(" policies: ").append(toIndentedString(policies)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/model/Policy.java b/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/model/Policy.java new file mode 100644 index 0000000000..34e1c7a2aa --- /dev/null +++ b/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/model/Policy.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.rds.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Policy + */ +public class Policy { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "period") + + private String period; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "retention_days") + + private String retentionDays; + + public Policy withPeriod(String period) { + this.period = period; + return this; + } + + /** + * 备份周期的crontab表达式 + * @return period + */ + public String getPeriod() { + return period; + } + + public void setPeriod(String period) { + this.period = period; + } + + public Policy withRetentionDays(String retentionDays) { + this.retentionDays = retentionDays; + return this; + } + + /** + * 保留时长(天) + * @return retentionDays + */ + public String getRetentionDays() { + return retentionDays; + } + + public void setRetentionDays(String retentionDays) { + this.retentionDays = retentionDays; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + Policy that = (Policy) obj; + return Objects.equals(this.period, that.period) && Objects.equals(this.retentionDays, that.retentionDays); + } + + @Override + public int hashCode() { + return Objects.hash(period, retentionDays); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Policy {\n"); + sb.append(" period: ").append(toIndentedString(period)).append("\n"); + sb.append(" retentionDays: ").append(toIndentedString(retentionDays)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/res/pom.xml b/services/res/pom.xml index 96beca5ccc..e7102f03d5 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-res - 3.1.127 + 3.1.128 Huawei Cloud SDK for RES 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/rgc/pom.xml b/services/rgc/pom.xml index 9dec5f3801..6b04a34f56 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-rgc - 3.1.127 + 3.1.128 Huawei Cloud SDK for RGC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/rms/pom.xml b/services/rms/pom.xml index 78cfcdce7d..c55f19ad10 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-rms - 3.1.127 + 3.1.128 Huawei Cloud SDK for RMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/rocketmq/pom.xml b/services/rocketmq/pom.xml index 4b6df15b90..af40806198 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-rocketmq - 3.1.127 + 3.1.128 Huawei Cloud SDK for ROCKETMQ 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/roma/pom.xml b/services/roma/pom.xml index 7504903396..a63904fca2 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-roma - 3.1.127 + 3.1.128 Huawei Cloud SDK for ROMA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/sa/pom.xml b/services/sa/pom.xml index 4a15211a99..c5d6a06cba 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-sa - 3.1.127 + 3.1.128 Huawei Cloud SDK for SA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/scm/pom.xml b/services/scm/pom.xml index 170f297875..402a930712 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-scm - 3.1.127 + 3.1.128 Huawei Cloud SDK for SCM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/scm/src/main/java/com/huaweicloud/sdk/scm/v3/ScmMeta.java b/services/scm/src/main/java/com/huaweicloud/sdk/scm/v3/ScmMeta.java index 496783b230..7be0033809 100644 --- a/services/scm/src/main/java/com/huaweicloud/sdk/scm/v3/ScmMeta.java +++ b/services/scm/src/main/java/com/huaweicloud/sdk/scm/v3/ScmMeta.java @@ -247,6 +247,11 @@ private static HttpRequestDef TypeCasts.uncheckedConversion(Boolean.class), f -> f.withMarshaller(ListCertificatesRequest::getDeploySupport, ListCertificatesRequest::setDeploySupport)); + builder.withRequestField("owned_by_self", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Boolean.class), + f -> f.withMarshaller(ListCertificatesRequest::getOwnedBySelf, ListCertificatesRequest::setOwnedBySelf)); // response diff --git a/services/scm/src/main/java/com/huaweicloud/sdk/scm/v3/model/ListCertificatesRequest.java b/services/scm/src/main/java/com/huaweicloud/sdk/scm/v3/model/ListCertificatesRequest.java index 4068eadfee..1c52f902da 100644 --- a/services/scm/src/main/java/com/huaweicloud/sdk/scm/v3/model/ListCertificatesRequest.java +++ b/services/scm/src/main/java/com/huaweicloud/sdk/scm/v3/model/ListCertificatesRequest.java @@ -45,6 +45,11 @@ public class ListCertificatesRequest { private Boolean deploySupport; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "owned_by_self") + + private Boolean ownedBySelf; + public ListCertificatesRequest withLimit(Integer limit) { this.limit = limit; return this; @@ -167,6 +172,23 @@ public void setDeploySupport(Boolean deploySupport) { this.deploySupport = deploySupport; } + public ListCertificatesRequest withOwnedBySelf(Boolean ownedBySelf) { + this.ownedBySelf = ownedBySelf; + return this; + } + + /** + * 过滤资源是否属于当前租户,取值如下: - true:只查属于当前租户的资源,不包括共享资源。 - false:查询当前租户及共享给该租户的资源。 + * @return ownedBySelf + */ + public Boolean getOwnedBySelf() { + return ownedBySelf; + } + + public void setOwnedBySelf(Boolean ownedBySelf) { + this.ownedBySelf = ownedBySelf; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -180,12 +202,13 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.sortDir, that.sortDir) && Objects.equals(this.sortKey, that.sortKey) && Objects.equals(this.status, that.status) && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) - && Objects.equals(this.deploySupport, that.deploySupport); + && Objects.equals(this.deploySupport, that.deploySupport) + && Objects.equals(this.ownedBySelf, that.ownedBySelf); } @Override public int hashCode() { - return Objects.hash(limit, offset, sortDir, sortKey, status, enterpriseProjectId, deploySupport); + return Objects.hash(limit, offset, sortDir, sortKey, status, enterpriseProjectId, deploySupport, ownedBySelf); } @Override @@ -199,6 +222,7 @@ public String toString() { sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); sb.append(" deploySupport: ").append(toIndentedString(deploySupport)).append("\n"); + sb.append(" ownedBySelf: ").append(toIndentedString(ownedBySelf)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/sdrs/pom.xml b/services/sdrs/pom.xml index c23aaf7fb5..42e3262985 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-sdrs - 3.1.127 + 3.1.128 Huawei Cloud SDK for SDRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/secmaster/pom.xml b/services/secmaster/pom.xml index 62bcf43a39..e935b86bfe 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-secmaster - 3.1.127 + 3.1.128 Huawei Cloud SDK for SECMASTER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/servicestage/pom.xml b/services/servicestage/pom.xml index 8c29720994..0110c0beea 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-servicestage - 3.1.127 + 3.1.128 Huawei Cloud SDK for SERVICESTAGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/sfsturbo/pom.xml b/services/sfsturbo/pom.xml index 3db5976119..36ee0b5f8a 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-sfsturbo - 3.1.127 + 3.1.128 Huawei Cloud SDK for SFSTURBO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/sis/pom.xml b/services/sis/pom.xml index e177ab095f..0cf5cc843e 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-sis - 3.1.127 + 3.1.128 Huawei Cloud SDK for SIS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/smn/pom.xml b/services/smn/pom.xml index 4deb39b3b9..400b23a35a 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-smn - 3.1.127 + 3.1.128 Huawei Cloud SDK for SMN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/sms/pom.xml b/services/sms/pom.xml index 853e153710..6daa1c8c9d 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-sms - 3.1.127 + 3.1.128 Huawei Cloud SDK for SMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/smsapi/pom.xml b/services/smsapi/pom.xml index 51a8efcba3..ee342fe834 100644 --- a/services/smsapi/pom.xml +++ b/services/smsapi/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-smsapi - 3.1.127 + 3.1.128 Huawei Cloud SDK for SMSAPI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/sts/pom.xml b/services/sts/pom.xml index 44c08021a7..656b512b1f 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-sts - 3.1.127 + 3.1.128 Huawei Cloud SDK for STS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/swr/pom.xml b/services/swr/pom.xml index dd5d42d08c..a21085b3aa 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-swr - 3.1.127 + 3.1.128 Huawei Cloud SDK for SWR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/tics/pom.xml b/services/tics/pom.xml index 1bc05c6d04..238528ecf5 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-tics - 3.1.127 + 3.1.128 Huawei Cloud SDK for TICS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/tms/pom.xml b/services/tms/pom.xml index 06a0965bc1..edd2459a0a 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-tms - 3.1.127 + 3.1.128 Huawei Cloud SDK for TMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/ugo/pom.xml b/services/ugo/pom.xml index 9b91a3036e..7a9938a6e8 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-ugo - 3.1.127 + 3.1.128 Huawei Cloud SDK for UGO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/vas/pom.xml b/services/vas/pom.xml index 02697e4ec0..38d8a04c6f 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-vas - 3.1.127 + 3.1.128 Huawei Cloud SDK for VAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/vcm/pom.xml b/services/vcm/pom.xml index d959968130..a269607c28 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-vcm - 3.1.127 + 3.1.128 Huawei Cloud SDK for VCM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/vias/pom.xml b/services/vias/pom.xml index 1af31575df..15ee6b60f9 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-vias - 3.1.127 + 3.1.128 Huawei Cloud SDK for VIAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/vod/pom.xml b/services/vod/pom.xml index 3784815c00..7596d4ba84 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-vod - 3.1.127 + 3.1.128 Huawei Cloud SDK for VOD 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/vpc/pom.xml b/services/vpc/pom.xml index 1bec3979d5..c8c26b0d39 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-vpc - 3.1.127 + 3.1.128 Huawei Cloud SDK for VPC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/vpcep/pom.xml b/services/vpcep/pom.xml index 8fe3e8452b..209bbb7344 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-vpcep - 3.1.127 + 3.1.128 Huawei Cloud SDK for VPCEP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/vpn/pom.xml b/services/vpn/pom.xml index eea215d1f9..c6b6cd5bcc 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-vpn - 3.1.127 + 3.1.128 Huawei Cloud SDK for VPN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/waf/pom.xml b/services/waf/pom.xml index 2b0202b0fb..5406468950 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-waf - 3.1.127 + 3.1.128 Huawei Cloud SDK for WAF 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/workspace/pom.xml b/services/workspace/pom.xml index d0031423fd..1466a77d91 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-workspace - 3.1.127 + 3.1.128 Huawei Cloud SDK for WORKSPACE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128 diff --git a/services/workspaceapp/pom.xml b/services/workspaceapp/pom.xml index b50f49aaeb..e2aef8d639 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.127 + 3.1.128 huaweicloud-sdk-services .. huaweicloud-sdk-workspaceapp - 3.1.127 + 3.1.128 Huawei Cloud SDK for WORKSPACEAPP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.127 + 3.1.128