From 09196da51614dcabb47bb199951b410201bc32be Mon Sep 17 00:00:00 2001 From: Huaweicloud-SDK Date: Thu, 14 Nov 2024 19:51:28 +0800 Subject: [PATCH] release 3.1.123 source code --- CHANGELOG.md | 369 +++++ CHANGELOG_CN.md | 369 +++++ VERSION | 2 +- all/package.json | 190 +-- package.json | 2 +- services/aom/v2/AomClient.ts | 22 +- .../aom/v2/model/ListPromInstanceRequest.ts | 3 +- services/aom/v2/model/PushEventsRequest.ts | 14 +- services/cloudrtc/v2/CloudRTCClient.ts | 175 --- services/cloudrtc/v2/model/AppAuthReq.ts | 17 - .../cloudrtc/v2/model/ShowUrlAuthRequest.ts | 51 - .../cloudrtc/v2/model/ShowUrlAuthResponse.ts | 36 - .../v2/model/UpdateUrlAuthResponse.ts | 36 - services/cloudrtc/v2/public-api.ts | 5 - .../dataartsstudio/v1/DataArtsStudioClient.ts | 66 + .../v1/model/ApigDataSourceVo.ts | 5 + .../v1/model/ListWorkspacesForUserRequest.ts | 30 + .../v1/model/ListWorkspacesForUserResponse.ts | 30 + services/dataartsstudio/v1/public-api.ts | 2 + services/dds/v3/DdsClient.ts | 550 ++++++++ .../dds/v3/model/BatchDeleteBackupRequest.ts | 32 + .../v3/model/BatchDeleteBackupRequestBody.ts | 18 + .../dds/v3/model/BatchDeleteBackupResponse.ts | 8 + .../BatchUpgradeDatabaseVersionRequest.ts | 12 + .../BatchUpgradeDatabaseVersionRequestBody.ts | 18 + .../BatchUpgradeDatabaseVersionResponse.ts | 20 + .../v3/model/CancelScheduledTaskRequest.ts} | 4 +- .../v3/model/CancelScheduledTaskResponse.ts} | 4 +- .../model/ConfigurationModifyHistoryInfo.ts | 84 ++ .../dds/v3/model/DiskAutoExpansionPolicy.ts | 28 + .../dds/v3/model/ListScheduledTasksRequest.ts | 71 + .../v3/model/ListScheduledTasksResponse.ts | 25 + .../v3/model/ScheduledTasksRspSchedules.ts | 105 ++ .../v3/model/SetAutoEnlargePoliciesRequest.ts | 12 + .../SetAutoEnlargePoliciesRequestBody.ts | 24 + .../model/SetAutoEnlargePoliciesResponse.ts | 8 + .../v3/model/ShowAutoEnlargePolicyRequest.ts | 18 + .../v3/model/ShowAutoEnlargePolicyResponse.ts | 25 + ...stanceConfigurationModifyHistoryRequest.ts | 28 + ...tanceConfigurationModifyHistoryResponse.ts | 14 + services/dds/v3/model/UpgradeResult.ts | 51 + .../model/ValidateConfigurationNameRequest.ts | 12 + .../ValidateConfigurationNameResponse.ts | 19 + services/dds/v3/public-api.ts | 23 + services/dws/v2/DwsClient.ts | 116 ++ services/dws/v2/model/StartClusterRequest.ts | 18 + services/dws/v2/model/StartClusterResponse.ts | 19 + services/dws/v2/model/StopClusterRequest.ts | 18 + .../v2/model/StopClusterResponse.ts} | 6 +- services/dws/v2/public-api.ts | 4 + services/evs/v2/EvsClient.ts | 127 -- services/evs/v2/model/BssParam2.ts | 17 - .../v2/model/ChangeVolumeChargeModeRequest.ts | 12 - .../ChangeVolumeChargeModeRequestBody.ts | 41 - services/evs/v2/model/RetypeVolume.ts | 10 + .../model/UnsubscribePostpaidVolumeRequest.ts | 12 - .../UnsubscribePostpaidVolumeResponse.ts | 14 - services/evs/v2/model/UnsubscribeVolume.ts | 46 - .../v2/model/UnsubscribeVolumeRequestBody.ts | 18 - .../v2/model/UnsubscribeVolumeResponseBody.ts | 13 - services/evs/v2/public-api.ts | 9 - .../v2/model/TriggerEventDataRequestBody.ts | 34 +- .../v2/model/TriggerEventDataResponseBody.ts | 95 ++ .../v3/GaussDBforNoSQLClient.ts | 1219 ++++++++++++++++- .../ApplyConfigurationToInstancesRequest.ts | 24 + ...pplyConfigurationToInstancesRequestBody.ts | 18 + .../ApplyConfigurationToInstancesResponse.ts | 24 + .../CancelInstanceScheduleWindowRequest.ts | 18 + .../CancelInstanceScheduleWindowResponse.ts | 8 + .../v3/model/CreateDbCacheMappingRequest.ts | 12 + .../model/CreateDbCacheMappingRequestBody.ts | 30 + .../v3/model/CreateDbCacheMappingResponse.ts | 19 + .../v3/model/CreateDbCacheRuleRequest.ts | 12 + .../v3/model/CreateDbCacheRuleRequestBody.ts | 136 ++ .../v3/model/CreateDbCacheRuleResponse.ts | 13 + .../v3/model/DeleteDbCacheMappingRequest.ts | 12 + .../model/DeleteDbCacheMappingRequestBody.ts | 12 + .../v3/model/DeleteDbCacheMappingResponse.ts | 19 + .../v3/model/DeleteDbCacheRuleRequest.ts | 12 + .../v3/model/DeleteDbCacheRuleRequestBody.ts | 12 + .../v3/model/DeleteDbCacheRuleResponse.ts | 8 + .../v3/model/ListDbCacheMappingsRequest.ts | 70 + .../v3/model/ListDbCacheMappingsResponse.ts | 31 + .../v3/model/ListDbCacheRulesRequest.ts | 72 + .../v3/model/ListDbCacheRulesResponse.ts | 36 + .../ListInstanceMaintenanceWindowRequest.ts | 18 + .../ListInstanceMaintenanceWindowResponse.ts | 19 + .../v3/model/ListNosqlTaskListRequest.ts | 71 + .../v3/model/ListNosqlTaskListResponse.ts | 25 + .../ModifyInstanceMaintenanceWindowRequest.ts | 24 + ...ModifyInstanceMaintenanceWindowResponse.ts | 8 + .../v3/model/ModifyInstanceOpsWindowV3Req.ts | 18 + .../v3/model/QueryDBCacheMappingResponse.ts | 95 ++ .../v3/model/QueryDBCacheRuleResponse.ts | 126 ++ .../v3/model/ScheduleDetailInfo.ts | 126 ++ .../v3/model/SetInstanceDataDumpRequest.ts | 24 + .../model/SetInstanceDataDumpRequestBody.ts | 33 + .../v3/model/SetInstanceDataDumpResponse.ts | 8 + .../v3/model/ShowBackupPoliciesRequest.ts | 18 + .../v3/model/ShowBackupPoliciesResponse.ts | 20 + .../ShowSecondLevelMonitoringStatusRequest.ts | 18 + ...ShowSecondLevelMonitoringStatusResponse.ts | 13 + .../SwitchSecondLevelMonitoringRequest.ts | 24 + .../SwitchSecondLevelMonitoringRequestBody.ts | 12 + .../SwitchSecondLevelMonitoringResponse.ts | 8 + .../v3/model/UpdateDbCacheRuleRequest.ts | 12 + .../v3/model/UpdateDbCacheRuleRequestBody.ts | 46 + .../v3/model/UpdateDbCacheRuleResponse.ts | 8 + .../UpdateInstanceConfigurationsRequest.ts | 24 + ...UpdateInstanceConfigurationsRequestBody.ts | 12 + .../UpdateInstanceConfigurationsResponse.ts | 30 + services/gaussdbfornosql/v3/public-api.ts | 47 + .../v3/GaussDBforopenGaussClient.ts | 16 +- .../v3/model/CreateLimitTaskResponse.ts | 18 +- .../v3/model/UpdateLimitTaskResponse.ts | 10 +- .../UpdateMySQLCompatibilityRequestBody.ts | 3 +- services/hss/v5/HssClient.ts | 5 +- services/hss/v5/HssRegion.ts | 2 + services/hss/v5/model/ListAppsRequest.ts | 3 +- services/iotda/v5/IoTDAClient.ts | 48 - .../iotda/v5/model/AddFunctionsRequest.ts | 22 - .../iotda/v5/model/DeleteFunctionsRequest.ts | 22 - .../iotda/v5/model/DeleteFunctionsResponse.ts | 5 - .../iotda/v5/model/ListFunctionsRequest.ts | 22 - services/live/v2/LiveClient.ts | 20 +- services/meeting/v1/MeetingClient.ts | 61 + .../v1/model/CheckCallNumberInConfRequest.ts | 18 + .../v1/model/CheckCallNumberInConfResponse.ts | 30 + services/meeting/v1/public-api.ts | 2 + services/metastudio/v1/MetaStudioClient.ts | 278 +++- .../v1/model/ActionBasicSampleInfo.ts | 11 + .../metastudio/v1/model/ActionSampleInfo.ts | 11 + .../v1/model/Create2dModelTrainingJobReq.ts | 22 + .../model/Create2dModelTrainingJobResponse.ts | 22 + .../v1/model/CreateBeautyPreviewJobReq.ts | 17 + .../model/CreateBeautyPreviewJobRequest.ts} | 31 +- .../model/CreateBeautyPreviewJobResponse.ts | 41 + .../v1/model/InferenceVideoMarkInfo.ts | 22 + .../model/Show2dModelTrainingJobResponse.ts | 80 ++ .../v1/model/ShowBeautyPreviewJobRequest.ts | 62 + .../v1/model/ShowBeautyPreviewJobResponse.ts | 47 + .../v1/model/StartBeautyPreviewJobRequest.ts | 62 + .../v1/model/StartBeautyPreviewJobResponse.ts | 19 + .../v1/model/TrainingAllocatedResource.ts | 48 + .../v1/model/TrainingJobBasicInfo.ts | 12 + .../v1/model/TrainingVideoMarkInfo.ts | 28 + .../v1/model/Update2dModelTrainingJobReq.ts | 11 + .../model/Update2dModelTrainingJobResponse.ts | 22 + .../metastudio/v1/model/ValidateRobotReq.ts | 3 +- services/metastudio/v1/public-api.ts | 9 + .../moderation/huaweicloud-sdk-moderation.ts | 3 +- services/moderation/v2/ModerationClient.ts | 498 ------- services/moderation/v2/ModerationRegion.ts | 34 - .../v2/model/CheckResultItemsBody.ts | 66 - .../v2/model/CheckResultResultBody.ts | 50 - .../v2/model/CheckTaskJobsItemsBody.ts | 44 - .../v2/model/ImageBatchModerationReq.ts | 67 - .../model/ImageBatchModerationResultBody.ts | 66 - .../moderation/v2/model/ImageDetectionReq.ts | 71 - .../v2/model/ImageDetectionResultAdDetail.ts | 27 - .../v2/model/ImageDetectionResultBody.ts | 39 - .../v2/model/ImageDetectionResultDetail.ts | 29 - .../ImageDetectionResultDetailFaceDetail.ts | 26 - .../ImageDetectionResultDetailPolitics.ts | 28 - .../model/ImageDetectionResultSimpleDetail.ts | 16 - .../v2/model/PornModerationResultDetail.ts | 16 - .../v2/model/RunCheckResultResponse.ts | 14 - .../v2/model/RunCheckTaskJobsRequest.ts | 32 - .../v2/model/RunCheckTaskJobsResponse.ts | 19 - .../model/RunImageBatchModerationRequest.ts | 12 - .../model/RunImageBatchModerationResponse.ts | 14 - .../v2/model/RunImageModerationRequest.ts | 12 - .../v2/model/RunImageModerationResponse.ts | 14 - .../v2/model/RunModerationAudioRequest.ts | 12 - .../v2/model/RunModerationAudioRequestBody.ts | 28 - .../RunModerationAudioRequestBodyConfig.ts | 44 - .../v2/model/RunModerationAudioResponse.ts | 14 - .../RunModerationAudioResponseBodyResult.ts | 17 - ...ModerationAudioResponseBodyResultDetail.ts | 17 - ...ationAudioResponseBodyResultDetailAudio.ts | 12 - .../v2/model/RunTaskSumbitRequest.ts | 12 - .../v2/model/RunTaskSumbitResponse.ts | 14 - .../v2/model/RunTextModerationRequest.ts | 12 - .../v2/model/RunTextModerationResponse.ts | 14 - services/moderation/v2/model/TaskSumbitReq.ts | 60 - .../v2/model/TextDetectionItemsReq.ts | 17 - .../moderation/v2/model/TextDetectionReq.ts | 29 - .../v2/model/TextDetectionResponseResult.ts | 16 - services/moderation/v2/public-api.ts | 40 - services/sfsturbo/v1/SFSTurboClient.ts | 386 +++++- services/sfsturbo/v1/SFSTurboRegion.ts | 6 +- .../sfsturbo/v1/model/AutoExportPolicy.ts | 21 + services/sfsturbo/v1/model/ConfigObsTarget.ts | 30 - .../v1/model/CreateHpcCacheTaskReq.ts | 6 + .../v1/model/CreateLdapConfigRequestBody.ts | 49 +- .../v1/model/DeleteHpcCacheTaskRequest.ts | 30 + .../v1/model/DeleteHpcCacheTaskResponse.ts | 19 + .../v1/model/ListHpcCacheTasksRequest.ts | 22 + .../sfsturbo/v1/model/ListPermRulesRequest.ts | 10 + .../v1/model/ListSharedTagsRequest.ts | 10 + .../sfsturbo/v1/model/ObsDataRepository.ts | 12 + .../v1/model/ObsDataRepositoryPolicy.ts | 18 + .../sfsturbo/v1/model/ObsTargetAttributes.ts | 38 + .../v1/model/OneHpcCacheTaskInfoResp.ts | 16 +- .../v1/model/ReqUpdateHpcCacheData.ts | 6 - services/sfsturbo/v1/model/ShareInfo.ts | 43 + .../sfsturbo/v1/model/ShareInfoFeature.ts | 33 + .../sfsturbo/v1/model/ShareInfoFeatures.ts | 12 + .../v1/model/ShowHpcCacheTaskResponse.ts | 16 +- .../v1/model/ShowJobDetailResponse.ts | 17 +- .../v1/model/ShowLdapConfigResponse.ts | 38 + .../sfsturbo/v1/model/ShowShareResponse.ts | 43 + .../v1/model/UpdateLdapConfigRequestBody.ts | 49 +- .../model/UpdateObsTargetAttributesRequest.ts | 36 + .../UpdateObsTargetAttributesRequestBody.ts | 13 + .../UpdateObsTargetAttributesResponse.ts | 36 + .../v1/model/UpdateObsTargetPolicyRequest.ts | 36 + .../model/UpdateObsTargetPolicyRequestBody.ts | 13 + .../v1/model/UpdateObsTargetPolicyResponse.ts | 36 + services/sfsturbo/v1/public-api.ts | 14 +- services/tms/v1/TmsClient.ts | 2 +- 221 files changed, 7233 insertions(+), 2573 deletions(-) delete mode 100644 services/cloudrtc/v2/model/AppAuthReq.ts delete mode 100644 services/cloudrtc/v2/model/ShowUrlAuthRequest.ts delete mode 100644 services/cloudrtc/v2/model/ShowUrlAuthResponse.ts delete mode 100644 services/cloudrtc/v2/model/UpdateUrlAuthResponse.ts create mode 100644 services/dataartsstudio/v1/model/ListWorkspacesForUserRequest.ts create mode 100644 services/dataartsstudio/v1/model/ListWorkspacesForUserResponse.ts create mode 100644 services/dds/v3/model/BatchDeleteBackupRequest.ts create mode 100644 services/dds/v3/model/BatchDeleteBackupRequestBody.ts create mode 100644 services/dds/v3/model/BatchDeleteBackupResponse.ts create mode 100644 services/dds/v3/model/BatchUpgradeDatabaseVersionRequest.ts create mode 100644 services/dds/v3/model/BatchUpgradeDatabaseVersionRequestBody.ts create mode 100644 services/dds/v3/model/BatchUpgradeDatabaseVersionResponse.ts rename services/{moderation/v2/model/RunCheckResultRequest.ts => dds/v3/model/CancelScheduledTaskRequest.ts} (76%) rename services/{evs/v2/model/ChangeVolumeChargeModeResponse.ts => dds/v3/model/CancelScheduledTaskResponse.ts} (61%) create mode 100644 services/dds/v3/model/ConfigurationModifyHistoryInfo.ts create mode 100644 services/dds/v3/model/DiskAutoExpansionPolicy.ts create mode 100644 services/dds/v3/model/ListScheduledTasksRequest.ts create mode 100644 services/dds/v3/model/ListScheduledTasksResponse.ts create mode 100644 services/dds/v3/model/ScheduledTasksRspSchedules.ts create mode 100644 services/dds/v3/model/SetAutoEnlargePoliciesRequest.ts create mode 100644 services/dds/v3/model/SetAutoEnlargePoliciesRequestBody.ts create mode 100644 services/dds/v3/model/SetAutoEnlargePoliciesResponse.ts create mode 100644 services/dds/v3/model/ShowAutoEnlargePolicyRequest.ts create mode 100644 services/dds/v3/model/ShowAutoEnlargePolicyResponse.ts create mode 100644 services/dds/v3/model/ShowInstanceConfigurationModifyHistoryRequest.ts create mode 100644 services/dds/v3/model/ShowInstanceConfigurationModifyHistoryResponse.ts create mode 100644 services/dds/v3/model/UpgradeResult.ts create mode 100644 services/dds/v3/model/ValidateConfigurationNameRequest.ts create mode 100644 services/dds/v3/model/ValidateConfigurationNameResponse.ts create mode 100644 services/dws/v2/model/StartClusterRequest.ts create mode 100644 services/dws/v2/model/StartClusterResponse.ts create mode 100644 services/dws/v2/model/StopClusterRequest.ts rename services/{moderation/v2/model/TaskSumbitResponseResult.ts => dws/v2/model/StopClusterResponse.ts} (58%) delete mode 100644 services/evs/v2/model/BssParam2.ts delete mode 100644 services/evs/v2/model/ChangeVolumeChargeModeRequest.ts delete mode 100644 services/evs/v2/model/ChangeVolumeChargeModeRequestBody.ts delete mode 100644 services/evs/v2/model/UnsubscribePostpaidVolumeRequest.ts delete mode 100644 services/evs/v2/model/UnsubscribePostpaidVolumeResponse.ts delete mode 100644 services/evs/v2/model/UnsubscribeVolume.ts delete mode 100644 services/evs/v2/model/UnsubscribeVolumeRequestBody.ts delete mode 100644 services/evs/v2/model/UnsubscribeVolumeResponseBody.ts create mode 100644 services/gaussdbfornosql/v3/model/ApplyConfigurationToInstancesRequest.ts create mode 100644 services/gaussdbfornosql/v3/model/ApplyConfigurationToInstancesRequestBody.ts create mode 100644 services/gaussdbfornosql/v3/model/ApplyConfigurationToInstancesResponse.ts create mode 100644 services/gaussdbfornosql/v3/model/CancelInstanceScheduleWindowRequest.ts create mode 100644 services/gaussdbfornosql/v3/model/CancelInstanceScheduleWindowResponse.ts create mode 100644 services/gaussdbfornosql/v3/model/CreateDbCacheMappingRequest.ts create mode 100644 services/gaussdbfornosql/v3/model/CreateDbCacheMappingRequestBody.ts create mode 100644 services/gaussdbfornosql/v3/model/CreateDbCacheMappingResponse.ts create mode 100644 services/gaussdbfornosql/v3/model/CreateDbCacheRuleRequest.ts create mode 100644 services/gaussdbfornosql/v3/model/CreateDbCacheRuleRequestBody.ts create mode 100644 services/gaussdbfornosql/v3/model/CreateDbCacheRuleResponse.ts create mode 100644 services/gaussdbfornosql/v3/model/DeleteDbCacheMappingRequest.ts create mode 100644 services/gaussdbfornosql/v3/model/DeleteDbCacheMappingRequestBody.ts create mode 100644 services/gaussdbfornosql/v3/model/DeleteDbCacheMappingResponse.ts create mode 100644 services/gaussdbfornosql/v3/model/DeleteDbCacheRuleRequest.ts create mode 100644 services/gaussdbfornosql/v3/model/DeleteDbCacheRuleRequestBody.ts create mode 100644 services/gaussdbfornosql/v3/model/DeleteDbCacheRuleResponse.ts create mode 100644 services/gaussdbfornosql/v3/model/ListDbCacheMappingsRequest.ts create mode 100644 services/gaussdbfornosql/v3/model/ListDbCacheMappingsResponse.ts create mode 100644 services/gaussdbfornosql/v3/model/ListDbCacheRulesRequest.ts create mode 100644 services/gaussdbfornosql/v3/model/ListDbCacheRulesResponse.ts create mode 100644 services/gaussdbfornosql/v3/model/ListInstanceMaintenanceWindowRequest.ts create mode 100644 services/gaussdbfornosql/v3/model/ListInstanceMaintenanceWindowResponse.ts create mode 100644 services/gaussdbfornosql/v3/model/ListNosqlTaskListRequest.ts create mode 100644 services/gaussdbfornosql/v3/model/ListNosqlTaskListResponse.ts create mode 100644 services/gaussdbfornosql/v3/model/ModifyInstanceMaintenanceWindowRequest.ts create mode 100644 services/gaussdbfornosql/v3/model/ModifyInstanceMaintenanceWindowResponse.ts create mode 100644 services/gaussdbfornosql/v3/model/ModifyInstanceOpsWindowV3Req.ts create mode 100644 services/gaussdbfornosql/v3/model/QueryDBCacheMappingResponse.ts create mode 100644 services/gaussdbfornosql/v3/model/QueryDBCacheRuleResponse.ts create mode 100644 services/gaussdbfornosql/v3/model/ScheduleDetailInfo.ts create mode 100644 services/gaussdbfornosql/v3/model/SetInstanceDataDumpRequest.ts create mode 100644 services/gaussdbfornosql/v3/model/SetInstanceDataDumpRequestBody.ts create mode 100644 services/gaussdbfornosql/v3/model/SetInstanceDataDumpResponse.ts create mode 100644 services/gaussdbfornosql/v3/model/ShowBackupPoliciesRequest.ts create mode 100644 services/gaussdbfornosql/v3/model/ShowBackupPoliciesResponse.ts create mode 100644 services/gaussdbfornosql/v3/model/ShowSecondLevelMonitoringStatusRequest.ts create mode 100644 services/gaussdbfornosql/v3/model/ShowSecondLevelMonitoringStatusResponse.ts create mode 100644 services/gaussdbfornosql/v3/model/SwitchSecondLevelMonitoringRequest.ts create mode 100644 services/gaussdbfornosql/v3/model/SwitchSecondLevelMonitoringRequestBody.ts create mode 100644 services/gaussdbfornosql/v3/model/SwitchSecondLevelMonitoringResponse.ts create mode 100644 services/gaussdbfornosql/v3/model/UpdateDbCacheRuleRequest.ts create mode 100644 services/gaussdbfornosql/v3/model/UpdateDbCacheRuleRequestBody.ts create mode 100644 services/gaussdbfornosql/v3/model/UpdateDbCacheRuleResponse.ts create mode 100644 services/gaussdbfornosql/v3/model/UpdateInstanceConfigurationsRequest.ts create mode 100644 services/gaussdbfornosql/v3/model/UpdateInstanceConfigurationsRequestBody.ts create mode 100644 services/gaussdbfornosql/v3/model/UpdateInstanceConfigurationsResponse.ts create mode 100644 services/meeting/v1/model/CheckCallNumberInConfRequest.ts create mode 100644 services/meeting/v1/model/CheckCallNumberInConfResponse.ts create mode 100644 services/metastudio/v1/model/CreateBeautyPreviewJobReq.ts rename services/{cloudrtc/v2/model/UpdateUrlAuthRequest.ts => metastudio/v1/model/CreateBeautyPreviewJobRequest.ts} (54%) create mode 100644 services/metastudio/v1/model/CreateBeautyPreviewJobResponse.ts create mode 100644 services/metastudio/v1/model/ShowBeautyPreviewJobRequest.ts create mode 100644 services/metastudio/v1/model/ShowBeautyPreviewJobResponse.ts create mode 100644 services/metastudio/v1/model/StartBeautyPreviewJobRequest.ts create mode 100644 services/metastudio/v1/model/StartBeautyPreviewJobResponse.ts create mode 100644 services/metastudio/v1/model/TrainingAllocatedResource.ts create mode 100644 services/metastudio/v1/model/TrainingVideoMarkInfo.ts delete mode 100644 services/moderation/v2/ModerationClient.ts delete mode 100644 services/moderation/v2/ModerationRegion.ts delete mode 100644 services/moderation/v2/model/CheckResultItemsBody.ts delete mode 100644 services/moderation/v2/model/CheckResultResultBody.ts delete mode 100644 services/moderation/v2/model/CheckTaskJobsItemsBody.ts delete mode 100644 services/moderation/v2/model/ImageBatchModerationReq.ts delete mode 100644 services/moderation/v2/model/ImageBatchModerationResultBody.ts delete mode 100644 services/moderation/v2/model/ImageDetectionReq.ts delete mode 100644 services/moderation/v2/model/ImageDetectionResultAdDetail.ts delete mode 100644 services/moderation/v2/model/ImageDetectionResultBody.ts delete mode 100644 services/moderation/v2/model/ImageDetectionResultDetail.ts delete mode 100644 services/moderation/v2/model/ImageDetectionResultDetailFaceDetail.ts delete mode 100644 services/moderation/v2/model/ImageDetectionResultDetailPolitics.ts delete mode 100644 services/moderation/v2/model/ImageDetectionResultSimpleDetail.ts delete mode 100644 services/moderation/v2/model/PornModerationResultDetail.ts delete mode 100644 services/moderation/v2/model/RunCheckResultResponse.ts delete mode 100644 services/moderation/v2/model/RunCheckTaskJobsRequest.ts delete mode 100644 services/moderation/v2/model/RunCheckTaskJobsResponse.ts delete mode 100644 services/moderation/v2/model/RunImageBatchModerationRequest.ts delete mode 100644 services/moderation/v2/model/RunImageBatchModerationResponse.ts delete mode 100644 services/moderation/v2/model/RunImageModerationRequest.ts delete mode 100644 services/moderation/v2/model/RunImageModerationResponse.ts delete mode 100644 services/moderation/v2/model/RunModerationAudioRequest.ts delete mode 100644 services/moderation/v2/model/RunModerationAudioRequestBody.ts delete mode 100644 services/moderation/v2/model/RunModerationAudioRequestBodyConfig.ts delete mode 100644 services/moderation/v2/model/RunModerationAudioResponse.ts delete mode 100644 services/moderation/v2/model/RunModerationAudioResponseBodyResult.ts delete mode 100644 services/moderation/v2/model/RunModerationAudioResponseBodyResultDetail.ts delete mode 100644 services/moderation/v2/model/RunModerationAudioResponseBodyResultDetailAudio.ts delete mode 100644 services/moderation/v2/model/RunTaskSumbitRequest.ts delete mode 100644 services/moderation/v2/model/RunTaskSumbitResponse.ts delete mode 100644 services/moderation/v2/model/RunTextModerationRequest.ts delete mode 100644 services/moderation/v2/model/RunTextModerationResponse.ts delete mode 100644 services/moderation/v2/model/TaskSumbitReq.ts delete mode 100644 services/moderation/v2/model/TextDetectionItemsReq.ts delete mode 100644 services/moderation/v2/model/TextDetectionReq.ts delete mode 100644 services/moderation/v2/model/TextDetectionResponseResult.ts delete mode 100644 services/moderation/v2/public-api.ts create mode 100644 services/sfsturbo/v1/model/AutoExportPolicy.ts delete mode 100644 services/sfsturbo/v1/model/ConfigObsTarget.ts create mode 100644 services/sfsturbo/v1/model/DeleteHpcCacheTaskRequest.ts create mode 100644 services/sfsturbo/v1/model/DeleteHpcCacheTaskResponse.ts create mode 100644 services/sfsturbo/v1/model/ObsDataRepositoryPolicy.ts create mode 100644 services/sfsturbo/v1/model/ObsTargetAttributes.ts create mode 100644 services/sfsturbo/v1/model/ShareInfoFeature.ts create mode 100644 services/sfsturbo/v1/model/ShareInfoFeatures.ts create mode 100644 services/sfsturbo/v1/model/UpdateObsTargetAttributesRequest.ts create mode 100644 services/sfsturbo/v1/model/UpdateObsTargetAttributesRequestBody.ts create mode 100644 services/sfsturbo/v1/model/UpdateObsTargetAttributesResponse.ts create mode 100644 services/sfsturbo/v1/model/UpdateObsTargetPolicyRequest.ts create mode 100644 services/sfsturbo/v1/model/UpdateObsTargetPolicyRequestBody.ts create mode 100644 services/sfsturbo/v1/model/UpdateObsTargetPolicyResponse.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index f68e3fb3e..bda501d77 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,372 @@ +# 3.1.123 2024-11-14 + +### HuaweiCloud SDK AOM + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **PushEvents** + - changes of request param + - `+ enterprise-project-id` + - `- x-enterprise-prject-id` + - **ListPromInstance** + - changes of request param + - `* Enterprise-Project-Id: optional -> required` + +### HuaweiCloud SDK CloudRTC + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Remove the APIs `ShowUrlAuth`, `UpdateUrlAuth` + +### HuaweiCloud SDK DataArtsStudio + +- _API Version_ + - V1 +- _Features_ + - Support the API `ListWorkspacesForUser` +- _Bug Fix_ + - None +- _Change_ + - **DebugDataconnection** + - changes of request param + - `+ supportService` + - **CreateConnections** + - changes of request param + - `+ data_source_vos.supportService` + - **UpdateDataconnection** + - changes of request param + - `+ data_source_vos.supportService` + +### HuaweiCloud SDK DDS + +- _API Version_ + - V3 +- _Features_ + - Support the following APIs: + - `ValidateConfigurationName` + - `ShowInstanceConfigurationModifyHistory` + - `SetAutoEnlargePolicies` + - `BatchDeleteBackup` + - `ShowAutoEnlargePolicy` + - `ListScheduledTasks` + - `CancelScheduledTask` + - `BatchUpgradeDatabaseVersion` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DWS + +- _API Version_ + - V2 +- _Features_ + - Support the APIs `StartCluster`, `StopCluster` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK EVS + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Remove the APIs `ChangeVolumeChargeMode`, `UnsubscribePostpaidVolume` + - **RetypeVolume** + - changes of request param + - `+ os-retype.iops` + - `+ os-retype.throughput` + +### HuaweiCloud SDK FunctionGraph + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowFunctionTrigger** + - changes of response param + - `+ event_data.Key_encode` + - `+ event_data.agency` + - `+ event_data.channel_name` + - `+ event_data.channel_id` + - `+ event_data.source_name` + - `+ event_data.created_time` + - `+ event_data.status` + - `+ event_data.trigger_name` + - `+ event_data.event_types` + - **UpdateTrigger** + - changes of response param + - `+ event_data.Key_encode` + - `+ event_data.agency` + - `+ event_data.channel_name` + - `+ event_data.channel_id` + - `+ event_data.source_name` + - `+ event_data.created_time` + - `+ event_data.status` + - `+ event_data.trigger_name` + - `+ event_data.event_types` + - **CreateFunctionTrigger** + - changes of request param + - `+ event_data.channel_id` + - `+ event_data.event_types` + - `+ event_data.status: enum value [ACTIVE,DISABLE]` + - changes of response param + - `+ event_data.Key_encode` + - `+ event_data.agency` + - `+ event_data.channel_name` + - `+ event_data.channel_id` + - `+ event_data.source_name` + - `+ event_data.created_time` + - `+ event_data.status` + - `+ event_data.trigger_name` + - `+ event_data.event_types` + - **ListFunctionTriggers** + - changes of response param + - `+ event_data.Key_encode` + - `+ event_data.agency` + - `+ event_data.channel_name` + - `+ event_data.channel_id` + - `+ event_data.source_name` + - `+ event_data.created_time` + - `+ event_data.status` + - `+ event_data.trigger_name` + - `+ event_data.event_types` + +### HuaweiCloud SDK GaussDBforNoSQL + +- _API Version_ + - V3 +- _Features_ + - Support the following APIs: + - `ShowBackupPolicies` + - `ApplyConfigurationToInstances` + - `UpdateInstanceConfigurations` + - `CreateDbCacheMapping` + - `DeleteDbCacheMapping` + - `UpdateDbCacheRule` + - `CreateDbCacheRule` + - `DeleteDbCacheRule` + - `ListDbCacheMappings` + - `ListDbCacheRules` + - `ShowSecondLevelMonitoringStatus` + - `SwitchSecondLevelMonitoring` + - `SetInstanceDataDump` + - `ListInstanceMaintenanceWindow` + - `ModifyInstanceMaintenanceWindow` + - `ListNosqlTaskList` + - `CancelInstanceScheduleWindow` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK GaussDBforopenGauss + +- _API Version_ + - V3 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateLimitTask** + - changes of response param + - `+ job_id` + - `- jobId` + - `* key_words: list -> string` + - **UpdateLimitTask** + - changes of response param + - `+ job_id` + - `- jobId` + +### HuaweiCloud SDK HSS + +- _API Version_ + - V5 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListApps** + - changes of request param + - `* host_id: required -> optional` + +### HuaweiCloud SDK Meeting + +- _API Version_ + - V1 +- _Features_ + - Support the API `CheckCallNumberInConf` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK MetaStudio + +- _API Version_ + - V1 +- _Features_ + - Support the APIs `CreateBeautyPreviewJob`, `ShowBeautyPreviewJob`, `StartBeautyPreviewJob` +- _Bug Fix_ + - None +- _Change_ + - **List2dModelTrainingJob** + - changes of response param + - `+ jobs.is_only_human_model` + - `+ jobs.state: enum value [WAIT_ASSET_SYNC]` + - **Create2dModelTrainingJob** + - changes of request param + - `+ beauty_level` + - `+ is_only_human_model` + - changes of response param + - `+ post_beauty_image_upload_url` + - `+ pre_beauty_image_upload_url` + - **Update2dModelTrainingJob** + - changes of request param + - `+ beauty_level` + - `+ samples_basic_info.recommended_value` + - changes of response param + - `+ post_beauty_image_upload_url` + - `+ pre_beauty_image_upload_url` + - **Show2dModelTrainingJob** + - changes of response param + - `+ allocated_resource` + - `+ pre_beauty_image_download_url` + - `+ post_beauty_image_download_url` + - `+ inference_data_process_chat_action_mark_info` + - `+ is_only_human_model` + - `+ traning_video_mark_info` + - `+ beauty_level` + - `+ state: enum value [WAIT_ASSET_SYNC]` + - `+ samples.recommended_value` + - `+ inference_data_process_video_mark_info.chat_video_start_time` + - `+ inference_data_process_video_mark_info.chat_video_end_time` + - **ShowAsset** + - changes of response param + - `* asset_extra_meta.image_meta.size: number -> integer` + - **UpdateDigitalAsset** + - changes of request param + - `* asset_extra_meta.image_meta.size: number -> integer` + - changes of response param + - `* asset_extra_meta.image_meta.size: number -> integer` + - **CreateDigitalAsset** + - changes of request param + - `* asset_extra_meta.image_meta.size: number -> integer` + - **ListAssets** + - changes of response param + - `* assets.asset_extra_meta.image_meta.size: number -> integer` + +### HuaweiCloud SDK SFSTurbo + +- _API Version_ + - V1 +- _Features_ + - Support the APIs `UpdateObsTargetAttributes`, `UpdateObsTargetPolicy`, `DeleteHpcCacheTask` +- _Bug Fix_ + - None +- _Change_ + - **CreateHpcCacheTask** + - changes of request param + - `+ attributes` + - **ShowHpcCacheTask** + - changes of response param + - `+ status: enum value [SUCCESS,DOING,FAIL]` + - **ShowLdapConfig** + - changes of response param + - `+ schema` + - `+ search_timeout` + - `+ backup_url` + - `+ allow_local_user` + - **UpdateLdapConfig** + - changes of request param + - `+ backup_url` + - `+ schema` + - `+ search_timeout` + - `+ allow_local_user` + - **CreateLdapConfig** + - changes of request param + - `+ backup_url` + - `+ schema` + - `+ search_timeout` + - `+ allow_local_user` + - **ShowShare** + - changes of response param + - `+ optional_endpoint` + - `+ statusDetail` + - `+ features` + - `+ instanceId` + - `+ instanceType` + - `+ hpc_bw` + - **ListSharedTags** + - changes of request param + - `+ limit` + - `+ offset` + - **ListHpcCacheTasks** + - changes of request param + - `+ start_time` + - `+ end_time` + - changes of response param + - `+ tasks.status: enum value [SUCCESS,DOING,FAIL]` + - **ShowBackendTargetInfo** + - changes of response param + - `+ obs.policy` + - `+ obs.attributes` + - **ListPermRules** + - changes of request param + - `+ limit` + - `+ offset` + - **ShowJobDetail** + - changes of response param + - `+ status: enum value [success,failed,waiting,running]` + - **ListShares** + - changes of response param + - `+ optional_endpoint` + - `+ statusDetail` + - `+ features` + - `+ instanceId` + - `+ instanceType` + - `+ hpc_bw` + - `+ shares.optional_endpoint` + - `+ shares.hpc_bw` + - `+ shares.instanceId` + - `+ shares.instanceType` + - `+ shares.statusDetail` + - `+ shares.features` + - **CreateBackendTarget** + - changes of request param + - `+ obs.policy` + - `+ obs.attributes` + - changes of response param + - `+ obs.policy` + - `+ obs.attributes` + - **ListBackendTargets** + - changes of response param + - `+ targets.obs.policy` + - `+ targets.obs.attributes` + - **SetHpcCacheBackend** + - changes of request param + - `- update_hpc_cache.data.obs` + # 3.1.122 2024-11-07 ### HuaweiCloud SDK AAD diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 54f727ffb..91f34b236 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,372 @@ +# 3.1.123 2024-11-14 + +### HuaweiCloud SDK AOM + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **PushEvents** + - 请求参数变更 + - `+ enterprise-project-id` + - `- x-enterprise-prject-id` + - **ListPromInstance** + - 请求参数变更 + - `* Enterprise-Project-Id: optional -> required` + +### HuaweiCloud SDK CloudRTC + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 移除接口`ShowUrlAuth`、`UpdateUrlAuth` + +### HuaweiCloud SDK DataArtsStudio + +- _接口版本_ + - V1 +- _新增特性_ + - 支持接口`ListWorkspacesForUser` +- _解决问题_ + - 无 +- _特性变更_ + - **DebugDataconnection** + - 请求参数变更 + - `+ supportService` + - **CreateConnections** + - 请求参数变更 + - `+ data_source_vos.supportService` + - **UpdateDataconnection** + - 请求参数变更 + - `+ data_source_vos.supportService` + +### HuaweiCloud SDK DDS + +- _接口版本_ + - V3 +- _新增特性_ + - 支持以下接口: + - `ValidateConfigurationName` + - `ShowInstanceConfigurationModifyHistory` + - `SetAutoEnlargePolicies` + - `BatchDeleteBackup` + - `ShowAutoEnlargePolicy` + - `ListScheduledTasks` + - `CancelScheduledTask` + - `BatchUpgradeDatabaseVersion` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DWS + +- _接口版本_ + - V2 +- _新增特性_ + - 支持接口`StartCluster`、`StopCluster` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK EVS + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 移除接口`ChangeVolumeChargeMode`、`UnsubscribePostpaidVolume` + - **RetypeVolume** + - 请求参数变更 + - `+ os-retype.iops` + - `+ os-retype.throughput` + +### HuaweiCloud SDK FunctionGraph + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowFunctionTrigger** + - 响应参数变更 + - `+ event_data.Key_encode` + - `+ event_data.agency` + - `+ event_data.channel_name` + - `+ event_data.channel_id` + - `+ event_data.source_name` + - `+ event_data.created_time` + - `+ event_data.status` + - `+ event_data.trigger_name` + - `+ event_data.event_types` + - **UpdateTrigger** + - 响应参数变更 + - `+ event_data.Key_encode` + - `+ event_data.agency` + - `+ event_data.channel_name` + - `+ event_data.channel_id` + - `+ event_data.source_name` + - `+ event_data.created_time` + - `+ event_data.status` + - `+ event_data.trigger_name` + - `+ event_data.event_types` + - **CreateFunctionTrigger** + - 请求参数变更 + - `+ event_data.channel_id` + - `+ event_data.event_types` + - `+ event_data.status: enum value [ACTIVE,DISABLE]` + - 响应参数变更 + - `+ event_data.Key_encode` + - `+ event_data.agency` + - `+ event_data.channel_name` + - `+ event_data.channel_id` + - `+ event_data.source_name` + - `+ event_data.created_time` + - `+ event_data.status` + - `+ event_data.trigger_name` + - `+ event_data.event_types` + - **ListFunctionTriggers** + - 响应参数变更 + - `+ event_data.Key_encode` + - `+ event_data.agency` + - `+ event_data.channel_name` + - `+ event_data.channel_id` + - `+ event_data.source_name` + - `+ event_data.created_time` + - `+ event_data.status` + - `+ event_data.trigger_name` + - `+ event_data.event_types` + +### HuaweiCloud SDK GaussDBforNoSQL + +- _接口版本_ + - V3 +- _新增特性_ + - 支持以下接口: + - `ShowBackupPolicies` + - `ApplyConfigurationToInstances` + - `UpdateInstanceConfigurations` + - `CreateDbCacheMapping` + - `DeleteDbCacheMapping` + - `UpdateDbCacheRule` + - `CreateDbCacheRule` + - `DeleteDbCacheRule` + - `ListDbCacheMappings` + - `ListDbCacheRules` + - `ShowSecondLevelMonitoringStatus` + - `SwitchSecondLevelMonitoring` + - `SetInstanceDataDump` + - `ListInstanceMaintenanceWindow` + - `ModifyInstanceMaintenanceWindow` + - `ListNosqlTaskList` + - `CancelInstanceScheduleWindow` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK GaussDBforopenGauss + +- _接口版本_ + - V3 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateLimitTask** + - 响应参数变更 + - `+ job_id` + - `- jobId` + - `* key_words: list -> string` + - **UpdateLimitTask** + - 响应参数变更 + - `+ job_id` + - `- jobId` + +### HuaweiCloud SDK HSS + +- _接口版本_ + - V5 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListApps** + - 请求参数变更 + - `* host_id: required -> optional` + +### HuaweiCloud SDK Meeting + +- _接口版本_ + - V1 +- _新增特性_ + - 支持接口`CheckCallNumberInConf` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK MetaStudio + +- _接口版本_ + - V1 +- _新增特性_ + - 支持接口`CreateBeautyPreviewJob`、`ShowBeautyPreviewJob`、`StartBeautyPreviewJob` +- _解决问题_ + - 无 +- _特性变更_ + - **List2dModelTrainingJob** + - 响应参数变更 + - `+ jobs.is_only_human_model` + - `+ jobs.state: enum value [WAIT_ASSET_SYNC]` + - **Create2dModelTrainingJob** + - 请求参数变更 + - `+ beauty_level` + - `+ is_only_human_model` + - 响应参数变更 + - `+ post_beauty_image_upload_url` + - `+ pre_beauty_image_upload_url` + - **Update2dModelTrainingJob** + - 请求参数变更 + - `+ beauty_level` + - `+ samples_basic_info.recommended_value` + - 响应参数变更 + - `+ post_beauty_image_upload_url` + - `+ pre_beauty_image_upload_url` + - **Show2dModelTrainingJob** + - 响应参数变更 + - `+ allocated_resource` + - `+ pre_beauty_image_download_url` + - `+ post_beauty_image_download_url` + - `+ inference_data_process_chat_action_mark_info` + - `+ is_only_human_model` + - `+ traning_video_mark_info` + - `+ beauty_level` + - `+ state: enum value [WAIT_ASSET_SYNC]` + - `+ samples.recommended_value` + - `+ inference_data_process_video_mark_info.chat_video_start_time` + - `+ inference_data_process_video_mark_info.chat_video_end_time` + - **ShowAsset** + - 响应参数变更 + - `* asset_extra_meta.image_meta.size: number -> integer` + - **UpdateDigitalAsset** + - 请求参数变更 + - `* asset_extra_meta.image_meta.size: number -> integer` + - 响应参数变更 + - `* asset_extra_meta.image_meta.size: number -> integer` + - **CreateDigitalAsset** + - 请求参数变更 + - `* asset_extra_meta.image_meta.size: number -> integer` + - **ListAssets** + - 响应参数变更 + - `* assets.asset_extra_meta.image_meta.size: number -> integer` + +### HuaweiCloud SDK SFSTurbo + +- _接口版本_ + - V1 +- _新增特性_ + - 支持接口`UpdateObsTargetAttributes`、`UpdateObsTargetPolicy`、`DeleteHpcCacheTask` +- _解决问题_ + - 无 +- _特性变更_ + - **CreateHpcCacheTask** + - 请求参数变更 + - `+ attributes` + - **ShowHpcCacheTask** + - 响应参数变更 + - `+ status: enum value [SUCCESS,DOING,FAIL]` + - **ShowLdapConfig** + - 响应参数变更 + - `+ schema` + - `+ search_timeout` + - `+ backup_url` + - `+ allow_local_user` + - **UpdateLdapConfig** + - 请求参数变更 + - `+ backup_url` + - `+ schema` + - `+ search_timeout` + - `+ allow_local_user` + - **CreateLdapConfig** + - 请求参数变更 + - `+ backup_url` + - `+ schema` + - `+ search_timeout` + - `+ allow_local_user` + - **ShowShare** + - 响应参数变更 + - `+ optional_endpoint` + - `+ statusDetail` + - `+ features` + - `+ instanceId` + - `+ instanceType` + - `+ hpc_bw` + - **ListSharedTags** + - 请求参数变更 + - `+ limit` + - `+ offset` + - **ListHpcCacheTasks** + - 请求参数变更 + - `+ start_time` + - `+ end_time` + - 响应参数变更 + - `+ tasks.status: enum value [SUCCESS,DOING,FAIL]` + - **ShowBackendTargetInfo** + - 响应参数变更 + - `+ obs.policy` + - `+ obs.attributes` + - **ListPermRules** + - 请求参数变更 + - `+ limit` + - `+ offset` + - **ShowJobDetail** + - 响应参数变更 + - `+ status: enum value [success,failed,waiting,running]` + - **ListShares** + - 响应参数变更 + - `+ optional_endpoint` + - `+ statusDetail` + - `+ features` + - `+ instanceId` + - `+ instanceType` + - `+ hpc_bw` + - `+ shares.optional_endpoint` + - `+ shares.hpc_bw` + - `+ shares.instanceId` + - `+ shares.instanceType` + - `+ shares.statusDetail` + - `+ shares.features` + - **CreateBackendTarget** + - 请求参数变更 + - `+ obs.policy` + - `+ obs.attributes` + - 响应参数变更 + - `+ obs.policy` + - `+ obs.attributes` + - **ListBackendTargets** + - 响应参数变更 + - `+ targets.obs.policy` + - `+ targets.obs.attributes` + - **SetHpcCacheBackend** + - 请求参数变更 + - `- update_hpc_cache.data.obs` + # 3.1.122 2024-11-07 ### HuaweiCloud SDK AAD diff --git a/VERSION b/VERSION index d65367016..f68b3dc0a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.122 +3.1.123 diff --git a/all/package.json b/all/package.json index bc45c646a..bd4f99c68 100644 --- a/all/package.json +++ b/all/package.json @@ -1,106 +1,106 @@ { "name": "@huaweicloud/huaweicloud-sdk-all", - "version": "3.1.122", + "version": "3.1.123", "description": "Huawei Cloud SDK for Node.js includes all cloud services", "repository": { "type": "git", "url": "https://github.com/huaweicloud/huaweicloud-sdk-nodejs-v3" }, "dependencies": { - "@huaweicloud/huaweicloud-sdk-aad": "3.1.122", - "@huaweicloud/huaweicloud-sdk-antiddos": "3.1.122", - "@huaweicloud/huaweicloud-sdk-aom": "3.1.122", - "@huaweicloud/huaweicloud-sdk-aos": "3.1.122", - "@huaweicloud/huaweicloud-sdk-apig": "3.1.122", - "@huaweicloud/huaweicloud-sdk-as": "3.1.122", - "@huaweicloud/huaweicloud-sdk-bms": "3.1.122", - "@huaweicloud/huaweicloud-sdk-cbh": "3.1.122", - "@huaweicloud/huaweicloud-sdk-cbr": "3.1.122", - "@huaweicloud/huaweicloud-sdk-cc": "3.1.122", - "@huaweicloud/huaweicloud-sdk-cce": "3.1.122", - "@huaweicloud/huaweicloud-sdk-cdm": "3.1.122", - "@huaweicloud/huaweicloud-sdk-cdn": "3.1.122", - "@huaweicloud/huaweicloud-sdk-ces": "3.1.122", - "@huaweicloud/huaweicloud-sdk-cfw": "3.1.122", - "@huaweicloud/huaweicloud-sdk-cloudrtc": "3.1.122", - "@huaweicloud/huaweicloud-sdk-cloudtable": "3.1.122", - "@huaweicloud/huaweicloud-sdk-coc": "3.1.122", - "@huaweicloud/huaweicloud-sdk-codeartsartifact": "3.1.122", - "@huaweicloud/huaweicloud-sdk-codeartsbuild": "3.1.122", - "@huaweicloud/huaweicloud-sdk-codeartsdeploy": "3.1.122", - "@huaweicloud/huaweicloud-sdk-codeartspipeline": "3.1.122", - "@huaweicloud/huaweicloud-sdk-config": "3.1.122", - "@huaweicloud/huaweicloud-sdk-cse": "3.1.122", - "@huaweicloud/huaweicloud-sdk-csms": "3.1.122", - "@huaweicloud/huaweicloud-sdk-css": "3.1.122", - "@huaweicloud/huaweicloud-sdk-cts": "3.1.122", - "@huaweicloud/huaweicloud-sdk-dataartsstudio": "3.1.122", - "@huaweicloud/huaweicloud-sdk-dbss": "3.1.122", - "@huaweicloud/huaweicloud-sdk-dc": "3.1.122", - "@huaweicloud/huaweicloud-sdk-dcs": "3.1.122", - "@huaweicloud/huaweicloud-sdk-dds": "3.1.122", - "@huaweicloud/huaweicloud-sdk-devstar": "3.1.122", - "@huaweicloud/huaweicloud-sdk-dli": "3.1.122", - "@huaweicloud/huaweicloud-sdk-dns": "3.1.122", - "@huaweicloud/huaweicloud-sdk-drs": "3.1.122", - "@huaweicloud/huaweicloud-sdk-dsc": "3.1.122", - "@huaweicloud/huaweicloud-sdk-dws": "3.1.122", - "@huaweicloud/huaweicloud-sdk-ecs": "3.1.122", - "@huaweicloud/huaweicloud-sdk-eip": "3.1.122", - "@huaweicloud/huaweicloud-sdk-elb": "3.1.122", - "@huaweicloud/huaweicloud-sdk-eps": "3.1.122", - "@huaweicloud/huaweicloud-sdk-er": "3.1.122", - "@huaweicloud/huaweicloud-sdk-evs": "3.1.122", - "@huaweicloud/huaweicloud-sdk-frs": "3.1.122", - "@huaweicloud/huaweicloud-sdk-functiongraph": "3.1.122", - "@huaweicloud/huaweicloud-sdk-ga": "3.1.122", - "@huaweicloud/huaweicloud-sdk-gaussdb": "3.1.122", - "@huaweicloud/huaweicloud-sdk-gaussdbfornosql": "3.1.122", - "@huaweicloud/huaweicloud-sdk-gaussdbforopengauss": "3.1.122", - "@huaweicloud/huaweicloud-sdk-ges": "3.1.122", - "@huaweicloud/huaweicloud-sdk-hss": "3.1.122", - "@huaweicloud/huaweicloud-sdk-iam": "3.1.122", - "@huaweicloud/huaweicloud-sdk-iamaccessanalyzer": "3.1.122", - "@huaweicloud/huaweicloud-sdk-image": "3.1.122", - "@huaweicloud/huaweicloud-sdk-ims": "3.1.122", - "@huaweicloud/huaweicloud-sdk-iotda": "3.1.122", - "@huaweicloud/huaweicloud-sdk-iotdm": "3.1.122", - "@huaweicloud/huaweicloud-sdk-ivs": "3.1.122", - "@huaweicloud/huaweicloud-sdk-kafka": "3.1.122", - "@huaweicloud/huaweicloud-sdk-kms": "3.1.122", - "@huaweicloud/huaweicloud-sdk-kps": "3.1.122", - "@huaweicloud/huaweicloud-sdk-live": "3.1.122", - "@huaweicloud/huaweicloud-sdk-lts": "3.1.122", - "@huaweicloud/huaweicloud-sdk-meeting": "3.1.122", - "@huaweicloud/huaweicloud-sdk-metastudio": "3.1.122", - "@huaweicloud/huaweicloud-sdk-moderation": "3.1.122", - "@huaweicloud/huaweicloud-sdk-mpc": "3.1.122", - "@huaweicloud/huaweicloud-sdk-mrs": "3.1.122", - "@huaweicloud/huaweicloud-sdk-msgsms": "3.1.122", - "@huaweicloud/huaweicloud-sdk-nat": "3.1.122", - "@huaweicloud/huaweicloud-sdk-ocr": "3.1.122", - "@huaweicloud/huaweicloud-sdk-oms": "3.1.122", - "@huaweicloud/huaweicloud-sdk-organizations": "3.1.122", - "@huaweicloud/huaweicloud-sdk-pangulargemodels": "3.1.122", - "@huaweicloud/huaweicloud-sdk-rabbitmq": "3.1.122", - "@huaweicloud/huaweicloud-sdk-ram": "3.1.122", - "@huaweicloud/huaweicloud-sdk-rds": "3.1.122", - "@huaweicloud/huaweicloud-sdk-rms": "3.1.122", - "@huaweicloud/huaweicloud-sdk-rocketmq": "3.1.122", - "@huaweicloud/huaweicloud-sdk-secmaster": "3.1.122", - "@huaweicloud/huaweicloud-sdk-servicestage": "3.1.122", - "@huaweicloud/huaweicloud-sdk-sfsturbo": "3.1.122", - "@huaweicloud/huaweicloud-sdk-sis": "3.1.122", - "@huaweicloud/huaweicloud-sdk-smn": "3.1.122", - "@huaweicloud/huaweicloud-sdk-sms": "3.1.122", - "@huaweicloud/huaweicloud-sdk-swr": "3.1.122", - "@huaweicloud/huaweicloud-sdk-tics": "3.1.122", - "@huaweicloud/huaweicloud-sdk-tms": "3.1.122", - "@huaweicloud/huaweicloud-sdk-vod": "3.1.122", - "@huaweicloud/huaweicloud-sdk-vpc": "3.1.122", - "@huaweicloud/huaweicloud-sdk-vpcep": "3.1.122", - "@huaweicloud/huaweicloud-sdk-vpn": "3.1.122", - "@huaweicloud/huaweicloud-sdk-waf": "3.1.122" + "@huaweicloud/huaweicloud-sdk-aad": "3.1.123", + "@huaweicloud/huaweicloud-sdk-antiddos": "3.1.123", + "@huaweicloud/huaweicloud-sdk-aom": "3.1.123", + "@huaweicloud/huaweicloud-sdk-aos": "3.1.123", + "@huaweicloud/huaweicloud-sdk-apig": "3.1.123", + "@huaweicloud/huaweicloud-sdk-as": "3.1.123", + "@huaweicloud/huaweicloud-sdk-bms": "3.1.123", + "@huaweicloud/huaweicloud-sdk-cbh": "3.1.123", + "@huaweicloud/huaweicloud-sdk-cbr": "3.1.123", + "@huaweicloud/huaweicloud-sdk-cc": "3.1.123", + "@huaweicloud/huaweicloud-sdk-cce": "3.1.123", + "@huaweicloud/huaweicloud-sdk-cdm": "3.1.123", + "@huaweicloud/huaweicloud-sdk-cdn": "3.1.123", + "@huaweicloud/huaweicloud-sdk-ces": "3.1.123", + "@huaweicloud/huaweicloud-sdk-cfw": "3.1.123", + "@huaweicloud/huaweicloud-sdk-cloudrtc": "3.1.123", + "@huaweicloud/huaweicloud-sdk-cloudtable": "3.1.123", + "@huaweicloud/huaweicloud-sdk-coc": "3.1.123", + "@huaweicloud/huaweicloud-sdk-codeartsartifact": "3.1.123", + "@huaweicloud/huaweicloud-sdk-codeartsbuild": "3.1.123", + "@huaweicloud/huaweicloud-sdk-codeartsdeploy": "3.1.123", + "@huaweicloud/huaweicloud-sdk-codeartspipeline": "3.1.123", + "@huaweicloud/huaweicloud-sdk-config": "3.1.123", + "@huaweicloud/huaweicloud-sdk-cse": "3.1.123", + "@huaweicloud/huaweicloud-sdk-csms": "3.1.123", + "@huaweicloud/huaweicloud-sdk-css": "3.1.123", + "@huaweicloud/huaweicloud-sdk-cts": "3.1.123", + "@huaweicloud/huaweicloud-sdk-dataartsstudio": "3.1.123", + "@huaweicloud/huaweicloud-sdk-dbss": "3.1.123", + "@huaweicloud/huaweicloud-sdk-dc": "3.1.123", + "@huaweicloud/huaweicloud-sdk-dcs": "3.1.123", + "@huaweicloud/huaweicloud-sdk-dds": "3.1.123", + "@huaweicloud/huaweicloud-sdk-devstar": "3.1.123", + "@huaweicloud/huaweicloud-sdk-dli": "3.1.123", + "@huaweicloud/huaweicloud-sdk-dns": "3.1.123", + "@huaweicloud/huaweicloud-sdk-drs": "3.1.123", + "@huaweicloud/huaweicloud-sdk-dsc": "3.1.123", + "@huaweicloud/huaweicloud-sdk-dws": "3.1.123", + "@huaweicloud/huaweicloud-sdk-ecs": "3.1.123", + "@huaweicloud/huaweicloud-sdk-eip": "3.1.123", + "@huaweicloud/huaweicloud-sdk-elb": "3.1.123", + "@huaweicloud/huaweicloud-sdk-eps": "3.1.123", + "@huaweicloud/huaweicloud-sdk-er": "3.1.123", + "@huaweicloud/huaweicloud-sdk-evs": "3.1.123", + "@huaweicloud/huaweicloud-sdk-frs": "3.1.123", + "@huaweicloud/huaweicloud-sdk-functiongraph": "3.1.123", + "@huaweicloud/huaweicloud-sdk-ga": "3.1.123", + "@huaweicloud/huaweicloud-sdk-gaussdb": "3.1.123", + "@huaweicloud/huaweicloud-sdk-gaussdbfornosql": "3.1.123", + "@huaweicloud/huaweicloud-sdk-gaussdbforopengauss": "3.1.123", + "@huaweicloud/huaweicloud-sdk-ges": "3.1.123", + "@huaweicloud/huaweicloud-sdk-hss": "3.1.123", + "@huaweicloud/huaweicloud-sdk-iam": "3.1.123", + "@huaweicloud/huaweicloud-sdk-iamaccessanalyzer": "3.1.123", + "@huaweicloud/huaweicloud-sdk-image": "3.1.123", + "@huaweicloud/huaweicloud-sdk-ims": "3.1.123", + "@huaweicloud/huaweicloud-sdk-iotda": "3.1.123", + "@huaweicloud/huaweicloud-sdk-iotdm": "3.1.123", + "@huaweicloud/huaweicloud-sdk-ivs": "3.1.123", + "@huaweicloud/huaweicloud-sdk-kafka": "3.1.123", + "@huaweicloud/huaweicloud-sdk-kms": "3.1.123", + "@huaweicloud/huaweicloud-sdk-kps": "3.1.123", + "@huaweicloud/huaweicloud-sdk-live": "3.1.123", + "@huaweicloud/huaweicloud-sdk-lts": "3.1.123", + "@huaweicloud/huaweicloud-sdk-meeting": "3.1.123", + "@huaweicloud/huaweicloud-sdk-metastudio": "3.1.123", + "@huaweicloud/huaweicloud-sdk-moderation": "3.1.123", + "@huaweicloud/huaweicloud-sdk-mpc": "3.1.123", + "@huaweicloud/huaweicloud-sdk-mrs": "3.1.123", + "@huaweicloud/huaweicloud-sdk-msgsms": "3.1.123", + "@huaweicloud/huaweicloud-sdk-nat": "3.1.123", + "@huaweicloud/huaweicloud-sdk-ocr": "3.1.123", + "@huaweicloud/huaweicloud-sdk-oms": "3.1.123", + "@huaweicloud/huaweicloud-sdk-organizations": "3.1.123", + "@huaweicloud/huaweicloud-sdk-pangulargemodels": "3.1.123", + "@huaweicloud/huaweicloud-sdk-rabbitmq": "3.1.123", + "@huaweicloud/huaweicloud-sdk-ram": "3.1.123", + "@huaweicloud/huaweicloud-sdk-rds": "3.1.123", + "@huaweicloud/huaweicloud-sdk-rms": "3.1.123", + "@huaweicloud/huaweicloud-sdk-rocketmq": "3.1.123", + "@huaweicloud/huaweicloud-sdk-secmaster": "3.1.123", + "@huaweicloud/huaweicloud-sdk-servicestage": "3.1.123", + "@huaweicloud/huaweicloud-sdk-sfsturbo": "3.1.123", + "@huaweicloud/huaweicloud-sdk-sis": "3.1.123", + "@huaweicloud/huaweicloud-sdk-smn": "3.1.123", + "@huaweicloud/huaweicloud-sdk-sms": "3.1.123", + "@huaweicloud/huaweicloud-sdk-swr": "3.1.123", + "@huaweicloud/huaweicloud-sdk-tics": "3.1.123", + "@huaweicloud/huaweicloud-sdk-tms": "3.1.123", + "@huaweicloud/huaweicloud-sdk-vod": "3.1.123", + "@huaweicloud/huaweicloud-sdk-vpc": "3.1.123", + "@huaweicloud/huaweicloud-sdk-vpcep": "3.1.123", + "@huaweicloud/huaweicloud-sdk-vpn": "3.1.123", + "@huaweicloud/huaweicloud-sdk-waf": "3.1.123" }, "files": ["package.json"] } diff --git a/package.json b/package.json index 6c39c9b66..b5f495595 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "huaweicloud-sdk-nodejs-v3", - "version": "3.1.122", + "version": "3.1.123", "description": "Core code for Huaweicloud SDK for Node.js", "main": "index.js", "scripts": { diff --git a/services/aom/v2/AomClient.ts b/services/aom/v2/AomClient.ts index c8aa33c03..9e7a7e618 100644 --- a/services/aom/v2/AomClient.ts +++ b/services/aom/v2/AomClient.ts @@ -779,7 +779,7 @@ export class AomClient { * * @summary 上报事件告警信息 * @param {EventList} pushEventsRequestBody 事件或者告警列表。 - * @param {string} [xEnterprisePrjectId] 告警所属的企业项目id。 + * @param {string} [enterpriseProjectId] 告警所属的企业项目id。 * @param {'clear'} [action] 接口请求动作。action=clear代表清除告警,不传或者传其他值默认为上报动作。 * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1124,11 +1124,11 @@ export class AomClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询Prometheus实例 + * @param {string} enterpriseProjectId 企业项目id。 - 查询单个企业项目下实例,填写企业项目id。 - 查询所有企业项目下实例,填写“all_granted_eps”。 * @param {string} [promId] Prometheus实例id(prom_id与prom_type同时存在时,仅prom_id生效)。 * @param {'default' | 'ECS' | 'VPC' | 'CCE' | 'REMOTE_WRITE' | 'KUBERNETES' | 'CLOUD_SERVICE' | 'ACROSS_ACCOUNT'} [promType] Prometheus实例类型(暂时不支持VPC、KUBERNETES)。 * @param {'true' | 'false'} [cceClusterEnable] cce集群开关。 * @param {'DELETED' | 'NORMAL' | 'ALL'} [promStatus] Prometheus实例状态。 - * @param {string} [enterpriseProjectId] 企业项目id。 - 查询单个企业项目下实例,填写企业项目id。 - 查询所有企业项目下实例,填写“all_granted_eps”。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -2437,18 +2437,18 @@ export const ParamCreater = function () { const localVarQueryParameter = {} as any; let body: any; - let xEnterprisePrjectId; + let enterpriseProjectId; let action; if (pushEventsRequest !== null && pushEventsRequest !== undefined) { if (pushEventsRequest instanceof PushEventsRequest) { body = pushEventsRequest.body - xEnterprisePrjectId = pushEventsRequest.xEnterprisePrjectId; + enterpriseProjectId = pushEventsRequest.enterpriseProjectId; action = pushEventsRequest.action; } else { body = pushEventsRequest['body']; - xEnterprisePrjectId = pushEventsRequest['x-enterprise-prject-id']; + enterpriseProjectId = pushEventsRequest['enterprise-project-id']; action = pushEventsRequest['action']; } } @@ -2460,8 +2460,8 @@ export const ParamCreater = function () { if (action !== null && action !== undefined) { localVarQueryParameter['action'] = action; } - if (xEnterprisePrjectId !== undefined && xEnterprisePrjectId !== null) { - localVarHeaderParameter['x-enterprise-prject-id'] = String(xEnterprisePrjectId); + if (enterpriseProjectId !== undefined && enterpriseProjectId !== null) { + localVarHeaderParameter['enterprise-project-id'] = String(enterpriseProjectId); } localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -3110,6 +3110,8 @@ export const ParamCreater = function () { const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + let enterpriseProjectId; + let promId; let promType; @@ -3117,22 +3119,20 @@ export const ParamCreater = function () { let cceClusterEnable; let promStatus; - - let enterpriseProjectId; if (listPromInstanceRequest !== null && listPromInstanceRequest !== undefined) { if (listPromInstanceRequest instanceof ListPromInstanceRequest) { + enterpriseProjectId = listPromInstanceRequest.enterpriseProjectId; promId = listPromInstanceRequest.promId; promType = listPromInstanceRequest.promType; cceClusterEnable = listPromInstanceRequest.cceClusterEnable; promStatus = listPromInstanceRequest.promStatus; - enterpriseProjectId = listPromInstanceRequest.enterpriseProjectId; } else { + enterpriseProjectId = listPromInstanceRequest['Enterprise-Project-Id']; promId = listPromInstanceRequest['prom_id']; promType = listPromInstanceRequest['prom_type']; cceClusterEnable = listPromInstanceRequest['cce_cluster_enable']; promStatus = listPromInstanceRequest['prom_status']; - enterpriseProjectId = listPromInstanceRequest['Enterprise-Project-Id']; } } diff --git a/services/aom/v2/model/ListPromInstanceRequest.ts b/services/aom/v2/model/ListPromInstanceRequest.ts index ed03eede5..3f9bfdf29 100644 --- a/services/aom/v2/model/ListPromInstanceRequest.ts +++ b/services/aom/v2/model/ListPromInstanceRequest.ts @@ -6,7 +6,8 @@ export class ListPromInstanceRequest { private 'cce_cluster_enable'?: ListPromInstanceRequestCceClusterEnableEnum | string; private 'prom_status'?: ListPromInstanceRequestPromStatusEnum | string; private 'Enterprise-Project-Id'?: string; - public constructor() { + public constructor(enterpriseProjectId?: string) { + this['Enterprise-Project-Id'] = enterpriseProjectId; } public withPromId(promId: string): ListPromInstanceRequest { this['prom_id'] = promId; diff --git a/services/aom/v2/model/PushEventsRequest.ts b/services/aom/v2/model/PushEventsRequest.ts index e980e255b..f128310fd 100644 --- a/services/aom/v2/model/PushEventsRequest.ts +++ b/services/aom/v2/model/PushEventsRequest.ts @@ -2,20 +2,20 @@ import { EventList } from './EventList'; export class PushEventsRequest { - private 'x-enterprise-prject-id'?: string; + private 'enterprise-project-id'?: string; public action?: PushEventsRequestActionEnum | string; public body?: EventList; public constructor() { } - public withXEnterprisePrjectId(xEnterprisePrjectId: string): PushEventsRequest { - this['x-enterprise-prject-id'] = xEnterprisePrjectId; + public withEnterpriseProjectId(enterpriseProjectId: string): PushEventsRequest { + this['enterprise-project-id'] = enterpriseProjectId; return this; } - public set xEnterprisePrjectId(xEnterprisePrjectId: string | undefined) { - this['x-enterprise-prject-id'] = xEnterprisePrjectId; + public set enterpriseProjectId(enterpriseProjectId: string | undefined) { + this['enterprise-project-id'] = enterpriseProjectId; } - public get xEnterprisePrjectId(): string | undefined { - return this['x-enterprise-prject-id']; + public get enterpriseProjectId(): string | undefined { + return this['enterprise-project-id']; } public withAction(action: PushEventsRequestActionEnum | string): PushEventsRequest { this['action'] = action; diff --git a/services/cloudrtc/v2/CloudRTCClient.ts b/services/cloudrtc/v2/CloudRTCClient.ts index d870914ca..acde8a77f 100644 --- a/services/cloudrtc/v2/CloudRTCClient.ts +++ b/services/cloudrtc/v2/CloudRTCClient.ts @@ -4,7 +4,6 @@ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; import { App } from './model/App'; import { AppAuth } from './model/AppAuth'; -import { AppAuthReq } from './model/AppAuthReq'; import { AppAutoRecordMode } from './model/AppAutoRecordMode'; import { AppCallbackUrl } from './model/AppCallbackUrl'; import { AppCallbackUrlReq } from './model/AppCallbackUrlReq'; @@ -63,8 +62,6 @@ import { ShowRecordCallbackRequest } from './model/ShowRecordCallbackRequest'; import { ShowRecordCallbackResponse } from './model/ShowRecordCallbackResponse'; import { ShowRecordRuleRequest } from './model/ShowRecordRuleRequest'; import { ShowRecordRuleResponse } from './model/ShowRecordRuleResponse'; -import { ShowUrlAuthRequest } from './model/ShowUrlAuthRequest'; -import { ShowUrlAuthResponse } from './model/ShowUrlAuthResponse'; import { StartAppRequest } from './model/StartAppRequest'; import { StartAppResponse } from './model/StartAppResponse'; import { StopAppRequest } from './model/StopAppRequest'; @@ -88,8 +85,6 @@ import { UpdateRecordCallbackRequest } from './model/UpdateRecordCallbackRequest import { UpdateRecordCallbackResponse } from './model/UpdateRecordCallbackResponse'; import { UpdateRecordRuleRequest } from './model/UpdateRecordRuleRequest'; import { UpdateRecordRuleResponse } from './model/UpdateRecordRuleResponse'; -import { UpdateUrlAuthRequest } from './model/UpdateUrlAuthRequest'; -import { UpdateUrlAuthResponse } from './model/UpdateUrlAuthResponse'; export class CloudRTCClient { public static newBuilder(): ClientBuilder { @@ -497,28 +492,6 @@ export class CloudRTCClient { return this.hcClient.sendRequest(options); } - /** - * 查询应用鉴权配置参数 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @summary 查询访问控制参数 - * @param {string} appId 应用id - * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 - * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 - * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - public showUrlAuth(showUrlAuthRequest?: ShowUrlAuthRequest): Promise { - const options = ParamCreater().showUrlAuth(showUrlAuthRequest); - - // @ts-ignore - options['responseHeaders'] = ['X-request-Id']; - - return this.hcClient.sendRequest(options); - } - /** * 调用此接口启用单个应用。 * @@ -735,29 +708,6 @@ export class CloudRTCClient { return this.hcClient.sendRequest(options); } - /** - * 调用此接口开启或关闭URL鉴权。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @summary 开关访问控制 - * @param {string} appId 应用id - * @param {AppAuthReq} updateUrlAuthRequestBody URL鉴权请求消息体 - * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 - * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 - * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - public updateUrlAuth(updateUrlAuthRequest?: UpdateUrlAuthRequest): Promise { - const options = ParamCreater().updateUrlAuth(updateUrlAuthRequest); - - // @ts-ignore - options['responseHeaders'] = ['X-request-Id']; - - return this.hcClient.sendRequest(options); - } - /** * 查询OBS桶下对象列表 * @@ -1882,64 +1832,6 @@ export const ParamCreater = function () { return options; }, - /** - * 查询应用鉴权配置参数 - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - showUrlAuth(showUrlAuthRequest?: ShowUrlAuthRequest) { - const options = { - method: "GET", - url: "/v2/apps/{app_id}/authentication", - contentType: "application/json", - queryParams: {}, - pathParams: {}, - headers: {} - }; - const localVarHeaderParameter = {} as any; - - - let appId; - - let authorization; - - let xSdkDate; - - let xProjectId; - - if (showUrlAuthRequest !== null && showUrlAuthRequest !== undefined) { - if (showUrlAuthRequest instanceof ShowUrlAuthRequest) { - appId = showUrlAuthRequest.appId; - authorization = showUrlAuthRequest.authorization; - xSdkDate = showUrlAuthRequest.xSdkDate; - xProjectId = showUrlAuthRequest.xProjectId; - } else { - appId = showUrlAuthRequest['app_id']; - authorization = showUrlAuthRequest['Authorization']; - xSdkDate = showUrlAuthRequest['X-Sdk-Date']; - xProjectId = showUrlAuthRequest['X-Project-Id']; - } - } - - - if (appId === null || appId === undefined) { - throw new RequiredError('appId','Required parameter appId was null or undefined when calling showUrlAuth.'); - } - if (authorization !== undefined && authorization !== null) { - localVarHeaderParameter['Authorization'] = String(authorization); - } - if (xSdkDate !== undefined && xSdkDate !== null) { - localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); - } - if (xProjectId !== undefined && xProjectId !== null) { - localVarHeaderParameter['X-Project-Id'] = String(xProjectId); - } - - options.pathParams = { 'app_id': appId, }; - options.headers = localVarHeaderParameter; - return options; - }, - /** * 调用此接口启用单个应用。 * @@ -2550,73 +2442,6 @@ export const ParamCreater = function () { return options; }, - /** - * 调用此接口开启或关闭URL鉴权。 - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - updateUrlAuth(updateUrlAuthRequest?: UpdateUrlAuthRequest) { - const options = { - method: "PUT", - url: "/v2/apps/{app_id}/authentication", - contentType: "application/json", - queryParams: {}, - pathParams: {}, - headers: {}, - data: {} - }; - const localVarHeaderParameter = {} as any; - - let body: any; - - let appId; - - let authorization; - - let xSdkDate; - - let xProjectId; - - if (updateUrlAuthRequest !== null && updateUrlAuthRequest !== undefined) { - if (updateUrlAuthRequest instanceof UpdateUrlAuthRequest) { - appId = updateUrlAuthRequest.appId; - body = updateUrlAuthRequest.body - authorization = updateUrlAuthRequest.authorization; - xSdkDate = updateUrlAuthRequest.xSdkDate; - xProjectId = updateUrlAuthRequest.xProjectId; - } else { - appId = updateUrlAuthRequest['app_id']; - body = updateUrlAuthRequest['body']; - authorization = updateUrlAuthRequest['Authorization']; - xSdkDate = updateUrlAuthRequest['X-Sdk-Date']; - xProjectId = updateUrlAuthRequest['X-Project-Id']; - } - } - - - if (appId === null || appId === undefined) { - throw new RequiredError('appId','Required parameter appId was null or undefined when calling updateUrlAuth.'); - } - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); - } - if (authorization !== undefined && authorization !== null) { - localVarHeaderParameter['Authorization'] = String(authorization); - } - if (xSdkDate !== undefined && xSdkDate !== null) { - localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); - } - if (xProjectId !== undefined && xProjectId !== null) { - localVarHeaderParameter['X-Project-Id'] = String(xProjectId); - } - localVarHeaderParameter['Content-Type'] = 'application/json'; - - options.data = body !== undefined ? body : {}; - options.pathParams = { 'app_id': appId, }; - options.headers = localVarHeaderParameter; - return options; - }, - /** * 查询OBS桶下对象列表 * diff --git a/services/cloudrtc/v2/model/AppAuthReq.ts b/services/cloudrtc/v2/model/AppAuthReq.ts deleted file mode 100644 index 5e4e52050..000000000 --- a/services/cloudrtc/v2/model/AppAuthReq.ts +++ /dev/null @@ -1,17 +0,0 @@ - - -export class AppAuthReq { - public enable?: boolean; - public expire?: number; - public constructor(enable?: boolean) { - this['enable'] = enable; - } - public withEnable(enable: boolean): AppAuthReq { - this['enable'] = enable; - return this; - } - public withExpire(expire: number): AppAuthReq { - this['expire'] = expire; - return this; - } -} \ No newline at end of file diff --git a/services/cloudrtc/v2/model/ShowUrlAuthRequest.ts b/services/cloudrtc/v2/model/ShowUrlAuthRequest.ts deleted file mode 100644 index 9b51ea52b..000000000 --- a/services/cloudrtc/v2/model/ShowUrlAuthRequest.ts +++ /dev/null @@ -1,51 +0,0 @@ - - -export class ShowUrlAuthRequest { - private 'Authorization'?: string; - private 'X-Sdk-Date'?: string; - private 'X-Project-Id'?: string; - private 'app_id'?: string; - public constructor(appId?: string) { - this['app_id'] = appId; - } - public withAuthorization(authorization: string): ShowUrlAuthRequest { - this['Authorization'] = authorization; - return this; - } - public set authorization(authorization: string | undefined) { - this['Authorization'] = authorization; - } - public get authorization(): string | undefined { - return this['Authorization']; - } - public withXSdkDate(xSdkDate: string): ShowUrlAuthRequest { - this['X-Sdk-Date'] = xSdkDate; - return this; - } - public set xSdkDate(xSdkDate: string | undefined) { - this['X-Sdk-Date'] = xSdkDate; - } - public get xSdkDate(): string | undefined { - return this['X-Sdk-Date']; - } - public withXProjectId(xProjectId: string): ShowUrlAuthRequest { - this['X-Project-Id'] = xProjectId; - return this; - } - public set xProjectId(xProjectId: string | undefined) { - this['X-Project-Id'] = xProjectId; - } - public get xProjectId(): string | undefined { - return this['X-Project-Id']; - } - public withAppId(appId: string): ShowUrlAuthRequest { - this['app_id'] = appId; - return this; - } - public set appId(appId: string | undefined) { - this['app_id'] = appId; - } - public get appId(): string | undefined { - return this['app_id']; - } -} \ No newline at end of file diff --git a/services/cloudrtc/v2/model/ShowUrlAuthResponse.ts b/services/cloudrtc/v2/model/ShowUrlAuthResponse.ts deleted file mode 100644 index 275cfa38a..000000000 --- a/services/cloudrtc/v2/model/ShowUrlAuthResponse.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { AppAuth } from './AppAuth'; - -import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; - -export class ShowUrlAuthResponse extends SdkResponse { - private 'app_id'?: string; - public authentication?: AppAuth; - private 'X-request-Id'?: string; - public constructor() { - super(); - } - public withAppId(appId: string): ShowUrlAuthResponse { - this['app_id'] = appId; - return this; - } - public set appId(appId: string | undefined) { - this['app_id'] = appId; - } - public get appId(): string | undefined { - return this['app_id']; - } - public withAuthentication(authentication: AppAuth): ShowUrlAuthResponse { - this['authentication'] = authentication; - return this; - } - public withXRequestId(xRequestId: string): ShowUrlAuthResponse { - this['X-request-Id'] = xRequestId; - return this; - } - public set xRequestId(xRequestId: string | undefined) { - this['X-request-Id'] = xRequestId; - } - public get xRequestId(): string | undefined { - return this['X-request-Id']; - } -} \ No newline at end of file diff --git a/services/cloudrtc/v2/model/UpdateUrlAuthResponse.ts b/services/cloudrtc/v2/model/UpdateUrlAuthResponse.ts deleted file mode 100644 index fc1cb5a49..000000000 --- a/services/cloudrtc/v2/model/UpdateUrlAuthResponse.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { AppAuth } from './AppAuth'; - -import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; - -export class UpdateUrlAuthResponse extends SdkResponse { - private 'app_id'?: string; - public authentication?: AppAuth; - private 'X-request-Id'?: string; - public constructor() { - super(); - } - public withAppId(appId: string): UpdateUrlAuthResponse { - this['app_id'] = appId; - return this; - } - public set appId(appId: string | undefined) { - this['app_id'] = appId; - } - public get appId(): string | undefined { - return this['app_id']; - } - public withAuthentication(authentication: AppAuth): UpdateUrlAuthResponse { - this['authentication'] = authentication; - return this; - } - public withXRequestId(xRequestId: string): UpdateUrlAuthResponse { - this['X-request-Id'] = xRequestId; - return this; - } - public set xRequestId(xRequestId: string | undefined) { - this['X-request-Id'] = xRequestId; - } - public get xRequestId(): string | undefined { - return this['X-request-Id']; - } -} \ No newline at end of file diff --git a/services/cloudrtc/v2/public-api.ts b/services/cloudrtc/v2/public-api.ts index 3d8991a40..159a0a4d8 100644 --- a/services/cloudrtc/v2/public-api.ts +++ b/services/cloudrtc/v2/public-api.ts @@ -2,7 +2,6 @@ export * from './CloudRTCClient'; export * from './model/App'; export * from './model/AppAuth'; -export * from './model/AppAuthReq'; export * from './model/AppAutoRecordMode'; export * from './model/AppCallbackUrl'; export * from './model/AppCallbackUrlReq'; @@ -61,8 +60,6 @@ export * from './model/ShowRecordCallbackRequest'; export * from './model/ShowRecordCallbackResponse'; export * from './model/ShowRecordRuleRequest'; export * from './model/ShowRecordRuleResponse'; -export * from './model/ShowUrlAuthRequest'; -export * from './model/ShowUrlAuthResponse'; export * from './model/StartAppRequest'; export * from './model/StartAppResponse'; export * from './model/StopAppRequest'; @@ -86,6 +83,4 @@ export * from './model/UpdateRecordCallbackRequest'; export * from './model/UpdateRecordCallbackResponse'; export * from './model/UpdateRecordRuleRequest'; export * from './model/UpdateRecordRuleResponse'; -export * from './model/UpdateUrlAuthRequest'; -export * from './model/UpdateUrlAuthResponse'; export * from './CloudRTCRegion'; diff --git a/services/dataartsstudio/v1/DataArtsStudioClient.ts b/services/dataartsstudio/v1/DataArtsStudioClient.ts index 99348b2b9..85f655a69 100644 --- a/services/dataartsstudio/v1/DataArtsStudioClient.ts +++ b/services/dataartsstudio/v1/DataArtsStudioClient.ts @@ -643,6 +643,8 @@ import { ListTableModelsResultData } from './model/ListTableModelsResultData'; import { ListTableModelsResultDataValue } from './model/ListTableModelsResultDataValue'; import { ListWorkspaceRolesRequest } from './model/ListWorkspaceRolesRequest'; import { ListWorkspaceRolesResponse } from './model/ListWorkspaceRolesResponse'; +import { ListWorkspacesForUserRequest } from './model/ListWorkspacesForUserRequest'; +import { ListWorkspacesForUserResponse } from './model/ListWorkspacesForUserResponse'; import { ListWorkspacesRequest } from './model/ListWorkspacesRequest'; import { ListWorkspacesResponse } from './model/ListWorkspacesResponse'; import { ListWorkspacesResultData } from './model/ListWorkspacesResultData'; @@ -5049,6 +5051,26 @@ export class DataArtsStudioClient { return this.hcClient.sendRequest(options); } + /** + * 获取指定用户所有的工作空间集合 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 获取指定用户所有的工作空间集合 + * @param {string} instanceId DataArtsStudio实例id + * @param {string} userId 用户id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listWorkspacesForUser(listWorkspacesForUserRequest?: ListWorkspacesForUserRequest): Promise { + const options = ParamCreater().listWorkspacesForUser(listWorkspacesForUserRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 获取工作空间用户信息 * @@ -19755,6 +19777,50 @@ export const ParamCreater = function () { return options; }, + /** + * 获取指定用户所有的工作空间集合 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listWorkspacesForUser(listWorkspacesForUserRequest?: ListWorkspacesForUserRequest) { + const options = { + method: "GET", + url: "/v1/{project_id}/{instance_id}/workspaces/{user_id}", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + let instanceId; + + let userId; + + if (listWorkspacesForUserRequest !== null && listWorkspacesForUserRequest !== undefined) { + if (listWorkspacesForUserRequest instanceof ListWorkspacesForUserRequest) { + instanceId = listWorkspacesForUserRequest.instanceId; + userId = listWorkspacesForUserRequest.userId; + } else { + instanceId = listWorkspacesForUserRequest['instance_id']; + userId = listWorkspacesForUserRequest['user_id']; + } + } + + + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling listWorkspacesForUser.'); + } + if (userId === null || userId === undefined) { + throw new RequiredError('userId','Required parameter userId was null or undefined when calling listWorkspacesForUser.'); + } + + options.pathParams = { 'instance_id': instanceId,'user_id': userId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 获取工作空间用户信息 * diff --git a/services/dataartsstudio/v1/model/ApigDataSourceVo.ts b/services/dataartsstudio/v1/model/ApigDataSourceVo.ts index 1e7e12b14..68a05bc61 100644 --- a/services/dataartsstudio/v1/model/ApigDataSourceVo.ts +++ b/services/dataartsstudio/v1/model/ApigDataSourceVo.ts @@ -7,6 +7,7 @@ export class ApigDataSourceVo { private 'agent_id'?: string; private 'agent_name'?: string; private 'env_type'?: number; + public supportService?: number; public constructor(dwName?: string, dwType?: string, dwConfig?: object) { this['dw_name'] = dwName; this['dw_type'] = dwType; @@ -72,4 +73,8 @@ export class ApigDataSourceVo { public get envType(): number | undefined { return this['env_type']; } + public withSupportService(supportService: number): ApigDataSourceVo { + this['supportService'] = supportService; + return this; + } } \ No newline at end of file diff --git a/services/dataartsstudio/v1/model/ListWorkspacesForUserRequest.ts b/services/dataartsstudio/v1/model/ListWorkspacesForUserRequest.ts new file mode 100644 index 000000000..6851ed527 --- /dev/null +++ b/services/dataartsstudio/v1/model/ListWorkspacesForUserRequest.ts @@ -0,0 +1,30 @@ + + +export class ListWorkspacesForUserRequest { + private 'instance_id'?: string; + private 'user_id'?: string; + public constructor(instanceId?: string, userId?: string) { + this['instance_id'] = instanceId; + this['user_id'] = userId; + } + public withInstanceId(instanceId: string): ListWorkspacesForUserRequest { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } + public withUserId(userId: string): ListWorkspacesForUserRequest { + this['user_id'] = userId; + return this; + } + public set userId(userId: string | undefined) { + this['user_id'] = userId; + } + public get userId(): string | undefined { + return this['user_id']; + } +} \ No newline at end of file diff --git a/services/dataartsstudio/v1/model/ListWorkspacesForUserResponse.ts b/services/dataartsstudio/v1/model/ListWorkspacesForUserResponse.ts new file mode 100644 index 000000000..fa25243ba --- /dev/null +++ b/services/dataartsstudio/v1/model/ListWorkspacesForUserResponse.ts @@ -0,0 +1,30 @@ +import { Workspacebody } from './Workspacebody'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListWorkspacesForUserResponse extends SdkResponse { + public count?: number; + private 'total_page'?: number; + public data?: Array; + public constructor() { + super(); + } + public withCount(count: number): ListWorkspacesForUserResponse { + this['count'] = count; + return this; + } + public withTotalPage(totalPage: number): ListWorkspacesForUserResponse { + this['total_page'] = totalPage; + return this; + } + public set totalPage(totalPage: number | undefined) { + this['total_page'] = totalPage; + } + public get totalPage(): number | undefined { + return this['total_page']; + } + public withData(data: Array): ListWorkspacesForUserResponse { + this['data'] = data; + return this; + } +} \ No newline at end of file diff --git a/services/dataartsstudio/v1/public-api.ts b/services/dataartsstudio/v1/public-api.ts index 087d60520..1fcd68b9f 100644 --- a/services/dataartsstudio/v1/public-api.ts +++ b/services/dataartsstudio/v1/public-api.ts @@ -640,6 +640,8 @@ export * from './model/ListTableModelsResultData'; export * from './model/ListTableModelsResultDataValue'; export * from './model/ListWorkspaceRolesRequest'; export * from './model/ListWorkspaceRolesResponse'; +export * from './model/ListWorkspacesForUserRequest'; +export * from './model/ListWorkspacesForUserResponse'; export * from './model/ListWorkspacesRequest'; export * from './model/ListWorkspacesResponse'; export * from './model/ListWorkspacesResultData'; diff --git a/services/dds/v3/DdsClient.ts b/services/dds/v3/DdsClient.ts index aafd7ea76..a4e5f37a0 100644 --- a/services/dds/v3/DdsClient.ts +++ b/services/dds/v3/DdsClient.ts @@ -26,11 +26,19 @@ import { BackupPolicyItem } from './model/BackupPolicyItem'; import { BackupStrategy } from './model/BackupStrategy'; import { BackupStrategyForItemResponse } from './model/BackupStrategyForItemResponse'; import { BalancerActiveWindow } from './model/BalancerActiveWindow'; +import { BatchDeleteBackupRequest } from './model/BatchDeleteBackupRequest'; +import { BatchDeleteBackupRequestBody } from './model/BatchDeleteBackupRequestBody'; +import { BatchDeleteBackupResponse } from './model/BatchDeleteBackupResponse'; import { BatchOperateInstanceTagRequestBody } from './model/BatchOperateInstanceTagRequestBody'; import { BatchTagActionRequest } from './model/BatchTagActionRequest'; import { BatchTagActionResponse } from './model/BatchTagActionResponse'; +import { BatchUpgradeDatabaseVersionRequest } from './model/BatchUpgradeDatabaseVersionRequest'; +import { BatchUpgradeDatabaseVersionRequestBody } from './model/BatchUpgradeDatabaseVersionRequestBody'; +import { BatchUpgradeDatabaseVersionResponse } from './model/BatchUpgradeDatabaseVersionResponse'; import { CancelEipRequest } from './model/CancelEipRequest'; import { CancelEipResponse } from './model/CancelEipResponse'; +import { CancelScheduledTaskRequest } from './model/CancelScheduledTaskRequest'; +import { CancelScheduledTaskResponse } from './model/CancelScheduledTaskResponse'; import { CertInfo } from './model/CertInfo'; import { ChangeOpsWindowRequest } from './model/ChangeOpsWindowRequest'; import { ChangeOpsWindowResponse } from './model/ChangeOpsWindowResponse'; @@ -44,6 +52,7 @@ import { CheckWeakPasswordResponse } from './model/CheckWeakPasswordResponse'; import { ClientNetworkRequestBody } from './model/ClientNetworkRequestBody'; import { CompareConfigurationRequest } from './model/CompareConfigurationRequest'; import { CompareConfigurationResponse } from './model/CompareConfigurationResponse'; +import { ConfigurationModifyHistoryInfo } from './model/ConfigurationModifyHistoryInfo'; import { ConfigurationParametersResult } from './model/ConfigurationParametersResult'; import { CopyConfigurationRequest } from './model/CopyConfigurationRequest'; import { CopyConfigurationRequestBody } from './model/CopyConfigurationRequestBody'; @@ -106,6 +115,7 @@ import { DeleteSessionRequestBody } from './model/DeleteSessionRequestBody'; import { DeleteSessionResponse } from './model/DeleteSessionResponse'; import { DiffConfigurationRequest } from './model/DiffConfigurationRequest'; import { DiffDetails } from './model/DiffDetails'; +import { DiskAutoExpansionPolicy } from './model/DiskAutoExpansionPolicy'; import { DiskVolumes } from './model/DiskVolumes'; import { DownloadErrorlogRequest } from './model/DownloadErrorlogRequest'; import { DownloadErrorlogRequestBody } from './model/DownloadErrorlogRequestBody'; @@ -197,6 +207,8 @@ import { ListRestoreDatabasesResponse } from './model/ListRestoreDatabasesRespon import { ListRestoreTimesRequest } from './model/ListRestoreTimesRequest'; import { ListRestoreTimesResponse } from './model/ListRestoreTimesResponse'; import { ListRestoreTimesResponseBodyRestoreTime } from './model/ListRestoreTimesResponseBodyRestoreTime'; +import { ListScheduledTasksRequest } from './model/ListScheduledTasksRequest'; +import { ListScheduledTasksResponse } from './model/ListScheduledTasksResponse'; import { ListSessionsRequest } from './model/ListSessionsRequest'; import { ListSessionsResponse } from './model/ListSessionsResponse'; import { ListSlowLogsRequest } from './model/ListSlowLogsRequest'; @@ -259,9 +271,13 @@ import { RestoreNewInstanceRequestBody } from './model/RestoreNewInstanceRequest import { RestoreNewInstanceResponse } from './model/RestoreNewInstanceResponse'; import { RestorePoint } from './model/RestorePoint'; import { RolesOption } from './model/RolesOption'; +import { ScheduledTasksRspSchedules } from './model/ScheduledTasksRspSchedules'; import { SetAuditlogPolicyRequest } from './model/SetAuditlogPolicyRequest'; import { SetAuditlogPolicyRequestBody } from './model/SetAuditlogPolicyRequestBody'; import { SetAuditlogPolicyResponse } from './model/SetAuditlogPolicyResponse'; +import { SetAutoEnlargePoliciesRequest } from './model/SetAutoEnlargePoliciesRequest'; +import { SetAutoEnlargePoliciesRequestBody } from './model/SetAutoEnlargePoliciesRequestBody'; +import { SetAutoEnlargePoliciesResponse } from './model/SetAutoEnlargePoliciesResponse'; import { SetBackupPolicyRequest } from './model/SetBackupPolicyRequest'; import { SetBackupPolicyRequestBody } from './model/SetBackupPolicyRequestBody'; import { SetBackupPolicyResponse } from './model/SetBackupPolicyResponse'; @@ -275,6 +291,8 @@ import { ShowApiVersionRequest } from './model/ShowApiVersionRequest'; import { ShowApiVersionResponse } from './model/ShowApiVersionResponse'; import { ShowAuditlogPolicyRequest } from './model/ShowAuditlogPolicyRequest'; import { ShowAuditlogPolicyResponse } from './model/ShowAuditlogPolicyResponse'; +import { ShowAutoEnlargePolicyRequest } from './model/ShowAutoEnlargePolicyRequest'; +import { ShowAutoEnlargePolicyResponse } from './model/ShowAutoEnlargePolicyResponse'; import { ShowBackupDownloadLinkRequest } from './model/ShowBackupDownloadLinkRequest'; import { ShowBackupDownloadLinkResponse } from './model/ShowBackupDownloadLinkResponse'; import { ShowBackupPolicyRequest } from './model/ShowBackupPolicyRequest'; @@ -293,6 +311,8 @@ import { ShowDiskUsageRequest } from './model/ShowDiskUsageRequest'; import { ShowDiskUsageResponse } from './model/ShowDiskUsageResponse'; import { ShowEntityConfigurationRequest } from './model/ShowEntityConfigurationRequest'; import { ShowEntityConfigurationResponse } from './model/ShowEntityConfigurationResponse'; +import { ShowInstanceConfigurationModifyHistoryRequest } from './model/ShowInstanceConfigurationModifyHistoryRequest'; +import { ShowInstanceConfigurationModifyHistoryResponse } from './model/ShowInstanceConfigurationModifyHistoryResponse'; import { ShowJobDetailRequest } from './model/ShowJobDetailRequest'; import { ShowJobDetailResponse } from './model/ShowJobDetailResponse'; import { ShowKillOpRuleRuleListRequest } from './model/ShowKillOpRuleRuleListRequest'; @@ -372,6 +392,9 @@ import { UpdateSecurityGroupResponse } from './model/UpdateSecurityGroupResponse import { UpgradeDatabaseVersionRequest } from './model/UpgradeDatabaseVersionRequest'; import { UpgradeDatabaseVersionRequestBody } from './model/UpgradeDatabaseVersionRequestBody'; import { UpgradeDatabaseVersionResponse } from './model/UpgradeDatabaseVersionResponse'; +import { UpgradeResult } from './model/UpgradeResult'; +import { ValidateConfigurationNameRequest } from './model/ValidateConfigurationNameRequest'; +import { ValidateConfigurationNameResponse } from './model/ValidateConfigurationNameResponse'; import { Volume } from './model/Volume'; import { WeakPasswordCheckRequestBody } from './model/WeakPasswordCheckRequestBody'; @@ -470,6 +493,26 @@ export class DdsClient { return this.hcClient.sendRequest(options); } + /** + * 批量删除数据库实例的手动备份。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 批量删除手动备份 + * @param {BatchDeleteBackupRequestBody} batchDeleteBackupRequestBody 请求体。 + * @param {'zh-cn' | 'en-us'} [xLanguage] 语言。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public batchDeleteBackup(batchDeleteBackupRequest?: BatchDeleteBackupRequest): Promise { + const options = ParamCreater().batchDeleteBackup(batchDeleteBackupRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 批量添加或删除指定实例的标签。 * @@ -490,6 +533,25 @@ export class DdsClient { return this.hcClient.sendRequest(options); } + /** + * 批量升级数据库补丁版本。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 批量数据库补丁升级 + * @param {BatchUpgradeDatabaseVersionRequestBody} batchUpgradeDatabaseVersionRequestBody 请求体。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public batchUpgradeDatabaseVersion(batchUpgradeDatabaseVersionRequest?: BatchUpgradeDatabaseVersionRequest): Promise { + const options = ParamCreater().batchUpgradeDatabaseVersion(batchUpgradeDatabaseVersionRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 解绑实例下节点已经绑定的弹性公网IP。 * @@ -509,6 +571,25 @@ export class DdsClient { return this.hcClient.sendRequest(options); } + /** + * 根据任务ID取消定时任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 取消定时任务 + * @param {string} jobId 任务ID,取值为定时任务列表。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public cancelScheduledTask(cancelScheduledTaskRequest?: CancelScheduledTaskRequest): Promise { + const options = ParamCreater().cancelScheduledTask(cancelScheduledTaskRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 修改用户允许启动某项对数据库实例运行有影响的任务的时间范围,例如操作系统升级和数据库软件版本升级的时间窗。 * @@ -1518,6 +1599,31 @@ export class DdsClient { return this.hcClient.sendRequest(options); } + /** + * 根据指定条件查询定时任务列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询定时任务 + * @param {string} [jobName] 任务名称,默认为空。对应取值如下: \"RESIZE_FLAVOR\":变更实例的CPU和内存规格 + * @param {string} [jobStatus] 任务执行状态,默认为空。 取值: 值为\"Pending\",表示任务未执行。 值为\"Running\",表示任务正在执行。 值为\"Completed\",表示任务执行成功。 值为\"Failed\",表示任务执行失败。 值为\"Canceled\",表示任务取消执行。 + * @param {string} [instanceId] 实例ID,不传该值默认查所有符合条件的实例。 + * @param {string} [startTime] 任务创建起始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100,不传默认为当前时间前七天。 + * @param {string} [endTime] 任务创建结束时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100,不传默认为当前时间。 + * @param {number} [offset] 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0。 + * @param {number} [limit] 查询记录数。不传该参数时,默认为10,取值范围1-100。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listScheduledTasks(listScheduledTasksRequest?: ListScheduledTasksRequest): Promise { + const options = ParamCreater().listScheduledTasks(listScheduledTasksRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 查询实例节点会话。 * @@ -1830,6 +1936,25 @@ export class DdsClient { return this.hcClient.sendRequest(options); } + /** + * 设置磁盘自动扩容策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 设置磁盘自动扩容策略 + * @param {SetAutoEnlargePoliciesRequestBody} setAutoEnlargePoliciesRequestBody 请求body。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public setAutoEnlargePolicies(setAutoEnlargePoliciesRequest?: SetAutoEnlargePoliciesRequest): Promise { + const options = ParamCreater().setAutoEnlargePolicies(setAutoEnlargePoliciesRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 设置自动备份策略。 * @@ -1929,6 +2054,25 @@ export class DdsClient { return this.hcClient.sendRequest(options); } + /** + * 查询磁盘自动扩容策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询磁盘自动扩容策略 + * @param {string} instanceId 实例ID。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public showAutoEnlargePolicy(showAutoEnlargePolicyRequest?: ShowAutoEnlargePolicyRequest): Promise { + const options = ParamCreater().showAutoEnlargePolicy(showAutoEnlargePolicyRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 获取备份下载链接。 * @@ -2109,6 +2253,27 @@ export class DdsClient { return this.hcClient.sendRequest(options); } + /** + * 查询实例参数的修改历史。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询实例参数的修改历史 + * @param {string} instanceId 实例ID。 + * @param {number} [offset] 索引位置,偏移量。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。 取值必须为数字,不能为负数。 + * @param {number} [limit] 查询个数上限值。 - 取值范围: 1~100。 - 不传该参数时,默认查询前100条信息。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public showInstanceConfigurationModifyHistory(showInstanceConfigurationModifyHistoryRequest?: ShowInstanceConfigurationModifyHistoryRequest): Promise { + const options = ParamCreater().showInstanceConfigurationModifyHistory(showInstanceConfigurationModifyHistoryRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 获取DDS任务中心指定ID的任务信息。 * @@ -2668,6 +2833,25 @@ export class DdsClient { return this.hcClient.sendRequest(options); } + /** + * 校验参数模板名称是否存在。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 校验参数模板名称是否存在 + * @param {string} name 参数模板名称。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public validateConfigurationName(validateConfigurationNameRequest?: ValidateConfigurationNameRequest): Promise { + const options = ParamCreater().validateConfigurationName(validateConfigurationNameRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 查询当前支持的API版本信息列表。 * @@ -2893,6 +3077,51 @@ export const ParamCreater = function () { return options; }, + /** + * 批量删除数据库实例的手动备份。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + batchDeleteBackup(batchDeleteBackupRequest?: BatchDeleteBackupRequest) { + const options = { + method: "DELETE", + url: "/v3/{project_id}/instances/backups", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let xLanguage; + + if (batchDeleteBackupRequest !== null && batchDeleteBackupRequest !== undefined) { + if (batchDeleteBackupRequest instanceof BatchDeleteBackupRequest) { + body = batchDeleteBackupRequest.body + xLanguage = batchDeleteBackupRequest.xLanguage; + } else { + body = batchDeleteBackupRequest['body']; + xLanguage = batchDeleteBackupRequest['X-Language']; + } + } + + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (xLanguage !== undefined && xLanguage !== null) { + localVarHeaderParameter['X-Language'] = String(xLanguage); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 批量添加或删除指定实例的标签。 * @@ -2939,6 +3168,44 @@ export const ParamCreater = function () { return options; }, + /** + * 批量升级数据库补丁版本。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + batchUpgradeDatabaseVersion(batchUpgradeDatabaseVersionRequest?: BatchUpgradeDatabaseVersionRequest) { + const options = { + method: "POST", + url: "/v3/{project_id}/instances/db-upgrade", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + if (batchUpgradeDatabaseVersionRequest !== null && batchUpgradeDatabaseVersionRequest !== undefined) { + if (batchUpgradeDatabaseVersionRequest instanceof BatchUpgradeDatabaseVersionRequest) { + body = batchUpgradeDatabaseVersionRequest.body + } else { + body = batchUpgradeDatabaseVersionRequest['body']; + } + } + + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 解绑实例下节点已经绑定的弹性公网IP。 * @@ -2976,6 +3243,43 @@ export const ParamCreater = function () { return options; }, + /** + * 根据任务ID取消定时任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + cancelScheduledTask(cancelScheduledTaskRequest?: CancelScheduledTaskRequest) { + const options = { + method: "DELETE", + url: "/v3/{project_id}/scheduled-jobs/{job_id}", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + let jobId; + + if (cancelScheduledTaskRequest !== null && cancelScheduledTaskRequest !== undefined) { + if (cancelScheduledTaskRequest instanceof CancelScheduledTaskRequest) { + jobId = cancelScheduledTaskRequest.jobId; + } else { + jobId = cancelScheduledTaskRequest['job_id']; + } + } + + + if (jobId === null || jobId === undefined) { + throw new RequiredError('jobId','Required parameter jobId was null or undefined when calling cancelScheduledTask.'); + } + + options.pathParams = { 'job_id': jobId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 修改用户允许启动某项对数据库实例运行有影响的任务的时间范围,例如操作系统升级和数据库软件版本升级的时间窗。 * @@ -5401,6 +5705,85 @@ export const ParamCreater = function () { return options; }, + /** + * 根据指定条件查询定时任务列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listScheduledTasks(listScheduledTasksRequest?: ListScheduledTasksRequest) { + const options = { + method: "GET", + url: "/v3/{project_id}/scheduled-jobs", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let jobName; + + let jobStatus; + + let instanceId; + + let startTime; + + let endTime; + + let offset; + + let limit; + + if (listScheduledTasksRequest !== null && listScheduledTasksRequest !== undefined) { + if (listScheduledTasksRequest instanceof ListScheduledTasksRequest) { + jobName = listScheduledTasksRequest.jobName; + jobStatus = listScheduledTasksRequest.jobStatus; + instanceId = listScheduledTasksRequest.instanceId; + startTime = listScheduledTasksRequest.startTime; + endTime = listScheduledTasksRequest.endTime; + offset = listScheduledTasksRequest.offset; + limit = listScheduledTasksRequest.limit; + } else { + jobName = listScheduledTasksRequest['job_name']; + jobStatus = listScheduledTasksRequest['job_status']; + instanceId = listScheduledTasksRequest['instance_id']; + startTime = listScheduledTasksRequest['start_time']; + endTime = listScheduledTasksRequest['end_time']; + offset = listScheduledTasksRequest['offset']; + limit = listScheduledTasksRequest['limit']; + } + } + + + if (jobName !== null && jobName !== undefined) { + localVarQueryParameter['job_name'] = jobName; + } + if (jobStatus !== null && jobStatus !== undefined) { + localVarQueryParameter['job_status'] = jobStatus; + } + if (instanceId !== null && instanceId !== undefined) { + localVarQueryParameter['instance_id'] = instanceId; + } + if (startTime !== null && startTime !== undefined) { + localVarQueryParameter['start_time'] = startTime; + } + if (endTime !== null && endTime !== undefined) { + localVarQueryParameter['end_time'] = endTime; + } + if (offset !== null && offset !== undefined) { + localVarQueryParameter['offset'] = offset; + } + if (limit !== null && limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 查询实例节点会话。 * @@ -6175,6 +6558,44 @@ export const ParamCreater = function () { return options; }, + /** + * 设置磁盘自动扩容策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + setAutoEnlargePolicies(setAutoEnlargePoliciesRequest?: SetAutoEnlargePoliciesRequest) { + const options = { + method: "PUT", + url: "/v3/{project_id}/instances/auto-enlarge-volume-policies", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + if (setAutoEnlargePoliciesRequest !== null && setAutoEnlargePoliciesRequest !== undefined) { + if (setAutoEnlargePoliciesRequest instanceof SetAutoEnlargePoliciesRequest) { + body = setAutoEnlargePoliciesRequest.body + } else { + body = setAutoEnlargePoliciesRequest['body']; + } + } + + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 设置自动备份策略。 * @@ -6393,6 +6814,43 @@ export const ParamCreater = function () { return options; }, + /** + * 查询磁盘自动扩容策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + showAutoEnlargePolicy(showAutoEnlargePolicyRequest?: ShowAutoEnlargePolicyRequest) { + const options = { + method: "GET", + url: "/v3/{project_id}/instances/{instance_id}/auto-enlarge-volume-policy", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + let instanceId; + + if (showAutoEnlargePolicyRequest !== null && showAutoEnlargePolicyRequest !== undefined) { + if (showAutoEnlargePolicyRequest instanceof ShowAutoEnlargePolicyRequest) { + instanceId = showAutoEnlargePolicyRequest.instanceId; + } else { + instanceId = showAutoEnlargePolicyRequest['instance_id']; + } + } + + + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling showAutoEnlargePolicy.'); + } + + options.pathParams = { 'instance_id': instanceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 获取备份下载链接。 * @@ -6802,6 +7260,58 @@ export const ParamCreater = function () { return options; }, + /** + * 查询实例参数的修改历史。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + showInstanceConfigurationModifyHistory(showInstanceConfigurationModifyHistoryRequest?: ShowInstanceConfigurationModifyHistoryRequest) { + const options = { + method: "GET", + url: "/v3/{project_id}/instances/{instance_id}/configuration-histories", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let instanceId; + + let offset; + + let limit; + + if (showInstanceConfigurationModifyHistoryRequest !== null && showInstanceConfigurationModifyHistoryRequest !== undefined) { + if (showInstanceConfigurationModifyHistoryRequest instanceof ShowInstanceConfigurationModifyHistoryRequest) { + instanceId = showInstanceConfigurationModifyHistoryRequest.instanceId; + offset = showInstanceConfigurationModifyHistoryRequest.offset; + limit = showInstanceConfigurationModifyHistoryRequest.limit; + } else { + instanceId = showInstanceConfigurationModifyHistoryRequest['instance_id']; + offset = showInstanceConfigurationModifyHistoryRequest['offset']; + limit = showInstanceConfigurationModifyHistoryRequest['limit']; + } + } + + + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling showInstanceConfigurationModifyHistory.'); + } + if (offset !== null && offset !== undefined) { + localVarQueryParameter['offset'] = offset; + } + if (limit !== null && limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + options.queryParams = localVarQueryParameter; + options.pathParams = { 'instance_id': instanceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 获取DDS任务中心指定ID的任务信息。 * @@ -8040,6 +8550,46 @@ export const ParamCreater = function () { return options; }, + /** + * 校验参数模板名称是否存在。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + validateConfigurationName(validateConfigurationNameRequest?: ValidateConfigurationNameRequest) { + const options = { + method: "GET", + url: "/v3/{project_id}/configurations/name-validation", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let name; + + if (validateConfigurationNameRequest !== null && validateConfigurationNameRequest !== undefined) { + if (validateConfigurationNameRequest instanceof ValidateConfigurationNameRequest) { + name = validateConfigurationNameRequest.name; + } else { + name = validateConfigurationNameRequest['name']; + } + } + + + if (name === null || name === undefined) { + throw new RequiredError('name','Required parameter name was null or undefined when calling validateConfigurationName.'); + } + if (name !== null && name !== undefined) { + localVarQueryParameter['name'] = name; + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 查询当前支持的API版本信息列表。 * diff --git a/services/dds/v3/model/BatchDeleteBackupRequest.ts b/services/dds/v3/model/BatchDeleteBackupRequest.ts new file mode 100644 index 000000000..e3899232b --- /dev/null +++ b/services/dds/v3/model/BatchDeleteBackupRequest.ts @@ -0,0 +1,32 @@ +import { BatchDeleteBackupRequestBody } from './BatchDeleteBackupRequestBody'; + + +export class BatchDeleteBackupRequest { + private 'X-Language'?: BatchDeleteBackupRequestXLanguageEnum | string; + public body?: BatchDeleteBackupRequestBody; + public constructor() { + } + public withXLanguage(xLanguage: BatchDeleteBackupRequestXLanguageEnum | string): BatchDeleteBackupRequest { + this['X-Language'] = xLanguage; + return this; + } + public set xLanguage(xLanguage: BatchDeleteBackupRequestXLanguageEnum | string | undefined) { + this['X-Language'] = xLanguage; + } + public get xLanguage(): BatchDeleteBackupRequestXLanguageEnum | string | undefined { + return this['X-Language']; + } + public withBody(body: BatchDeleteBackupRequestBody): BatchDeleteBackupRequest { + this['body'] = body; + return this; + } +} + +/** + * @export + * @enum {string} + */ +export enum BatchDeleteBackupRequestXLanguageEnum { + ZH_CN = 'zh-cn', + EN_US = 'en-us' +} diff --git a/services/dds/v3/model/BatchDeleteBackupRequestBody.ts b/services/dds/v3/model/BatchDeleteBackupRequestBody.ts new file mode 100644 index 000000000..55344f532 --- /dev/null +++ b/services/dds/v3/model/BatchDeleteBackupRequestBody.ts @@ -0,0 +1,18 @@ + + +export class BatchDeleteBackupRequestBody { + private 'backup_ids'?: Array; + public constructor(backupIds?: Array) { + this['backup_ids'] = backupIds; + } + public withBackupIds(backupIds: Array): BatchDeleteBackupRequestBody { + this['backup_ids'] = backupIds; + return this; + } + public set backupIds(backupIds: Array | undefined) { + this['backup_ids'] = backupIds; + } + public get backupIds(): Array | undefined { + return this['backup_ids']; + } +} \ No newline at end of file diff --git a/services/dds/v3/model/BatchDeleteBackupResponse.ts b/services/dds/v3/model/BatchDeleteBackupResponse.ts new file mode 100644 index 000000000..f0aa2c44e --- /dev/null +++ b/services/dds/v3/model/BatchDeleteBackupResponse.ts @@ -0,0 +1,8 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class BatchDeleteBackupResponse extends SdkResponse { + public constructor() { + super(); + } +} \ No newline at end of file diff --git a/services/dds/v3/model/BatchUpgradeDatabaseVersionRequest.ts b/services/dds/v3/model/BatchUpgradeDatabaseVersionRequest.ts new file mode 100644 index 000000000..7410312cb --- /dev/null +++ b/services/dds/v3/model/BatchUpgradeDatabaseVersionRequest.ts @@ -0,0 +1,12 @@ +import { BatchUpgradeDatabaseVersionRequestBody } from './BatchUpgradeDatabaseVersionRequestBody'; + + +export class BatchUpgradeDatabaseVersionRequest { + public body?: BatchUpgradeDatabaseVersionRequestBody; + public constructor() { + } + public withBody(body: BatchUpgradeDatabaseVersionRequestBody): BatchUpgradeDatabaseVersionRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/dds/v3/model/BatchUpgradeDatabaseVersionRequestBody.ts b/services/dds/v3/model/BatchUpgradeDatabaseVersionRequestBody.ts new file mode 100644 index 000000000..3e2c93b4e --- /dev/null +++ b/services/dds/v3/model/BatchUpgradeDatabaseVersionRequestBody.ts @@ -0,0 +1,18 @@ + + +export class BatchUpgradeDatabaseVersionRequestBody { + private 'instance_ids'?: Array; + public constructor(instanceIds?: Array) { + this['instance_ids'] = instanceIds; + } + public withInstanceIds(instanceIds: Array): BatchUpgradeDatabaseVersionRequestBody { + this['instance_ids'] = instanceIds; + return this; + } + public set instanceIds(instanceIds: Array | undefined) { + this['instance_ids'] = instanceIds; + } + public get instanceIds(): Array | undefined { + return this['instance_ids']; + } +} \ No newline at end of file diff --git a/services/dds/v3/model/BatchUpgradeDatabaseVersionResponse.ts b/services/dds/v3/model/BatchUpgradeDatabaseVersionResponse.ts new file mode 100644 index 000000000..743afc352 --- /dev/null +++ b/services/dds/v3/model/BatchUpgradeDatabaseVersionResponse.ts @@ -0,0 +1,20 @@ +import { UpgradeResult } from './UpgradeResult'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class BatchUpgradeDatabaseVersionResponse extends SdkResponse { + private 'upgrade_results'?: Array; + public constructor() { + super(); + } + public withUpgradeResults(upgradeResults: Array): BatchUpgradeDatabaseVersionResponse { + this['upgrade_results'] = upgradeResults; + return this; + } + public set upgradeResults(upgradeResults: Array | undefined) { + this['upgrade_results'] = upgradeResults; + } + public get upgradeResults(): Array | undefined { + return this['upgrade_results']; + } +} \ No newline at end of file diff --git a/services/moderation/v2/model/RunCheckResultRequest.ts b/services/dds/v3/model/CancelScheduledTaskRequest.ts similarity index 76% rename from services/moderation/v2/model/RunCheckResultRequest.ts rename to services/dds/v3/model/CancelScheduledTaskRequest.ts index de1c794c0..89baf8de6 100644 --- a/services/moderation/v2/model/RunCheckResultRequest.ts +++ b/services/dds/v3/model/CancelScheduledTaskRequest.ts @@ -1,11 +1,11 @@ -export class RunCheckResultRequest { +export class CancelScheduledTaskRequest { private 'job_id'?: string; public constructor(jobId?: string) { this['job_id'] = jobId; } - public withJobId(jobId: string): RunCheckResultRequest { + public withJobId(jobId: string): CancelScheduledTaskRequest { this['job_id'] = jobId; return this; } diff --git a/services/evs/v2/model/ChangeVolumeChargeModeResponse.ts b/services/dds/v3/model/CancelScheduledTaskResponse.ts similarity index 61% rename from services/evs/v2/model/ChangeVolumeChargeModeResponse.ts rename to services/dds/v3/model/CancelScheduledTaskResponse.ts index a0148c1b0..57bb8b3b5 100644 --- a/services/evs/v2/model/ChangeVolumeChargeModeResponse.ts +++ b/services/dds/v3/model/CancelScheduledTaskResponse.ts @@ -1,12 +1,12 @@ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; -export class ChangeVolumeChargeModeResponse extends SdkResponse { +export class CancelScheduledTaskResponse extends SdkResponse { public body?: string; public constructor() { super(); } - public withBody(body: string): ChangeVolumeChargeModeResponse { + public withBody(body: string): CancelScheduledTaskResponse { this['body'] = body; return this; } diff --git a/services/dds/v3/model/ConfigurationModifyHistoryInfo.ts b/services/dds/v3/model/ConfigurationModifyHistoryInfo.ts new file mode 100644 index 000000000..da7f49d58 --- /dev/null +++ b/services/dds/v3/model/ConfigurationModifyHistoryInfo.ts @@ -0,0 +1,84 @@ + + +export class ConfigurationModifyHistoryInfo { + private 'parameter_name'?: string; + private 'old_value'?: string; + private 'new_value'?: string; + private 'update_result'?: string; + public applied?: boolean; + private 'updated_at'?: string; + private 'applied_at'?: string; + public constructor(parameterName?: string, oldValue?: string, newValue?: string, updateResult?: string, applied?: boolean, updatedAt?: string, appliedAt?: string) { + this['parameter_name'] = parameterName; + this['old_value'] = oldValue; + this['new_value'] = newValue; + this['update_result'] = updateResult; + this['applied'] = applied; + this['updated_at'] = updatedAt; + this['applied_at'] = appliedAt; + } + public withParameterName(parameterName: string): ConfigurationModifyHistoryInfo { + this['parameter_name'] = parameterName; + return this; + } + public set parameterName(parameterName: string | undefined) { + this['parameter_name'] = parameterName; + } + public get parameterName(): string | undefined { + return this['parameter_name']; + } + public withOldValue(oldValue: string): ConfigurationModifyHistoryInfo { + this['old_value'] = oldValue; + return this; + } + public set oldValue(oldValue: string | undefined) { + this['old_value'] = oldValue; + } + public get oldValue(): string | undefined { + return this['old_value']; + } + public withNewValue(newValue: string): ConfigurationModifyHistoryInfo { + this['new_value'] = newValue; + return this; + } + public set newValue(newValue: string | undefined) { + this['new_value'] = newValue; + } + public get newValue(): string | undefined { + return this['new_value']; + } + public withUpdateResult(updateResult: string): ConfigurationModifyHistoryInfo { + this['update_result'] = updateResult; + return this; + } + public set updateResult(updateResult: string | undefined) { + this['update_result'] = updateResult; + } + public get updateResult(): string | undefined { + return this['update_result']; + } + public withApplied(applied: boolean): ConfigurationModifyHistoryInfo { + this['applied'] = applied; + return this; + } + public withUpdatedAt(updatedAt: string): ConfigurationModifyHistoryInfo { + this['updated_at'] = updatedAt; + return this; + } + public set updatedAt(updatedAt: string | undefined) { + this['updated_at'] = updatedAt; + } + public get updatedAt(): string | undefined { + return this['updated_at']; + } + public withAppliedAt(appliedAt: string): ConfigurationModifyHistoryInfo { + this['applied_at'] = appliedAt; + return this; + } + public set appliedAt(appliedAt: string | undefined) { + this['applied_at'] = appliedAt; + } + public get appliedAt(): string | undefined { + return this['applied_at']; + } +} \ No newline at end of file diff --git a/services/dds/v3/model/DiskAutoExpansionPolicy.ts b/services/dds/v3/model/DiskAutoExpansionPolicy.ts new file mode 100644 index 000000000..dfdfec740 --- /dev/null +++ b/services/dds/v3/model/DiskAutoExpansionPolicy.ts @@ -0,0 +1,28 @@ + + +export class DiskAutoExpansionPolicy { + private 'instance_id'?: string; + public threshold?: number; + public step?: number; + public constructor(instanceId?: string) { + this['instance_id'] = instanceId; + } + public withInstanceId(instanceId: string): DiskAutoExpansionPolicy { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } + public withThreshold(threshold: number): DiskAutoExpansionPolicy { + this['threshold'] = threshold; + return this; + } + public withStep(step: number): DiskAutoExpansionPolicy { + this['step'] = step; + return this; + } +} \ No newline at end of file diff --git a/services/dds/v3/model/ListScheduledTasksRequest.ts b/services/dds/v3/model/ListScheduledTasksRequest.ts new file mode 100644 index 000000000..c5e2ab586 --- /dev/null +++ b/services/dds/v3/model/ListScheduledTasksRequest.ts @@ -0,0 +1,71 @@ + + +export class ListScheduledTasksRequest { + private 'job_name'?: string; + private 'job_status'?: string; + private 'instance_id'?: string; + private 'start_time'?: string; + private 'end_time'?: string; + public offset?: number; + public limit?: number; + public constructor() { + } + public withJobName(jobName: string): ListScheduledTasksRequest { + this['job_name'] = jobName; + return this; + } + public set jobName(jobName: string | undefined) { + this['job_name'] = jobName; + } + public get jobName(): string | undefined { + return this['job_name']; + } + public withJobStatus(jobStatus: string): ListScheduledTasksRequest { + this['job_status'] = jobStatus; + return this; + } + public set jobStatus(jobStatus: string | undefined) { + this['job_status'] = jobStatus; + } + public get jobStatus(): string | undefined { + return this['job_status']; + } + public withInstanceId(instanceId: string): ListScheduledTasksRequest { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } + public withStartTime(startTime: string): ListScheduledTasksRequest { + this['start_time'] = startTime; + return this; + } + public set startTime(startTime: string | undefined) { + this['start_time'] = startTime; + } + public get startTime(): string | undefined { + return this['start_time']; + } + public withEndTime(endTime: string): ListScheduledTasksRequest { + this['end_time'] = endTime; + return this; + } + public set endTime(endTime: string | undefined) { + this['end_time'] = endTime; + } + public get endTime(): string | undefined { + return this['end_time']; + } + public withOffset(offset: number): ListScheduledTasksRequest { + this['offset'] = offset; + return this; + } + public withLimit(limit: number): ListScheduledTasksRequest { + this['limit'] = limit; + return this; + } +} \ No newline at end of file diff --git a/services/dds/v3/model/ListScheduledTasksResponse.ts b/services/dds/v3/model/ListScheduledTasksResponse.ts new file mode 100644 index 000000000..c1d610112 --- /dev/null +++ b/services/dds/v3/model/ListScheduledTasksResponse.ts @@ -0,0 +1,25 @@ +import { ScheduledTasksRspSchedules } from './ScheduledTasksRspSchedules'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListScheduledTasksResponse extends SdkResponse { + private 'total_count'?: number; + public schedules?: Array; + public constructor() { + super(); + } + public withTotalCount(totalCount: number): ListScheduledTasksResponse { + this['total_count'] = totalCount; + return this; + } + public set totalCount(totalCount: number | undefined) { + this['total_count'] = totalCount; + } + public get totalCount(): number | undefined { + return this['total_count']; + } + public withSchedules(schedules: Array): ListScheduledTasksResponse { + this['schedules'] = schedules; + return this; + } +} \ No newline at end of file diff --git a/services/dds/v3/model/ScheduledTasksRspSchedules.ts b/services/dds/v3/model/ScheduledTasksRspSchedules.ts new file mode 100644 index 000000000..e48996b43 --- /dev/null +++ b/services/dds/v3/model/ScheduledTasksRspSchedules.ts @@ -0,0 +1,105 @@ + + +export class ScheduledTasksRspSchedules { + private 'job_id'?: string; + private 'job_name'?: string; + private 'job_status'?: string; + private 'instance_id'?: string; + private 'instance_name'?: string; + private 'instance_status'?: string; + private 'create_time'?: string; + private 'start_time'?: string; + private 'end_time'?: string; + public constructor() { + } + public withJobId(jobId: string): ScheduledTasksRspSchedules { + this['job_id'] = jobId; + return this; + } + public set jobId(jobId: string | undefined) { + this['job_id'] = jobId; + } + public get jobId(): string | undefined { + return this['job_id']; + } + public withJobName(jobName: string): ScheduledTasksRspSchedules { + this['job_name'] = jobName; + return this; + } + public set jobName(jobName: string | undefined) { + this['job_name'] = jobName; + } + public get jobName(): string | undefined { + return this['job_name']; + } + public withJobStatus(jobStatus: string): ScheduledTasksRspSchedules { + this['job_status'] = jobStatus; + return this; + } + public set jobStatus(jobStatus: string | undefined) { + this['job_status'] = jobStatus; + } + public get jobStatus(): string | undefined { + return this['job_status']; + } + public withInstanceId(instanceId: string): ScheduledTasksRspSchedules { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } + public withInstanceName(instanceName: string): ScheduledTasksRspSchedules { + this['instance_name'] = instanceName; + return this; + } + public set instanceName(instanceName: string | undefined) { + this['instance_name'] = instanceName; + } + public get instanceName(): string | undefined { + return this['instance_name']; + } + public withInstanceStatus(instanceStatus: string): ScheduledTasksRspSchedules { + this['instance_status'] = instanceStatus; + return this; + } + public set instanceStatus(instanceStatus: string | undefined) { + this['instance_status'] = instanceStatus; + } + public get instanceStatus(): string | undefined { + return this['instance_status']; + } + public withCreateTime(createTime: string): ScheduledTasksRspSchedules { + this['create_time'] = createTime; + return this; + } + public set createTime(createTime: string | undefined) { + this['create_time'] = createTime; + } + public get createTime(): string | undefined { + return this['create_time']; + } + public withStartTime(startTime: string): ScheduledTasksRspSchedules { + this['start_time'] = startTime; + return this; + } + public set startTime(startTime: string | undefined) { + this['start_time'] = startTime; + } + public get startTime(): string | undefined { + return this['start_time']; + } + public withEndTime(endTime: string): ScheduledTasksRspSchedules { + this['end_time'] = endTime; + return this; + } + public set endTime(endTime: string | undefined) { + this['end_time'] = endTime; + } + public get endTime(): string | undefined { + return this['end_time']; + } +} \ No newline at end of file diff --git a/services/dds/v3/model/SetAutoEnlargePoliciesRequest.ts b/services/dds/v3/model/SetAutoEnlargePoliciesRequest.ts new file mode 100644 index 000000000..6071bc87c --- /dev/null +++ b/services/dds/v3/model/SetAutoEnlargePoliciesRequest.ts @@ -0,0 +1,12 @@ +import { SetAutoEnlargePoliciesRequestBody } from './SetAutoEnlargePoliciesRequestBody'; + + +export class SetAutoEnlargePoliciesRequest { + public body?: SetAutoEnlargePoliciesRequestBody; + public constructor() { + } + public withBody(body: SetAutoEnlargePoliciesRequestBody): SetAutoEnlargePoliciesRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/dds/v3/model/SetAutoEnlargePoliciesRequestBody.ts b/services/dds/v3/model/SetAutoEnlargePoliciesRequestBody.ts new file mode 100644 index 000000000..81e3a4e05 --- /dev/null +++ b/services/dds/v3/model/SetAutoEnlargePoliciesRequestBody.ts @@ -0,0 +1,24 @@ +import { DiskAutoExpansionPolicy } from './DiskAutoExpansionPolicy'; + + +export class SetAutoEnlargePoliciesRequestBody { + private 'switch_option'?: string; + public policies?: Array; + public constructor(policies?: Array) { + this['policies'] = policies; + } + public withSwitchOption(switchOption: string): SetAutoEnlargePoliciesRequestBody { + this['switch_option'] = switchOption; + return this; + } + public set switchOption(switchOption: string | undefined) { + this['switch_option'] = switchOption; + } + public get switchOption(): string | undefined { + return this['switch_option']; + } + public withPolicies(policies: Array): SetAutoEnlargePoliciesRequestBody { + this['policies'] = policies; + return this; + } +} \ No newline at end of file diff --git a/services/dds/v3/model/SetAutoEnlargePoliciesResponse.ts b/services/dds/v3/model/SetAutoEnlargePoliciesResponse.ts new file mode 100644 index 000000000..8c146b0a5 --- /dev/null +++ b/services/dds/v3/model/SetAutoEnlargePoliciesResponse.ts @@ -0,0 +1,8 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class SetAutoEnlargePoliciesResponse extends SdkResponse { + public constructor() { + super(); + } +} \ No newline at end of file diff --git a/services/dds/v3/model/ShowAutoEnlargePolicyRequest.ts b/services/dds/v3/model/ShowAutoEnlargePolicyRequest.ts new file mode 100644 index 000000000..256dc8e5b --- /dev/null +++ b/services/dds/v3/model/ShowAutoEnlargePolicyRequest.ts @@ -0,0 +1,18 @@ + + +export class ShowAutoEnlargePolicyRequest { + private 'instance_id'?: string; + public constructor(instanceId?: string) { + this['instance_id'] = instanceId; + } + public withInstanceId(instanceId: string): ShowAutoEnlargePolicyRequest { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } +} \ No newline at end of file diff --git a/services/dds/v3/model/ShowAutoEnlargePolicyResponse.ts b/services/dds/v3/model/ShowAutoEnlargePolicyResponse.ts new file mode 100644 index 000000000..1a2f530e3 --- /dev/null +++ b/services/dds/v3/model/ShowAutoEnlargePolicyResponse.ts @@ -0,0 +1,25 @@ +import { DiskAutoExpansionPolicy } from './DiskAutoExpansionPolicy'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ShowAutoEnlargePolicyResponse extends SdkResponse { + private 'switch_option'?: string; + public policy?: DiskAutoExpansionPolicy; + public constructor() { + super(); + } + public withSwitchOption(switchOption: string): ShowAutoEnlargePolicyResponse { + this['switch_option'] = switchOption; + return this; + } + public set switchOption(switchOption: string | undefined) { + this['switch_option'] = switchOption; + } + public get switchOption(): string | undefined { + return this['switch_option']; + } + public withPolicy(policy: DiskAutoExpansionPolicy): ShowAutoEnlargePolicyResponse { + this['policy'] = policy; + return this; + } +} \ No newline at end of file diff --git a/services/dds/v3/model/ShowInstanceConfigurationModifyHistoryRequest.ts b/services/dds/v3/model/ShowInstanceConfigurationModifyHistoryRequest.ts new file mode 100644 index 000000000..9e4c10045 --- /dev/null +++ b/services/dds/v3/model/ShowInstanceConfigurationModifyHistoryRequest.ts @@ -0,0 +1,28 @@ + + +export class ShowInstanceConfigurationModifyHistoryRequest { + private 'instance_id'?: string; + public offset?: number; + public limit?: number; + public constructor(instanceId?: string) { + this['instance_id'] = instanceId; + } + public withInstanceId(instanceId: string): ShowInstanceConfigurationModifyHistoryRequest { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } + public withOffset(offset: number): ShowInstanceConfigurationModifyHistoryRequest { + this['offset'] = offset; + return this; + } + public withLimit(limit: number): ShowInstanceConfigurationModifyHistoryRequest { + this['limit'] = limit; + return this; + } +} \ No newline at end of file diff --git a/services/dds/v3/model/ShowInstanceConfigurationModifyHistoryResponse.ts b/services/dds/v3/model/ShowInstanceConfigurationModifyHistoryResponse.ts new file mode 100644 index 000000000..60ee76268 --- /dev/null +++ b/services/dds/v3/model/ShowInstanceConfigurationModifyHistoryResponse.ts @@ -0,0 +1,14 @@ +import { ConfigurationModifyHistoryInfo } from './ConfigurationModifyHistoryInfo'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ShowInstanceConfigurationModifyHistoryResponse extends SdkResponse { + public histories?: Array; + public constructor() { + super(); + } + public withHistories(histories: Array): ShowInstanceConfigurationModifyHistoryResponse { + this['histories'] = histories; + return this; + } +} \ No newline at end of file diff --git a/services/dds/v3/model/UpgradeResult.ts b/services/dds/v3/model/UpgradeResult.ts new file mode 100644 index 000000000..42b0f4a22 --- /dev/null +++ b/services/dds/v3/model/UpgradeResult.ts @@ -0,0 +1,51 @@ + + +export class UpgradeResult { + private 'job_id'?: string; + private 'instance_id'?: string; + private 'error_code'?: string; + private 'error_message'?: string; + public constructor(instanceId?: string) { + this['instance_id'] = instanceId; + } + public withJobId(jobId: string): UpgradeResult { + this['job_id'] = jobId; + return this; + } + public set jobId(jobId: string | undefined) { + this['job_id'] = jobId; + } + public get jobId(): string | undefined { + return this['job_id']; + } + public withInstanceId(instanceId: string): UpgradeResult { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } + public withErrorCode(errorCode: string): UpgradeResult { + this['error_code'] = errorCode; + return this; + } + public set errorCode(errorCode: string | undefined) { + this['error_code'] = errorCode; + } + public get errorCode(): string | undefined { + return this['error_code']; + } + public withErrorMessage(errorMessage: string): UpgradeResult { + this['error_message'] = errorMessage; + return this; + } + public set errorMessage(errorMessage: string | undefined) { + this['error_message'] = errorMessage; + } + public get errorMessage(): string | undefined { + return this['error_message']; + } +} \ No newline at end of file diff --git a/services/dds/v3/model/ValidateConfigurationNameRequest.ts b/services/dds/v3/model/ValidateConfigurationNameRequest.ts new file mode 100644 index 000000000..e5f3e4cf0 --- /dev/null +++ b/services/dds/v3/model/ValidateConfigurationNameRequest.ts @@ -0,0 +1,12 @@ + + +export class ValidateConfigurationNameRequest { + public name?: string; + public constructor(name?: string) { + this['name'] = name; + } + public withName(name: string): ValidateConfigurationNameRequest { + this['name'] = name; + return this; + } +} \ No newline at end of file diff --git a/services/dds/v3/model/ValidateConfigurationNameResponse.ts b/services/dds/v3/model/ValidateConfigurationNameResponse.ts new file mode 100644 index 000000000..f0a02eb66 --- /dev/null +++ b/services/dds/v3/model/ValidateConfigurationNameResponse.ts @@ -0,0 +1,19 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ValidateConfigurationNameResponse extends SdkResponse { + private 'is_existed'?: boolean; + public constructor() { + super(); + } + public withIsExisted(isExisted: boolean): ValidateConfigurationNameResponse { + this['is_existed'] = isExisted; + return this; + } + public set isExisted(isExisted: boolean | undefined) { + this['is_existed'] = isExisted; + } + public get isExisted(): boolean | undefined { + return this['is_existed']; + } +} \ No newline at end of file diff --git a/services/dds/v3/public-api.ts b/services/dds/v3/public-api.ts index b8b504cc5..28e595634 100644 --- a/services/dds/v3/public-api.ts +++ b/services/dds/v3/public-api.ts @@ -24,11 +24,19 @@ export * from './model/BackupPolicyItem'; export * from './model/BackupStrategy'; export * from './model/BackupStrategyForItemResponse'; export * from './model/BalancerActiveWindow'; +export * from './model/BatchDeleteBackupRequest'; +export * from './model/BatchDeleteBackupRequestBody'; +export * from './model/BatchDeleteBackupResponse'; export * from './model/BatchOperateInstanceTagRequestBody'; export * from './model/BatchTagActionRequest'; export * from './model/BatchTagActionResponse'; +export * from './model/BatchUpgradeDatabaseVersionRequest'; +export * from './model/BatchUpgradeDatabaseVersionRequestBody'; +export * from './model/BatchUpgradeDatabaseVersionResponse'; export * from './model/CancelEipRequest'; export * from './model/CancelEipResponse'; +export * from './model/CancelScheduledTaskRequest'; +export * from './model/CancelScheduledTaskResponse'; export * from './model/CertInfo'; export * from './model/ChangeOpsWindowRequest'; export * from './model/ChangeOpsWindowResponse'; @@ -42,6 +50,7 @@ export * from './model/CheckWeakPasswordResponse'; export * from './model/ClientNetworkRequestBody'; export * from './model/CompareConfigurationRequest'; export * from './model/CompareConfigurationResponse'; +export * from './model/ConfigurationModifyHistoryInfo'; export * from './model/ConfigurationParametersResult'; export * from './model/CopyConfigurationRequest'; export * from './model/CopyConfigurationRequestBody'; @@ -104,6 +113,7 @@ export * from './model/DeleteSessionRequestBody'; export * from './model/DeleteSessionResponse'; export * from './model/DiffConfigurationRequest'; export * from './model/DiffDetails'; +export * from './model/DiskAutoExpansionPolicy'; export * from './model/DiskVolumes'; export * from './model/DownloadErrorlogRequest'; export * from './model/DownloadErrorlogRequestBody'; @@ -195,6 +205,8 @@ export * from './model/ListRestoreDatabasesResponse'; export * from './model/ListRestoreTimesRequest'; export * from './model/ListRestoreTimesResponse'; export * from './model/ListRestoreTimesResponseBodyRestoreTime'; +export * from './model/ListScheduledTasksRequest'; +export * from './model/ListScheduledTasksResponse'; export * from './model/ListSessionsRequest'; export * from './model/ListSessionsResponse'; export * from './model/ListSlowLogsRequest'; @@ -257,9 +269,13 @@ export * from './model/RestoreNewInstanceRequestBody'; export * from './model/RestoreNewInstanceResponse'; export * from './model/RestorePoint'; export * from './model/RolesOption'; +export * from './model/ScheduledTasksRspSchedules'; export * from './model/SetAuditlogPolicyRequest'; export * from './model/SetAuditlogPolicyRequestBody'; export * from './model/SetAuditlogPolicyResponse'; +export * from './model/SetAutoEnlargePoliciesRequest'; +export * from './model/SetAutoEnlargePoliciesRequestBody'; +export * from './model/SetAutoEnlargePoliciesResponse'; export * from './model/SetBackupPolicyRequest'; export * from './model/SetBackupPolicyRequestBody'; export * from './model/SetBackupPolicyResponse'; @@ -273,6 +289,8 @@ export * from './model/ShowApiVersionRequest'; export * from './model/ShowApiVersionResponse'; export * from './model/ShowAuditlogPolicyRequest'; export * from './model/ShowAuditlogPolicyResponse'; +export * from './model/ShowAutoEnlargePolicyRequest'; +export * from './model/ShowAutoEnlargePolicyResponse'; export * from './model/ShowBackupDownloadLinkRequest'; export * from './model/ShowBackupDownloadLinkResponse'; export * from './model/ShowBackupPolicyRequest'; @@ -291,6 +309,8 @@ export * from './model/ShowDiskUsageRequest'; export * from './model/ShowDiskUsageResponse'; export * from './model/ShowEntityConfigurationRequest'; export * from './model/ShowEntityConfigurationResponse'; +export * from './model/ShowInstanceConfigurationModifyHistoryRequest'; +export * from './model/ShowInstanceConfigurationModifyHistoryResponse'; export * from './model/ShowJobDetailRequest'; export * from './model/ShowJobDetailResponse'; export * from './model/ShowKillOpRuleRuleListRequest'; @@ -370,6 +390,9 @@ export * from './model/UpdateSecurityGroupResponse'; export * from './model/UpgradeDatabaseVersionRequest'; export * from './model/UpgradeDatabaseVersionRequestBody'; export * from './model/UpgradeDatabaseVersionResponse'; +export * from './model/UpgradeResult'; +export * from './model/ValidateConfigurationNameRequest'; +export * from './model/ValidateConfigurationNameResponse'; export * from './model/Volume'; export * from './model/WeakPasswordCheckRequestBody'; export * from './DdsRegion'; diff --git a/services/dws/v2/DwsClient.ts b/services/dws/v2/DwsClient.ts index 58af0bd28..03948eae8 100644 --- a/services/dws/v2/DwsClient.ts +++ b/services/dws/v2/DwsClient.ts @@ -437,12 +437,16 @@ import { SnapshotRegion } from './model/SnapshotRegion'; import { SnapshotResp } from './model/SnapshotResp'; import { Snapshots } from './model/Snapshots'; import { SnapshotsStatistic } from './model/SnapshotsStatistic'; +import { StartClusterRequest } from './model/StartClusterRequest'; +import { StartClusterResponse } from './model/StartClusterResponse'; import { StartDisasterRecoveryRequest } from './model/StartDisasterRecoveryRequest'; import { StartDisasterRecoveryResponse } from './model/StartDisasterRecoveryResponse'; import { StartWorkloadPlanRequest } from './model/StartWorkloadPlanRequest'; import { StartWorkloadPlanResponse } from './model/StartWorkloadPlanResponse'; import { Statistic } from './model/Statistic'; import { StatusStatistics } from './model/StatusStatistics'; +import { StopClusterRequest } from './model/StopClusterRequest'; +import { StopClusterResponse } from './model/StopClusterResponse'; import { StopRedistributionRequest } from './model/StopRedistributionRequest'; import { StopRedistributionResponse } from './model/StopRedistributionResponse'; import { StopWorkloadPlanRequest } from './model/StopWorkloadPlanRequest'; @@ -3340,6 +3344,25 @@ export class DwsClient { return this.hcClient.sendRequest(options); } + /** + * 集群管理-启动集群 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 启动集群 + * @param {string} clusterId 集群ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public startCluster(startClusterRequest?: StartClusterRequest): Promise { + const options = ParamCreater().startCluster(startClusterRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 该接口用于启动容灾操作。 * 容灾状态为“未启动”、“启动失败”和“已停止”时可以执行启动容灾操作。 @@ -3383,6 +3406,25 @@ export class DwsClient { return this.hcClient.sendRequest(options); } + /** + * 集群管理-停止集群 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 停止集群 + * @param {string} clusterId 集群ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public stopCluster(stopClusterRequest?: StopClusterRequest): Promise { + const options = ParamCreater().stopCluster(stopClusterRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 该接口用于暂停运行状态下的重分布操作,重分布暂停状态可设置重分布优先级,修改重分布并发数等操作。 * 仅支持DWS 2.0集群。 @@ -10206,6 +10248,43 @@ export const ParamCreater = function () { return options; }, + /** + * 集群管理-启动集群 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + startCluster(startClusterRequest?: StartClusterRequest) { + const options = { + method: "POST", + url: "/v1/{project_id}/clusters/{cluster_id}/start", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + let clusterId; + + if (startClusterRequest !== null && startClusterRequest !== undefined) { + if (startClusterRequest instanceof StartClusterRequest) { + clusterId = startClusterRequest.clusterId; + } else { + clusterId = startClusterRequest['cluster_id']; + } + } + + + if (clusterId === null || clusterId === undefined) { + throw new RequiredError('clusterId','Required parameter clusterId was null or undefined when calling startCluster.'); + } + + options.pathParams = { 'cluster_id': clusterId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 该接口用于启动容灾操作。 * 容灾状态为“未启动”、“启动失败”和“已停止”时可以执行启动容灾操作。 @@ -10291,6 +10370,43 @@ export const ParamCreater = function () { return options; }, + /** + * 集群管理-停止集群 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + stopCluster(stopClusterRequest?: StopClusterRequest) { + const options = { + method: "POST", + url: "/v1/{project_id}/clusters/{cluster_id}/stop", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + let clusterId; + + if (stopClusterRequest !== null && stopClusterRequest !== undefined) { + if (stopClusterRequest instanceof StopClusterRequest) { + clusterId = stopClusterRequest.clusterId; + } else { + clusterId = stopClusterRequest['cluster_id']; + } + } + + + if (clusterId === null || clusterId === undefined) { + throw new RequiredError('clusterId','Required parameter clusterId was null or undefined when calling stopCluster.'); + } + + options.pathParams = { 'cluster_id': clusterId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 该接口用于暂停运行状态下的重分布操作,重分布暂停状态可设置重分布优先级,修改重分布并发数等操作。 * 仅支持DWS 2.0集群。 diff --git a/services/dws/v2/model/StartClusterRequest.ts b/services/dws/v2/model/StartClusterRequest.ts new file mode 100644 index 000000000..406b0989a --- /dev/null +++ b/services/dws/v2/model/StartClusterRequest.ts @@ -0,0 +1,18 @@ + + +export class StartClusterRequest { + private 'cluster_id'?: string; + public constructor(clusterId?: string) { + this['cluster_id'] = clusterId; + } + public withClusterId(clusterId: string): StartClusterRequest { + this['cluster_id'] = clusterId; + return this; + } + public set clusterId(clusterId: string | undefined) { + this['cluster_id'] = clusterId; + } + public get clusterId(): string | undefined { + return this['cluster_id']; + } +} \ No newline at end of file diff --git a/services/dws/v2/model/StartClusterResponse.ts b/services/dws/v2/model/StartClusterResponse.ts new file mode 100644 index 000000000..7c2ef6f74 --- /dev/null +++ b/services/dws/v2/model/StartClusterResponse.ts @@ -0,0 +1,19 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class StartClusterResponse extends SdkResponse { + private 'job_id'?: string; + public constructor() { + super(); + } + public withJobId(jobId: string): StartClusterResponse { + this['job_id'] = jobId; + return this; + } + public set jobId(jobId: string | undefined) { + this['job_id'] = jobId; + } + public get jobId(): string | undefined { + return this['job_id']; + } +} \ No newline at end of file diff --git a/services/dws/v2/model/StopClusterRequest.ts b/services/dws/v2/model/StopClusterRequest.ts new file mode 100644 index 000000000..c64816774 --- /dev/null +++ b/services/dws/v2/model/StopClusterRequest.ts @@ -0,0 +1,18 @@ + + +export class StopClusterRequest { + private 'cluster_id'?: string; + public constructor(clusterId?: string) { + this['cluster_id'] = clusterId; + } + public withClusterId(clusterId: string): StopClusterRequest { + this['cluster_id'] = clusterId; + return this; + } + public set clusterId(clusterId: string | undefined) { + this['cluster_id'] = clusterId; + } + public get clusterId(): string | undefined { + return this['cluster_id']; + } +} \ No newline at end of file diff --git a/services/moderation/v2/model/TaskSumbitResponseResult.ts b/services/dws/v2/model/StopClusterResponse.ts similarity index 58% rename from services/moderation/v2/model/TaskSumbitResponseResult.ts rename to services/dws/v2/model/StopClusterResponse.ts index 64a2dc9a3..fc7426cc9 100644 --- a/services/moderation/v2/model/TaskSumbitResponseResult.ts +++ b/services/dws/v2/model/StopClusterResponse.ts @@ -1,10 +1,12 @@ +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; -export class TaskSumbitResponseResult { +export class StopClusterResponse extends SdkResponse { private 'job_id'?: string; public constructor() { + super(); } - public withJobId(jobId: string): TaskSumbitResponseResult { + public withJobId(jobId: string): StopClusterResponse { this['job_id'] = jobId; return this; } diff --git a/services/dws/v2/public-api.ts b/services/dws/v2/public-api.ts index 2fffc9530..144c69a8c 100644 --- a/services/dws/v2/public-api.ts +++ b/services/dws/v2/public-api.ts @@ -435,12 +435,16 @@ export * from './model/SnapshotRegion'; export * from './model/SnapshotResp'; export * from './model/Snapshots'; export * from './model/SnapshotsStatistic'; +export * from './model/StartClusterRequest'; +export * from './model/StartClusterResponse'; export * from './model/StartDisasterRecoveryRequest'; export * from './model/StartDisasterRecoveryResponse'; export * from './model/StartWorkloadPlanRequest'; export * from './model/StartWorkloadPlanResponse'; export * from './model/Statistic'; export * from './model/StatusStatistics'; +export * from './model/StopClusterRequest'; +export * from './model/StopClusterResponse'; export * from './model/StopRedistributionRequest'; export * from './model/StopRedistributionResponse'; export * from './model/StopWorkloadPlanRequest'; diff --git a/services/evs/v2/EvsClient.ts b/services/evs/v2/EvsClient.ts index 9eea1d77b..a94fb858e 100644 --- a/services/evs/v2/EvsClient.ts +++ b/services/evs/v2/EvsClient.ts @@ -10,13 +10,9 @@ import { BatchCreateVolumeTagsResponse } from './model/BatchCreateVolumeTagsResp import { BatchDeleteVolumeTagsRequest } from './model/BatchDeleteVolumeTagsRequest'; import { BatchDeleteVolumeTagsRequestBody } from './model/BatchDeleteVolumeTagsRequestBody'; import { BatchDeleteVolumeTagsResponse } from './model/BatchDeleteVolumeTagsResponse'; -import { BssParam2 } from './model/BssParam2'; import { BssParamForCreateVolume } from './model/BssParamForCreateVolume'; import { BssParamForResizeVolume } from './model/BssParamForResizeVolume'; import { BssParamForRetypeVolume } from './model/BssParamForRetypeVolume'; -import { ChangeVolumeChargeModeRequest } from './model/ChangeVolumeChargeModeRequest'; -import { ChangeVolumeChargeModeRequestBody } from './model/ChangeVolumeChargeModeRequestBody'; -import { ChangeVolumeChargeModeResponse } from './model/ChangeVolumeChargeModeResponse'; import { CinderAcceptVolumeTransferOption } from './model/CinderAcceptVolumeTransferOption'; import { CinderAcceptVolumeTransferRequest } from './model/CinderAcceptVolumeTransferRequest'; import { CinderAcceptVolumeTransferRequestBody } from './model/CinderAcceptVolumeTransferRequestBody'; @@ -123,11 +119,6 @@ import { SubJobEntities } from './model/SubJobEntities'; import { Tag } from './model/Tag'; import { TagsForListVolumes } from './model/TagsForListVolumes'; import { Throughput } from './model/Throughput'; -import { UnsubscribePostpaidVolumeRequest } from './model/UnsubscribePostpaidVolumeRequest'; -import { UnsubscribePostpaidVolumeResponse } from './model/UnsubscribePostpaidVolumeResponse'; -import { UnsubscribeVolume } from './model/UnsubscribeVolume'; -import { UnsubscribeVolumeRequestBody } from './model/UnsubscribeVolumeRequestBody'; -import { UnsubscribeVolumeResponseBody } from './model/UnsubscribeVolumeResponseBody'; import { UpdateSnapshotOption } from './model/UpdateSnapshotOption'; import { UpdateSnapshotRequest } from './model/UpdateSnapshotRequest'; import { UpdateSnapshotRequestBody } from './model/UpdateSnapshotRequestBody'; @@ -204,25 +195,6 @@ export class EvsClient { return this.hcClient.sendRequest(options); } - /** - * 将挂载状态下的云硬盘的计费模式有按需转成包周期,且到期时间和挂载的虚拟机保持一致。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @summary 修改云硬盘计费模式 - * @param {ChangeVolumeChargeModeRequestBody} changeVolumeChargeModeRequestBody This is a auto create Body Object - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - public changeVolumeChargeMode(changeVolumeChargeModeRequest?: ChangeVolumeChargeModeRequest): Promise { - const options = ParamCreater().changeVolumeChargeMode(changeVolumeChargeModeRequest); - - // @ts-ignore - options['responseHeaders'] = ['']; - - return this.hcClient.sendRequest(options); - } - /** * 通过云硬盘过户记录ID以及身份认证密钥来接受云硬盘过户。 * @@ -727,27 +699,6 @@ export class EvsClient { return this.hcClient.sendRequest(options); } - /** - * 退订包周期计费模式的云硬盘,有如下约束: - * - 系统盘、启动盘不可使用当前接口退订,必须和弹性云服务器一起退订 - * - 接口的请求body体最多可以传60个云硬盘id - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @summary 退订包周期计费模式的云硬盘 - * @param {UnsubscribeVolumeRequestBody} unsubscribePostpaidVolumeRequestBody 要退订的包周期云硬盘列表 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - public unsubscribePostpaidVolume(unsubscribePostpaidVolumeRequest?: UnsubscribePostpaidVolumeRequest): Promise { - const options = ParamCreater().unsubscribePostpaidVolume(unsubscribePostpaidVolumeRequest); - - // @ts-ignore - options['responseHeaders'] = ['']; - - return this.hcClient.sendRequest(options); - } - /** * 更新云硬盘快照。支持企业项目授权功能。 * @@ -924,44 +875,6 @@ export const ParamCreater = function () { return options; }, - /** - * 将挂载状态下的云硬盘的计费模式有按需转成包周期,且到期时间和挂载的虚拟机保持一致。 - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - changeVolumeChargeMode(changeVolumeChargeModeRequest?: ChangeVolumeChargeModeRequest) { - const options = { - method: "POST", - url: "/v2/{project_id}/cloudvolumes/change-charge-mode", - contentType: "application/json;charset=UTF-8", - queryParams: {}, - pathParams: {}, - headers: {}, - data: {} - }; - const localVarHeaderParameter = {} as any; - - let body: any; - - if (changeVolumeChargeModeRequest !== null && changeVolumeChargeModeRequest !== undefined) { - if (changeVolumeChargeModeRequest instanceof ChangeVolumeChargeModeRequest) { - body = changeVolumeChargeModeRequest.body - } else { - body = changeVolumeChargeModeRequest['body']; - } - } - - - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); - } - localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; - - options.data = body !== undefined ? body : {}; - options.headers = localVarHeaderParameter; - return options; - }, - /** * 通过云硬盘过户记录ID以及身份认证密钥来接受云硬盘过户。 * @@ -2075,46 +1988,6 @@ export const ParamCreater = function () { return options; }, - /** - * 退订包周期计费模式的云硬盘,有如下约束: - * - 系统盘、启动盘不可使用当前接口退订,必须和弹性云服务器一起退订 - * - 接口的请求body体最多可以传60个云硬盘id - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - unsubscribePostpaidVolume(unsubscribePostpaidVolumeRequest?: UnsubscribePostpaidVolumeRequest) { - const options = { - method: "POST", - url: "/v2/{project_id}/cloudvolumes/unsubscribe", - contentType: "application/json;charset=UTF-8", - queryParams: {}, - pathParams: {}, - headers: {}, - data: {} - }; - const localVarHeaderParameter = {} as any; - - let body: any; - - if (unsubscribePostpaidVolumeRequest !== null && unsubscribePostpaidVolumeRequest !== undefined) { - if (unsubscribePostpaidVolumeRequest instanceof UnsubscribePostpaidVolumeRequest) { - body = unsubscribePostpaidVolumeRequest.body - } else { - body = unsubscribePostpaidVolumeRequest['body']; - } - } - - - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); - } - localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; - - options.data = body !== undefined ? body : {}; - options.headers = localVarHeaderParameter; - return options; - }, - /** * 更新云硬盘快照。支持企业项目授权功能。 * diff --git a/services/evs/v2/model/BssParam2.ts b/services/evs/v2/model/BssParam2.ts deleted file mode 100644 index 280208ebc..000000000 --- a/services/evs/v2/model/BssParam2.ts +++ /dev/null @@ -1,17 +0,0 @@ - - -export class BssParam2 { - private 'is_auto_pay'?: boolean; - public constructor() { - } - public withIsAutoPay(isAutoPay: boolean): BssParam2 { - this['is_auto_pay'] = isAutoPay; - return this; - } - public set isAutoPay(isAutoPay: boolean | undefined) { - this['is_auto_pay'] = isAutoPay; - } - public get isAutoPay(): boolean | undefined { - return this['is_auto_pay']; - } -} \ No newline at end of file diff --git a/services/evs/v2/model/ChangeVolumeChargeModeRequest.ts b/services/evs/v2/model/ChangeVolumeChargeModeRequest.ts deleted file mode 100644 index 61925a0d2..000000000 --- a/services/evs/v2/model/ChangeVolumeChargeModeRequest.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ChangeVolumeChargeModeRequestBody } from './ChangeVolumeChargeModeRequestBody'; - - -export class ChangeVolumeChargeModeRequest { - public body?: ChangeVolumeChargeModeRequestBody; - public constructor() { - } - public withBody(body: ChangeVolumeChargeModeRequestBody): ChangeVolumeChargeModeRequest { - this['body'] = body; - return this; - } -} \ No newline at end of file diff --git a/services/evs/v2/model/ChangeVolumeChargeModeRequestBody.ts b/services/evs/v2/model/ChangeVolumeChargeModeRequestBody.ts deleted file mode 100644 index 2fc906796..000000000 --- a/services/evs/v2/model/ChangeVolumeChargeModeRequestBody.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { BssParam2 } from './BssParam2'; - - -export class ChangeVolumeChargeModeRequestBody { - private 'volume_ids'?: Array; - private 'server_id'?: string; - private 'bss_param'?: BssParam2; - public constructor(volumeIds?: Array) { - this['volume_ids'] = volumeIds; - } - public withVolumeIds(volumeIds: Array): ChangeVolumeChargeModeRequestBody { - this['volume_ids'] = volumeIds; - return this; - } - public set volumeIds(volumeIds: Array | undefined) { - this['volume_ids'] = volumeIds; - } - public get volumeIds(): Array | undefined { - return this['volume_ids']; - } - public withServerId(serverId: string): ChangeVolumeChargeModeRequestBody { - this['server_id'] = serverId; - return this; - } - public set serverId(serverId: string | undefined) { - this['server_id'] = serverId; - } - public get serverId(): string | undefined { - return this['server_id']; - } - public withBssParam(bssParam: BssParam2): ChangeVolumeChargeModeRequestBody { - this['bss_param'] = bssParam; - return this; - } - public set bssParam(bssParam: BssParam2 | undefined) { - this['bss_param'] = bssParam; - } - public get bssParam(): BssParam2 | undefined { - return this['bss_param']; - } -} \ No newline at end of file diff --git a/services/evs/v2/model/RetypeVolume.ts b/services/evs/v2/model/RetypeVolume.ts index 99b5a2376..901b057a2 100644 --- a/services/evs/v2/model/RetypeVolume.ts +++ b/services/evs/v2/model/RetypeVolume.ts @@ -2,6 +2,8 @@ export class RetypeVolume { private 'new_type'?: string; + public iops?: number; + public throughput?: number; public constructor(newType?: string) { this['new_type'] = newType; } @@ -15,4 +17,12 @@ export class RetypeVolume { public get newType(): string | undefined { return this['new_type']; } + public withIops(iops: number): RetypeVolume { + this['iops'] = iops; + return this; + } + public withThroughput(throughput: number): RetypeVolume { + this['throughput'] = throughput; + return this; + } } \ No newline at end of file diff --git a/services/evs/v2/model/UnsubscribePostpaidVolumeRequest.ts b/services/evs/v2/model/UnsubscribePostpaidVolumeRequest.ts deleted file mode 100644 index 4394adacd..000000000 --- a/services/evs/v2/model/UnsubscribePostpaidVolumeRequest.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { UnsubscribeVolumeRequestBody } from './UnsubscribeVolumeRequestBody'; - - -export class UnsubscribePostpaidVolumeRequest { - public body?: UnsubscribeVolumeRequestBody; - public constructor() { - } - public withBody(body: UnsubscribeVolumeRequestBody): UnsubscribePostpaidVolumeRequest { - this['body'] = body; - return this; - } -} \ No newline at end of file diff --git a/services/evs/v2/model/UnsubscribePostpaidVolumeResponse.ts b/services/evs/v2/model/UnsubscribePostpaidVolumeResponse.ts deleted file mode 100644 index 141458498..000000000 --- a/services/evs/v2/model/UnsubscribePostpaidVolumeResponse.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { UnsubscribeVolumeResponseBody } from './UnsubscribeVolumeResponseBody'; - -import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; - -export class UnsubscribePostpaidVolumeResponse extends SdkResponse { - public body?: Array; - public constructor() { - super(); - } - public withBody(body: Array): UnsubscribePostpaidVolumeResponse { - this['body'] = body; - return this; - } -} \ No newline at end of file diff --git a/services/evs/v2/model/UnsubscribeVolume.ts b/services/evs/v2/model/UnsubscribeVolume.ts deleted file mode 100644 index e40bccd66..000000000 --- a/services/evs/v2/model/UnsubscribeVolume.ts +++ /dev/null @@ -1,46 +0,0 @@ - - -export class UnsubscribeVolume { - private 'volume_id'?: string; - private 'order_id'?: string; - public result?: string; - private 'fail_reason'?: string; - public constructor(volumeId?: string, result?: string) { - this['volume_id'] = volumeId; - this['result'] = result; - } - public withVolumeId(volumeId: string): UnsubscribeVolume { - this['volume_id'] = volumeId; - return this; - } - public set volumeId(volumeId: string | undefined) { - this['volume_id'] = volumeId; - } - public get volumeId(): string | undefined { - return this['volume_id']; - } - public withOrderId(orderId: string): UnsubscribeVolume { - this['order_id'] = orderId; - return this; - } - public set orderId(orderId: string | undefined) { - this['order_id'] = orderId; - } - public get orderId(): string | undefined { - return this['order_id']; - } - public withResult(result: string): UnsubscribeVolume { - this['result'] = result; - return this; - } - public withFailReason(failReason: string): UnsubscribeVolume { - this['fail_reason'] = failReason; - return this; - } - public set failReason(failReason: string | undefined) { - this['fail_reason'] = failReason; - } - public get failReason(): string | undefined { - return this['fail_reason']; - } -} \ No newline at end of file diff --git a/services/evs/v2/model/UnsubscribeVolumeRequestBody.ts b/services/evs/v2/model/UnsubscribeVolumeRequestBody.ts deleted file mode 100644 index 62fb7a377..000000000 --- a/services/evs/v2/model/UnsubscribeVolumeRequestBody.ts +++ /dev/null @@ -1,18 +0,0 @@ - - -export class UnsubscribeVolumeRequestBody { - private 'volume_ids'?: Array; - public constructor(volumeIds?: Array) { - this['volume_ids'] = volumeIds; - } - public withVolumeIds(volumeIds: Array): UnsubscribeVolumeRequestBody { - this['volume_ids'] = volumeIds; - return this; - } - public set volumeIds(volumeIds: Array | undefined) { - this['volume_ids'] = volumeIds; - } - public get volumeIds(): Array | undefined { - return this['volume_ids']; - } -} \ No newline at end of file diff --git a/services/evs/v2/model/UnsubscribeVolumeResponseBody.ts b/services/evs/v2/model/UnsubscribeVolumeResponseBody.ts deleted file mode 100644 index ea2134ae3..000000000 --- a/services/evs/v2/model/UnsubscribeVolumeResponseBody.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { UnsubscribeVolume } from './UnsubscribeVolume'; - - -export class UnsubscribeVolumeResponseBody { - public results?: Array; - public constructor(results?: Array) { - this['results'] = results; - } - public withResults(results: Array): UnsubscribeVolumeResponseBody { - this['results'] = results; - return this; - } -} \ No newline at end of file diff --git a/services/evs/v2/public-api.ts b/services/evs/v2/public-api.ts index fb6bb9cee..7507119e3 100644 --- a/services/evs/v2/public-api.ts +++ b/services/evs/v2/public-api.ts @@ -8,13 +8,9 @@ export * from './model/BatchCreateVolumeTagsResponse'; export * from './model/BatchDeleteVolumeTagsRequest'; export * from './model/BatchDeleteVolumeTagsRequestBody'; export * from './model/BatchDeleteVolumeTagsResponse'; -export * from './model/BssParam2'; export * from './model/BssParamForCreateVolume'; export * from './model/BssParamForResizeVolume'; export * from './model/BssParamForRetypeVolume'; -export * from './model/ChangeVolumeChargeModeRequest'; -export * from './model/ChangeVolumeChargeModeRequestBody'; -export * from './model/ChangeVolumeChargeModeResponse'; export * from './model/CinderAcceptVolumeTransferOption'; export * from './model/CinderAcceptVolumeTransferRequest'; export * from './model/CinderAcceptVolumeTransferRequestBody'; @@ -121,11 +117,6 @@ export * from './model/SubJobEntities'; export * from './model/Tag'; export * from './model/TagsForListVolumes'; export * from './model/Throughput'; -export * from './model/UnsubscribePostpaidVolumeRequest'; -export * from './model/UnsubscribePostpaidVolumeResponse'; -export * from './model/UnsubscribeVolume'; -export * from './model/UnsubscribeVolumeRequestBody'; -export * from './model/UnsubscribeVolumeResponseBody'; export * from './model/UpdateSnapshotOption'; export * from './model/UpdateSnapshotRequest'; export * from './model/UpdateSnapshotRequestBody'; diff --git a/services/functiongraph/v2/model/TriggerEventDataRequestBody.ts b/services/functiongraph/v2/model/TriggerEventDataRequestBody.ts index 1fc60f2f6..aedab5f46 100644 --- a/services/functiongraph/v2/model/TriggerEventDataRequestBody.ts +++ b/services/functiongraph/v2/model/TriggerEventDataRequestBody.ts @@ -54,10 +54,12 @@ export class TriggerEventDataRequestBody { private 'Key_encode'?: boolean; public agency?: string; private 'channel_name'?: string; + private 'channel_id'?: string; private 'source_name'?: string; private 'created_time'?: Date; - public status?: string; + public status?: TriggerEventDataRequestBodyStatusEnum | string; private 'trigger_name'?: string; + private 'event_types'?: Array; public constructor() { } public withName(name: string): TriggerEventDataRequestBody { @@ -502,6 +504,16 @@ export class TriggerEventDataRequestBody { public get channelName(): string | undefined { return this['channel_name']; } + public withChannelId(channelId: string): TriggerEventDataRequestBody { + this['channel_id'] = channelId; + return this; + } + public set channelId(channelId: string | undefined) { + this['channel_id'] = channelId; + } + public get channelId(): string | undefined { + return this['channel_id']; + } public withSourceName(sourceName: string): TriggerEventDataRequestBody { this['source_name'] = sourceName; return this; @@ -522,7 +534,7 @@ export class TriggerEventDataRequestBody { public get createdTime(): Date | undefined { return this['created_time']; } - public withStatus(status: string): TriggerEventDataRequestBody { + public withStatus(status: TriggerEventDataRequestBodyStatusEnum | string): TriggerEventDataRequestBody { this['status'] = status; return this; } @@ -536,6 +548,16 @@ export class TriggerEventDataRequestBody { public get triggerName(): string | undefined { return this['trigger_name']; } + public withEventTypes(eventTypes: Array): TriggerEventDataRequestBody { + this['event_types'] = eventTypes; + return this; + } + public set eventTypes(eventTypes: Array | undefined) { + this['event_types'] = eventTypes; + } + public get eventTypes(): Array | undefined { + return this['event_types']; + } } /** @@ -616,3 +638,11 @@ export enum TriggerEventDataRequestBodyIsSerialEnum { TRUE = 'true', FALSE = 'false' } +/** + * @export + * @enum {string} + */ +export enum TriggerEventDataRequestBodyStatusEnum { + ACTIVE = 'ACTIVE', + DISABLE = 'DISABLE' +} diff --git a/services/functiongraph/v2/model/TriggerEventDataResponseBody.ts b/services/functiongraph/v2/model/TriggerEventDataResponseBody.ts index c210192cb..49394adfd 100644 --- a/services/functiongraph/v2/model/TriggerEventDataResponseBody.ts +++ b/services/functiongraph/v2/model/TriggerEventDataResponseBody.ts @@ -59,6 +59,15 @@ export class TriggerEventDataResponseBody { private 'exchange_name'?: string; public vhost?: string; private 'ssl_enable'?: boolean; + private 'Key_encode'?: boolean; + public agency?: string; + private 'channel_name'?: string; + private 'channel_id'?: string; + private 'source_name'?: string; + private 'created_time'?: Date; + public status?: TriggerEventDataResponseBodyStatusEnum | string; + private 'trigger_name'?: string; + private 'event_types'?: Array; public constructor() { } public withName(name: string): TriggerEventDataResponseBody { @@ -547,6 +556,84 @@ export class TriggerEventDataResponseBody { public get sslEnable(): boolean | undefined { return this['ssl_enable']; } + public withKeyEncode(keyEncode: boolean): TriggerEventDataResponseBody { + this['Key_encode'] = keyEncode; + return this; + } + public set keyEncode(keyEncode: boolean | undefined) { + this['Key_encode'] = keyEncode; + } + public get keyEncode(): boolean | undefined { + return this['Key_encode']; + } + public withAgency(agency: string): TriggerEventDataResponseBody { + this['agency'] = agency; + return this; + } + public withChannelName(channelName: string): TriggerEventDataResponseBody { + this['channel_name'] = channelName; + return this; + } + public set channelName(channelName: string | undefined) { + this['channel_name'] = channelName; + } + public get channelName(): string | undefined { + return this['channel_name']; + } + public withChannelId(channelId: string): TriggerEventDataResponseBody { + this['channel_id'] = channelId; + return this; + } + public set channelId(channelId: string | undefined) { + this['channel_id'] = channelId; + } + public get channelId(): string | undefined { + return this['channel_id']; + } + public withSourceName(sourceName: string): TriggerEventDataResponseBody { + this['source_name'] = sourceName; + return this; + } + public set sourceName(sourceName: string | undefined) { + this['source_name'] = sourceName; + } + public get sourceName(): string | undefined { + return this['source_name']; + } + public withCreatedTime(createdTime: Date): TriggerEventDataResponseBody { + this['created_time'] = createdTime; + return this; + } + public set createdTime(createdTime: Date | undefined) { + this['created_time'] = createdTime; + } + public get createdTime(): Date | undefined { + return this['created_time']; + } + public withStatus(status: TriggerEventDataResponseBodyStatusEnum | string): TriggerEventDataResponseBody { + this['status'] = status; + return this; + } + public withTriggerName(triggerName: string): TriggerEventDataResponseBody { + this['trigger_name'] = triggerName; + return this; + } + public set triggerName(triggerName: string | undefined) { + this['trigger_name'] = triggerName; + } + public get triggerName(): string | undefined { + return this['trigger_name']; + } + public withEventTypes(eventTypes: Array): TriggerEventDataResponseBody { + this['event_types'] = eventTypes; + return this; + } + public set eventTypes(eventTypes: Array | undefined) { + this['event_types'] = eventTypes; + } + public get eventTypes(): Array | undefined { + return this['event_types']; + } } /** @@ -627,3 +714,11 @@ export enum TriggerEventDataResponseBodyIsSerialEnum { TRUE = 'true', FALSE = 'false' } +/** + * @export + * @enum {string} + */ +export enum TriggerEventDataResponseBodyStatusEnum { + ACTIVE = 'ACTIVE', + DISABLE = 'DISABLE' +} diff --git a/services/gaussdbfornosql/v3/GaussDBforNoSQLClient.ts b/services/gaussdbfornosql/v3/GaussDBforNoSQLClient.ts index 7e4c3a127..b2c456939 100644 --- a/services/gaussdbfornosql/v3/GaussDBforNoSQLClient.ts +++ b/services/gaussdbfornosql/v3/GaussDBforNoSQLClient.ts @@ -8,6 +8,9 @@ import { ApplicableInstanceRsp } from './model/ApplicableInstanceRsp'; import { ApplyConfigurationRequest } from './model/ApplyConfigurationRequest'; import { ApplyConfigurationRequestBody } from './model/ApplyConfigurationRequestBody'; import { ApplyConfigurationResponse } from './model/ApplyConfigurationResponse'; +import { ApplyConfigurationToInstancesRequest } from './model/ApplyConfigurationToInstancesRequest'; +import { ApplyConfigurationToInstancesRequestBody } from './model/ApplyConfigurationToInstancesRequestBody'; +import { ApplyConfigurationToInstancesResponse } from './model/ApplyConfigurationToInstancesResponse'; import { ApplyHistoryRsp } from './model/ApplyHistoryRsp'; import { AvailabilityZoneDetail } from './model/AvailabilityZoneDetail'; import { Backup } from './model/Backup'; @@ -22,6 +25,8 @@ import { BatchUpgradeDatabaseVersionRequest } from './model/BatchUpgradeDatabase import { BatchUpgradeDatabaseVersionRequestBody } from './model/BatchUpgradeDatabaseVersionRequestBody'; import { BatchUpgradeDatabaseVersionResponse } from './model/BatchUpgradeDatabaseVersionResponse'; import { BigKeysInfoResponseBody } from './model/BigKeysInfoResponseBody'; +import { CancelInstanceScheduleWindowRequest } from './model/CancelInstanceScheduleWindowRequest'; +import { CancelInstanceScheduleWindowResponse } from './model/CancelInstanceScheduleWindowResponse'; import { CassandraSlowLogDetail } from './model/CassandraSlowLogDetail'; import { ChargeInfoOption } from './model/ChargeInfoOption'; import { ChargeInfoResult } from './model/ChargeInfoResult'; @@ -52,6 +57,12 @@ import { CreateConfigurationRequest } from './model/CreateConfigurationRequest'; import { CreateConfigurationRequestBody } from './model/CreateConfigurationRequestBody'; import { CreateConfigurationResponse } from './model/CreateConfigurationResponse'; import { CreateConfigurationResult } from './model/CreateConfigurationResult'; +import { CreateDbCacheMappingRequest } from './model/CreateDbCacheMappingRequest'; +import { CreateDbCacheMappingRequestBody } from './model/CreateDbCacheMappingRequestBody'; +import { CreateDbCacheMappingResponse } from './model/CreateDbCacheMappingResponse'; +import { CreateDbCacheRuleRequest } from './model/CreateDbCacheRuleRequest'; +import { CreateDbCacheRuleRequestBody } from './model/CreateDbCacheRuleRequestBody'; +import { CreateDbCacheRuleResponse } from './model/CreateDbCacheRuleResponse'; import { CreateDbUserRequest } from './model/CreateDbUserRequest'; import { CreateDbUserResponse } from './model/CreateDbUserResponse'; import { CreateDisasterRecoveryRequest } from './model/CreateDisasterRecoveryRequest'; @@ -70,6 +81,12 @@ import { DeleteBackupRequest } from './model/DeleteBackupRequest'; import { DeleteBackupResponse } from './model/DeleteBackupResponse'; import { DeleteConfigurationRequest } from './model/DeleteConfigurationRequest'; import { DeleteConfigurationResponse } from './model/DeleteConfigurationResponse'; +import { DeleteDbCacheMappingRequest } from './model/DeleteDbCacheMappingRequest'; +import { DeleteDbCacheMappingRequestBody } from './model/DeleteDbCacheMappingRequestBody'; +import { DeleteDbCacheMappingResponse } from './model/DeleteDbCacheMappingResponse'; +import { DeleteDbCacheRuleRequest } from './model/DeleteDbCacheRuleRequest'; +import { DeleteDbCacheRuleRequestBody } from './model/DeleteDbCacheRuleRequestBody'; +import { DeleteDbCacheRuleResponse } from './model/DeleteDbCacheRuleResponse'; import { DeleteDbUserRequest } from './model/DeleteDbUserRequest'; import { DeleteDbUserResponse } from './model/DeleteDbUserResponse'; import { DeleteDisasterRecoveryRequest } from './model/DeleteDisasterRecoveryRequest'; @@ -117,6 +134,10 @@ import { ListConfigurationsResponse } from './model/ListConfigurationsResponse'; import { ListConfigurationsResult } from './model/ListConfigurationsResult'; import { ListDatastoresRequest } from './model/ListDatastoresRequest'; import { ListDatastoresResponse } from './model/ListDatastoresResponse'; +import { ListDbCacheMappingsRequest } from './model/ListDbCacheMappingsRequest'; +import { ListDbCacheMappingsResponse } from './model/ListDbCacheMappingsResponse'; +import { ListDbCacheRulesRequest } from './model/ListDbCacheRulesRequest'; +import { ListDbCacheRulesResponse } from './model/ListDbCacheRulesResponse'; import { ListDbUsersRequest } from './model/ListDbUsersRequest'; import { ListDbUsersResponse } from './model/ListDbUsersResponse'; import { ListDedicatedResourceResult } from './model/ListDedicatedResourceResult'; @@ -134,6 +155,8 @@ import { ListInfluxdbSlowLogsRequestBody } from './model/ListInfluxdbSlowLogsReq import { ListInfluxdbSlowLogsResponse } from './model/ListInfluxdbSlowLogsResponse'; import { ListInstanceDatabasesRequest } from './model/ListInstanceDatabasesRequest'; import { ListInstanceDatabasesResponse } from './model/ListInstanceDatabasesResponse'; +import { ListInstanceMaintenanceWindowRequest } from './model/ListInstanceMaintenanceWindowRequest'; +import { ListInstanceMaintenanceWindowResponse } from './model/ListInstanceMaintenanceWindowResponse'; import { ListInstanceTagsRequest } from './model/ListInstanceTagsRequest'; import { ListInstanceTagsResponse } from './model/ListInstanceTagsResponse'; import { ListInstanceTagsResult } from './model/ListInstanceTagsResult'; @@ -165,6 +188,8 @@ import { ListMongodbErrorLogsResponse } from './model/ListMongodbErrorLogsRespon import { ListMongodbSlowLogsRequest } from './model/ListMongodbSlowLogsRequest'; import { ListMongodbSlowLogsRequestBody } from './model/ListMongodbSlowLogsRequestBody'; import { ListMongodbSlowLogsResponse } from './model/ListMongodbSlowLogsResponse'; +import { ListNosqlTaskListRequest } from './model/ListNosqlTaskListRequest'; +import { ListNosqlTaskListResponse } from './model/ListNosqlTaskListResponse'; import { ListProjectTagsRequest } from './model/ListProjectTagsRequest'; import { ListProjectTagsResponse } from './model/ListProjectTagsResponse'; import { ListRecycleInstancesRequest } from './model/ListRecycleInstancesRequest'; @@ -186,6 +211,9 @@ import { ModifyDbUserPrivilegeRequest } from './model/ModifyDbUserPrivilegeReque import { ModifyDbUserPrivilegeResponse } from './model/ModifyDbUserPrivilegeResponse'; import { ModifyEpsQuotasRequest } from './model/ModifyEpsQuotasRequest'; import { ModifyEpsQuotasResponse } from './model/ModifyEpsQuotasResponse'; +import { ModifyInstanceMaintenanceWindowRequest } from './model/ModifyInstanceMaintenanceWindowRequest'; +import { ModifyInstanceMaintenanceWindowResponse } from './model/ModifyInstanceMaintenanceWindowResponse'; +import { ModifyInstanceOpsWindowV3Req } from './model/ModifyInstanceOpsWindowV3Req'; import { ModifyPortRequest } from './model/ModifyPortRequest'; import { ModifyPortRequestBody } from './model/ModifyPortRequestBody'; import { ModifyPortResponse } from './model/ModifyPortResponse'; @@ -214,6 +242,8 @@ import { PauseResumeDataSynchronizationRequest } from './model/PauseResumeDataSy import { PauseResumeDataSynchronizationResponse } from './model/PauseResumeDataSynchronizationResponse'; import { PrecheckDisasterRecoveryInstance } from './model/PrecheckDisasterRecoveryInstance'; import { PrecheckDisasterRecoveryOperationBody } from './model/PrecheckDisasterRecoveryOperationBody'; +import { QueryDBCacheMappingResponse } from './model/QueryDBCacheMappingResponse'; +import { QueryDBCacheRuleResponse } from './model/QueryDBCacheRuleResponse'; import { QueryDatabaseTableInfo } from './model/QueryDatabaseTableInfo'; import { QueryInstanceBackupResponseBodyBackups } from './model/QueryInstanceBackupResponseBodyBackups'; import { QueryInstanceBackupResponseBodyDatastore } from './model/QueryInstanceBackupResponseBodyDatastore'; @@ -258,12 +288,16 @@ import { RestoreRequestBody } from './model/RestoreRequestBody'; import { SaveLtsConfigsRequest } from './model/SaveLtsConfigsRequest'; import { SaveLtsConfigsRequestBody } from './model/SaveLtsConfigsRequestBody'; import { SaveLtsConfigsResponse } from './model/SaveLtsConfigsResponse'; +import { ScheduleDetailInfo } from './model/ScheduleDetailInfo'; import { SetAutoEnlargePolicyRequest } from './model/SetAutoEnlargePolicyRequest'; import { SetAutoEnlargePolicyResponse } from './model/SetAutoEnlargePolicyResponse'; import { SetAutoPolicyRequestBody } from './model/SetAutoPolicyRequestBody'; import { SetBackupPolicyRequest } from './model/SetBackupPolicyRequest'; import { SetBackupPolicyRequestBody } from './model/SetBackupPolicyRequestBody'; import { SetBackupPolicyResponse } from './model/SetBackupPolicyResponse'; +import { SetInstanceDataDumpRequest } from './model/SetInstanceDataDumpRequest'; +import { SetInstanceDataDumpRequestBody } from './model/SetInstanceDataDumpRequestBody'; +import { SetInstanceDataDumpResponse } from './model/SetInstanceDataDumpResponse'; import { SetRecyclePolicyRequest } from './model/SetRecyclePolicyRequest'; import { SetRecyclePolicyResponse } from './model/SetRecyclePolicyResponse'; import { ShowAllInstancesBackupsNewRequest } from './model/ShowAllInstancesBackupsNewRequest'; @@ -278,6 +312,8 @@ import { ShowApplyHistoryRequest } from './model/ShowApplyHistoryRequest'; import { ShowApplyHistoryResponse } from './model/ShowApplyHistoryResponse'; import { ShowAutoEnlargePolicyRequest } from './model/ShowAutoEnlargePolicyRequest'; import { ShowAutoEnlargePolicyResponse } from './model/ShowAutoEnlargePolicyResponse'; +import { ShowBackupPoliciesRequest } from './model/ShowBackupPoliciesRequest'; +import { ShowBackupPoliciesResponse } from './model/ShowBackupPoliciesResponse'; import { ShowBackupPolicyRequest } from './model/ShowBackupPolicyRequest'; import { ShowBackupPolicyResponse } from './model/ShowBackupPolicyResponse'; import { ShowBackupPolicyResult } from './model/ShowBackupPolicyResult'; @@ -314,6 +350,8 @@ import { ShowResourcesDetailResponseBody } from './model/ShowResourcesDetailResp import { ShowResourcesListResponseBody } from './model/ShowResourcesListResponseBody'; import { ShowRestorableListRequest } from './model/ShowRestorableListRequest'; import { ShowRestorableListResponse } from './model/ShowRestorableListResponse'; +import { ShowSecondLevelMonitoringStatusRequest } from './model/ShowSecondLevelMonitoringStatusRequest'; +import { ShowSecondLevelMonitoringStatusResponse } from './model/ShowSecondLevelMonitoringStatusResponse'; import { ShowSlowLogDesensitizationRequest } from './model/ShowSlowLogDesensitizationRequest'; import { ShowSlowLogDesensitizationResponse } from './model/ShowSlowLogDesensitizationResponse'; import { ShrinkInstanceNodeRequest } from './model/ShrinkInstanceNodeRequest'; @@ -324,6 +362,9 @@ import { SwitchIpGroupRequest } from './model/SwitchIpGroupRequest'; import { SwitchIpGroupRequestBody } from './model/SwitchIpGroupRequestBody'; import { SwitchIpGroupRequestBodyIpGroups } from './model/SwitchIpGroupRequestBodyIpGroups'; import { SwitchIpGroupResponse } from './model/SwitchIpGroupResponse'; +import { SwitchSecondLevelMonitoringRequest } from './model/SwitchSecondLevelMonitoringRequest'; +import { SwitchSecondLevelMonitoringRequestBody } from './model/SwitchSecondLevelMonitoringRequestBody'; +import { SwitchSecondLevelMonitoringResponse } from './model/SwitchSecondLevelMonitoringResponse'; import { SwitchSlowlogDesensitizationRequest } from './model/SwitchSlowlogDesensitizationRequest'; import { SwitchSlowlogDesensitizationRequestBody } from './model/SwitchSlowlogDesensitizationRequestBody'; import { SwitchSlowlogDesensitizationResponse } from './model/SwitchSlowlogDesensitizationResponse'; @@ -346,11 +387,17 @@ import { UpdateConfigurationResponse } from './model/UpdateConfigurationResponse import { UpdateDatabasesRequest } from './model/UpdateDatabasesRequest'; import { UpdateDatabasesRequestBody } from './model/UpdateDatabasesRequestBody'; import { UpdateDatabasesResponse } from './model/UpdateDatabasesResponse'; +import { UpdateDbCacheRuleRequest } from './model/UpdateDbCacheRuleRequest'; +import { UpdateDbCacheRuleRequestBody } from './model/UpdateDbCacheRuleRequestBody'; +import { UpdateDbCacheRuleResponse } from './model/UpdateDbCacheRuleResponse'; import { UpdateHighRiskCommandsRequest } from './model/UpdateHighRiskCommandsRequest'; import { UpdateHighRiskCommandsResponse } from './model/UpdateHighRiskCommandsResponse'; import { UpdateInstanceConfigurationRequest } from './model/UpdateInstanceConfigurationRequest'; import { UpdateInstanceConfigurationRequestBody } from './model/UpdateInstanceConfigurationRequestBody'; import { UpdateInstanceConfigurationResponse } from './model/UpdateInstanceConfigurationResponse'; +import { UpdateInstanceConfigurationsRequest } from './model/UpdateInstanceConfigurationsRequest'; +import { UpdateInstanceConfigurationsRequestBody } from './model/UpdateInstanceConfigurationsRequestBody'; +import { UpdateInstanceConfigurationsResponse } from './model/UpdateInstanceConfigurationsResponse'; import { UpdateInstanceNameRequest } from './model/UpdateInstanceNameRequest'; import { UpdateInstanceNameRequestBody } from './model/UpdateInstanceNameRequestBody'; import { UpdateInstanceNameResponse } from './model/UpdateInstanceNameResponse'; @@ -400,6 +447,26 @@ export class GaussDBforNoSQLClient { return this.hcClient.sendRequest(options); } + /** + * 将参数模板应用到实例,可以指定一个或多个实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 应用参数模板 + * @param {string} configId 参数模板ID。 + * @param {ApplyConfigurationToInstancesRequestBody} applyConfigurationToInstancesRequestBody 请求体。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public applyConfigurationToInstances(applyConfigurationToInstancesRequest?: ApplyConfigurationToInstancesRequest): Promise { + const options = ParamCreater().applyConfigurationToInstances(applyConfigurationToInstancesRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 批量添加或删除指定数据库实例的标签。 * @@ -439,6 +506,25 @@ export class GaussDBforNoSQLClient { return this.hcClient.sendRequest(options); } + /** + * 取消定时任务 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 取消定时任务 + * @param {string} jobId 任务ID,取值为定时任务列表返回job_id字段。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public cancelInstanceScheduleWindow(cancelInstanceScheduleWindowRequest?: CancelInstanceScheduleWindowRequest): Promise { + const options = ParamCreater().cancelInstanceScheduleWindow(cancelInstanceScheduleWindowRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 校验实例是否可以与指定实例建立/解除容灾关系。若接口返回成功,表示可以与指定实例建立/解除容灾关系。 * 该接口需要对建立/解除容灾关系的两个实例各调用一次,2次调用都响应成功才能进行容灾关系的搭建/解除。 @@ -577,6 +663,44 @@ export class GaussDBforNoSQLClient { return this.hcClient.sendRequest(options); } + /** + * 创建内存加速映射。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 创建内存加速映射 + * @param {CreateDbCacheMappingRequestBody} createDbCacheMappingRequestBody 创建内存加速映射请求体。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public createDbCacheMapping(createDbCacheMappingRequest?: CreateDbCacheMappingRequest): Promise { + const options = ParamCreater().createDbCacheMapping(createDbCacheMappingRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 创建内存加速规则。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 创建内存加速规则 + * @param {CreateDbCacheRuleRequestBody} [createDbCacheRuleRequestBody] 创建内存加速规则请求体。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public createDbCacheRule(createDbCacheRuleRequest?: CreateDbCacheRuleRequest): Promise { + const options = ParamCreater().createDbCacheRule(createDbCacheRuleRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 在Redis实例中创建数据库帐号。 * @@ -674,6 +798,44 @@ export class GaussDBforNoSQLClient { return this.hcClient.sendRequest(options); } + /** + * 解除指定内存加速映射。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 解除内存加速映射 + * @param {DeleteDbCacheMappingRequestBody} deleteDbCacheMappingRequestBody 删除内存加速映射请求体。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public deleteDbCacheMapping(deleteDbCacheMappingRequest?: DeleteDbCacheMappingRequest): Promise { + const options = ParamCreater().deleteDbCacheMapping(deleteDbCacheMappingRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 删除内存加速规则。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 删除内存加速规则 + * @param {DeleteDbCacheRuleRequestBody} [deleteDbCacheRuleRequestBody] 删除内存加速规则请求体。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public deleteDbCacheRule(deleteDbCacheRuleRequest?: DeleteDbCacheRuleRequest): Promise { + const options = ParamCreater().deleteDbCacheRule(deleteDbCacheRuleRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 删除Redis实例的数据库账号。 * @@ -928,6 +1090,57 @@ export class GaussDBforNoSQLClient { return this.hcClient.sendRequest(options); } + /** + * 根据指定条件查询内存加速映射关系列表和详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询内存加速映射列表和详情 + * @param {string} [id] 映射ID,可以调用“查询内存加速映射列表和详情”接口获取。 + * @param {string} [name] 映射名称。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + * @param {string} [sourceInstanceId] 源实例ID。 + * @param {string} [sourceInstanceName] 源实例名称。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + * @param {string} [targetInstanceId] 目标实例ID。 + * @param {string} [targetInstanceName] 目标实例名称。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + * @param {number} [offset] 索引位置,偏移量。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。 取值必须为数字,不能为负数。 + * @param {number} [limit] 查询个数上限值。取值范围:1~100。不传该参数时,默认查询前100条信息。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listDbCacheMappings(listDbCacheMappingsRequest?: ListDbCacheMappingsRequest): Promise { + const options = ParamCreater().listDbCacheMappings(listDbCacheMappingsRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 查询内存加速规则列表和详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询内存加速规则列表和详情 + * @param {string} dbcacheMappingId 内存加速映射ID。 + * @param {string} [ruleId] 内存加速规则ID。 + * @param {string} [ruleName] 内存加速规则名称。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + * @param {string} [sourceDbSchema] 源端数据库名。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + * @param {string} [sourceDbTable] 源端数据表名。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + * @param {string} [offset] 索引位置,偏移量。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。 取值必须为数字,不能为负数。 + * @param {string} [limit] 查询个数上限值。取值范围:1~100。不传该参数时,默认查询前100条信息。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listDbCacheRules(listDbCacheRulesRequest?: ListDbCacheRulesRequest): Promise { + const options = ParamCreater().listDbCacheRules(listDbCacheRulesRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 获取Redis数据库账号列表和详情。 * @@ -1073,6 +1286,24 @@ export class GaussDBforNoSQLClient { return this.hcClient.sendRequest(options); } + /** + * 查询实例可维护时间段 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param {string} instanceId 实例ID。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listInstanceMaintenanceWindow(listInstanceMaintenanceWindowRequest?: ListInstanceMaintenanceWindowRequest): Promise { + const options = ParamCreater().listInstanceMaintenanceWindow(listInstanceMaintenanceWindowRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 查询指定实例的标签信息。 * @@ -1286,6 +1517,31 @@ export class GaussDBforNoSQLClient { return this.hcClient.sendRequest(options); } + /** + * 根据指定条件查询定时任务列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询定时任务列表 + * @param {string} [jobName] 任务名称,默认为空。对应取值如下:  \"REBOOT\":重启实例  \"RESIZE_FLAVOR\":变更实例的CPU和内存规格  \"UPGRADE_DATABASE\":补丁升级 + * @param {string} [jobStatus] 任务执行状态,默认为空。 取值:  值为\"Pending\",表示任务未执行。  值为\"Running\",表示任务正在执行。  值为\"Completed\",表示任务执行成功。  值为\"Failed\",表示任务执行失败。  值为\"Canceled\",表示任务取消执行。 + * @param {string} [instanceId] 实例ID,不传该值默认查所有符合条件的实例。 + * @param {string} [startTime] 任务创建起始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100,不传默认为当前时间前七天。 + * @param {string} [endTime] 任务创建结束时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100,不传默认为当前时间。 + * @param {string} [offset] 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0。 + * @param {string} [limit] 查询记录数。不传该参数时,默认为10,取值范围1-100。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listNosqlTaskList(listNosqlTaskListRequest?: ListNosqlTaskListRequest): Promise { + const options = ParamCreater().listNosqlTaskList(listNosqlTaskListRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 查询指定项目的标签信息。 * @@ -1477,6 +1733,26 @@ export class GaussDBforNoSQLClient { return this.hcClient.sendRequest(options); } + /** + * 设置指定实例可维护时间段。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询实例可维护时间段 + * @param {string} instanceId 实例ID。 + * @param {ModifyInstanceOpsWindowV3Req} modifyInstanceOpsWindowV3Req 请求体。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public modifyInstanceMaintenanceWindow(modifyInstanceMaintenanceWindowRequest?: ModifyInstanceMaintenanceWindowRequest): Promise { + const options = ParamCreater().modifyInstanceMaintenanceWindow(modifyInstanceMaintenanceWindowRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 修改数据库实例的端口。 * @@ -1799,6 +2075,27 @@ export class GaussDBforNoSQLClient { return this.hcClient.sendRequest(options); } + /** + * 开启/关闭实例数据导出。 + * 当前支持将InfluxDB数据转为parquet格式文件然后上传到指定的OBS桶中。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 开启/关闭实例数据导出 + * @param {string} instanceId 实例ID。 + * @param {SetInstanceDataDumpRequestBody} setInstanceDataDumpRequestBody 请求体。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public setInstanceDataDump(setInstanceDataDumpRequest?: SetInstanceDataDumpRequest): Promise { + const options = ParamCreater().setInstanceDataDump(setInstanceDataDumpRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 设置已删除实例保留天数,修改保留天数后删除的实例按照新的天数保留,修改之前已在回收站的实例保留天数不变。 * @@ -1931,6 +2228,25 @@ export class GaussDBforNoSQLClient { return this.hcClient.sendRequest(options); } + /** + * 查询自动备份策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询自动备份策略 + * @param {string} instanceId 实例ID。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public showBackupPolicies(showBackupPoliciesRequest?: ShowBackupPoliciesRequest): Promise { + const options = ParamCreater().showBackupPolicies(showBackupPoliciesRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 查询自动备份策略。 * @@ -2252,6 +2568,25 @@ export class GaussDBforNoSQLClient { return this.hcClient.sendRequest(options); } + /** + * 查询秒级监控配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询秒级监控配置 + * @param {string} instanceId 实例ID。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public showSecondLevelMonitoringStatus(showSecondLevelMonitoringStatusRequest?: ShowSecondLevelMonitoringStatusRequest): Promise { + const options = ParamCreater().showSecondLevelMonitoringStatus(showSecondLevelMonitoringStatusRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 查询慢日志脱敏状态。 * @@ -2311,6 +2646,26 @@ export class GaussDBforNoSQLClient { return this.hcClient.sendRequest(options); } + /** + * 开启或关闭指定实例的5秒级监控。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 开启/关闭秒级监控 + * @param {string} instanceId 实例ID。 + * @param {SwitchSecondLevelMonitoringRequestBody} switchSecondLevelMonitoringRequestBody 请求体。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public switchSecondLevelMonitoring(switchSecondLevelMonitoringRequest?: SwitchSecondLevelMonitoringRequest): Promise { + const options = ParamCreater().switchSecondLevelMonitoring(switchSecondLevelMonitoringRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 设置慢日志脱敏状态 * @@ -2450,6 +2805,25 @@ export class GaussDBforNoSQLClient { return this.hcClient.sendRequest(options); } + /** + * 修改指定内存加速规则。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 修改内存加速规则 + * @param {UpdateDbCacheRuleRequestBody} [updateDbCacheRuleRequestBody] 更新内存加速规则请求体。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public updateDbCacheRule(updateDbCacheRuleRequest?: UpdateDbCacheRuleRequest): Promise { + const options = ParamCreater().updateDbCacheRule(updateDbCacheRuleRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 批量修改高危命令 * @@ -2490,6 +2864,26 @@ export class GaussDBforNoSQLClient { return this.hcClient.sendRequest(options); } + /** + * 修改指定实例的参数。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 修改指定实例的参数 + * @param {string} instanceId 实例ID。 + * @param {UpdateInstanceConfigurationsRequestBody} updateInstanceConfigurationsRequestBody 请求体。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public updateInstanceConfigurations(updateInstanceConfigurationsRequest?: UpdateInstanceConfigurationsRequest): Promise { + const options = ParamCreater().updateInstanceConfigurations(updateInstanceConfigurationsRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 修改实例名称 * @@ -2657,11 +3051,57 @@ export const ParamCreater = function () { }, /** - * 批量添加或删除指定数据库实例的标签。 + * 将参数模板应用到实例,可以指定一个或多个实例。 * * Please refer to HUAWEI cloud API Explorer for details. */ - batchTagAction(batchTagActionRequest?: BatchTagActionRequest) { + applyConfigurationToInstances(applyConfigurationToInstancesRequest?: ApplyConfigurationToInstancesRequest) { + const options = { + method: "PUT", + url: "/v3.1/{project_id}/configurations/{config_id}/apply", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let configId; + + if (applyConfigurationToInstancesRequest !== null && applyConfigurationToInstancesRequest !== undefined) { + if (applyConfigurationToInstancesRequest instanceof ApplyConfigurationToInstancesRequest) { + configId = applyConfigurationToInstancesRequest.configId; + body = applyConfigurationToInstancesRequest.body + } else { + configId = applyConfigurationToInstancesRequest['config_id']; + body = applyConfigurationToInstancesRequest['body']; + } + } + + + if (configId === null || configId === undefined) { + throw new RequiredError('configId','Required parameter configId was null or undefined when calling applyConfigurationToInstances.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.pathParams = { 'config_id': configId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 批量添加或删除指定数据库实例的标签。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + batchTagAction(batchTagActionRequest?: BatchTagActionRequest) { const options = { method: "POST", url: "/v3/{project_id}/instances/{instance_id}/tags/action", @@ -2740,6 +3180,43 @@ export const ParamCreater = function () { return options; }, + /** + * 取消定时任务 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + cancelInstanceScheduleWindow(cancelInstanceScheduleWindowRequest?: CancelInstanceScheduleWindowRequest) { + const options = { + method: "DELETE", + url: "/v3/{project_id}/scheduled-jobs/{job_id}", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + let jobId; + + if (cancelInstanceScheduleWindowRequest !== null && cancelInstanceScheduleWindowRequest !== undefined) { + if (cancelInstanceScheduleWindowRequest instanceof CancelInstanceScheduleWindowRequest) { + jobId = cancelInstanceScheduleWindowRequest.jobId; + } else { + jobId = cancelInstanceScheduleWindowRequest['job_id']; + } + } + + + if (jobId === null || jobId === undefined) { + throw new RequiredError('jobId','Required parameter jobId was null or undefined when calling cancelInstanceScheduleWindow.'); + } + + options.pathParams = { 'job_id': jobId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 校验实例是否可以与指定实例建立/解除容灾关系。若接口返回成功,表示可以与指定实例建立/解除容灾关系。 * 该接口需要对建立/解除容灾关系的两个实例各调用一次,2次调用都响应成功才能进行容灾关系的搭建/解除。 @@ -3039,6 +3516,79 @@ export const ParamCreater = function () { return options; }, + /** + * 创建内存加速映射。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + createDbCacheMapping(createDbCacheMappingRequest?: CreateDbCacheMappingRequest) { + const options = { + method: "POST", + url: "/v3/{project_id}/dbcache/mapping", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + if (createDbCacheMappingRequest !== null && createDbCacheMappingRequest !== undefined) { + if (createDbCacheMappingRequest instanceof CreateDbCacheMappingRequest) { + body = createDbCacheMappingRequest.body + } else { + body = createDbCacheMappingRequest['body']; + } + } + + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 创建内存加速规则。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + createDbCacheRule(createDbCacheRuleRequest?: CreateDbCacheRuleRequest) { + const options = { + method: "POST", + url: "/v3/{project_id}/dbcache/rule", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + if (createDbCacheRuleRequest !== null && createDbCacheRuleRequest !== undefined) { + if (createDbCacheRuleRequest instanceof CreateDbCacheRuleRequest) { + body = createDbCacheRuleRequest.body + } else { + body = createDbCacheRuleRequest['body']; + } + } + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 在Redis实例中创建数据库帐号。 * @@ -3243,6 +3793,79 @@ export const ParamCreater = function () { return options; }, + /** + * 解除指定内存加速映射。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + deleteDbCacheMapping(deleteDbCacheMappingRequest?: DeleteDbCacheMappingRequest) { + const options = { + method: "DELETE", + url: "/v3/{project_id}/dbcache/mapping", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + if (deleteDbCacheMappingRequest !== null && deleteDbCacheMappingRequest !== undefined) { + if (deleteDbCacheMappingRequest instanceof DeleteDbCacheMappingRequest) { + body = deleteDbCacheMappingRequest.body + } else { + body = deleteDbCacheMappingRequest['body']; + } + } + + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 删除内存加速规则。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + deleteDbCacheRule(deleteDbCacheRuleRequest?: DeleteDbCacheRuleRequest) { + const options = { + method: "DELETE", + url: "/v3/{project_id}/dbcache/rule", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + if (deleteDbCacheRuleRequest !== null && deleteDbCacheRuleRequest !== undefined) { + if (deleteDbCacheRuleRequest instanceof DeleteDbCacheRuleRequest) { + body = deleteDbCacheRuleRequest.body + } else { + body = deleteDbCacheRuleRequest['body']; + } + } + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 删除Redis实例的数据库账号。 * @@ -3764,6 +4387,174 @@ export const ParamCreater = function () { return options; }, + /** + * 根据指定条件查询内存加速映射关系列表和详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listDbCacheMappings(listDbCacheMappingsRequest?: ListDbCacheMappingsRequest) { + const options = { + method: "GET", + url: "/v3/{project_id}/dbcache/mappings", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let id; + + let name; + + let sourceInstanceId; + + let sourceInstanceName; + + let targetInstanceId; + + let targetInstanceName; + + let offset; + + let limit; + + if (listDbCacheMappingsRequest !== null && listDbCacheMappingsRequest !== undefined) { + if (listDbCacheMappingsRequest instanceof ListDbCacheMappingsRequest) { + id = listDbCacheMappingsRequest.id; + name = listDbCacheMappingsRequest.name; + sourceInstanceId = listDbCacheMappingsRequest.sourceInstanceId; + sourceInstanceName = listDbCacheMappingsRequest.sourceInstanceName; + targetInstanceId = listDbCacheMappingsRequest.targetInstanceId; + targetInstanceName = listDbCacheMappingsRequest.targetInstanceName; + offset = listDbCacheMappingsRequest.offset; + limit = listDbCacheMappingsRequest.limit; + } else { + id = listDbCacheMappingsRequest['id']; + name = listDbCacheMappingsRequest['name']; + sourceInstanceId = listDbCacheMappingsRequest['source_instance_id']; + sourceInstanceName = listDbCacheMappingsRequest['source_instance_name']; + targetInstanceId = listDbCacheMappingsRequest['target_instance_id']; + targetInstanceName = listDbCacheMappingsRequest['target_instance_name']; + offset = listDbCacheMappingsRequest['offset']; + limit = listDbCacheMappingsRequest['limit']; + } + } + + + if (id !== null && id !== undefined) { + localVarQueryParameter['id'] = id; + } + if (name !== null && name !== undefined) { + localVarQueryParameter['name'] = name; + } + if (sourceInstanceId !== null && sourceInstanceId !== undefined) { + localVarQueryParameter['source_instance_id'] = sourceInstanceId; + } + if (sourceInstanceName !== null && sourceInstanceName !== undefined) { + localVarQueryParameter['source_instance_name'] = sourceInstanceName; + } + if (targetInstanceId !== null && targetInstanceId !== undefined) { + localVarQueryParameter['target_instance_id'] = targetInstanceId; + } + if (targetInstanceName !== null && targetInstanceName !== undefined) { + localVarQueryParameter['target_instance_name'] = targetInstanceName; + } + if (offset !== null && offset !== undefined) { + localVarQueryParameter['offset'] = offset; + } + if (limit !== null && limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询内存加速规则列表和详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listDbCacheRules(listDbCacheRulesRequest?: ListDbCacheRulesRequest) { + const options = { + method: "GET", + url: "/v3/{project_id}/dbcache/rules", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let dbcacheMappingId; + + let ruleId; + + let ruleName; + + let sourceDbSchema; + + let sourceDbTable; + + let offset; + + let limit; + + if (listDbCacheRulesRequest !== null && listDbCacheRulesRequest !== undefined) { + if (listDbCacheRulesRequest instanceof ListDbCacheRulesRequest) { + dbcacheMappingId = listDbCacheRulesRequest.dbcacheMappingId; + ruleId = listDbCacheRulesRequest.ruleId; + ruleName = listDbCacheRulesRequest.ruleName; + sourceDbSchema = listDbCacheRulesRequest.sourceDbSchema; + sourceDbTable = listDbCacheRulesRequest.sourceDbTable; + offset = listDbCacheRulesRequest.offset; + limit = listDbCacheRulesRequest.limit; + } else { + dbcacheMappingId = listDbCacheRulesRequest['dbcache_mapping_id']; + ruleId = listDbCacheRulesRequest['rule_id']; + ruleName = listDbCacheRulesRequest['rule_name']; + sourceDbSchema = listDbCacheRulesRequest['source_db_schema']; + sourceDbTable = listDbCacheRulesRequest['source_db_table']; + offset = listDbCacheRulesRequest['offset']; + limit = listDbCacheRulesRequest['limit']; + } + } + + + if (dbcacheMappingId === null || dbcacheMappingId === undefined) { + throw new RequiredError('dbcacheMappingId','Required parameter dbcacheMappingId was null or undefined when calling listDbCacheRules.'); + } + if (dbcacheMappingId !== null && dbcacheMappingId !== undefined) { + localVarQueryParameter['dbcache_mapping_id'] = dbcacheMappingId; + } + if (ruleId !== null && ruleId !== undefined) { + localVarQueryParameter['rule_id'] = ruleId; + } + if (ruleName !== null && ruleName !== undefined) { + localVarQueryParameter['rule_name'] = ruleName; + } + if (sourceDbSchema !== null && sourceDbSchema !== undefined) { + localVarQueryParameter['source_db_schema'] = sourceDbSchema; + } + if (sourceDbTable !== null && sourceDbTable !== undefined) { + localVarQueryParameter['source_db_table'] = sourceDbTable; + } + if (offset !== null && offset !== undefined) { + localVarQueryParameter['offset'] = offset; + } + if (limit !== null && limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 获取Redis数据库账号列表和详情。 * @@ -4111,6 +4902,43 @@ export const ParamCreater = function () { return options; }, + /** + * 查询实例可维护时间段 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listInstanceMaintenanceWindow(listInstanceMaintenanceWindowRequest?: ListInstanceMaintenanceWindowRequest) { + const options = { + method: "GET", + url: "/v3/{project_id}/instances/{instance_id}/ops-window", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + let instanceId; + + if (listInstanceMaintenanceWindowRequest !== null && listInstanceMaintenanceWindowRequest !== undefined) { + if (listInstanceMaintenanceWindowRequest instanceof ListInstanceMaintenanceWindowRequest) { + instanceId = listInstanceMaintenanceWindowRequest.instanceId; + } else { + instanceId = listInstanceMaintenanceWindowRequest['instance_id']; + } + } + + + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling listInstanceMaintenanceWindow.'); + } + + options.pathParams = { 'instance_id': instanceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 查询指定实例的标签信息。 * @@ -4635,16 +5463,95 @@ export const ParamCreater = function () { } - if (instanceId === null || instanceId === undefined) { - throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling listMongodbSlowLogs.'); + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling listMongodbSlowLogs.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.pathParams = { 'instance_id': instanceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 根据指定条件查询定时任务列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listNosqlTaskList(listNosqlTaskListRequest?: ListNosqlTaskListRequest) { + const options = { + method: "GET", + url: "/v3/{project_id}/scheduled-jobs", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let jobName; + + let jobStatus; + + let instanceId; + + let startTime; + + let endTime; + + let offset; + + let limit; + + if (listNosqlTaskListRequest !== null && listNosqlTaskListRequest !== undefined) { + if (listNosqlTaskListRequest instanceof ListNosqlTaskListRequest) { + jobName = listNosqlTaskListRequest.jobName; + jobStatus = listNosqlTaskListRequest.jobStatus; + instanceId = listNosqlTaskListRequest.instanceId; + startTime = listNosqlTaskListRequest.startTime; + endTime = listNosqlTaskListRequest.endTime; + offset = listNosqlTaskListRequest.offset; + limit = listNosqlTaskListRequest.limit; + } else { + jobName = listNosqlTaskListRequest['job_name']; + jobStatus = listNosqlTaskListRequest['job_status']; + instanceId = listNosqlTaskListRequest['instance_id']; + startTime = listNosqlTaskListRequest['start_time']; + endTime = listNosqlTaskListRequest['end_time']; + offset = listNosqlTaskListRequest['offset']; + limit = listNosqlTaskListRequest['limit']; + } + } + + + if (jobName !== null && jobName !== undefined) { + localVarQueryParameter['job_name'] = jobName; } - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + if (jobStatus !== null && jobStatus !== undefined) { + localVarQueryParameter['job_status'] = jobStatus; + } + if (instanceId !== null && instanceId !== undefined) { + localVarQueryParameter['instance_id'] = instanceId; + } + if (startTime !== null && startTime !== undefined) { + localVarQueryParameter['start_time'] = startTime; + } + if (endTime !== null && endTime !== undefined) { + localVarQueryParameter['end_time'] = endTime; + } + if (offset !== null && offset !== undefined) { + localVarQueryParameter['offset'] = offset; + } + if (limit !== null && limit !== undefined) { + localVarQueryParameter['limit'] = limit; } - localVarHeaderParameter['Content-Type'] = 'application/json'; - options.data = body !== undefined ? body : {}; - options.pathParams = { 'instance_id': instanceId, }; + options.queryParams = localVarQueryParameter; options.headers = localVarHeaderParameter; return options; }, @@ -5140,6 +6047,52 @@ export const ParamCreater = function () { return options; }, + /** + * 设置指定实例可维护时间段。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + modifyInstanceMaintenanceWindow(modifyInstanceMaintenanceWindowRequest?: ModifyInstanceMaintenanceWindowRequest) { + const options = { + method: "PUT", + url: "/v3/{project_id}/instances/{instance_id}/maintenance-window", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let instanceId; + + if (modifyInstanceMaintenanceWindowRequest !== null && modifyInstanceMaintenanceWindowRequest !== undefined) { + if (modifyInstanceMaintenanceWindowRequest instanceof ModifyInstanceMaintenanceWindowRequest) { + instanceId = modifyInstanceMaintenanceWindowRequest.instanceId; + body = modifyInstanceMaintenanceWindowRequest.body + } else { + instanceId = modifyInstanceMaintenanceWindowRequest['instance_id']; + body = modifyInstanceMaintenanceWindowRequest['body']; + } + } + + + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling modifyInstanceMaintenanceWindow.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.pathParams = { 'instance_id': instanceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 修改数据库实例的端口。 * @@ -5860,6 +6813,53 @@ export const ParamCreater = function () { return options; }, + /** + * 开启/关闭实例数据导出。 + * 当前支持将InfluxDB数据转为parquet格式文件然后上传到指定的OBS桶中。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + setInstanceDataDump(setInstanceDataDumpRequest?: SetInstanceDataDumpRequest) { + const options = { + method: "PUT", + url: "/v3/{project_id}/instances/{instance_id}/data-dump", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let instanceId; + + if (setInstanceDataDumpRequest !== null && setInstanceDataDumpRequest !== undefined) { + if (setInstanceDataDumpRequest instanceof SetInstanceDataDumpRequest) { + instanceId = setInstanceDataDumpRequest.instanceId; + body = setInstanceDataDumpRequest.body + } else { + instanceId = setInstanceDataDumpRequest['instance_id']; + body = setInstanceDataDumpRequest['body']; + } + } + + + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling setInstanceDataDump.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.pathParams = { 'instance_id': instanceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 设置已删除实例保留天数,修改保留天数后删除的实例按照新的天数保留,修改之前已在回收站的实例保留天数不变。 * @@ -6223,6 +7223,43 @@ export const ParamCreater = function () { return options; }, + /** + * 查询自动备份策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + showBackupPolicies(showBackupPoliciesRequest?: ShowBackupPoliciesRequest) { + const options = { + method: "GET", + url: "/v3.1/{project_id}/instances/{instance_id}/backups/policy", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + let instanceId; + + if (showBackupPoliciesRequest !== null && showBackupPoliciesRequest !== undefined) { + if (showBackupPoliciesRequest instanceof ShowBackupPoliciesRequest) { + instanceId = showBackupPoliciesRequest.instanceId; + } else { + instanceId = showBackupPoliciesRequest['instance_id']; + } + } + + + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling showBackupPolicies.'); + } + + options.pathParams = { 'instance_id': instanceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 查询自动备份策略。 * @@ -6945,6 +7982,43 @@ export const ParamCreater = function () { return options; }, + /** + * 查询秒级监控配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + showSecondLevelMonitoringStatus(showSecondLevelMonitoringStatusRequest?: ShowSecondLevelMonitoringStatusRequest) { + const options = { + method: "GET", + url: "/v3/{project_id}/instances/{instance_id}/monitoring-by-seconds/switch", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + let instanceId; + + if (showSecondLevelMonitoringStatusRequest !== null && showSecondLevelMonitoringStatusRequest !== undefined) { + if (showSecondLevelMonitoringStatusRequest instanceof ShowSecondLevelMonitoringStatusRequest) { + instanceId = showSecondLevelMonitoringStatusRequest.instanceId; + } else { + instanceId = showSecondLevelMonitoringStatusRequest['instance_id']; + } + } + + + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling showSecondLevelMonitoringStatus.'); + } + + options.pathParams = { 'instance_id': instanceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 查询慢日志脱敏状态。 * @@ -7074,6 +8148,52 @@ export const ParamCreater = function () { return options; }, + /** + * 开启或关闭指定实例的5秒级监控。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + switchSecondLevelMonitoring(switchSecondLevelMonitoringRequest?: SwitchSecondLevelMonitoringRequest) { + const options = { + method: "PUT", + url: "/v3/{project_id}/instances/{instance_id}/monitoring-by-seconds/switch", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let instanceId; + + if (switchSecondLevelMonitoringRequest !== null && switchSecondLevelMonitoringRequest !== undefined) { + if (switchSecondLevelMonitoringRequest instanceof SwitchSecondLevelMonitoringRequest) { + instanceId = switchSecondLevelMonitoringRequest.instanceId; + body = switchSecondLevelMonitoringRequest.body + } else { + instanceId = switchSecondLevelMonitoringRequest['instance_id']; + body = switchSecondLevelMonitoringRequest['body']; + } + } + + + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling switchSecondLevelMonitoring.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.pathParams = { 'instance_id': instanceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 设置慢日志脱敏状态 * @@ -7384,6 +8504,41 @@ export const ParamCreater = function () { return options; }, + /** + * 修改指定内存加速规则。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + updateDbCacheRule(updateDbCacheRuleRequest?: UpdateDbCacheRuleRequest) { + const options = { + method: "PUT", + url: "/v3/{project_id}/dbcache/rule", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + if (updateDbCacheRuleRequest !== null && updateDbCacheRuleRequest !== undefined) { + if (updateDbCacheRuleRequest instanceof UpdateDbCacheRuleRequest) { + body = updateDbCacheRuleRequest.body + } else { + body = updateDbCacheRuleRequest['body']; + } + } + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 批量修改高危命令 * @@ -7476,6 +8631,52 @@ export const ParamCreater = function () { return options; }, + /** + * 修改指定实例的参数。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + updateInstanceConfigurations(updateInstanceConfigurationsRequest?: UpdateInstanceConfigurationsRequest) { + const options = { + method: "PUT", + url: "/v3.1/{project_id}/instances/{instance_id}/configurations", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let instanceId; + + if (updateInstanceConfigurationsRequest !== null && updateInstanceConfigurationsRequest !== undefined) { + if (updateInstanceConfigurationsRequest instanceof UpdateInstanceConfigurationsRequest) { + instanceId = updateInstanceConfigurationsRequest.instanceId; + body = updateInstanceConfigurationsRequest.body + } else { + instanceId = updateInstanceConfigurationsRequest['instance_id']; + body = updateInstanceConfigurationsRequest['body']; + } + } + + + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling updateInstanceConfigurations.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.pathParams = { 'instance_id': instanceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 修改实例名称 * diff --git a/services/gaussdbfornosql/v3/model/ApplyConfigurationToInstancesRequest.ts b/services/gaussdbfornosql/v3/model/ApplyConfigurationToInstancesRequest.ts new file mode 100644 index 000000000..1442316b2 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/ApplyConfigurationToInstancesRequest.ts @@ -0,0 +1,24 @@ +import { ApplyConfigurationToInstancesRequestBody } from './ApplyConfigurationToInstancesRequestBody'; + + +export class ApplyConfigurationToInstancesRequest { + private 'config_id'?: string; + public body?: ApplyConfigurationToInstancesRequestBody; + public constructor(configId?: string) { + this['config_id'] = configId; + } + public withConfigId(configId: string): ApplyConfigurationToInstancesRequest { + this['config_id'] = configId; + return this; + } + public set configId(configId: string | undefined) { + this['config_id'] = configId; + } + public get configId(): string | undefined { + return this['config_id']; + } + public withBody(body: ApplyConfigurationToInstancesRequestBody): ApplyConfigurationToInstancesRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/ApplyConfigurationToInstancesRequestBody.ts b/services/gaussdbfornosql/v3/model/ApplyConfigurationToInstancesRequestBody.ts new file mode 100644 index 000000000..efae1a8f8 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/ApplyConfigurationToInstancesRequestBody.ts @@ -0,0 +1,18 @@ + + +export class ApplyConfigurationToInstancesRequestBody { + private 'instance_ids'?: Array; + public constructor(instanceIds?: Array) { + this['instance_ids'] = instanceIds; + } + public withInstanceIds(instanceIds: Array): ApplyConfigurationToInstancesRequestBody { + this['instance_ids'] = instanceIds; + return this; + } + public set instanceIds(instanceIds: Array | undefined) { + this['instance_ids'] = instanceIds; + } + public get instanceIds(): Array | undefined { + return this['instance_ids']; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/ApplyConfigurationToInstancesResponse.ts b/services/gaussdbfornosql/v3/model/ApplyConfigurationToInstancesResponse.ts new file mode 100644 index 000000000..f92129732 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/ApplyConfigurationToInstancesResponse.ts @@ -0,0 +1,24 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ApplyConfigurationToInstancesResponse extends SdkResponse { + private 'job_id'?: string; + public success?: boolean; + public constructor() { + super(); + } + public withJobId(jobId: string): ApplyConfigurationToInstancesResponse { + this['job_id'] = jobId; + return this; + } + public set jobId(jobId: string | undefined) { + this['job_id'] = jobId; + } + public get jobId(): string | undefined { + return this['job_id']; + } + public withSuccess(success: boolean): ApplyConfigurationToInstancesResponse { + this['success'] = success; + return this; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/CancelInstanceScheduleWindowRequest.ts b/services/gaussdbfornosql/v3/model/CancelInstanceScheduleWindowRequest.ts new file mode 100644 index 000000000..d2fb42ba5 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/CancelInstanceScheduleWindowRequest.ts @@ -0,0 +1,18 @@ + + +export class CancelInstanceScheduleWindowRequest { + private 'job_id'?: string; + public constructor(jobId?: string) { + this['job_id'] = jobId; + } + public withJobId(jobId: string): CancelInstanceScheduleWindowRequest { + this['job_id'] = jobId; + return this; + } + public set jobId(jobId: string | undefined) { + this['job_id'] = jobId; + } + public get jobId(): string | undefined { + return this['job_id']; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/CancelInstanceScheduleWindowResponse.ts b/services/gaussdbfornosql/v3/model/CancelInstanceScheduleWindowResponse.ts new file mode 100644 index 000000000..6905d0b18 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/CancelInstanceScheduleWindowResponse.ts @@ -0,0 +1,8 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class CancelInstanceScheduleWindowResponse extends SdkResponse { + public constructor() { + super(); + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/CreateDbCacheMappingRequest.ts b/services/gaussdbfornosql/v3/model/CreateDbCacheMappingRequest.ts new file mode 100644 index 000000000..7891caad7 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/CreateDbCacheMappingRequest.ts @@ -0,0 +1,12 @@ +import { CreateDbCacheMappingRequestBody } from './CreateDbCacheMappingRequestBody'; + + +export class CreateDbCacheMappingRequest { + public body?: CreateDbCacheMappingRequestBody; + public constructor() { + } + public withBody(body: CreateDbCacheMappingRequestBody): CreateDbCacheMappingRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/CreateDbCacheMappingRequestBody.ts b/services/gaussdbfornosql/v3/model/CreateDbCacheMappingRequestBody.ts new file mode 100644 index 000000000..6fd5fd40c --- /dev/null +++ b/services/gaussdbfornosql/v3/model/CreateDbCacheMappingRequestBody.ts @@ -0,0 +1,30 @@ + + +export class CreateDbCacheMappingRequestBody { + private 'source_instance_id'?: string; + private 'target_instance_id'?: string; + public constructor(sourceInstanceId?: string, targetInstanceId?: string) { + this['source_instance_id'] = sourceInstanceId; + this['target_instance_id'] = targetInstanceId; + } + public withSourceInstanceId(sourceInstanceId: string): CreateDbCacheMappingRequestBody { + this['source_instance_id'] = sourceInstanceId; + return this; + } + public set sourceInstanceId(sourceInstanceId: string | undefined) { + this['source_instance_id'] = sourceInstanceId; + } + public get sourceInstanceId(): string | undefined { + return this['source_instance_id']; + } + public withTargetInstanceId(targetInstanceId: string): CreateDbCacheMappingRequestBody { + this['target_instance_id'] = targetInstanceId; + return this; + } + public set targetInstanceId(targetInstanceId: string | undefined) { + this['target_instance_id'] = targetInstanceId; + } + public get targetInstanceId(): string | undefined { + return this['target_instance_id']; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/CreateDbCacheMappingResponse.ts b/services/gaussdbfornosql/v3/model/CreateDbCacheMappingResponse.ts new file mode 100644 index 000000000..2a420bc35 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/CreateDbCacheMappingResponse.ts @@ -0,0 +1,19 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class CreateDbCacheMappingResponse extends SdkResponse { + private 'job_id'?: string; + public constructor() { + super(); + } + public withJobId(jobId: string): CreateDbCacheMappingResponse { + this['job_id'] = jobId; + return this; + } + public set jobId(jobId: string | undefined) { + this['job_id'] = jobId; + } + public get jobId(): string | undefined { + return this['job_id']; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/CreateDbCacheRuleRequest.ts b/services/gaussdbfornosql/v3/model/CreateDbCacheRuleRequest.ts new file mode 100644 index 000000000..7410580b8 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/CreateDbCacheRuleRequest.ts @@ -0,0 +1,12 @@ +import { CreateDbCacheRuleRequestBody } from './CreateDbCacheRuleRequestBody'; + + +export class CreateDbCacheRuleRequest { + public body?: CreateDbCacheRuleRequestBody; + public constructor() { + } + public withBody(body: CreateDbCacheRuleRequestBody): CreateDbCacheRuleRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/CreateDbCacheRuleRequestBody.ts b/services/gaussdbfornosql/v3/model/CreateDbCacheRuleRequestBody.ts new file mode 100644 index 000000000..1d612cd33 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/CreateDbCacheRuleRequestBody.ts @@ -0,0 +1,136 @@ + + +export class CreateDbCacheRuleRequestBody { + private 'dbcache_mapping_id'?: string; + public name?: string; + private 'source_db_schema'?: string; + private 'source_db_table'?: string; + private 'storage_type'?: string; + private 'target_database'?: string; + private 'key_columns'?: Array; + private 'value_columns'?: Array; + public ttl?: string; + private 'key_separator'?: string; + private 'value_separator'?: string; + private 'key_prefix'?: string; + public constructor(dbcacheMappingId?: string, name?: string, sourceDbSchema?: string, sourceDbTable?: string, storageType?: string, targetDatabase?: string, keyColumns?: Array, valueColumns?: Array, keySeparator?: string, keyPrefix?: string) { + this['dbcache_mapping_id'] = dbcacheMappingId; + this['name'] = name; + this['source_db_schema'] = sourceDbSchema; + this['source_db_table'] = sourceDbTable; + this['storage_type'] = storageType; + this['target_database'] = targetDatabase; + this['key_columns'] = keyColumns; + this['value_columns'] = valueColumns; + this['key_separator'] = keySeparator; + this['key_prefix'] = keyPrefix; + } + public withDbcacheMappingId(dbcacheMappingId: string): CreateDbCacheRuleRequestBody { + this['dbcache_mapping_id'] = dbcacheMappingId; + return this; + } + public set dbcacheMappingId(dbcacheMappingId: string | undefined) { + this['dbcache_mapping_id'] = dbcacheMappingId; + } + public get dbcacheMappingId(): string | undefined { + return this['dbcache_mapping_id']; + } + public withName(name: string): CreateDbCacheRuleRequestBody { + this['name'] = name; + return this; + } + public withSourceDbSchema(sourceDbSchema: string): CreateDbCacheRuleRequestBody { + this['source_db_schema'] = sourceDbSchema; + return this; + } + public set sourceDbSchema(sourceDbSchema: string | undefined) { + this['source_db_schema'] = sourceDbSchema; + } + public get sourceDbSchema(): string | undefined { + return this['source_db_schema']; + } + public withSourceDbTable(sourceDbTable: string): CreateDbCacheRuleRequestBody { + this['source_db_table'] = sourceDbTable; + return this; + } + public set sourceDbTable(sourceDbTable: string | undefined) { + this['source_db_table'] = sourceDbTable; + } + public get sourceDbTable(): string | undefined { + return this['source_db_table']; + } + public withStorageType(storageType: string): CreateDbCacheRuleRequestBody { + this['storage_type'] = storageType; + return this; + } + public set storageType(storageType: string | undefined) { + this['storage_type'] = storageType; + } + public get storageType(): string | undefined { + return this['storage_type']; + } + public withTargetDatabase(targetDatabase: string): CreateDbCacheRuleRequestBody { + this['target_database'] = targetDatabase; + return this; + } + public set targetDatabase(targetDatabase: string | undefined) { + this['target_database'] = targetDatabase; + } + public get targetDatabase(): string | undefined { + return this['target_database']; + } + public withKeyColumns(keyColumns: Array): CreateDbCacheRuleRequestBody { + this['key_columns'] = keyColumns; + return this; + } + public set keyColumns(keyColumns: Array | undefined) { + this['key_columns'] = keyColumns; + } + public get keyColumns(): Array | undefined { + return this['key_columns']; + } + public withValueColumns(valueColumns: Array): CreateDbCacheRuleRequestBody { + this['value_columns'] = valueColumns; + return this; + } + public set valueColumns(valueColumns: Array | undefined) { + this['value_columns'] = valueColumns; + } + public get valueColumns(): Array | undefined { + return this['value_columns']; + } + public withTtl(ttl: string): CreateDbCacheRuleRequestBody { + this['ttl'] = ttl; + return this; + } + public withKeySeparator(keySeparator: string): CreateDbCacheRuleRequestBody { + this['key_separator'] = keySeparator; + return this; + } + public set keySeparator(keySeparator: string | undefined) { + this['key_separator'] = keySeparator; + } + public get keySeparator(): string | undefined { + return this['key_separator']; + } + public withValueSeparator(valueSeparator: string): CreateDbCacheRuleRequestBody { + this['value_separator'] = valueSeparator; + return this; + } + public set valueSeparator(valueSeparator: string | undefined) { + this['value_separator'] = valueSeparator; + } + public get valueSeparator(): string | undefined { + return this['value_separator']; + } + public withKeyPrefix(keyPrefix: string): CreateDbCacheRuleRequestBody { + this['key_prefix'] = keyPrefix; + return this; + } + public set keyPrefix(keyPrefix: string | undefined) { + this['key_prefix'] = keyPrefix; + } + public get keyPrefix(): string | undefined { + return this['key_prefix']; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/CreateDbCacheRuleResponse.ts b/services/gaussdbfornosql/v3/model/CreateDbCacheRuleResponse.ts new file mode 100644 index 000000000..b1730204f --- /dev/null +++ b/services/gaussdbfornosql/v3/model/CreateDbCacheRuleResponse.ts @@ -0,0 +1,13 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class CreateDbCacheRuleResponse extends SdkResponse { + public id?: string; + public constructor() { + super(); + } + public withId(id: string): CreateDbCacheRuleResponse { + this['id'] = id; + return this; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/DeleteDbCacheMappingRequest.ts b/services/gaussdbfornosql/v3/model/DeleteDbCacheMappingRequest.ts new file mode 100644 index 000000000..afaf21492 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/DeleteDbCacheMappingRequest.ts @@ -0,0 +1,12 @@ +import { DeleteDbCacheMappingRequestBody } from './DeleteDbCacheMappingRequestBody'; + + +export class DeleteDbCacheMappingRequest { + public body?: DeleteDbCacheMappingRequestBody; + public constructor() { + } + public withBody(body: DeleteDbCacheMappingRequestBody): DeleteDbCacheMappingRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/DeleteDbCacheMappingRequestBody.ts b/services/gaussdbfornosql/v3/model/DeleteDbCacheMappingRequestBody.ts new file mode 100644 index 000000000..b4e131e99 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/DeleteDbCacheMappingRequestBody.ts @@ -0,0 +1,12 @@ + + +export class DeleteDbCacheMappingRequestBody { + public id?: string; + public constructor(id?: string) { + this['id'] = id; + } + public withId(id: string): DeleteDbCacheMappingRequestBody { + this['id'] = id; + return this; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/DeleteDbCacheMappingResponse.ts b/services/gaussdbfornosql/v3/model/DeleteDbCacheMappingResponse.ts new file mode 100644 index 000000000..708e7a4a8 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/DeleteDbCacheMappingResponse.ts @@ -0,0 +1,19 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class DeleteDbCacheMappingResponse extends SdkResponse { + private 'job_id'?: string; + public constructor() { + super(); + } + public withJobId(jobId: string): DeleteDbCacheMappingResponse { + this['job_id'] = jobId; + return this; + } + public set jobId(jobId: string | undefined) { + this['job_id'] = jobId; + } + public get jobId(): string | undefined { + return this['job_id']; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/DeleteDbCacheRuleRequest.ts b/services/gaussdbfornosql/v3/model/DeleteDbCacheRuleRequest.ts new file mode 100644 index 000000000..653f37795 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/DeleteDbCacheRuleRequest.ts @@ -0,0 +1,12 @@ +import { DeleteDbCacheRuleRequestBody } from './DeleteDbCacheRuleRequestBody'; + + +export class DeleteDbCacheRuleRequest { + public body?: DeleteDbCacheRuleRequestBody; + public constructor() { + } + public withBody(body: DeleteDbCacheRuleRequestBody): DeleteDbCacheRuleRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/DeleteDbCacheRuleRequestBody.ts b/services/gaussdbfornosql/v3/model/DeleteDbCacheRuleRequestBody.ts new file mode 100644 index 000000000..efe4e3060 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/DeleteDbCacheRuleRequestBody.ts @@ -0,0 +1,12 @@ + + +export class DeleteDbCacheRuleRequestBody { + public id?: string; + public constructor(id?: string) { + this['id'] = id; + } + public withId(id: string): DeleteDbCacheRuleRequestBody { + this['id'] = id; + return this; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/DeleteDbCacheRuleResponse.ts b/services/gaussdbfornosql/v3/model/DeleteDbCacheRuleResponse.ts new file mode 100644 index 000000000..2d7ae4787 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/DeleteDbCacheRuleResponse.ts @@ -0,0 +1,8 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class DeleteDbCacheRuleResponse extends SdkResponse { + public constructor() { + super(); + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/ListDbCacheMappingsRequest.ts b/services/gaussdbfornosql/v3/model/ListDbCacheMappingsRequest.ts new file mode 100644 index 000000000..1fd26ff7c --- /dev/null +++ b/services/gaussdbfornosql/v3/model/ListDbCacheMappingsRequest.ts @@ -0,0 +1,70 @@ + + +export class ListDbCacheMappingsRequest { + public id?: string; + public name?: string; + private 'source_instance_id'?: string; + private 'source_instance_name'?: string; + private 'target_instance_id'?: string; + private 'target_instance_name'?: string; + public offset?: number; + public limit?: number; + public constructor() { + } + public withId(id: string): ListDbCacheMappingsRequest { + this['id'] = id; + return this; + } + public withName(name: string): ListDbCacheMappingsRequest { + this['name'] = name; + return this; + } + public withSourceInstanceId(sourceInstanceId: string): ListDbCacheMappingsRequest { + this['source_instance_id'] = sourceInstanceId; + return this; + } + public set sourceInstanceId(sourceInstanceId: string | undefined) { + this['source_instance_id'] = sourceInstanceId; + } + public get sourceInstanceId(): string | undefined { + return this['source_instance_id']; + } + public withSourceInstanceName(sourceInstanceName: string): ListDbCacheMappingsRequest { + this['source_instance_name'] = sourceInstanceName; + return this; + } + public set sourceInstanceName(sourceInstanceName: string | undefined) { + this['source_instance_name'] = sourceInstanceName; + } + public get sourceInstanceName(): string | undefined { + return this['source_instance_name']; + } + public withTargetInstanceId(targetInstanceId: string): ListDbCacheMappingsRequest { + this['target_instance_id'] = targetInstanceId; + return this; + } + public set targetInstanceId(targetInstanceId: string | undefined) { + this['target_instance_id'] = targetInstanceId; + } + public get targetInstanceId(): string | undefined { + return this['target_instance_id']; + } + public withTargetInstanceName(targetInstanceName: string): ListDbCacheMappingsRequest { + this['target_instance_name'] = targetInstanceName; + return this; + } + public set targetInstanceName(targetInstanceName: string | undefined) { + this['target_instance_name'] = targetInstanceName; + } + public get targetInstanceName(): string | undefined { + return this['target_instance_name']; + } + public withOffset(offset: number): ListDbCacheMappingsRequest { + this['offset'] = offset; + return this; + } + public withLimit(limit: number): ListDbCacheMappingsRequest { + this['limit'] = limit; + return this; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/ListDbCacheMappingsResponse.ts b/services/gaussdbfornosql/v3/model/ListDbCacheMappingsResponse.ts new file mode 100644 index 000000000..4725d5f79 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/ListDbCacheMappingsResponse.ts @@ -0,0 +1,31 @@ +import { QueryDBCacheMappingResponse } from './QueryDBCacheMappingResponse'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListDbCacheMappingsResponse extends SdkResponse { + private 'total_count'?: number; + private 'dbcache_mappings'?: Array; + public constructor() { + super(); + } + public withTotalCount(totalCount: number): ListDbCacheMappingsResponse { + this['total_count'] = totalCount; + return this; + } + public set totalCount(totalCount: number | undefined) { + this['total_count'] = totalCount; + } + public get totalCount(): number | undefined { + return this['total_count']; + } + public withDbcacheMappings(dbcacheMappings: Array): ListDbCacheMappingsResponse { + this['dbcache_mappings'] = dbcacheMappings; + return this; + } + public set dbcacheMappings(dbcacheMappings: Array | undefined) { + this['dbcache_mappings'] = dbcacheMappings; + } + public get dbcacheMappings(): Array | undefined { + return this['dbcache_mappings']; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/ListDbCacheRulesRequest.ts b/services/gaussdbfornosql/v3/model/ListDbCacheRulesRequest.ts new file mode 100644 index 000000000..d173ef330 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/ListDbCacheRulesRequest.ts @@ -0,0 +1,72 @@ + + +export class ListDbCacheRulesRequest { + private 'dbcache_mapping_id'?: string; + private 'rule_id'?: string; + private 'rule_name'?: string; + private 'source_db_schema'?: string; + private 'source_db_table'?: string; + public offset?: string; + public limit?: string; + public constructor(dbcacheMappingId?: string) { + this['dbcache_mapping_id'] = dbcacheMappingId; + } + public withDbcacheMappingId(dbcacheMappingId: string): ListDbCacheRulesRequest { + this['dbcache_mapping_id'] = dbcacheMappingId; + return this; + } + public set dbcacheMappingId(dbcacheMappingId: string | undefined) { + this['dbcache_mapping_id'] = dbcacheMappingId; + } + public get dbcacheMappingId(): string | undefined { + return this['dbcache_mapping_id']; + } + public withRuleId(ruleId: string): ListDbCacheRulesRequest { + this['rule_id'] = ruleId; + return this; + } + public set ruleId(ruleId: string | undefined) { + this['rule_id'] = ruleId; + } + public get ruleId(): string | undefined { + return this['rule_id']; + } + public withRuleName(ruleName: string): ListDbCacheRulesRequest { + this['rule_name'] = ruleName; + return this; + } + public set ruleName(ruleName: string | undefined) { + this['rule_name'] = ruleName; + } + public get ruleName(): string | undefined { + return this['rule_name']; + } + public withSourceDbSchema(sourceDbSchema: string): ListDbCacheRulesRequest { + this['source_db_schema'] = sourceDbSchema; + return this; + } + public set sourceDbSchema(sourceDbSchema: string | undefined) { + this['source_db_schema'] = sourceDbSchema; + } + public get sourceDbSchema(): string | undefined { + return this['source_db_schema']; + } + public withSourceDbTable(sourceDbTable: string): ListDbCacheRulesRequest { + this['source_db_table'] = sourceDbTable; + return this; + } + public set sourceDbTable(sourceDbTable: string | undefined) { + this['source_db_table'] = sourceDbTable; + } + public get sourceDbTable(): string | undefined { + return this['source_db_table']; + } + public withOffset(offset: string): ListDbCacheRulesRequest { + this['offset'] = offset; + return this; + } + public withLimit(limit: string): ListDbCacheRulesRequest { + this['limit'] = limit; + return this; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/ListDbCacheRulesResponse.ts b/services/gaussdbfornosql/v3/model/ListDbCacheRulesResponse.ts new file mode 100644 index 000000000..907fb2227 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/ListDbCacheRulesResponse.ts @@ -0,0 +1,36 @@ +import { QueryDBCacheRuleResponse } from './QueryDBCacheRuleResponse'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListDbCacheRulesResponse extends SdkResponse { + private 'total_count'?: number; + private 'dbcache_mapping_id'?: string; + public rules?: Array; + public constructor() { + super(); + } + public withTotalCount(totalCount: number): ListDbCacheRulesResponse { + this['total_count'] = totalCount; + return this; + } + public set totalCount(totalCount: number | undefined) { + this['total_count'] = totalCount; + } + public get totalCount(): number | undefined { + return this['total_count']; + } + public withDbcacheMappingId(dbcacheMappingId: string): ListDbCacheRulesResponse { + this['dbcache_mapping_id'] = dbcacheMappingId; + return this; + } + public set dbcacheMappingId(dbcacheMappingId: string | undefined) { + this['dbcache_mapping_id'] = dbcacheMappingId; + } + public get dbcacheMappingId(): string | undefined { + return this['dbcache_mapping_id']; + } + public withRules(rules: Array): ListDbCacheRulesResponse { + this['rules'] = rules; + return this; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/ListInstanceMaintenanceWindowRequest.ts b/services/gaussdbfornosql/v3/model/ListInstanceMaintenanceWindowRequest.ts new file mode 100644 index 000000000..f07eb0a2e --- /dev/null +++ b/services/gaussdbfornosql/v3/model/ListInstanceMaintenanceWindowRequest.ts @@ -0,0 +1,18 @@ + + +export class ListInstanceMaintenanceWindowRequest { + private 'instance_id'?: string; + public constructor(instanceId?: string) { + this['instance_id'] = instanceId; + } + public withInstanceId(instanceId: string): ListInstanceMaintenanceWindowRequest { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/ListInstanceMaintenanceWindowResponse.ts b/services/gaussdbfornosql/v3/model/ListInstanceMaintenanceWindowResponse.ts new file mode 100644 index 000000000..7e7bdca2d --- /dev/null +++ b/services/gaussdbfornosql/v3/model/ListInstanceMaintenanceWindowResponse.ts @@ -0,0 +1,19 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListInstanceMaintenanceWindowResponse extends SdkResponse { + private 'maintenance_window'?: string; + public constructor() { + super(); + } + public withMaintenanceWindow(maintenanceWindow: string): ListInstanceMaintenanceWindowResponse { + this['maintenance_window'] = maintenanceWindow; + return this; + } + public set maintenanceWindow(maintenanceWindow: string | undefined) { + this['maintenance_window'] = maintenanceWindow; + } + public get maintenanceWindow(): string | undefined { + return this['maintenance_window']; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/ListNosqlTaskListRequest.ts b/services/gaussdbfornosql/v3/model/ListNosqlTaskListRequest.ts new file mode 100644 index 000000000..0ed82ee43 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/ListNosqlTaskListRequest.ts @@ -0,0 +1,71 @@ + + +export class ListNosqlTaskListRequest { + private 'job_name'?: string; + private 'job_status'?: string; + private 'instance_id'?: string; + private 'start_time'?: string; + private 'end_time'?: string; + public offset?: string; + public limit?: string; + public constructor() { + } + public withJobName(jobName: string): ListNosqlTaskListRequest { + this['job_name'] = jobName; + return this; + } + public set jobName(jobName: string | undefined) { + this['job_name'] = jobName; + } + public get jobName(): string | undefined { + return this['job_name']; + } + public withJobStatus(jobStatus: string): ListNosqlTaskListRequest { + this['job_status'] = jobStatus; + return this; + } + public set jobStatus(jobStatus: string | undefined) { + this['job_status'] = jobStatus; + } + public get jobStatus(): string | undefined { + return this['job_status']; + } + public withInstanceId(instanceId: string): ListNosqlTaskListRequest { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } + public withStartTime(startTime: string): ListNosqlTaskListRequest { + this['start_time'] = startTime; + return this; + } + public set startTime(startTime: string | undefined) { + this['start_time'] = startTime; + } + public get startTime(): string | undefined { + return this['start_time']; + } + public withEndTime(endTime: string): ListNosqlTaskListRequest { + this['end_time'] = endTime; + return this; + } + public set endTime(endTime: string | undefined) { + this['end_time'] = endTime; + } + public get endTime(): string | undefined { + return this['end_time']; + } + public withOffset(offset: string): ListNosqlTaskListRequest { + this['offset'] = offset; + return this; + } + public withLimit(limit: string): ListNosqlTaskListRequest { + this['limit'] = limit; + return this; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/ListNosqlTaskListResponse.ts b/services/gaussdbfornosql/v3/model/ListNosqlTaskListResponse.ts new file mode 100644 index 000000000..3a438f3f5 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/ListNosqlTaskListResponse.ts @@ -0,0 +1,25 @@ +import { ScheduleDetailInfo } from './ScheduleDetailInfo'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListNosqlTaskListResponse extends SdkResponse { + private 'total_count'?: string; + public schedules?: Array; + public constructor() { + super(); + } + public withTotalCount(totalCount: string): ListNosqlTaskListResponse { + this['total_count'] = totalCount; + return this; + } + public set totalCount(totalCount: string | undefined) { + this['total_count'] = totalCount; + } + public get totalCount(): string | undefined { + return this['total_count']; + } + public withSchedules(schedules: Array): ListNosqlTaskListResponse { + this['schedules'] = schedules; + return this; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/ModifyInstanceMaintenanceWindowRequest.ts b/services/gaussdbfornosql/v3/model/ModifyInstanceMaintenanceWindowRequest.ts new file mode 100644 index 000000000..d524801a1 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/ModifyInstanceMaintenanceWindowRequest.ts @@ -0,0 +1,24 @@ +import { ModifyInstanceOpsWindowV3Req } from './ModifyInstanceOpsWindowV3Req'; + + +export class ModifyInstanceMaintenanceWindowRequest { + private 'instance_id'?: string; + public body?: ModifyInstanceOpsWindowV3Req; + public constructor(instanceId?: string) { + this['instance_id'] = instanceId; + } + public withInstanceId(instanceId: string): ModifyInstanceMaintenanceWindowRequest { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } + public withBody(body: ModifyInstanceOpsWindowV3Req): ModifyInstanceMaintenanceWindowRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/ModifyInstanceMaintenanceWindowResponse.ts b/services/gaussdbfornosql/v3/model/ModifyInstanceMaintenanceWindowResponse.ts new file mode 100644 index 000000000..d0ad9775a --- /dev/null +++ b/services/gaussdbfornosql/v3/model/ModifyInstanceMaintenanceWindowResponse.ts @@ -0,0 +1,8 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ModifyInstanceMaintenanceWindowResponse extends SdkResponse { + public constructor() { + super(); + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/ModifyInstanceOpsWindowV3Req.ts b/services/gaussdbfornosql/v3/model/ModifyInstanceOpsWindowV3Req.ts new file mode 100644 index 000000000..f2b73cb31 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/ModifyInstanceOpsWindowV3Req.ts @@ -0,0 +1,18 @@ + + +export class ModifyInstanceOpsWindowV3Req { + private 'start_time'?: string; + public constructor(startTime?: string) { + this['start_time'] = startTime; + } + public withStartTime(startTime: string): ModifyInstanceOpsWindowV3Req { + this['start_time'] = startTime; + return this; + } + public set startTime(startTime: string | undefined) { + this['start_time'] = startTime; + } + public get startTime(): string | undefined { + return this['start_time']; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/QueryDBCacheMappingResponse.ts b/services/gaussdbfornosql/v3/model/QueryDBCacheMappingResponse.ts new file mode 100644 index 000000000..4a06ebc5d --- /dev/null +++ b/services/gaussdbfornosql/v3/model/QueryDBCacheMappingResponse.ts @@ -0,0 +1,95 @@ + + +export class QueryDBCacheMappingResponse { + public id?: string; + public name?: string; + private 'source_instance_id'?: string; + private 'source_instance_name'?: string; + private 'target_instance_id'?: string; + private 'target_instance_name'?: string; + public status?: string; + public created?: string; + public updated?: string; + private 'rule_count'?: number; + public constructor(id?: string, name?: string, sourceInstanceId?: string, sourceInstanceName?: string, targetInstanceId?: string, targetInstanceName?: string, status?: string, created?: string, updated?: string) { + this['id'] = id; + this['name'] = name; + this['source_instance_id'] = sourceInstanceId; + this['source_instance_name'] = sourceInstanceName; + this['target_instance_id'] = targetInstanceId; + this['target_instance_name'] = targetInstanceName; + this['status'] = status; + this['created'] = created; + this['updated'] = updated; + } + public withId(id: string): QueryDBCacheMappingResponse { + this['id'] = id; + return this; + } + public withName(name: string): QueryDBCacheMappingResponse { + this['name'] = name; + return this; + } + public withSourceInstanceId(sourceInstanceId: string): QueryDBCacheMappingResponse { + this['source_instance_id'] = sourceInstanceId; + return this; + } + public set sourceInstanceId(sourceInstanceId: string | undefined) { + this['source_instance_id'] = sourceInstanceId; + } + public get sourceInstanceId(): string | undefined { + return this['source_instance_id']; + } + public withSourceInstanceName(sourceInstanceName: string): QueryDBCacheMappingResponse { + this['source_instance_name'] = sourceInstanceName; + return this; + } + public set sourceInstanceName(sourceInstanceName: string | undefined) { + this['source_instance_name'] = sourceInstanceName; + } + public get sourceInstanceName(): string | undefined { + return this['source_instance_name']; + } + public withTargetInstanceId(targetInstanceId: string): QueryDBCacheMappingResponse { + this['target_instance_id'] = targetInstanceId; + return this; + } + public set targetInstanceId(targetInstanceId: string | undefined) { + this['target_instance_id'] = targetInstanceId; + } + public get targetInstanceId(): string | undefined { + return this['target_instance_id']; + } + public withTargetInstanceName(targetInstanceName: string): QueryDBCacheMappingResponse { + this['target_instance_name'] = targetInstanceName; + return this; + } + public set targetInstanceName(targetInstanceName: string | undefined) { + this['target_instance_name'] = targetInstanceName; + } + public get targetInstanceName(): string | undefined { + return this['target_instance_name']; + } + public withStatus(status: string): QueryDBCacheMappingResponse { + this['status'] = status; + return this; + } + public withCreated(created: string): QueryDBCacheMappingResponse { + this['created'] = created; + return this; + } + public withUpdated(updated: string): QueryDBCacheMappingResponse { + this['updated'] = updated; + return this; + } + public withRuleCount(ruleCount: number): QueryDBCacheMappingResponse { + this['rule_count'] = ruleCount; + return this; + } + public set ruleCount(ruleCount: number | undefined) { + this['rule_count'] = ruleCount; + } + public get ruleCount(): number | undefined { + return this['rule_count']; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/QueryDBCacheRuleResponse.ts b/services/gaussdbfornosql/v3/model/QueryDBCacheRuleResponse.ts new file mode 100644 index 000000000..f39ca404f --- /dev/null +++ b/services/gaussdbfornosql/v3/model/QueryDBCacheRuleResponse.ts @@ -0,0 +1,126 @@ + + +export class QueryDBCacheRuleResponse { + public id?: string; + public name?: string; + public status?: string; + private 'source_db_schema'?: string; + private 'source_db_table'?: string; + private 'storage_type'?: string; + private 'target_database'?: string; + private 'key_columns'?: Array; + private 'value_columns'?: Array; + public ttl?: string; + private 'key_separator'?: string; + private 'value_separator'?: string; + private 'key_prefix'?: string; + public constructor(id?: string) { + this['id'] = id; + } + public withId(id: string): QueryDBCacheRuleResponse { + this['id'] = id; + return this; + } + public withName(name: string): QueryDBCacheRuleResponse { + this['name'] = name; + return this; + } + public withStatus(status: string): QueryDBCacheRuleResponse { + this['status'] = status; + return this; + } + public withSourceDbSchema(sourceDbSchema: string): QueryDBCacheRuleResponse { + this['source_db_schema'] = sourceDbSchema; + return this; + } + public set sourceDbSchema(sourceDbSchema: string | undefined) { + this['source_db_schema'] = sourceDbSchema; + } + public get sourceDbSchema(): string | undefined { + return this['source_db_schema']; + } + public withSourceDbTable(sourceDbTable: string): QueryDBCacheRuleResponse { + this['source_db_table'] = sourceDbTable; + return this; + } + public set sourceDbTable(sourceDbTable: string | undefined) { + this['source_db_table'] = sourceDbTable; + } + public get sourceDbTable(): string | undefined { + return this['source_db_table']; + } + public withStorageType(storageType: string): QueryDBCacheRuleResponse { + this['storage_type'] = storageType; + return this; + } + public set storageType(storageType: string | undefined) { + this['storage_type'] = storageType; + } + public get storageType(): string | undefined { + return this['storage_type']; + } + public withTargetDatabase(targetDatabase: string): QueryDBCacheRuleResponse { + this['target_database'] = targetDatabase; + return this; + } + public set targetDatabase(targetDatabase: string | undefined) { + this['target_database'] = targetDatabase; + } + public get targetDatabase(): string | undefined { + return this['target_database']; + } + public withKeyColumns(keyColumns: Array): QueryDBCacheRuleResponse { + this['key_columns'] = keyColumns; + return this; + } + public set keyColumns(keyColumns: Array | undefined) { + this['key_columns'] = keyColumns; + } + public get keyColumns(): Array | undefined { + return this['key_columns']; + } + public withValueColumns(valueColumns: Array): QueryDBCacheRuleResponse { + this['value_columns'] = valueColumns; + return this; + } + public set valueColumns(valueColumns: Array | undefined) { + this['value_columns'] = valueColumns; + } + public get valueColumns(): Array | undefined { + return this['value_columns']; + } + public withTtl(ttl: string): QueryDBCacheRuleResponse { + this['ttl'] = ttl; + return this; + } + public withKeySeparator(keySeparator: string): QueryDBCacheRuleResponse { + this['key_separator'] = keySeparator; + return this; + } + public set keySeparator(keySeparator: string | undefined) { + this['key_separator'] = keySeparator; + } + public get keySeparator(): string | undefined { + return this['key_separator']; + } + public withValueSeparator(valueSeparator: string): QueryDBCacheRuleResponse { + this['value_separator'] = valueSeparator; + return this; + } + public set valueSeparator(valueSeparator: string | undefined) { + this['value_separator'] = valueSeparator; + } + public get valueSeparator(): string | undefined { + return this['value_separator']; + } + public withKeyPrefix(keyPrefix: string): QueryDBCacheRuleResponse { + this['key_prefix'] = keyPrefix; + return this; + } + public set keyPrefix(keyPrefix: string | undefined) { + this['key_prefix'] = keyPrefix; + } + public get keyPrefix(): string | undefined { + return this['key_prefix']; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/ScheduleDetailInfo.ts b/services/gaussdbfornosql/v3/model/ScheduleDetailInfo.ts new file mode 100644 index 000000000..0f1b6c945 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/ScheduleDetailInfo.ts @@ -0,0 +1,126 @@ + + +export class ScheduleDetailInfo { + private 'job_id'?: string; + private 'job_name'?: string; + private 'job_status'?: string; + private 'instance_id'?: string; + private 'instance_name'?: string; + private 'instance_status'?: string; + private 'datastore_type'?: string; + private 'create_time'?: string; + private 'start_time'?: string; + private 'end_time'?: string; + public constructor(jobId?: string, jobName?: string, jobStatus?: string, instanceId?: string, instanceName?: string, instanceStatus?: string, datastoreType?: string, createTime?: string, startTime?: string, endTime?: string) { + this['job_id'] = jobId; + this['job_name'] = jobName; + this['job_status'] = jobStatus; + this['instance_id'] = instanceId; + this['instance_name'] = instanceName; + this['instance_status'] = instanceStatus; + this['datastore_type'] = datastoreType; + this['create_time'] = createTime; + this['start_time'] = startTime; + this['end_time'] = endTime; + } + public withJobId(jobId: string): ScheduleDetailInfo { + this['job_id'] = jobId; + return this; + } + public set jobId(jobId: string | undefined) { + this['job_id'] = jobId; + } + public get jobId(): string | undefined { + return this['job_id']; + } + public withJobName(jobName: string): ScheduleDetailInfo { + this['job_name'] = jobName; + return this; + } + public set jobName(jobName: string | undefined) { + this['job_name'] = jobName; + } + public get jobName(): string | undefined { + return this['job_name']; + } + public withJobStatus(jobStatus: string): ScheduleDetailInfo { + this['job_status'] = jobStatus; + return this; + } + public set jobStatus(jobStatus: string | undefined) { + this['job_status'] = jobStatus; + } + public get jobStatus(): string | undefined { + return this['job_status']; + } + public withInstanceId(instanceId: string): ScheduleDetailInfo { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } + public withInstanceName(instanceName: string): ScheduleDetailInfo { + this['instance_name'] = instanceName; + return this; + } + public set instanceName(instanceName: string | undefined) { + this['instance_name'] = instanceName; + } + public get instanceName(): string | undefined { + return this['instance_name']; + } + public withInstanceStatus(instanceStatus: string): ScheduleDetailInfo { + this['instance_status'] = instanceStatus; + return this; + } + public set instanceStatus(instanceStatus: string | undefined) { + this['instance_status'] = instanceStatus; + } + public get instanceStatus(): string | undefined { + return this['instance_status']; + } + public withDatastoreType(datastoreType: string): ScheduleDetailInfo { + this['datastore_type'] = datastoreType; + return this; + } + public set datastoreType(datastoreType: string | undefined) { + this['datastore_type'] = datastoreType; + } + public get datastoreType(): string | undefined { + return this['datastore_type']; + } + public withCreateTime(createTime: string): ScheduleDetailInfo { + this['create_time'] = createTime; + return this; + } + public set createTime(createTime: string | undefined) { + this['create_time'] = createTime; + } + public get createTime(): string | undefined { + return this['create_time']; + } + public withStartTime(startTime: string): ScheduleDetailInfo { + this['start_time'] = startTime; + return this; + } + public set startTime(startTime: string | undefined) { + this['start_time'] = startTime; + } + public get startTime(): string | undefined { + return this['start_time']; + } + public withEndTime(endTime: string): ScheduleDetailInfo { + this['end_time'] = endTime; + return this; + } + public set endTime(endTime: string | undefined) { + this['end_time'] = endTime; + } + public get endTime(): string | undefined { + return this['end_time']; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/SetInstanceDataDumpRequest.ts b/services/gaussdbfornosql/v3/model/SetInstanceDataDumpRequest.ts new file mode 100644 index 000000000..4ebb207a6 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/SetInstanceDataDumpRequest.ts @@ -0,0 +1,24 @@ +import { SetInstanceDataDumpRequestBody } from './SetInstanceDataDumpRequestBody'; + + +export class SetInstanceDataDumpRequest { + private 'instance_id'?: string; + public body?: SetInstanceDataDumpRequestBody; + public constructor(instanceId?: string) { + this['instance_id'] = instanceId; + } + public withInstanceId(instanceId: string): SetInstanceDataDumpRequest { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } + public withBody(body: SetInstanceDataDumpRequestBody): SetInstanceDataDumpRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/SetInstanceDataDumpRequestBody.ts b/services/gaussdbfornosql/v3/model/SetInstanceDataDumpRequestBody.ts new file mode 100644 index 000000000..81191a536 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/SetInstanceDataDumpRequestBody.ts @@ -0,0 +1,33 @@ + + +export class SetInstanceDataDumpRequestBody { + private 'bucket_name'?: string; + public action?: SetInstanceDataDumpRequestBodyActionEnum | string; + public constructor(bucketName?: string, action?: string) { + this['bucket_name'] = bucketName; + this['action'] = action; + } + public withBucketName(bucketName: string): SetInstanceDataDumpRequestBody { + this['bucket_name'] = bucketName; + return this; + } + public set bucketName(bucketName: string | undefined) { + this['bucket_name'] = bucketName; + } + public get bucketName(): string | undefined { + return this['bucket_name']; + } + public withAction(action: SetInstanceDataDumpRequestBodyActionEnum | string): SetInstanceDataDumpRequestBody { + this['action'] = action; + return this; + } +} + +/** + * @export + * @enum {string} + */ +export enum SetInstanceDataDumpRequestBodyActionEnum { + OPEN = 'open', + CLOSE = 'close' +} diff --git a/services/gaussdbfornosql/v3/model/SetInstanceDataDumpResponse.ts b/services/gaussdbfornosql/v3/model/SetInstanceDataDumpResponse.ts new file mode 100644 index 000000000..83d99be65 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/SetInstanceDataDumpResponse.ts @@ -0,0 +1,8 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class SetInstanceDataDumpResponse extends SdkResponse { + public constructor() { + super(); + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/ShowBackupPoliciesRequest.ts b/services/gaussdbfornosql/v3/model/ShowBackupPoliciesRequest.ts new file mode 100644 index 000000000..57438f28d --- /dev/null +++ b/services/gaussdbfornosql/v3/model/ShowBackupPoliciesRequest.ts @@ -0,0 +1,18 @@ + + +export class ShowBackupPoliciesRequest { + private 'instance_id'?: string; + public constructor(instanceId?: string) { + this['instance_id'] = instanceId; + } + public withInstanceId(instanceId: string): ShowBackupPoliciesRequest { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/ShowBackupPoliciesResponse.ts b/services/gaussdbfornosql/v3/model/ShowBackupPoliciesResponse.ts new file mode 100644 index 000000000..2b247dd4c --- /dev/null +++ b/services/gaussdbfornosql/v3/model/ShowBackupPoliciesResponse.ts @@ -0,0 +1,20 @@ +import { ShowBackupPolicyResult } from './ShowBackupPolicyResult'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ShowBackupPoliciesResponse extends SdkResponse { + private 'backup_policy'?: ShowBackupPolicyResult; + public constructor() { + super(); + } + public withBackupPolicy(backupPolicy: ShowBackupPolicyResult): ShowBackupPoliciesResponse { + this['backup_policy'] = backupPolicy; + return this; + } + public set backupPolicy(backupPolicy: ShowBackupPolicyResult | undefined) { + this['backup_policy'] = backupPolicy; + } + public get backupPolicy(): ShowBackupPolicyResult | undefined { + return this['backup_policy']; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/ShowSecondLevelMonitoringStatusRequest.ts b/services/gaussdbfornosql/v3/model/ShowSecondLevelMonitoringStatusRequest.ts new file mode 100644 index 000000000..15034d478 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/ShowSecondLevelMonitoringStatusRequest.ts @@ -0,0 +1,18 @@ + + +export class ShowSecondLevelMonitoringStatusRequest { + private 'instance_id'?: string; + public constructor(instanceId?: string) { + this['instance_id'] = instanceId; + } + public withInstanceId(instanceId: string): ShowSecondLevelMonitoringStatusRequest { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/ShowSecondLevelMonitoringStatusResponse.ts b/services/gaussdbfornosql/v3/model/ShowSecondLevelMonitoringStatusResponse.ts new file mode 100644 index 000000000..514e4eb49 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/ShowSecondLevelMonitoringStatusResponse.ts @@ -0,0 +1,13 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ShowSecondLevelMonitoringStatusResponse extends SdkResponse { + public enabled?: boolean; + public constructor() { + super(); + } + public withEnabled(enabled: boolean): ShowSecondLevelMonitoringStatusResponse { + this['enabled'] = enabled; + return this; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/SwitchSecondLevelMonitoringRequest.ts b/services/gaussdbfornosql/v3/model/SwitchSecondLevelMonitoringRequest.ts new file mode 100644 index 000000000..e0b5c277a --- /dev/null +++ b/services/gaussdbfornosql/v3/model/SwitchSecondLevelMonitoringRequest.ts @@ -0,0 +1,24 @@ +import { SwitchSecondLevelMonitoringRequestBody } from './SwitchSecondLevelMonitoringRequestBody'; + + +export class SwitchSecondLevelMonitoringRequest { + private 'instance_id'?: string; + public body?: SwitchSecondLevelMonitoringRequestBody; + public constructor(instanceId?: string) { + this['instance_id'] = instanceId; + } + public withInstanceId(instanceId: string): SwitchSecondLevelMonitoringRequest { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } + public withBody(body: SwitchSecondLevelMonitoringRequestBody): SwitchSecondLevelMonitoringRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/SwitchSecondLevelMonitoringRequestBody.ts b/services/gaussdbfornosql/v3/model/SwitchSecondLevelMonitoringRequestBody.ts new file mode 100644 index 000000000..f1b90ab85 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/SwitchSecondLevelMonitoringRequestBody.ts @@ -0,0 +1,12 @@ + + +export class SwitchSecondLevelMonitoringRequestBody { + public enabled?: boolean; + public constructor(enabled?: boolean) { + this['enabled'] = enabled; + } + public withEnabled(enabled: boolean): SwitchSecondLevelMonitoringRequestBody { + this['enabled'] = enabled; + return this; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/SwitchSecondLevelMonitoringResponse.ts b/services/gaussdbfornosql/v3/model/SwitchSecondLevelMonitoringResponse.ts new file mode 100644 index 000000000..990ad533f --- /dev/null +++ b/services/gaussdbfornosql/v3/model/SwitchSecondLevelMonitoringResponse.ts @@ -0,0 +1,8 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class SwitchSecondLevelMonitoringResponse extends SdkResponse { + public constructor() { + super(); + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/UpdateDbCacheRuleRequest.ts b/services/gaussdbfornosql/v3/model/UpdateDbCacheRuleRequest.ts new file mode 100644 index 000000000..09bee978f --- /dev/null +++ b/services/gaussdbfornosql/v3/model/UpdateDbCacheRuleRequest.ts @@ -0,0 +1,12 @@ +import { UpdateDbCacheRuleRequestBody } from './UpdateDbCacheRuleRequestBody'; + + +export class UpdateDbCacheRuleRequest { + public body?: UpdateDbCacheRuleRequestBody; + public constructor() { + } + public withBody(body: UpdateDbCacheRuleRequestBody): UpdateDbCacheRuleRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/UpdateDbCacheRuleRequestBody.ts b/services/gaussdbfornosql/v3/model/UpdateDbCacheRuleRequestBody.ts new file mode 100644 index 000000000..0f5d8116a --- /dev/null +++ b/services/gaussdbfornosql/v3/model/UpdateDbCacheRuleRequestBody.ts @@ -0,0 +1,46 @@ + + +export class UpdateDbCacheRuleRequestBody { + private 'dbcache_rule_id'?: string; + private 'value_columns'?: Array; + public ttl?: string; + private 'value_separator'?: string; + public constructor(dbcacheRuleId?: string, valueColumns?: Array) { + this['dbcache_rule_id'] = dbcacheRuleId; + this['value_columns'] = valueColumns; + } + public withDbcacheRuleId(dbcacheRuleId: string): UpdateDbCacheRuleRequestBody { + this['dbcache_rule_id'] = dbcacheRuleId; + return this; + } + public set dbcacheRuleId(dbcacheRuleId: string | undefined) { + this['dbcache_rule_id'] = dbcacheRuleId; + } + public get dbcacheRuleId(): string | undefined { + return this['dbcache_rule_id']; + } + public withValueColumns(valueColumns: Array): UpdateDbCacheRuleRequestBody { + this['value_columns'] = valueColumns; + return this; + } + public set valueColumns(valueColumns: Array | undefined) { + this['value_columns'] = valueColumns; + } + public get valueColumns(): Array | undefined { + return this['value_columns']; + } + public withTtl(ttl: string): UpdateDbCacheRuleRequestBody { + this['ttl'] = ttl; + return this; + } + public withValueSeparator(valueSeparator: string): UpdateDbCacheRuleRequestBody { + this['value_separator'] = valueSeparator; + return this; + } + public set valueSeparator(valueSeparator: string | undefined) { + this['value_separator'] = valueSeparator; + } + public get valueSeparator(): string | undefined { + return this['value_separator']; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/UpdateDbCacheRuleResponse.ts b/services/gaussdbfornosql/v3/model/UpdateDbCacheRuleResponse.ts new file mode 100644 index 000000000..f527ea71b --- /dev/null +++ b/services/gaussdbfornosql/v3/model/UpdateDbCacheRuleResponse.ts @@ -0,0 +1,8 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class UpdateDbCacheRuleResponse extends SdkResponse { + public constructor() { + super(); + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/UpdateInstanceConfigurationsRequest.ts b/services/gaussdbfornosql/v3/model/UpdateInstanceConfigurationsRequest.ts new file mode 100644 index 000000000..107c97177 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/UpdateInstanceConfigurationsRequest.ts @@ -0,0 +1,24 @@ +import { UpdateInstanceConfigurationsRequestBody } from './UpdateInstanceConfigurationsRequestBody'; + + +export class UpdateInstanceConfigurationsRequest { + private 'instance_id'?: string; + public body?: UpdateInstanceConfigurationsRequestBody; + public constructor(instanceId?: string) { + this['instance_id'] = instanceId; + } + public withInstanceId(instanceId: string): UpdateInstanceConfigurationsRequest { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } + public withBody(body: UpdateInstanceConfigurationsRequestBody): UpdateInstanceConfigurationsRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/UpdateInstanceConfigurationsRequestBody.ts b/services/gaussdbfornosql/v3/model/UpdateInstanceConfigurationsRequestBody.ts new file mode 100644 index 000000000..19ea2e030 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/UpdateInstanceConfigurationsRequestBody.ts @@ -0,0 +1,12 @@ + + +export class UpdateInstanceConfigurationsRequestBody { + public values?: { [key: string]: string; }; + public constructor(values?: { [key: string]: string; }) { + this['values'] = values; + } + public withValues(values: { [key: string]: string; }): UpdateInstanceConfigurationsRequestBody { + this['values'] = values; + return this; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/UpdateInstanceConfigurationsResponse.ts b/services/gaussdbfornosql/v3/model/UpdateInstanceConfigurationsResponse.ts new file mode 100644 index 000000000..a74aeff00 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/UpdateInstanceConfigurationsResponse.ts @@ -0,0 +1,30 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class UpdateInstanceConfigurationsResponse extends SdkResponse { + private 'job_id'?: string; + private 'restart_required'?: boolean; + public constructor() { + super(); + } + public withJobId(jobId: string): UpdateInstanceConfigurationsResponse { + this['job_id'] = jobId; + return this; + } + public set jobId(jobId: string | undefined) { + this['job_id'] = jobId; + } + public get jobId(): string | undefined { + return this['job_id']; + } + public withRestartRequired(restartRequired: boolean): UpdateInstanceConfigurationsResponse { + this['restart_required'] = restartRequired; + return this; + } + public set restartRequired(restartRequired: boolean | undefined) { + this['restart_required'] = restartRequired; + } + public get restartRequired(): boolean | undefined { + return this['restart_required']; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/public-api.ts b/services/gaussdbfornosql/v3/public-api.ts index 980bc7cbd..79c802d06 100644 --- a/services/gaussdbfornosql/v3/public-api.ts +++ b/services/gaussdbfornosql/v3/public-api.ts @@ -6,6 +6,9 @@ export * from './model/ApplicableInstanceRsp'; export * from './model/ApplyConfigurationRequest'; export * from './model/ApplyConfigurationRequestBody'; export * from './model/ApplyConfigurationResponse'; +export * from './model/ApplyConfigurationToInstancesRequest'; +export * from './model/ApplyConfigurationToInstancesRequestBody'; +export * from './model/ApplyConfigurationToInstancesResponse'; export * from './model/ApplyHistoryRsp'; export * from './model/AvailabilityZoneDetail'; export * from './model/Backup'; @@ -20,6 +23,8 @@ export * from './model/BatchUpgradeDatabaseVersionRequest'; export * from './model/BatchUpgradeDatabaseVersionRequestBody'; export * from './model/BatchUpgradeDatabaseVersionResponse'; export * from './model/BigKeysInfoResponseBody'; +export * from './model/CancelInstanceScheduleWindowRequest'; +export * from './model/CancelInstanceScheduleWindowResponse'; export * from './model/CassandraSlowLogDetail'; export * from './model/ChargeInfoOption'; export * from './model/ChargeInfoResult'; @@ -50,6 +55,12 @@ export * from './model/CreateConfigurationRequest'; export * from './model/CreateConfigurationRequestBody'; export * from './model/CreateConfigurationResponse'; export * from './model/CreateConfigurationResult'; +export * from './model/CreateDbCacheMappingRequest'; +export * from './model/CreateDbCacheMappingRequestBody'; +export * from './model/CreateDbCacheMappingResponse'; +export * from './model/CreateDbCacheRuleRequest'; +export * from './model/CreateDbCacheRuleRequestBody'; +export * from './model/CreateDbCacheRuleResponse'; export * from './model/CreateDbUserRequest'; export * from './model/CreateDbUserResponse'; export * from './model/CreateDisasterRecoveryRequest'; @@ -68,6 +79,12 @@ export * from './model/DeleteBackupRequest'; export * from './model/DeleteBackupResponse'; export * from './model/DeleteConfigurationRequest'; export * from './model/DeleteConfigurationResponse'; +export * from './model/DeleteDbCacheMappingRequest'; +export * from './model/DeleteDbCacheMappingRequestBody'; +export * from './model/DeleteDbCacheMappingResponse'; +export * from './model/DeleteDbCacheRuleRequest'; +export * from './model/DeleteDbCacheRuleRequestBody'; +export * from './model/DeleteDbCacheRuleResponse'; export * from './model/DeleteDbUserRequest'; export * from './model/DeleteDbUserResponse'; export * from './model/DeleteDisasterRecoveryRequest'; @@ -115,6 +132,10 @@ export * from './model/ListConfigurationsResponse'; export * from './model/ListConfigurationsResult'; export * from './model/ListDatastoresRequest'; export * from './model/ListDatastoresResponse'; +export * from './model/ListDbCacheMappingsRequest'; +export * from './model/ListDbCacheMappingsResponse'; +export * from './model/ListDbCacheRulesRequest'; +export * from './model/ListDbCacheRulesResponse'; export * from './model/ListDbUsersRequest'; export * from './model/ListDbUsersResponse'; export * from './model/ListDedicatedResourceResult'; @@ -132,6 +153,8 @@ export * from './model/ListInfluxdbSlowLogsRequestBody'; export * from './model/ListInfluxdbSlowLogsResponse'; export * from './model/ListInstanceDatabasesRequest'; export * from './model/ListInstanceDatabasesResponse'; +export * from './model/ListInstanceMaintenanceWindowRequest'; +export * from './model/ListInstanceMaintenanceWindowResponse'; export * from './model/ListInstanceTagsRequest'; export * from './model/ListInstanceTagsResponse'; export * from './model/ListInstanceTagsResult'; @@ -163,6 +186,8 @@ export * from './model/ListMongodbErrorLogsResponse'; export * from './model/ListMongodbSlowLogsRequest'; export * from './model/ListMongodbSlowLogsRequestBody'; export * from './model/ListMongodbSlowLogsResponse'; +export * from './model/ListNosqlTaskListRequest'; +export * from './model/ListNosqlTaskListResponse'; export * from './model/ListProjectTagsRequest'; export * from './model/ListProjectTagsResponse'; export * from './model/ListRecycleInstancesRequest'; @@ -184,6 +209,9 @@ export * from './model/ModifyDbUserPrivilegeRequest'; export * from './model/ModifyDbUserPrivilegeResponse'; export * from './model/ModifyEpsQuotasRequest'; export * from './model/ModifyEpsQuotasResponse'; +export * from './model/ModifyInstanceMaintenanceWindowRequest'; +export * from './model/ModifyInstanceMaintenanceWindowResponse'; +export * from './model/ModifyInstanceOpsWindowV3Req'; export * from './model/ModifyPortRequest'; export * from './model/ModifyPortRequestBody'; export * from './model/ModifyPortResponse'; @@ -212,6 +240,8 @@ export * from './model/PauseResumeDataSynchronizationRequest'; export * from './model/PauseResumeDataSynchronizationResponse'; export * from './model/PrecheckDisasterRecoveryInstance'; export * from './model/PrecheckDisasterRecoveryOperationBody'; +export * from './model/QueryDBCacheMappingResponse'; +export * from './model/QueryDBCacheRuleResponse'; export * from './model/QueryDatabaseTableInfo'; export * from './model/QueryInstanceBackupResponseBodyBackups'; export * from './model/QueryInstanceBackupResponseBodyDatastore'; @@ -256,12 +286,16 @@ export * from './model/RestoreRequestBody'; export * from './model/SaveLtsConfigsRequest'; export * from './model/SaveLtsConfigsRequestBody'; export * from './model/SaveLtsConfigsResponse'; +export * from './model/ScheduleDetailInfo'; export * from './model/SetAutoEnlargePolicyRequest'; export * from './model/SetAutoEnlargePolicyResponse'; export * from './model/SetAutoPolicyRequestBody'; export * from './model/SetBackupPolicyRequest'; export * from './model/SetBackupPolicyRequestBody'; export * from './model/SetBackupPolicyResponse'; +export * from './model/SetInstanceDataDumpRequest'; +export * from './model/SetInstanceDataDumpRequestBody'; +export * from './model/SetInstanceDataDumpResponse'; export * from './model/SetRecyclePolicyRequest'; export * from './model/SetRecyclePolicyResponse'; export * from './model/ShowAllInstancesBackupsNewRequest'; @@ -276,6 +310,8 @@ export * from './model/ShowApplyHistoryRequest'; export * from './model/ShowApplyHistoryResponse'; export * from './model/ShowAutoEnlargePolicyRequest'; export * from './model/ShowAutoEnlargePolicyResponse'; +export * from './model/ShowBackupPoliciesRequest'; +export * from './model/ShowBackupPoliciesResponse'; export * from './model/ShowBackupPolicyRequest'; export * from './model/ShowBackupPolicyResponse'; export * from './model/ShowBackupPolicyResult'; @@ -312,6 +348,8 @@ export * from './model/ShowResourcesDetailResponseBody'; export * from './model/ShowResourcesListResponseBody'; export * from './model/ShowRestorableListRequest'; export * from './model/ShowRestorableListResponse'; +export * from './model/ShowSecondLevelMonitoringStatusRequest'; +export * from './model/ShowSecondLevelMonitoringStatusResponse'; export * from './model/ShowSlowLogDesensitizationRequest'; export * from './model/ShowSlowLogDesensitizationResponse'; export * from './model/ShrinkInstanceNodeRequest'; @@ -322,6 +360,9 @@ export * from './model/SwitchIpGroupRequest'; export * from './model/SwitchIpGroupRequestBody'; export * from './model/SwitchIpGroupRequestBodyIpGroups'; export * from './model/SwitchIpGroupResponse'; +export * from './model/SwitchSecondLevelMonitoringRequest'; +export * from './model/SwitchSecondLevelMonitoringRequestBody'; +export * from './model/SwitchSecondLevelMonitoringResponse'; export * from './model/SwitchSlowlogDesensitizationRequest'; export * from './model/SwitchSlowlogDesensitizationRequestBody'; export * from './model/SwitchSlowlogDesensitizationResponse'; @@ -344,11 +385,17 @@ export * from './model/UpdateConfigurationResponse'; export * from './model/UpdateDatabasesRequest'; export * from './model/UpdateDatabasesRequestBody'; export * from './model/UpdateDatabasesResponse'; +export * from './model/UpdateDbCacheRuleRequest'; +export * from './model/UpdateDbCacheRuleRequestBody'; +export * from './model/UpdateDbCacheRuleResponse'; export * from './model/UpdateHighRiskCommandsRequest'; export * from './model/UpdateHighRiskCommandsResponse'; export * from './model/UpdateInstanceConfigurationRequest'; export * from './model/UpdateInstanceConfigurationRequestBody'; export * from './model/UpdateInstanceConfigurationResponse'; +export * from './model/UpdateInstanceConfigurationsRequest'; +export * from './model/UpdateInstanceConfigurationsRequestBody'; +export * from './model/UpdateInstanceConfigurationsResponse'; export * from './model/UpdateInstanceNameRequest'; export * from './model/UpdateInstanceNameRequestBody'; export * from './model/UpdateInstanceNameResponse'; diff --git a/services/gaussdbforopengauss/v3/GaussDBforopenGaussClient.ts b/services/gaussdbforopengauss/v3/GaussDBforopenGaussClient.ts index 783c4bcb4..2d50bf251 100644 --- a/services/gaussdbforopengauss/v3/GaussDBforopenGaussClient.ts +++ b/services/gaussdbforopengauss/v3/GaussDBforopenGaussClient.ts @@ -2298,13 +2298,13 @@ export class GaussDBforopenGaussClient { } /** - * 开启指定实例的MySQl兼容端口。 + * 开启指定实例的M兼容端口。 * * Please refer to HUAWEI cloud API Explorer for details. * - * @summary 开启MySQl兼容端口服务 + * @summary 开启M兼容端口服务 * @param {string} instanceId 实例ID。 - * @param {StartMySQLCompatibilityRequestBody} startMySQLCompatibilityRequestBody 开启MySQL兼容端口服务请求体。 + * @param {StartMySQLCompatibilityRequestBody} startMySQLCompatibilityRequestBody 开启M兼容端口服务请求体。 * @param {'zh-cn' | 'en-us'} [xLanguage] 语言。默认值:en-us。 * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -2444,13 +2444,13 @@ export class GaussDBforopenGaussClient { } /** - * 更新指定实例的MySQl兼容端口服务配置。 + * 更新指定实例的M兼容端口服务配置。 * * Please refer to HUAWEI cloud API Explorer for details. * - * @summary 更新/关闭MySQl兼容端口服务 + * @summary 更新/关闭M兼容端口服务 * @param {string} instanceId 实例ID。 - * @param {UpdateMySQLCompatibilityRequestBody} updateMySQLCompatibilityRequestBody 更新启MySQL兼容端口服务配置请求体。 + * @param {UpdateMySQLCompatibilityRequestBody} updateMySQLCompatibilityRequestBody 更新启M兼容端口服务配置请求体。 * @param {'zh-cn' | 'en-us'} [xLanguage] 语言。默认值:en-us。 * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -7525,7 +7525,7 @@ export const ParamCreater = function () { }, /** - * 开启指定实例的MySQl兼容端口。 + * 开启指定实例的M兼容端口。 * * Please refer to HUAWEI cloud API Explorer for details. */ @@ -7887,7 +7887,7 @@ export const ParamCreater = function () { }, /** - * 更新指定实例的MySQl兼容端口服务配置。 + * 更新指定实例的M兼容端口服务配置。 * * Please refer to HUAWEI cloud API Explorer for details. */ diff --git a/services/gaussdbforopengauss/v3/model/CreateLimitTaskResponse.ts b/services/gaussdbforopengauss/v3/model/CreateLimitTaskResponse.ts index 80e3254f4..980f30b93 100644 --- a/services/gaussdbforopengauss/v3/model/CreateLimitTaskResponse.ts +++ b/services/gaussdbforopengauss/v3/model/CreateLimitTaskResponse.ts @@ -10,7 +10,7 @@ export class CreateLimitTaskResponse extends SdkResponse { public databases?: string; private 'task_name'?: string; private 'sql_model'?: string; - private 'key_words'?: Array; + private 'key_words'?: string; public status?: string; private 'instance_id'?: string; private 'rule_name'?: string; @@ -24,7 +24,7 @@ export class CreateLimitTaskResponse extends SdkResponse { public creator?: string; public modifier?: string; private 'node_infos'?: Array; - public jobId?: string; + private 'job_id'?: string; public constructor() { super(); } @@ -92,14 +92,14 @@ export class CreateLimitTaskResponse extends SdkResponse { public get sqlModel(): string | undefined { return this['sql_model']; } - public withKeyWords(keyWords: Array): CreateLimitTaskResponse { + public withKeyWords(keyWords: string): CreateLimitTaskResponse { this['key_words'] = keyWords; return this; } - public set keyWords(keyWords: Array | undefined) { + public set keyWords(keyWords: string | undefined) { this['key_words'] = keyWords; } - public get keyWords(): Array | undefined { + public get keyWords(): string | undefined { return this['key_words']; } public withStatus(status: string): CreateLimitTaskResponse { @@ -203,7 +203,13 @@ export class CreateLimitTaskResponse extends SdkResponse { return this['node_infos']; } public withJobId(jobId: string): CreateLimitTaskResponse { - this['jobId'] = jobId; + this['job_id'] = jobId; return this; } + public set jobId(jobId: string | undefined) { + this['job_id'] = jobId; + } + public get jobId(): string | undefined { + return this['job_id']; + } } \ No newline at end of file diff --git a/services/gaussdbforopengauss/v3/model/UpdateLimitTaskResponse.ts b/services/gaussdbforopengauss/v3/model/UpdateLimitTaskResponse.ts index 927be7495..317f295d8 100644 --- a/services/gaussdbforopengauss/v3/model/UpdateLimitTaskResponse.ts +++ b/services/gaussdbforopengauss/v3/model/UpdateLimitTaskResponse.ts @@ -12,7 +12,7 @@ export class UpdateLimitTaskResponse extends SdkResponse { private 'cpu_utilization'?: number; private 'memory_utilization'?: number; private 'rule_name'?: string; - public jobId?: string; + private 'job_id'?: string; public constructor() { super(); } @@ -111,7 +111,13 @@ export class UpdateLimitTaskResponse extends SdkResponse { return this['rule_name']; } public withJobId(jobId: string): UpdateLimitTaskResponse { - this['jobId'] = jobId; + this['job_id'] = jobId; return this; } + public set jobId(jobId: string | undefined) { + this['job_id'] = jobId; + } + public get jobId(): string | undefined { + return this['job_id']; + } } \ No newline at end of file diff --git a/services/gaussdbforopengauss/v3/model/UpdateMySQLCompatibilityRequestBody.ts b/services/gaussdbforopengauss/v3/model/UpdateMySQLCompatibilityRequestBody.ts index 6b59f7c11..c950d3a30 100644 --- a/services/gaussdbforopengauss/v3/model/UpdateMySQLCompatibilityRequestBody.ts +++ b/services/gaussdbforopengauss/v3/model/UpdateMySQLCompatibilityRequestBody.ts @@ -2,7 +2,8 @@ export class UpdateMySQLCompatibilityRequestBody { public port?: string; - public constructor() { + public constructor(port?: string) { + this['port'] = port; } public withPort(port: string): UpdateMySQLCompatibilityRequestBody { this['port'] = port; diff --git a/services/hss/v5/HssClient.ts b/services/hss/v5/HssClient.ts index 0afe6eb1a..cc6fd71dd 100644 --- a/services/hss/v5/HssClient.ts +++ b/services/hss/v5/HssClient.ts @@ -797,7 +797,7 @@ export class HssClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询软件的服务器列表 - * @param {string} hostId 主机id + * @param {string} [hostId] 主机id * @param {string} [hostName] 主机名称 * @param {string} [appName] 软件名称 * @param {string} [hostIp] 主机ip @@ -3756,9 +3756,6 @@ export const ParamCreater = function () { } - if (hostId === null || hostId === undefined) { - throw new RequiredError('hostId','Required parameter hostId was null or undefined when calling listApps.'); - } if (hostId !== null && hostId !== undefined) { localVarQueryParameter['host_id'] = hostId; } diff --git a/services/hss/v5/HssRegion.ts b/services/hss/v5/HssRegion.ts index 14cd5bee6..967d003bd 100644 --- a/services/hss/v5/HssRegion.ts +++ b/services/hss/v5/HssRegion.ts @@ -12,6 +12,7 @@ export class HssRegion { public static CN_SOUTHWEST_2 = new Region("cn-southwest-2", ["https://hss.cn-southwest-2.myhuaweicloud.com"]); public static CN_EAST_2 = new Region("cn-east-2", ["https://hss.cn-east-2.myhuaweicloud.com"]); public static CN_EAST_3 = new Region("cn-east-3", ["https://hss.cn-east-3.myhuaweicloud.com"]); + public static CN_EAST_4 = new Region("cn-east-4", ["https://hss.cn-east-4.myhuaweicloud.com"]); public static CN_SOUTH_1 = new Region("cn-south-1", ["https://hss.cn-south-1.myhuaweicloud.com"]); public static CN_SOUTH_2 = new Region("cn-south-2", ["https://hss.cn-south-2.myhuaweicloud.com"]); public static AP_SOUTHEAST_1 = new Region("ap-southeast-1", ["https://hss.ap-southeast-1.myhuaweicloud.com"]); @@ -41,6 +42,7 @@ export class HssRegion { "cn-southwest-2":HssRegion.CN_SOUTHWEST_2, "cn-east-2":HssRegion.CN_EAST_2, "cn-east-3":HssRegion.CN_EAST_3, + "cn-east-4":HssRegion.CN_EAST_4, "cn-south-1":HssRegion.CN_SOUTH_1, "cn-south-2":HssRegion.CN_SOUTH_2, "ap-southeast-1":HssRegion.AP_SOUTHEAST_1, diff --git a/services/hss/v5/model/ListAppsRequest.ts b/services/hss/v5/model/ListAppsRequest.ts index 640625325..4848585d9 100644 --- a/services/hss/v5/model/ListAppsRequest.ts +++ b/services/hss/v5/model/ListAppsRequest.ts @@ -12,8 +12,7 @@ export class ListAppsRequest { public offset?: number; public category?: string; private 'part_match'?: boolean; - public constructor(hostId?: string) { - this['host_id'] = hostId; + public constructor() { } public withHostId(hostId: string): ListAppsRequest { this['host_id'] = hostId; diff --git a/services/iotda/v5/IoTDAClient.ts b/services/iotda/v5/IoTDAClient.ts index 492c8bd0e..3871d3764 100644 --- a/services/iotda/v5/IoTDAClient.ts +++ b/services/iotda/v5/IoTDAClient.ts @@ -2167,8 +2167,6 @@ export class IoTDAClient { * @summary 创建编解码函数 * @param {FunctionRequestDTO} addFunctionsRequestBody 创建的编解码函数信息 * @param {string} [instanceId] **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 - * @param {string} [spAuthToken] **参数说明**:Sp用户Token。通过调用IoBPS服务获取SP用户Token。 - * @param {string} [stageAuthToken] **参数说明**:Stage用户的Token, 仅提供给IoStage服务使用。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -2189,8 +2187,6 @@ export class IoTDAClient { * @summary 删除编解码函数 * @param {string} functionId **参数说明**:函数ID。 * @param {string} [instanceId] **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 - * @param {string} [spAuthToken] **参数说明**:Sp用户Token。通过调用IoBPS服务获取SP用户Token。 - * @param {string} [stageAuthToken] **参数说明**:Stage用户的Token, 仅提供给IoStage服务使用。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -2211,8 +2207,6 @@ export class IoTDAClient { * @summary 查询编解码函数 * @param {string} productId **参数说明**:设备关联的产品ID,用于唯一标识一个产品模型,创建产品后获得。方法请参见 [[创建产品](https://support.huaweicloud.com/api-iothub/iot_06_v5_0050.html)](tag:hws)[[创建产品](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0050.html)](tag:hws_hk)。 **取值范围**:长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。 * @param {string} [instanceId] **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 - * @param {string} [spAuthToken] **参数说明**:Sp用户Token。通过调用IoBPS服务获取SP用户Token。 - * @param {string} [stageAuthToken] **参数说明**:Stage用户的Token, 仅提供给IoStage服务使用。 * @param {string} [appId] **参数说明**:资源空间ID。此参数为非必选参数,存在多资源空间的用户需要使用该接口时,可以携带该参数查询指定资源空间下的产品列表,不携带该参数则会查询该用户下所有产品列表。 **取值范围**:长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。 * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -7515,22 +7509,14 @@ export const ParamCreater = function () { let body: any; let instanceId; - - let spAuthToken; - - let stageAuthToken; if (addFunctionsRequest !== null && addFunctionsRequest !== undefined) { if (addFunctionsRequest instanceof AddFunctionsRequest) { body = addFunctionsRequest.body instanceId = addFunctionsRequest.instanceId; - spAuthToken = addFunctionsRequest.spAuthToken; - stageAuthToken = addFunctionsRequest.stageAuthToken; } else { body = addFunctionsRequest['body']; instanceId = addFunctionsRequest['Instance-Id']; - spAuthToken = addFunctionsRequest['Sp-Auth-Token']; - stageAuthToken = addFunctionsRequest['Stage-Auth-Token']; } } @@ -7541,12 +7527,6 @@ export const ParamCreater = function () { if (instanceId !== undefined && instanceId !== null) { localVarHeaderParameter['Instance-Id'] = String(instanceId); } - if (spAuthToken !== undefined && spAuthToken !== null) { - localVarHeaderParameter['Sp-Auth-Token'] = String(spAuthToken); - } - if (stageAuthToken !== undefined && stageAuthToken !== null) { - localVarHeaderParameter['Stage-Auth-Token'] = String(stageAuthToken); - } localVarHeaderParameter['Content-Type'] = 'application/json'; options.data = body !== undefined ? body : {}; @@ -7574,22 +7554,14 @@ export const ParamCreater = function () { let functionId; let instanceId; - - let spAuthToken; - - let stageAuthToken; if (deleteFunctionsRequest !== null && deleteFunctionsRequest !== undefined) { if (deleteFunctionsRequest instanceof DeleteFunctionsRequest) { functionId = deleteFunctionsRequest.functionId; instanceId = deleteFunctionsRequest.instanceId; - spAuthToken = deleteFunctionsRequest.spAuthToken; - stageAuthToken = deleteFunctionsRequest.stageAuthToken; } else { functionId = deleteFunctionsRequest['function_id']; instanceId = deleteFunctionsRequest['Instance-Id']; - spAuthToken = deleteFunctionsRequest['Sp-Auth-Token']; - stageAuthToken = deleteFunctionsRequest['Stage-Auth-Token']; } } @@ -7600,12 +7572,6 @@ export const ParamCreater = function () { if (instanceId !== undefined && instanceId !== null) { localVarHeaderParameter['Instance-Id'] = String(instanceId); } - if (spAuthToken !== undefined && spAuthToken !== null) { - localVarHeaderParameter['Sp-Auth-Token'] = String(spAuthToken); - } - if (stageAuthToken !== undefined && stageAuthToken !== null) { - localVarHeaderParameter['Stage-Auth-Token'] = String(stageAuthToken); - } options.pathParams = { 'function_id': functionId, }; options.headers = localVarHeaderParameter; @@ -7633,24 +7599,16 @@ export const ParamCreater = function () { let instanceId; - let spAuthToken; - - let stageAuthToken; - let appId; if (listFunctionsRequest !== null && listFunctionsRequest !== undefined) { if (listFunctionsRequest instanceof ListFunctionsRequest) { productId = listFunctionsRequest.productId; instanceId = listFunctionsRequest.instanceId; - spAuthToken = listFunctionsRequest.spAuthToken; - stageAuthToken = listFunctionsRequest.stageAuthToken; appId = listFunctionsRequest.appId; } else { productId = listFunctionsRequest['product_id']; instanceId = listFunctionsRequest['Instance-Id']; - spAuthToken = listFunctionsRequest['Sp-Auth-Token']; - stageAuthToken = listFunctionsRequest['Stage-Auth-Token']; appId = listFunctionsRequest['app_id']; } } @@ -7668,12 +7626,6 @@ export const ParamCreater = function () { if (instanceId !== undefined && instanceId !== null) { localVarHeaderParameter['Instance-Id'] = String(instanceId); } - if (spAuthToken !== undefined && spAuthToken !== null) { - localVarHeaderParameter['Sp-Auth-Token'] = String(spAuthToken); - } - if (stageAuthToken !== undefined && stageAuthToken !== null) { - localVarHeaderParameter['Stage-Auth-Token'] = String(stageAuthToken); - } options.queryParams = localVarQueryParameter; options.headers = localVarHeaderParameter; diff --git a/services/iotda/v5/model/AddFunctionsRequest.ts b/services/iotda/v5/model/AddFunctionsRequest.ts index 98e9c1118..edde79058 100644 --- a/services/iotda/v5/model/AddFunctionsRequest.ts +++ b/services/iotda/v5/model/AddFunctionsRequest.ts @@ -3,8 +3,6 @@ import { FunctionRequestDTO } from './FunctionRequestDTO'; export class AddFunctionsRequest { private 'Instance-Id'?: string; - private 'Sp-Auth-Token'?: string; - private 'Stage-Auth-Token'?: string; public body?: FunctionRequestDTO; public constructor() { } @@ -18,26 +16,6 @@ export class AddFunctionsRequest { public get instanceId(): string | undefined { return this['Instance-Id']; } - public withSpAuthToken(spAuthToken: string): AddFunctionsRequest { - this['Sp-Auth-Token'] = spAuthToken; - return this; - } - public set spAuthToken(spAuthToken: string | undefined) { - this['Sp-Auth-Token'] = spAuthToken; - } - public get spAuthToken(): string | undefined { - return this['Sp-Auth-Token']; - } - public withStageAuthToken(stageAuthToken: string): AddFunctionsRequest { - this['Stage-Auth-Token'] = stageAuthToken; - return this; - } - public set stageAuthToken(stageAuthToken: string | undefined) { - this['Stage-Auth-Token'] = stageAuthToken; - } - public get stageAuthToken(): string | undefined { - return this['Stage-Auth-Token']; - } public withBody(body: FunctionRequestDTO): AddFunctionsRequest { this['body'] = body; return this; diff --git a/services/iotda/v5/model/DeleteFunctionsRequest.ts b/services/iotda/v5/model/DeleteFunctionsRequest.ts index 817d31461..e4354dbf3 100644 --- a/services/iotda/v5/model/DeleteFunctionsRequest.ts +++ b/services/iotda/v5/model/DeleteFunctionsRequest.ts @@ -2,8 +2,6 @@ export class DeleteFunctionsRequest { private 'Instance-Id'?: string; - private 'Sp-Auth-Token'?: string; - private 'Stage-Auth-Token'?: string; private 'function_id'?: string; public constructor(functionId?: string) { this['function_id'] = functionId; @@ -18,26 +16,6 @@ export class DeleteFunctionsRequest { public get instanceId(): string | undefined { return this['Instance-Id']; } - public withSpAuthToken(spAuthToken: string): DeleteFunctionsRequest { - this['Sp-Auth-Token'] = spAuthToken; - return this; - } - public set spAuthToken(spAuthToken: string | undefined) { - this['Sp-Auth-Token'] = spAuthToken; - } - public get spAuthToken(): string | undefined { - return this['Sp-Auth-Token']; - } - public withStageAuthToken(stageAuthToken: string): DeleteFunctionsRequest { - this['Stage-Auth-Token'] = stageAuthToken; - return this; - } - public set stageAuthToken(stageAuthToken: string | undefined) { - this['Stage-Auth-Token'] = stageAuthToken; - } - public get stageAuthToken(): string | undefined { - return this['Stage-Auth-Token']; - } public withFunctionId(functionId: string): DeleteFunctionsRequest { this['function_id'] = functionId; return this; diff --git a/services/iotda/v5/model/DeleteFunctionsResponse.ts b/services/iotda/v5/model/DeleteFunctionsResponse.ts index 11e66dc56..a32d0cab9 100644 --- a/services/iotda/v5/model/DeleteFunctionsResponse.ts +++ b/services/iotda/v5/model/DeleteFunctionsResponse.ts @@ -2,12 +2,7 @@ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; export class DeleteFunctionsResponse extends SdkResponse { - public body?: string; public constructor() { super(); } - public withBody(body: string): DeleteFunctionsResponse { - this['body'] = body; - return this; - } } \ No newline at end of file diff --git a/services/iotda/v5/model/ListFunctionsRequest.ts b/services/iotda/v5/model/ListFunctionsRequest.ts index 7bf895892..8ee1518f4 100644 --- a/services/iotda/v5/model/ListFunctionsRequest.ts +++ b/services/iotda/v5/model/ListFunctionsRequest.ts @@ -2,8 +2,6 @@ export class ListFunctionsRequest { private 'Instance-Id'?: string; - private 'Sp-Auth-Token'?: string; - private 'Stage-Auth-Token'?: string; private 'app_id'?: string; private 'product_id'?: string; public constructor(productId?: string) { @@ -19,26 +17,6 @@ export class ListFunctionsRequest { public get instanceId(): string | undefined { return this['Instance-Id']; } - public withSpAuthToken(spAuthToken: string): ListFunctionsRequest { - this['Sp-Auth-Token'] = spAuthToken; - return this; - } - public set spAuthToken(spAuthToken: string | undefined) { - this['Sp-Auth-Token'] = spAuthToken; - } - public get spAuthToken(): string | undefined { - return this['Sp-Auth-Token']; - } - public withStageAuthToken(stageAuthToken: string): ListFunctionsRequest { - this['Stage-Auth-Token'] = stageAuthToken; - return this; - } - public set stageAuthToken(stageAuthToken: string | undefined) { - this['Stage-Auth-Token'] = stageAuthToken; - } - public get stageAuthToken(): string | undefined { - return this['Stage-Auth-Token']; - } public withAppId(appId: string): ListFunctionsRequest { this['app_id'] = appId; return this; diff --git a/services/live/v2/LiveClient.ts b/services/live/v2/LiveClient.ts index 4473f1384..be43c2c2e 100644 --- a/services/live/v2/LiveClient.ts +++ b/services/live/v2/LiveClient.ts @@ -95,7 +95,7 @@ export class LiveClient { * @summary 查询直播各区域指标分布接口 * @param {string} startTime 查询起始时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。最大查询跨度1天,最大查询周期90天。 * @param {string} endTime 查询结束时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。最大查询跨度1天,最大查询周期90天。 - * @param {Array} area 需查询的计费大区,取值如下: - CN:中国内地。 - AP1:亚太1区。 - AP2:亚太2区。 - AP3:亚太3区。 - MEAA:中东非洲。 - SA:南美。 - EU:欧洲。 - ALL:全部。 中国内地返回结果为省份/直辖市的中文名称,比如:广东、上海; 海外大区与地区/国家的对应关系请参考[地区/国家代码对照表](live_03_0049.xml)。 + * @param {Array} area 需查询的计费大区,取值如下: - CN:中国内地。 - AP1:亚太1区。 - AP2:亚太2区。 - AP3:亚太3区。 - MEAA:中东非洲。 - SA:南美。 - EU:欧洲。 - ALL:全部。 中国内地返回结果为省份/直辖市的中文名称,比如:广东、上海; 海外大区与地区/国家的对应关系请参考[地区/国家代码对照表](https://support.huaweicloud.com/api-live/live_03_0049.html)。 * @param {string} metric 指标,取值如下: - bandwidth:带宽 - traffic:流量 - player:观众数 * @param {Array} [playDomains] 需查询的播放域名列表,最多支持查询100个域名。 * @param {string} [app] 需查询的app。 @@ -130,8 +130,8 @@ export class LiveClient { * @param {Array} [playDomains] 播放域名列表,最多支持查询100个域名,多个域名以逗号分隔。 如果不传入域名,则查询租户下所有播放域名的带宽数据。 * @param {string} [app] 应用名称。 * @param {string} [stream] 流名。 - * @param {Array} [country] 国家列表。具体取值请参考[国家名称缩写](vod_08_0172.xml),不填写查询所有国家。 - * @param {Array} [region] 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + * @param {Array} [country] 国家列表。具体取值请参考[国家名称缩写](https://support.huaweicloud.com/api-live/vod_08_0172.html),不填写查询所有国家。 + * @param {Array} [region] 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 * @param {Array} [isp] 运营商列表,取值如下: - CMCC :移动 - CTCC :电信 - CUCC :联通 - OTHER :其他 不填写查询所有运营商。 * @param {'flv' | 'hls'} [protocol] 请求协议 * @param {300 | 3600 | 86400} [interval] 查询数据的时间粒度。支持300(默认值), 3600和86400秒。不传值时,使用默认值300秒。 @@ -165,7 +165,7 @@ export class LiveClient { * @param {Array} [playDomains] 播放域名列表,最多支持查询100个域名,多个域名以逗号分隔。 如果不传入域名,则查询租户下所有播放域名的带宽峰值。 * @param {string} [app] 应用名称。 * @param {string} [stream] 流名。 - * @param {Array} [region] 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + * @param {Array} [region] 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 * @param {Array} [isp] 运营商列表,取值如下: - CMCC :移动 - CTCC : 电信 - CUCC :联通 - OTHER :其他 不填写查询所有运营商。 * @param {'flv' | 'hls'} [protocol] 请求协议 * @param {string} [startTime] 起始时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。最大查询跨度31天,最大查询周期一年。 若参数为空,默认查询7天数据。 @@ -198,7 +198,7 @@ export class LiveClient { * @param {Array} [playDomains] 播放域名列表,最多支持查询100个域名,多个域名以逗号分隔。 如果不传入域名,则查询租户下所有播放域名的流量数据。 * @param {string} [app] 应用名称。 * @param {string} [stream] 流名。 - * @param {Array} [region] 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + * @param {Array} [region] 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 * @param {Array} [isp] 运营商列表,取值如下: - CMCC :移动 - CTCC : 电信 - CUCC :联通 - OTHER :其他 不填写查询所有运营商。 * @param {'flv' | 'hls'} [protocol] 请求协议 * @param {number} [interval] 查询数据的时间粒度。支持300(默认值), 3600和86400秒。不传值时,使用默认值300秒。 @@ -232,7 +232,7 @@ export class LiveClient { * @param {Array} [playDomains] 播放域名列表,最多支持查询100个域名,多个域名以逗号分隔。 如果不传入域名,则查询租户下所有播放域名的流量汇总量。 * @param {string} [app] 应用名称。 * @param {string} [stream] 流名。 - * @param {Array} [region] 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + * @param {Array} [region] 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 * @param {Array} [isp] 运营商列表。取值如下: - CMCC :移动 - CTCC : 电信 - CUCC :联通 - OTHER :其他 不填写查询所有运营商。 * @param {'flv' | 'hls'} [protocol] 请求协议 * @param {string} [startTime] 起始时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。最大查询跨度31天,最大查询周期一年。 若参数为空,默认查询7天数据。 @@ -309,7 +309,7 @@ export class LiveClient { * @summary 查询直播拉流HTTP状态码接口 * @param {Array} playDomains 播放域名列表,最多支持查询100个域名,多个域名以逗号分隔。 * @param {Array} [code] 状态码。 - * @param {Array} [region] 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + * @param {Array} [region] 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 * @param {Array} [isp] 运营商列表,取值如下: - CMCC :移动 - CTCC : 电信 - CUCC :联通 - OTHER :其他 不填写查询所有运营商。 * @param {string} [startTime] 起始时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。若参数为空,默认查询最近1小时数据。 最大查询跨度1天,最大查询周期7天。 * @param {string} [endTime] 结束时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。 若参数为空,默认为当前时间。结束时间需大于起始时间。 最大查询跨度1天,最大查询周期7天。 @@ -399,8 +399,8 @@ export class LiveClient { * @param {string} [app] app名。 * @param {string} [stream] 流名。 * @param {Array} [isp] 运营商列表,取值如下: - CMCC :移动 - CTCC : 电信 - CUCC :联通 - OTHER :其他 不填写查询所有运营商。 - * @param {Array} [country] 国家列表。具体取值请参考[国家名称缩写](vod_08_0172.xml),不填写查询所有国家。 - * @param {Array} [region] 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + * @param {Array} [country] 国家列表。具体取值请参考[国家名称缩写](https://support.huaweicloud.com/api-live/vod_08_0172.html),不填写查询所有国家。 + * @param {Array} [region] 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 * @param {'flv' | 'hls'} [protocol] 请求协议 * @param {60 | 300} [interval] 查询数据的时间粒度,支持60(默认值), 300秒。不传值时,使用默认值60秒。 * @param {string} [startTime] 起始时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。最大查询跨度31天,最大查询周期一年。 若参数为空,默认查询7天数据。 @@ -470,7 +470,7 @@ export class LiveClient { * @param {Array} publishDomains 推流域名列表,最多支持查询100个域名,多个域名以逗号分隔,若查询多个域名,则返回的是多个域名合并数据。 * @param {string} [app] 应用名称。 * @param {string} [stream] 流名。 - * @param {Array} [region] 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + * @param {Array} [region] 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 * @param {Array} [isp] 运营商列表,取值如下: - CMCC :移动 - CTCC : 电信 - CUCC :联通 - OTHER :其他 不填写查询所有运营商。 * @param {300 | 3600 | 86400} [interval] 查询数据的时间粒度。支持300(默认值),3600和86400秒。不传值时,使用默认值300秒。 * @param {'RELAY'} [type] 类型: - RELAY:转推 不填默认查询推流 diff --git a/services/meeting/v1/MeetingClient.ts b/services/meeting/v1/MeetingClient.ts index 1ccc2caea..86e663553 100644 --- a/services/meeting/v1/MeetingClient.ts +++ b/services/meeting/v1/MeetingClient.ts @@ -81,6 +81,8 @@ import { CancelRecurringMeetingResponse } from './model/CancelRecurringMeetingRe import { CancelRecurringSubMeetingRequest } from './model/CancelRecurringSubMeetingRequest'; import { CancelRecurringSubMeetingResponse } from './model/CancelRecurringSubMeetingResponse'; import { CategorySuggestions } from './model/CategorySuggestions'; +import { CheckCallNumberInConfRequest } from './model/CheckCallNumberInConfRequest'; +import { CheckCallNumberInConfResponse } from './model/CheckCallNumberInConfResponse'; import { CheckSlideVerifyCodeRequest } from './model/CheckSlideVerifyCodeRequest'; import { CheckSlideVerifyCodeResponse } from './model/CheckSlideVerifyCodeResponse'; import { CheckTokenRequest } from './model/CheckTokenRequest'; @@ -1273,6 +1275,25 @@ export class MeetingClient { return this.hcClient.sendRequest(options); } + /** + * 通过该接口查询号码,是否在会议中 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 根据号码,查询是否在会议中 + * @param {string} callNumber 呼叫号码 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public checkCallNumberInConf(checkCallNumberInConfRequest?: CheckCallNumberInConfRequest): Promise { + const options = ParamCreater().checkCallNumberInConf(checkCallNumberInConfRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 该接口提供校验滑块验证码。服务器收到请求,返回校验结果。用户在前台界面通过滑块操作匹配图形,使得抠图和原图吻合。然后服务器进行校验滑块验证码。 * @@ -6612,6 +6633,46 @@ export const ParamCreater = function () { return options; }, + /** + * 通过该接口查询号码,是否在会议中 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + checkCallNumberInConf(checkCallNumberInConfRequest?: CheckCallNumberInConfRequest) { + const options = { + method: "GET", + url: "/v2/mms/ncms/conferences/online/check-callnumber-in-conf", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let callNumber; + + if (checkCallNumberInConfRequest !== null && checkCallNumberInConfRequest !== undefined) { + if (checkCallNumberInConfRequest instanceof CheckCallNumberInConfRequest) { + callNumber = checkCallNumberInConfRequest.callNumber; + } else { + callNumber = checkCallNumberInConfRequest['call_number']; + } + } + + + if (callNumber === null || callNumber === undefined) { + throw new RequiredError('callNumber','Required parameter callNumber was null or undefined when calling checkCallNumberInConf.'); + } + if (callNumber !== null && callNumber !== undefined) { + localVarQueryParameter['call_number'] = callNumber; + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 该接口提供校验滑块验证码。服务器收到请求,返回校验结果。用户在前台界面通过滑块操作匹配图形,使得抠图和原图吻合。然后服务器进行校验滑块验证码。 * diff --git a/services/meeting/v1/model/CheckCallNumberInConfRequest.ts b/services/meeting/v1/model/CheckCallNumberInConfRequest.ts new file mode 100644 index 000000000..3fdf2eeda --- /dev/null +++ b/services/meeting/v1/model/CheckCallNumberInConfRequest.ts @@ -0,0 +1,18 @@ + + +export class CheckCallNumberInConfRequest { + private 'call_number'?: string; + public constructor(callNumber?: string) { + this['call_number'] = callNumber; + } + public withCallNumber(callNumber: string): CheckCallNumberInConfRequest { + this['call_number'] = callNumber; + return this; + } + public set callNumber(callNumber: string | undefined) { + this['call_number'] = callNumber; + } + public get callNumber(): string | undefined { + return this['call_number']; + } +} \ No newline at end of file diff --git a/services/meeting/v1/model/CheckCallNumberInConfResponse.ts b/services/meeting/v1/model/CheckCallNumberInConfResponse.ts new file mode 100644 index 000000000..bd827f4f2 --- /dev/null +++ b/services/meeting/v1/model/CheckCallNumberInConfResponse.ts @@ -0,0 +1,30 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class CheckCallNumberInConfResponse extends SdkResponse { + private 'in_conf'?: boolean; + private 'conf_id'?: string; + public constructor() { + super(); + } + public withInConf(inConf: boolean): CheckCallNumberInConfResponse { + this['in_conf'] = inConf; + return this; + } + public set inConf(inConf: boolean | undefined) { + this['in_conf'] = inConf; + } + public get inConf(): boolean | undefined { + return this['in_conf']; + } + public withConfId(confId: string): CheckCallNumberInConfResponse { + this['conf_id'] = confId; + return this; + } + public set confId(confId: string | undefined) { + this['conf_id'] = confId; + } + public get confId(): string | undefined { + return this['conf_id']; + } +} \ No newline at end of file diff --git a/services/meeting/v1/public-api.ts b/services/meeting/v1/public-api.ts index 560ec4b76..035119204 100644 --- a/services/meeting/v1/public-api.ts +++ b/services/meeting/v1/public-api.ts @@ -79,6 +79,8 @@ export * from './model/CancelRecurringMeetingResponse'; export * from './model/CancelRecurringSubMeetingRequest'; export * from './model/CancelRecurringSubMeetingResponse'; export * from './model/CategorySuggestions'; +export * from './model/CheckCallNumberInConfRequest'; +export * from './model/CheckCallNumberInConfResponse'; export * from './model/CheckSlideVerifyCodeRequest'; export * from './model/CheckSlideVerifyCodeResponse'; export * from './model/CheckTokenRequest'; diff --git a/services/metastudio/v1/MetaStudioClient.ts b/services/metastudio/v1/MetaStudioClient.ts index b45a0476d..716a71087 100644 --- a/services/metastudio/v1/MetaStudioClient.ts +++ b/services/metastudio/v1/MetaStudioClient.ts @@ -68,6 +68,9 @@ import { CreateAssetByReplicationInfoResponse } from './model/CreateAssetByRepli import { CreateBatchKnowledgeQuestionReq } from './model/CreateBatchKnowledgeQuestionReq'; import { CreateBatchKnowledgeQuestionRequest } from './model/CreateBatchKnowledgeQuestionRequest'; import { CreateBatchKnowledgeQuestionResponse } from './model/CreateBatchKnowledgeQuestionResponse'; +import { CreateBeautyPreviewJobReq } from './model/CreateBeautyPreviewJobReq'; +import { CreateBeautyPreviewJobRequest } from './model/CreateBeautyPreviewJobRequest'; +import { CreateBeautyPreviewJobResponse } from './model/CreateBeautyPreviewJobResponse'; import { CreateDialogUrlReq } from './model/CreateDialogUrlReq'; import { CreateDialogUrlRequest } from './model/CreateDialogUrlRequest'; import { CreateDialogUrlResponse } from './model/CreateDialogUrlResponse'; @@ -389,6 +392,8 @@ import { ShowAssetReplicationInfoRequest } from './model/ShowAssetReplicationInf import { ShowAssetReplicationInfoResponse } from './model/ShowAssetReplicationInfoResponse'; import { ShowAssetRequest } from './model/ShowAssetRequest'; import { ShowAssetResponse } from './model/ShowAssetResponse'; +import { ShowBeautyPreviewJobRequest } from './model/ShowBeautyPreviewJobRequest'; +import { ShowBeautyPreviewJobResponse } from './model/ShowBeautyPreviewJobResponse'; import { ShowDigitalHumanBusinessCardRequest } from './model/ShowDigitalHumanBusinessCardRequest'; import { ShowDigitalHumanBusinessCardResponse } from './model/ShowDigitalHumanBusinessCardResponse'; import { ShowHotQuestionRequest } from './model/ShowHotQuestionRequest'; @@ -453,6 +458,8 @@ import { SmartLiveJob } from './model/SmartLiveJob'; import { SmartLiveRoomBaseInfo } from './model/SmartLiveRoomBaseInfo'; import { SmartTextLayerConfig } from './model/SmartTextLayerConfig'; import { SmartVideoLayerConfig } from './model/SmartVideoLayerConfig'; +import { StartBeautyPreviewJobRequest } from './model/StartBeautyPreviewJobRequest'; +import { StartBeautyPreviewJobResponse } from './model/StartBeautyPreviewJobResponse'; import { StartSmartChatJobRequest } from './model/StartSmartChatJobRequest'; import { StartSmartChatJobResponse } from './model/StartSmartChatJobResponse'; import { StartSmartLiveReq } from './model/StartSmartLiveReq'; @@ -476,8 +483,10 @@ import { TTSAJob } from './model/TTSAJob'; import { TextConfig } from './model/TextConfig'; import { TextLayerConfig } from './model/TextLayerConfig'; import { ThirdPartyModelConfig } from './model/ThirdPartyModelConfig'; +import { TrainingAllocatedResource } from './model/TrainingAllocatedResource'; import { TrainingJobBasicInfo } from './model/TrainingJobBasicInfo'; import { TrainingJobInfo } from './model/TrainingJobInfo'; +import { TrainingVideoMarkInfo } from './model/TrainingVideoMarkInfo'; import { TriggerProcess } from './model/TriggerProcess'; import { Update2dModelTrainingJobReq } from './model/Update2dModelTrainingJobReq'; import { Update2dModelTrainingJobRequest } from './model/Update2dModelTrainingJobRequest'; @@ -766,6 +775,75 @@ export class MetaStudioClient { return this.hcClient.sendRequest(options); } + /** + * 该接口用于创建美白预览任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 创建美白预览任务 + * @param {CreateBeautyPreviewJobReq} createBeautyPreviewJobRequestBody 创建分身数字人模型训练任务请求。 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。 + * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。 + * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public createBeautyPreviewJob(createBeautyPreviewJobRequest?: CreateBeautyPreviewJobRequest): Promise { + const options = ParamCreater().createBeautyPreviewJob(createBeautyPreviewJobRequest); + + // @ts-ignore + options['responseHeaders'] = ['X-Request-Id']; + + return this.hcClient.sendRequest(options); + } + + /** + * 该接口用于查询美白预览任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询美白预览任务 + * @param {string} jobId 任务ID。 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。 + * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。 + * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public showBeautyPreviewJob(showBeautyPreviewJobRequest?: ShowBeautyPreviewJobRequest): Promise { + const options = ParamCreater().showBeautyPreviewJob(showBeautyPreviewJobRequest); + + // @ts-ignore + options['responseHeaders'] = ['X-Request-Id']; + + return this.hcClient.sendRequest(options); + } + + /** + * 该接口用于启动美白预览任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 启动美白预览任务 + * @param {string} jobId 任务ID。 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。 + * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。 + * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public startBeautyPreviewJob(startBeautyPreviewJobRequest?: StartBeautyPreviewJobRequest): Promise { + const options = ParamCreater().startBeautyPreviewJob(startBeautyPreviewJobRequest); + + // @ts-ignore + options['responseHeaders'] = ['X-Request-Id']; + + return this.hcClient.sendRequest(options); + } + /** * 该接口用于创建对话链接。 * @@ -992,11 +1070,11 @@ export class MetaStudioClient { * @param {'INTERSECTION' | 'UNION_SET'} [tagCombinationType] 标签查询组合方式 INTERSECTION:交集 UNION_SET:并集 * @param {string} [startTime] 最近直播任务起始时间。格式遵循:RFC 3339 如“2021-01-10T08:43:17Z”。 * @param {string} [endTime] 结束时间。格式遵循:RFC 3339 如\"2021-01-10T10:43:17Z\"。 - * @param {string} [assetType] 资产类型。多个类型使用英文逗号分割。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型(仅系统管理员可上传) * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * HUMAN_MODEL_2D: 2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 * AUDIO: 音频 + * @param {string} [assetType] 资产类型。多个类型使用英文逗号分隔。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型(仅系统管理员可上传) * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * HUMAN_MODEL_2D: 2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 * AUDIO: 音频 * @param {string} [sortKey] 排序字段,支持的排序方式有: - 按创建时间排序:create_time - 按更新时间排序:update_time - 按资产排序:asset_order * @param {string} [sortDir] 排序方式。 * asc:升序 * desc:降序 默认asc升序。 * @param {'SYSTEM' | 'CUSTOMIZATION' | 'ALL'} [assetSource] 资产来源。 * SYSTEM:系统资产 * CUSTOMIZATION:租户资产 * ALL:所有资产 默认查询租户资产。 - * @param {string} [assetState] 资产状态。多个资产状态使用英文逗号分割。 * CREATING:资产创建中,主文件尚未上传 * FAILED:主文件上传失败 * UNACTIVED:主文件上传成功,资产未激活,资产不可用于其他业务(用户可更新状态) * ACTIVED:主文件上传成功,资产激活,资产可用于其他业务(用户可更新状态) * DELETING:资产删除中,资产不可用,资产可恢复 * DELETED:资产文件已删除,资产不可用,资产不可恢复 * BLOCK:资产被冻结,资产不可用,不可查看文件。 * WAITING_DELETE:资产将被下线 默认查询所有状态的资产。 + * @param {string} [assetState] 资产状态。多个资产状态使用英文逗号分隔。 * CREATING:资产创建中,主文件尚未上传 * FAILED:主文件上传失败 * UNACTIVED:主文件上传成功,资产未激活,资产不可用于其他业务(用户可更新状态) * ACTIVED:主文件上传成功,资产激活,资产可用于其他业务(用户可更新状态) * DELETING:资产删除中,资产不可用,资产可恢复 * DELETED:资产文件已删除,资产不可用,资产不可恢复 * BLOCK:资产被冻结,资产不可用,不可查看文件。 * WAITING_DELETE:资产将被下线 默认查询所有状态的资产。 * @param {string} [styleId] 基于风格化ID查询关联资产。 * system_male_001:男性风格01 * system_female_001:女性风格01 * system_male_002:男性风格02 * system_female_002:女性风格02 * @param {Array} [accurateQueryField] 使用精确查询的字段 * @param {string} [renderEngine] 可用引擎。 * UE:UE引擎 * MetaEngine:MetaEngine引擎 > 该字段当前只对MetaEngine白名单用户生效 @@ -4890,6 +4968,202 @@ export const ParamCreater = function () { return options; }, + /** + * 该接口用于创建美白预览任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + createBeautyPreviewJob(createBeautyPreviewJobRequest?: CreateBeautyPreviewJobRequest) { + const options = { + method: "POST", + url: "/v1/{project_id}/digital-human-training-manage/beauty-preview/jobs", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let authorization; + + let xSdkDate; + + let xProjectId; + + let xAppUserId; + + if (createBeautyPreviewJobRequest !== null && createBeautyPreviewJobRequest !== undefined) { + if (createBeautyPreviewJobRequest instanceof CreateBeautyPreviewJobRequest) { + body = createBeautyPreviewJobRequest.body + authorization = createBeautyPreviewJobRequest.authorization; + xSdkDate = createBeautyPreviewJobRequest.xSdkDate; + xProjectId = createBeautyPreviewJobRequest.xProjectId; + xAppUserId = createBeautyPreviewJobRequest.xAppUserId; + } else { + body = createBeautyPreviewJobRequest['body']; + authorization = createBeautyPreviewJobRequest['Authorization']; + xSdkDate = createBeautyPreviewJobRequest['X-Sdk-Date']; + xProjectId = createBeautyPreviewJobRequest['X-Project-Id']; + xAppUserId = createBeautyPreviewJobRequest['X-App-UserId']; + } + } + + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + if (xProjectId !== undefined && xProjectId !== null) { + localVarHeaderParameter['X-Project-Id'] = String(xProjectId); + } + if (xAppUserId !== undefined && xAppUserId !== null) { + localVarHeaderParameter['X-App-UserId'] = String(xAppUserId); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 该接口用于查询美白预览任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + showBeautyPreviewJob(showBeautyPreviewJobRequest?: ShowBeautyPreviewJobRequest) { + const options = { + method: "GET", + url: "/v1/{project_id}/digital-human-training-manage/beauty-preview/jobs/{job_id}", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + let jobId; + + let authorization; + + let xSdkDate; + + let xProjectId; + + let xAppUserId; + + if (showBeautyPreviewJobRequest !== null && showBeautyPreviewJobRequest !== undefined) { + if (showBeautyPreviewJobRequest instanceof ShowBeautyPreviewJobRequest) { + jobId = showBeautyPreviewJobRequest.jobId; + authorization = showBeautyPreviewJobRequest.authorization; + xSdkDate = showBeautyPreviewJobRequest.xSdkDate; + xProjectId = showBeautyPreviewJobRequest.xProjectId; + xAppUserId = showBeautyPreviewJobRequest.xAppUserId; + } else { + jobId = showBeautyPreviewJobRequest['job_id']; + authorization = showBeautyPreviewJobRequest['Authorization']; + xSdkDate = showBeautyPreviewJobRequest['X-Sdk-Date']; + xProjectId = showBeautyPreviewJobRequest['X-Project-Id']; + xAppUserId = showBeautyPreviewJobRequest['X-App-UserId']; + } + } + + + if (jobId === null || jobId === undefined) { + throw new RequiredError('jobId','Required parameter jobId was null or undefined when calling showBeautyPreviewJob.'); + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + if (xProjectId !== undefined && xProjectId !== null) { + localVarHeaderParameter['X-Project-Id'] = String(xProjectId); + } + if (xAppUserId !== undefined && xAppUserId !== null) { + localVarHeaderParameter['X-App-UserId'] = String(xAppUserId); + } + + options.pathParams = { 'job_id': jobId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 该接口用于启动美白预览任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + startBeautyPreviewJob(startBeautyPreviewJobRequest?: StartBeautyPreviewJobRequest) { + const options = { + method: "POST", + url: "/v1/{project_id}/digital-human-training-manage/beauty-preview/jobs/{job_id}/start", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + let jobId; + + let authorization; + + let xSdkDate; + + let xProjectId; + + let xAppUserId; + + if (startBeautyPreviewJobRequest !== null && startBeautyPreviewJobRequest !== undefined) { + if (startBeautyPreviewJobRequest instanceof StartBeautyPreviewJobRequest) { + jobId = startBeautyPreviewJobRequest.jobId; + authorization = startBeautyPreviewJobRequest.authorization; + xSdkDate = startBeautyPreviewJobRequest.xSdkDate; + xProjectId = startBeautyPreviewJobRequest.xProjectId; + xAppUserId = startBeautyPreviewJobRequest.xAppUserId; + } else { + jobId = startBeautyPreviewJobRequest['job_id']; + authorization = startBeautyPreviewJobRequest['Authorization']; + xSdkDate = startBeautyPreviewJobRequest['X-Sdk-Date']; + xProjectId = startBeautyPreviewJobRequest['X-Project-Id']; + xAppUserId = startBeautyPreviewJobRequest['X-App-UserId']; + } + } + + + if (jobId === null || jobId === undefined) { + throw new RequiredError('jobId','Required parameter jobId was null or undefined when calling startBeautyPreviewJob.'); + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + if (xProjectId !== undefined && xProjectId !== null) { + localVarHeaderParameter['X-Project-Id'] = String(xProjectId); + } + if (xAppUserId !== undefined && xAppUserId !== null) { + localVarHeaderParameter['X-App-UserId'] = String(xAppUserId); + } + + options.pathParams = { 'job_id': jobId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 该接口用于创建对话链接。 * diff --git a/services/metastudio/v1/model/ActionBasicSampleInfo.ts b/services/metastudio/v1/model/ActionBasicSampleInfo.ts index 2f87158fe..e0fcb74f2 100644 --- a/services/metastudio/v1/model/ActionBasicSampleInfo.ts +++ b/services/metastudio/v1/model/ActionBasicSampleInfo.ts @@ -5,6 +5,7 @@ export class ActionBasicSampleInfo { private 'action_name_en'?: string; private 'action_tag'?: string; public catalog?: string; + private 'recommended_value'?: number; private 'is_selected'?: boolean; public constructor(actionTag?: string) { this['action_tag'] = actionTag; @@ -43,6 +44,16 @@ export class ActionBasicSampleInfo { this['catalog'] = catalog; return this; } + public withRecommendedValue(recommendedValue: number): ActionBasicSampleInfo { + this['recommended_value'] = recommendedValue; + return this; + } + public set recommendedValue(recommendedValue: number | undefined) { + this['recommended_value'] = recommendedValue; + } + public get recommendedValue(): number | undefined { + return this['recommended_value']; + } public withIsSelected(isSelected: boolean): ActionBasicSampleInfo { this['is_selected'] = isSelected; return this; diff --git a/services/metastudio/v1/model/ActionSampleInfo.ts b/services/metastudio/v1/model/ActionSampleInfo.ts index c29886e41..6b5c73c40 100644 --- a/services/metastudio/v1/model/ActionSampleInfo.ts +++ b/services/metastudio/v1/model/ActionSampleInfo.ts @@ -6,6 +6,7 @@ export class ActionSampleInfo { private 'action_name_en'?: string; private 'action_tag'?: string; public catalog?: string; + private 'recommended_value'?: number; private 'is_selected'?: boolean; private 'sample_download_url'?: string; public constructor(actionTag?: string) { @@ -45,6 +46,16 @@ export class ActionSampleInfo { this['catalog'] = catalog; return this; } + public withRecommendedValue(recommendedValue: number): ActionSampleInfo { + this['recommended_value'] = recommendedValue; + return this; + } + public set recommendedValue(recommendedValue: number | undefined) { + this['recommended_value'] = recommendedValue; + } + public get recommendedValue(): number | undefined { + return this['recommended_value']; + } public withIsSelected(isSelected: boolean): ActionSampleInfo { this['is_selected'] = isSelected; return this; diff --git a/services/metastudio/v1/model/Create2dModelTrainingJobReq.ts b/services/metastudio/v1/model/Create2dModelTrainingJobReq.ts index 11964dfc8..3b1abc5a6 100644 --- a/services/metastudio/v1/model/Create2dModelTrainingJobReq.ts +++ b/services/metastudio/v1/model/Create2dModelTrainingJobReq.ts @@ -12,7 +12,9 @@ export class Create2dModelTrainingJobReq { private 'batch_name'?: string; public tags?: Array; private 'model_version'?: Create2dModelTrainingJobReqModelVersionEnum | string; + private 'beauty_level'?: number; private 'is_flexus'?: boolean; + private 'is_only_human_model'?: boolean; private 'audio_source_type'?: Create2dModelTrainingJobReqAudioSourceTypeEnum | string; private 'voice_properties'?: VoiceProperties; private 'supported_service'?: Array; @@ -91,6 +93,16 @@ export class Create2dModelTrainingJobReq { public get modelVersion(): Create2dModelTrainingJobReqModelVersionEnum | string | undefined { return this['model_version']; } + public withBeautyLevel(beautyLevel: number): Create2dModelTrainingJobReq { + this['beauty_level'] = beautyLevel; + return this; + } + public set beautyLevel(beautyLevel: number | undefined) { + this['beauty_level'] = beautyLevel; + } + public get beautyLevel(): number | undefined { + return this['beauty_level']; + } public withIsFlexus(isFlexus: boolean): Create2dModelTrainingJobReq { this['is_flexus'] = isFlexus; return this; @@ -101,6 +113,16 @@ export class Create2dModelTrainingJobReq { public get isFlexus(): boolean | undefined { return this['is_flexus']; } + public withIsOnlyHumanModel(isOnlyHumanModel: boolean): Create2dModelTrainingJobReq { + this['is_only_human_model'] = isOnlyHumanModel; + return this; + } + public set isOnlyHumanModel(isOnlyHumanModel: boolean | undefined) { + this['is_only_human_model'] = isOnlyHumanModel; + } + public get isOnlyHumanModel(): boolean | undefined { + return this['is_only_human_model']; + } public withAudioSourceType(audioSourceType: Create2dModelTrainingJobReqAudioSourceTypeEnum | string): Create2dModelTrainingJobReq { this['audio_source_type'] = audioSourceType; return this; diff --git a/services/metastudio/v1/model/Create2dModelTrainingJobResponse.ts b/services/metastudio/v1/model/Create2dModelTrainingJobResponse.ts index 9eaa2521a..bccfecfc0 100644 --- a/services/metastudio/v1/model/Create2dModelTrainingJobResponse.ts +++ b/services/metastudio/v1/model/Create2dModelTrainingJobResponse.ts @@ -10,6 +10,8 @@ export class Create2dModelTrainingJobResponse extends SdkResponse { private 'id_card_image1_upload_url'?: string; private 'id_card_image2_upload_url'?: string; private 'grant_file_upload_url'?: string; + private 'pre_beauty_image_upload_url'?: string; + private 'post_beauty_image_upload_url'?: string; private 'X-Request-Id'?: string; public constructor() { super(); @@ -94,6 +96,26 @@ export class Create2dModelTrainingJobResponse extends SdkResponse { public get grantFileUploadUrl(): string | undefined { return this['grant_file_upload_url']; } + public withPreBeautyImageUploadUrl(preBeautyImageUploadUrl: string): Create2dModelTrainingJobResponse { + this['pre_beauty_image_upload_url'] = preBeautyImageUploadUrl; + return this; + } + public set preBeautyImageUploadUrl(preBeautyImageUploadUrl: string | undefined) { + this['pre_beauty_image_upload_url'] = preBeautyImageUploadUrl; + } + public get preBeautyImageUploadUrl(): string | undefined { + return this['pre_beauty_image_upload_url']; + } + public withPostBeautyImageUploadUrl(postBeautyImageUploadUrl: string): Create2dModelTrainingJobResponse { + this['post_beauty_image_upload_url'] = postBeautyImageUploadUrl; + return this; + } + public set postBeautyImageUploadUrl(postBeautyImageUploadUrl: string | undefined) { + this['post_beauty_image_upload_url'] = postBeautyImageUploadUrl; + } + public get postBeautyImageUploadUrl(): string | undefined { + return this['post_beauty_image_upload_url']; + } public withXRequestId(xRequestId: string): Create2dModelTrainingJobResponse { this['X-Request-Id'] = xRequestId; return this; diff --git a/services/metastudio/v1/model/CreateBeautyPreviewJobReq.ts b/services/metastudio/v1/model/CreateBeautyPreviewJobReq.ts new file mode 100644 index 000000000..d0966a006 --- /dev/null +++ b/services/metastudio/v1/model/CreateBeautyPreviewJobReq.ts @@ -0,0 +1,17 @@ + + +export class CreateBeautyPreviewJobReq { + public name?: string; + public level?: number; + public constructor(name?: string) { + this['name'] = name; + } + public withName(name: string): CreateBeautyPreviewJobReq { + this['name'] = name; + return this; + } + public withLevel(level: number): CreateBeautyPreviewJobReq { + this['level'] = level; + return this; + } +} \ No newline at end of file diff --git a/services/cloudrtc/v2/model/UpdateUrlAuthRequest.ts b/services/metastudio/v1/model/CreateBeautyPreviewJobRequest.ts similarity index 54% rename from services/cloudrtc/v2/model/UpdateUrlAuthRequest.ts rename to services/metastudio/v1/model/CreateBeautyPreviewJobRequest.ts index 6619abe96..bfd2f1892 100644 --- a/services/cloudrtc/v2/model/UpdateUrlAuthRequest.ts +++ b/services/metastudio/v1/model/CreateBeautyPreviewJobRequest.ts @@ -1,16 +1,15 @@ -import { AppAuthReq } from './AppAuthReq'; +import { CreateBeautyPreviewJobReq } from './CreateBeautyPreviewJobReq'; -export class UpdateUrlAuthRequest { +export class CreateBeautyPreviewJobRequest { private 'Authorization'?: string; private 'X-Sdk-Date'?: string; private 'X-Project-Id'?: string; - private 'app_id'?: string; - public body?: AppAuthReq; - public constructor(appId?: string) { - this['app_id'] = appId; + private 'X-App-UserId'?: string; + public body?: CreateBeautyPreviewJobReq; + public constructor() { } - public withAuthorization(authorization: string): UpdateUrlAuthRequest { + public withAuthorization(authorization: string): CreateBeautyPreviewJobRequest { this['Authorization'] = authorization; return this; } @@ -20,7 +19,7 @@ export class UpdateUrlAuthRequest { public get authorization(): string | undefined { return this['Authorization']; } - public withXSdkDate(xSdkDate: string): UpdateUrlAuthRequest { + public withXSdkDate(xSdkDate: string): CreateBeautyPreviewJobRequest { this['X-Sdk-Date'] = xSdkDate; return this; } @@ -30,7 +29,7 @@ export class UpdateUrlAuthRequest { public get xSdkDate(): string | undefined { return this['X-Sdk-Date']; } - public withXProjectId(xProjectId: string): UpdateUrlAuthRequest { + public withXProjectId(xProjectId: string): CreateBeautyPreviewJobRequest { this['X-Project-Id'] = xProjectId; return this; } @@ -40,17 +39,17 @@ export class UpdateUrlAuthRequest { public get xProjectId(): string | undefined { return this['X-Project-Id']; } - public withAppId(appId: string): UpdateUrlAuthRequest { - this['app_id'] = appId; + public withXAppUserId(xAppUserId: string): CreateBeautyPreviewJobRequest { + this['X-App-UserId'] = xAppUserId; return this; } - public set appId(appId: string | undefined) { - this['app_id'] = appId; + public set xAppUserId(xAppUserId: string | undefined) { + this['X-App-UserId'] = xAppUserId; } - public get appId(): string | undefined { - return this['app_id']; + public get xAppUserId(): string | undefined { + return this['X-App-UserId']; } - public withBody(body: AppAuthReq): UpdateUrlAuthRequest { + public withBody(body: CreateBeautyPreviewJobReq): CreateBeautyPreviewJobRequest { this['body'] = body; return this; } diff --git a/services/metastudio/v1/model/CreateBeautyPreviewJobResponse.ts b/services/metastudio/v1/model/CreateBeautyPreviewJobResponse.ts new file mode 100644 index 000000000..937bae589 --- /dev/null +++ b/services/metastudio/v1/model/CreateBeautyPreviewJobResponse.ts @@ -0,0 +1,41 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class CreateBeautyPreviewJobResponse extends SdkResponse { + private 'job_id'?: string; + private 'pre_beauty_image_upload_url'?: string; + private 'X-Request-Id'?: string; + public constructor() { + super(); + } + public withJobId(jobId: string): CreateBeautyPreviewJobResponse { + this['job_id'] = jobId; + return this; + } + public set jobId(jobId: string | undefined) { + this['job_id'] = jobId; + } + public get jobId(): string | undefined { + return this['job_id']; + } + public withPreBeautyImageUploadUrl(preBeautyImageUploadUrl: string): CreateBeautyPreviewJobResponse { + this['pre_beauty_image_upload_url'] = preBeautyImageUploadUrl; + return this; + } + public set preBeautyImageUploadUrl(preBeautyImageUploadUrl: string | undefined) { + this['pre_beauty_image_upload_url'] = preBeautyImageUploadUrl; + } + public get preBeautyImageUploadUrl(): string | undefined { + return this['pre_beauty_image_upload_url']; + } + public withXRequestId(xRequestId: string): CreateBeautyPreviewJobResponse { + this['X-Request-Id'] = xRequestId; + return this; + } + public set xRequestId(xRequestId: string | undefined) { + this['X-Request-Id'] = xRequestId; + } + public get xRequestId(): string | undefined { + return this['X-Request-Id']; + } +} \ No newline at end of file diff --git a/services/metastudio/v1/model/InferenceVideoMarkInfo.ts b/services/metastudio/v1/model/InferenceVideoMarkInfo.ts index 51da98e07..8b1993b6d 100644 --- a/services/metastudio/v1/model/InferenceVideoMarkInfo.ts +++ b/services/metastudio/v1/model/InferenceVideoMarkInfo.ts @@ -3,6 +3,8 @@ export class InferenceVideoMarkInfo { private 'video_start_time'?: string; private 'video_end_time'?: string; + private 'chat_video_start_time'?: string; + private 'chat_video_end_time'?: string; public constructor() { } public withVideoStartTime(videoStartTime: string): InferenceVideoMarkInfo { @@ -25,4 +27,24 @@ export class InferenceVideoMarkInfo { public get videoEndTime(): string | undefined { return this['video_end_time']; } + public withChatVideoStartTime(chatVideoStartTime: string): InferenceVideoMarkInfo { + this['chat_video_start_time'] = chatVideoStartTime; + return this; + } + public set chatVideoStartTime(chatVideoStartTime: string | undefined) { + this['chat_video_start_time'] = chatVideoStartTime; + } + public get chatVideoStartTime(): string | undefined { + return this['chat_video_start_time']; + } + public withChatVideoEndTime(chatVideoEndTime: string): InferenceVideoMarkInfo { + this['chat_video_end_time'] = chatVideoEndTime; + return this; + } + public set chatVideoEndTime(chatVideoEndTime: string | undefined) { + this['chat_video_end_time'] = chatVideoEndTime; + } + public get chatVideoEndTime(): string | undefined { + return this['chat_video_end_time']; + } } \ No newline at end of file diff --git a/services/metastudio/v1/model/Show2dModelTrainingJobResponse.ts b/services/metastudio/v1/model/Show2dModelTrainingJobResponse.ts index e607b4666..d5b38374c 100644 --- a/services/metastudio/v1/model/Show2dModelTrainingJobResponse.ts +++ b/services/metastudio/v1/model/Show2dModelTrainingJobResponse.ts @@ -5,7 +5,9 @@ import { InferenceEyeCorrectionMarkInfo } from './InferenceEyeCorrectionMarkInfo import { InferenceVideoMarkInfo } from './InferenceVideoMarkInfo'; import { OperationLogInfo } from './OperationLogInfo'; import { SupportedServiceEnum } from './SupportedServiceEnum'; +import { TrainingAllocatedResource } from './TrainingAllocatedResource'; import { TrainingJobBasicInfo } from './TrainingJobBasicInfo'; +import { TrainingVideoMarkInfo } from './TrainingVideoMarkInfo'; import { VerifyVideoMattingInfo } from './VerifyVideoMattingInfo'; import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; @@ -27,11 +29,14 @@ export class Show2dModelTrainingJobResponse extends SdkResponse { private 'model_resolution'?: string; private 'app_user_id'?: string; private 'is_flexus'?: boolean; + private 'is_only_human_model'?: boolean; private 'training_video_download_url'?: string; private 'id_card_image1_download_url'?: string; private 'id_card_image2_download_url'?: string; private 'grant_file_download_url'?: string; + private 'pre_beauty_image_download_url'?: string; private 'action_video_download_url'?: string; + private 'post_beauty_image_download_url'?: string; private 'audio_file_download_url'?: string; private 'operation_logs'?: Array; private 'verify_video_matting_info'?: Array; @@ -41,15 +46,19 @@ export class Show2dModelTrainingJobResponse extends SdkResponse { private 'mask_file_download_url'?: string; private 'verify_video_download_url'?: string; private 'markable_video_download_url'?: string; + private 'traning_video_mark_info'?: TrainingVideoMarkInfo; private 'inference_data_process_video_mark_info'?: InferenceVideoMarkInfo; private 'inference_data_process_action_mark_info'?: InferenceActionMarkInfo; + private 'inference_data_process_chat_action_mark_info'?: InferenceActionMarkInfo; private 'inference_data_process_eye_correction_mark_info'?: InferenceEyeCorrectionMarkInfo; private 'is_background_replacement'?: boolean; private 'worker_type'?: Array; + private 'beauty_level'?: number; private 'voice_train_job_id'?: string; private 'flexus_retry_count'?: number; private 'audio_source_type'?: Show2dModelTrainingJobResponseAudioSourceTypeEnum | string; private 'supported_service'?: Array; + private 'allocated_resource'?: TrainingAllocatedResource; private 'X-Request-Id'?: string; public constructor(jobId?: string, name?: string, state?: string) { super(); @@ -193,6 +202,16 @@ export class Show2dModelTrainingJobResponse extends SdkResponse { public get isFlexus(): boolean | undefined { return this['is_flexus']; } + public withIsOnlyHumanModel(isOnlyHumanModel: boolean): Show2dModelTrainingJobResponse { + this['is_only_human_model'] = isOnlyHumanModel; + return this; + } + public set isOnlyHumanModel(isOnlyHumanModel: boolean | undefined) { + this['is_only_human_model'] = isOnlyHumanModel; + } + public get isOnlyHumanModel(): boolean | undefined { + return this['is_only_human_model']; + } public withTrainingVideoDownloadUrl(trainingVideoDownloadUrl: string): Show2dModelTrainingJobResponse { this['training_video_download_url'] = trainingVideoDownloadUrl; return this; @@ -233,6 +252,16 @@ export class Show2dModelTrainingJobResponse extends SdkResponse { public get grantFileDownloadUrl(): string | undefined { return this['grant_file_download_url']; } + public withPreBeautyImageDownloadUrl(preBeautyImageDownloadUrl: string): Show2dModelTrainingJobResponse { + this['pre_beauty_image_download_url'] = preBeautyImageDownloadUrl; + return this; + } + public set preBeautyImageDownloadUrl(preBeautyImageDownloadUrl: string | undefined) { + this['pre_beauty_image_download_url'] = preBeautyImageDownloadUrl; + } + public get preBeautyImageDownloadUrl(): string | undefined { + return this['pre_beauty_image_download_url']; + } public withActionVideoDownloadUrl(actionVideoDownloadUrl: string): Show2dModelTrainingJobResponse { this['action_video_download_url'] = actionVideoDownloadUrl; return this; @@ -243,6 +272,16 @@ export class Show2dModelTrainingJobResponse extends SdkResponse { public get actionVideoDownloadUrl(): string | undefined { return this['action_video_download_url']; } + public withPostBeautyImageDownloadUrl(postBeautyImageDownloadUrl: string): Show2dModelTrainingJobResponse { + this['post_beauty_image_download_url'] = postBeautyImageDownloadUrl; + return this; + } + public set postBeautyImageDownloadUrl(postBeautyImageDownloadUrl: string | undefined) { + this['post_beauty_image_download_url'] = postBeautyImageDownloadUrl; + } + public get postBeautyImageDownloadUrl(): string | undefined { + return this['post_beauty_image_download_url']; + } public withAudioFileDownloadUrl(audioFileDownloadUrl: string): Show2dModelTrainingJobResponse { this['audio_file_download_url'] = audioFileDownloadUrl; return this; @@ -327,6 +366,16 @@ export class Show2dModelTrainingJobResponse extends SdkResponse { public get markableVideoDownloadUrl(): string | undefined { return this['markable_video_download_url']; } + public withTraningVideoMarkInfo(traningVideoMarkInfo: TrainingVideoMarkInfo): Show2dModelTrainingJobResponse { + this['traning_video_mark_info'] = traningVideoMarkInfo; + return this; + } + public set traningVideoMarkInfo(traningVideoMarkInfo: TrainingVideoMarkInfo | undefined) { + this['traning_video_mark_info'] = traningVideoMarkInfo; + } + public get traningVideoMarkInfo(): TrainingVideoMarkInfo | undefined { + return this['traning_video_mark_info']; + } public withInferenceDataProcessVideoMarkInfo(inferenceDataProcessVideoMarkInfo: InferenceVideoMarkInfo): Show2dModelTrainingJobResponse { this['inference_data_process_video_mark_info'] = inferenceDataProcessVideoMarkInfo; return this; @@ -347,6 +396,16 @@ export class Show2dModelTrainingJobResponse extends SdkResponse { public get inferenceDataProcessActionMarkInfo(): InferenceActionMarkInfo | undefined { return this['inference_data_process_action_mark_info']; } + public withInferenceDataProcessChatActionMarkInfo(inferenceDataProcessChatActionMarkInfo: InferenceActionMarkInfo): Show2dModelTrainingJobResponse { + this['inference_data_process_chat_action_mark_info'] = inferenceDataProcessChatActionMarkInfo; + return this; + } + public set inferenceDataProcessChatActionMarkInfo(inferenceDataProcessChatActionMarkInfo: InferenceActionMarkInfo | undefined) { + this['inference_data_process_chat_action_mark_info'] = inferenceDataProcessChatActionMarkInfo; + } + public get inferenceDataProcessChatActionMarkInfo(): InferenceActionMarkInfo | undefined { + return this['inference_data_process_chat_action_mark_info']; + } public withInferenceDataProcessEyeCorrectionMarkInfo(inferenceDataProcessEyeCorrectionMarkInfo: InferenceEyeCorrectionMarkInfo): Show2dModelTrainingJobResponse { this['inference_data_process_eye_correction_mark_info'] = inferenceDataProcessEyeCorrectionMarkInfo; return this; @@ -377,6 +436,16 @@ export class Show2dModelTrainingJobResponse extends SdkResponse { public get workerType(): Array | undefined { return this['worker_type']; } + public withBeautyLevel(beautyLevel: number): Show2dModelTrainingJobResponse { + this['beauty_level'] = beautyLevel; + return this; + } + public set beautyLevel(beautyLevel: number | undefined) { + this['beauty_level'] = beautyLevel; + } + public get beautyLevel(): number | undefined { + return this['beauty_level']; + } public withVoiceTrainJobId(voiceTrainJobId: string): Show2dModelTrainingJobResponse { this['voice_train_job_id'] = voiceTrainJobId; return this; @@ -417,6 +486,16 @@ export class Show2dModelTrainingJobResponse extends SdkResponse { public get supportedService(): Array | undefined { return this['supported_service']; } + public withAllocatedResource(allocatedResource: TrainingAllocatedResource): Show2dModelTrainingJobResponse { + this['allocated_resource'] = allocatedResource; + return this; + } + public set allocatedResource(allocatedResource: TrainingAllocatedResource | undefined) { + this['allocated_resource'] = allocatedResource; + } + public get allocatedResource(): TrainingAllocatedResource | undefined { + return this['allocated_resource']; + } public withXRequestId(xRequestId: string): Show2dModelTrainingJobResponse { this['X-Request-Id'] = xRequestId; return this; @@ -459,6 +538,7 @@ export enum Show2dModelTrainingJobResponseStateEnum { WAIT_USER_CONFIRM = 'WAIT_USER_CONFIRM', JOB_REJECT = 'JOB_REJECT', JOB_PENDING = 'JOB_PENDING', + WAIT_ASSET_SYNC = 'WAIT_ASSET_SYNC', WAIT_ADMIN_CONFIRM = 'WAIT_ADMIN_CONFIRM', JOB_FINISH = 'JOB_FINISH', COMPILING = 'COMPILING', diff --git a/services/metastudio/v1/model/ShowBeautyPreviewJobRequest.ts b/services/metastudio/v1/model/ShowBeautyPreviewJobRequest.ts new file mode 100644 index 000000000..f2a90a157 --- /dev/null +++ b/services/metastudio/v1/model/ShowBeautyPreviewJobRequest.ts @@ -0,0 +1,62 @@ + + +export class ShowBeautyPreviewJobRequest { + private 'job_id'?: string; + private 'Authorization'?: string; + private 'X-Sdk-Date'?: string; + private 'X-Project-Id'?: string; + private 'X-App-UserId'?: string; + public constructor(jobId?: string) { + this['job_id'] = jobId; + } + public withJobId(jobId: string): ShowBeautyPreviewJobRequest { + this['job_id'] = jobId; + return this; + } + public set jobId(jobId: string | undefined) { + this['job_id'] = jobId; + } + public get jobId(): string | undefined { + return this['job_id']; + } + public withAuthorization(authorization: string): ShowBeautyPreviewJobRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization(): string | undefined { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): ShowBeautyPreviewJobRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate(): string | undefined { + return this['X-Sdk-Date']; + } + public withXProjectId(xProjectId: string): ShowBeautyPreviewJobRequest { + this['X-Project-Id'] = xProjectId; + return this; + } + public set xProjectId(xProjectId: string | undefined) { + this['X-Project-Id'] = xProjectId; + } + public get xProjectId(): string | undefined { + return this['X-Project-Id']; + } + public withXAppUserId(xAppUserId: string): ShowBeautyPreviewJobRequest { + this['X-App-UserId'] = xAppUserId; + return this; + } + public set xAppUserId(xAppUserId: string | undefined) { + this['X-App-UserId'] = xAppUserId; + } + public get xAppUserId(): string | undefined { + return this['X-App-UserId']; + } +} \ No newline at end of file diff --git a/services/metastudio/v1/model/ShowBeautyPreviewJobResponse.ts b/services/metastudio/v1/model/ShowBeautyPreviewJobResponse.ts new file mode 100644 index 000000000..29592af7a --- /dev/null +++ b/services/metastudio/v1/model/ShowBeautyPreviewJobResponse.ts @@ -0,0 +1,47 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ShowBeautyPreviewJobResponse extends SdkResponse { + public state?: ShowBeautyPreviewJobResponseStateEnum | string; + private 'post_beauty_image_download_url'?: string; + private 'X-Request-Id'?: string; + public constructor() { + super(); + } + public withState(state: ShowBeautyPreviewJobResponseStateEnum | string): ShowBeautyPreviewJobResponse { + this['state'] = state; + return this; + } + public withPostBeautyImageDownloadUrl(postBeautyImageDownloadUrl: string): ShowBeautyPreviewJobResponse { + this['post_beauty_image_download_url'] = postBeautyImageDownloadUrl; + return this; + } + public set postBeautyImageDownloadUrl(postBeautyImageDownloadUrl: string | undefined) { + this['post_beauty_image_download_url'] = postBeautyImageDownloadUrl; + } + public get postBeautyImageDownloadUrl(): string | undefined { + return this['post_beauty_image_download_url']; + } + public withXRequestId(xRequestId: string): ShowBeautyPreviewJobResponse { + this['X-Request-Id'] = xRequestId; + return this; + } + public set xRequestId(xRequestId: string | undefined) { + this['X-Request-Id'] = xRequestId; + } + public get xRequestId(): string | undefined { + return this['X-Request-Id']; + } +} + +/** + * @export + * @enum {string} + */ +export enum ShowBeautyPreviewJobResponseStateEnum { + WAIT_IMAGE_UPLOAD = 'WAIT_IMAGE_UPLOAD', + WAITING = 'WAITING', + PROCESSING = 'PROCESSING', + SUCCESS = 'SUCCESS', + FAILED = 'FAILED' +} diff --git a/services/metastudio/v1/model/StartBeautyPreviewJobRequest.ts b/services/metastudio/v1/model/StartBeautyPreviewJobRequest.ts new file mode 100644 index 000000000..780a566bd --- /dev/null +++ b/services/metastudio/v1/model/StartBeautyPreviewJobRequest.ts @@ -0,0 +1,62 @@ + + +export class StartBeautyPreviewJobRequest { + private 'job_id'?: string; + private 'Authorization'?: string; + private 'X-Sdk-Date'?: string; + private 'X-Project-Id'?: string; + private 'X-App-UserId'?: string; + public constructor(jobId?: string) { + this['job_id'] = jobId; + } + public withJobId(jobId: string): StartBeautyPreviewJobRequest { + this['job_id'] = jobId; + return this; + } + public set jobId(jobId: string | undefined) { + this['job_id'] = jobId; + } + public get jobId(): string | undefined { + return this['job_id']; + } + public withAuthorization(authorization: string): StartBeautyPreviewJobRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization(): string | undefined { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): StartBeautyPreviewJobRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate(): string | undefined { + return this['X-Sdk-Date']; + } + public withXProjectId(xProjectId: string): StartBeautyPreviewJobRequest { + this['X-Project-Id'] = xProjectId; + return this; + } + public set xProjectId(xProjectId: string | undefined) { + this['X-Project-Id'] = xProjectId; + } + public get xProjectId(): string | undefined { + return this['X-Project-Id']; + } + public withXAppUserId(xAppUserId: string): StartBeautyPreviewJobRequest { + this['X-App-UserId'] = xAppUserId; + return this; + } + public set xAppUserId(xAppUserId: string | undefined) { + this['X-App-UserId'] = xAppUserId; + } + public get xAppUserId(): string | undefined { + return this['X-App-UserId']; + } +} \ No newline at end of file diff --git a/services/metastudio/v1/model/StartBeautyPreviewJobResponse.ts b/services/metastudio/v1/model/StartBeautyPreviewJobResponse.ts new file mode 100644 index 000000000..2f19c96eb --- /dev/null +++ b/services/metastudio/v1/model/StartBeautyPreviewJobResponse.ts @@ -0,0 +1,19 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class StartBeautyPreviewJobResponse extends SdkResponse { + private 'X-Request-Id'?: string; + public constructor() { + super(); + } + public withXRequestId(xRequestId: string): StartBeautyPreviewJobResponse { + this['X-Request-Id'] = xRequestId; + return this; + } + public set xRequestId(xRequestId: string | undefined) { + this['X-Request-Id'] = xRequestId; + } + public get xRequestId(): string | undefined { + return this['X-Request-Id']; + } +} \ No newline at end of file diff --git a/services/metastudio/v1/model/TrainingAllocatedResource.ts b/services/metastudio/v1/model/TrainingAllocatedResource.ts new file mode 100644 index 000000000..1503f97d2 --- /dev/null +++ b/services/metastudio/v1/model/TrainingAllocatedResource.ts @@ -0,0 +1,48 @@ + + +export class TrainingAllocatedResource { + private 'resource_id'?: string; + private 'charge_mode'?: TrainingAllocatedResourceChargeModeEnum | string; + private 'expire_time'?: string; + public constructor() { + } + public withResourceId(resourceId: string): TrainingAllocatedResource { + this['resource_id'] = resourceId; + return this; + } + public set resourceId(resourceId: string | undefined) { + this['resource_id'] = resourceId; + } + public get resourceId(): string | undefined { + return this['resource_id']; + } + public withChargeMode(chargeMode: TrainingAllocatedResourceChargeModeEnum | string): TrainingAllocatedResource { + this['charge_mode'] = chargeMode; + return this; + } + public set chargeMode(chargeMode: TrainingAllocatedResourceChargeModeEnum | string | undefined) { + this['charge_mode'] = chargeMode; + } + public get chargeMode(): TrainingAllocatedResourceChargeModeEnum | string | undefined { + return this['charge_mode']; + } + public withExpireTime(expireTime: string): TrainingAllocatedResource { + this['expire_time'] = expireTime; + return this; + } + public set expireTime(expireTime: string | undefined) { + this['expire_time'] = expireTime; + } + public get expireTime(): string | undefined { + return this['expire_time']; + } +} + +/** + * @export + * @enum {string} + */ +export enum TrainingAllocatedResourceChargeModeEnum { + PERIODIC = 'PERIODIC', + ONE_TIME = 'ONE_TIME' +} diff --git a/services/metastudio/v1/model/TrainingJobBasicInfo.ts b/services/metastudio/v1/model/TrainingJobBasicInfo.ts index a9dc92396..cfd17fa4e 100644 --- a/services/metastudio/v1/model/TrainingJobBasicInfo.ts +++ b/services/metastudio/v1/model/TrainingJobBasicInfo.ts @@ -17,6 +17,7 @@ export class TrainingJobBasicInfo { private 'model_resolution'?: string; private 'app_user_id'?: string; private 'is_flexus'?: boolean; + private 'is_only_human_model'?: boolean; public constructor(jobId?: string, name?: string, state?: string) { this['job_id'] = jobId; this['name'] = name; @@ -158,6 +159,16 @@ export class TrainingJobBasicInfo { public get isFlexus(): boolean | undefined { return this['is_flexus']; } + public withIsOnlyHumanModel(isOnlyHumanModel: boolean): TrainingJobBasicInfo { + this['is_only_human_model'] = isOnlyHumanModel; + return this; + } + public set isOnlyHumanModel(isOnlyHumanModel: boolean | undefined) { + this['is_only_human_model'] = isOnlyHumanModel; + } + public get isOnlyHumanModel(): boolean | undefined { + return this['is_only_human_model']; + } } /** @@ -190,6 +201,7 @@ export enum TrainingJobBasicInfoStateEnum { WAIT_USER_CONFIRM = 'WAIT_USER_CONFIRM', JOB_REJECT = 'JOB_REJECT', JOB_PENDING = 'JOB_PENDING', + WAIT_ASSET_SYNC = 'WAIT_ASSET_SYNC', WAIT_ADMIN_CONFIRM = 'WAIT_ADMIN_CONFIRM', JOB_FINISH = 'JOB_FINISH', COMPILING = 'COMPILING', diff --git a/services/metastudio/v1/model/TrainingVideoMarkInfo.ts b/services/metastudio/v1/model/TrainingVideoMarkInfo.ts new file mode 100644 index 000000000..0bb9d1083 --- /dev/null +++ b/services/metastudio/v1/model/TrainingVideoMarkInfo.ts @@ -0,0 +1,28 @@ + + +export class TrainingVideoMarkInfo { + private 'video_start_time'?: string; + private 'video_end_time'?: string; + public constructor() { + } + public withVideoStartTime(videoStartTime: string): TrainingVideoMarkInfo { + this['video_start_time'] = videoStartTime; + return this; + } + public set videoStartTime(videoStartTime: string | undefined) { + this['video_start_time'] = videoStartTime; + } + public get videoStartTime(): string | undefined { + return this['video_start_time']; + } + public withVideoEndTime(videoEndTime: string): TrainingVideoMarkInfo { + this['video_end_time'] = videoEndTime; + return this; + } + public set videoEndTime(videoEndTime: string | undefined) { + this['video_end_time'] = videoEndTime; + } + public get videoEndTime(): string | undefined { + return this['video_end_time']; + } +} \ No newline at end of file diff --git a/services/metastudio/v1/model/Update2dModelTrainingJobReq.ts b/services/metastudio/v1/model/Update2dModelTrainingJobReq.ts index 91c4303e0..b7fab4c66 100644 --- a/services/metastudio/v1/model/Update2dModelTrainingJobReq.ts +++ b/services/metastudio/v1/model/Update2dModelTrainingJobReq.ts @@ -8,6 +8,7 @@ export class Update2dModelTrainingJobReq { private 'command_message'?: Update2dModelTrainingJobReqCommandMessageEnum | string; private 'video_multipart_count'?: number; private 'action_video_multipart_count'?: number; + private 'beauty_level'?: number; private 'is_background_replacement'?: boolean; private 'batch_name'?: string; public tags?: Array; @@ -54,6 +55,16 @@ export class Update2dModelTrainingJobReq { public get actionVideoMultipartCount(): number | undefined { return this['action_video_multipart_count']; } + public withBeautyLevel(beautyLevel: number): Update2dModelTrainingJobReq { + this['beauty_level'] = beautyLevel; + return this; + } + public set beautyLevel(beautyLevel: number | undefined) { + this['beauty_level'] = beautyLevel; + } + public get beautyLevel(): number | undefined { + return this['beauty_level']; + } public withIsBackgroundReplacement(isBackgroundReplacement: boolean): Update2dModelTrainingJobReq { this['is_background_replacement'] = isBackgroundReplacement; return this; diff --git a/services/metastudio/v1/model/Update2dModelTrainingJobResponse.ts b/services/metastudio/v1/model/Update2dModelTrainingJobResponse.ts index d6ced7541..de7ad69e7 100644 --- a/services/metastudio/v1/model/Update2dModelTrainingJobResponse.ts +++ b/services/metastudio/v1/model/Update2dModelTrainingJobResponse.ts @@ -10,6 +10,8 @@ export class Update2dModelTrainingJobResponse extends SdkResponse { private 'id_card_image1_upload_url'?: string; private 'id_card_image2_upload_url'?: string; private 'grant_file_upload_url'?: string; + private 'pre_beauty_image_upload_url'?: string; + private 'post_beauty_image_upload_url'?: string; private 'X-Request-Id'?: string; public constructor() { super(); @@ -94,6 +96,26 @@ export class Update2dModelTrainingJobResponse extends SdkResponse { public get grantFileUploadUrl(): string | undefined { return this['grant_file_upload_url']; } + public withPreBeautyImageUploadUrl(preBeautyImageUploadUrl: string): Update2dModelTrainingJobResponse { + this['pre_beauty_image_upload_url'] = preBeautyImageUploadUrl; + return this; + } + public set preBeautyImageUploadUrl(preBeautyImageUploadUrl: string | undefined) { + this['pre_beauty_image_upload_url'] = preBeautyImageUploadUrl; + } + public get preBeautyImageUploadUrl(): string | undefined { + return this['pre_beauty_image_upload_url']; + } + public withPostBeautyImageUploadUrl(postBeautyImageUploadUrl: string): Update2dModelTrainingJobResponse { + this['post_beauty_image_upload_url'] = postBeautyImageUploadUrl; + return this; + } + public set postBeautyImageUploadUrl(postBeautyImageUploadUrl: string | undefined) { + this['post_beauty_image_upload_url'] = postBeautyImageUploadUrl; + } + public get postBeautyImageUploadUrl(): string | undefined { + return this['post_beauty_image_upload_url']; + } public withXRequestId(xRequestId: string): Update2dModelTrainingJobResponse { this['X-Request-Id'] = xRequestId; return this; diff --git a/services/metastudio/v1/model/ValidateRobotReq.ts b/services/metastudio/v1/model/ValidateRobotReq.ts index 7f67fb2ea..b6479baee 100644 --- a/services/metastudio/v1/model/ValidateRobotReq.ts +++ b/services/metastudio/v1/model/ValidateRobotReq.ts @@ -12,7 +12,8 @@ export class ValidateRobotReq { private 'iflytek_spark'?: IflytekSpark; private 'third_party_model_config'?: ThirdPartyModelConfig; private 'mobvoi_config'?: MobvoiConfig; - public constructor() { + public constructor(appType?: number) { + this['app_type'] = appType; } public withAppType(appType: number): ValidateRobotReq { this['app_type'] = appType; diff --git a/services/metastudio/v1/public-api.ts b/services/metastudio/v1/public-api.ts index 42a64548e..1a87c7764 100644 --- a/services/metastudio/v1/public-api.ts +++ b/services/metastudio/v1/public-api.ts @@ -65,6 +65,9 @@ export * from './model/CreateAssetByReplicationInfoResponse'; export * from './model/CreateBatchKnowledgeQuestionReq'; export * from './model/CreateBatchKnowledgeQuestionRequest'; export * from './model/CreateBatchKnowledgeQuestionResponse'; +export * from './model/CreateBeautyPreviewJobReq'; +export * from './model/CreateBeautyPreviewJobRequest'; +export * from './model/CreateBeautyPreviewJobResponse'; export * from './model/CreateDialogUrlReq'; export * from './model/CreateDialogUrlRequest'; export * from './model/CreateDialogUrlResponse'; @@ -386,6 +389,8 @@ export * from './model/ShowAssetReplicationInfoRequest'; export * from './model/ShowAssetReplicationInfoResponse'; export * from './model/ShowAssetRequest'; export * from './model/ShowAssetResponse'; +export * from './model/ShowBeautyPreviewJobRequest'; +export * from './model/ShowBeautyPreviewJobResponse'; export * from './model/ShowDigitalHumanBusinessCardRequest'; export * from './model/ShowDigitalHumanBusinessCardResponse'; export * from './model/ShowHotQuestionRequest'; @@ -450,6 +455,8 @@ export * from './model/SmartLiveJob'; export * from './model/SmartLiveRoomBaseInfo'; export * from './model/SmartTextLayerConfig'; export * from './model/SmartVideoLayerConfig'; +export * from './model/StartBeautyPreviewJobRequest'; +export * from './model/StartBeautyPreviewJobResponse'; export * from './model/StartSmartChatJobRequest'; export * from './model/StartSmartChatJobResponse'; export * from './model/StartSmartLiveReq'; @@ -473,8 +480,10 @@ export * from './model/TTSAJob'; export * from './model/TextConfig'; export * from './model/TextLayerConfig'; export * from './model/ThirdPartyModelConfig'; +export * from './model/TrainingAllocatedResource'; export * from './model/TrainingJobBasicInfo'; export * from './model/TrainingJobInfo'; +export * from './model/TrainingVideoMarkInfo'; export * from './model/TriggerProcess'; export * from './model/Update2dModelTrainingJobReq'; export * from './model/Update2dModelTrainingJobRequest'; diff --git a/services/moderation/huaweicloud-sdk-moderation.ts b/services/moderation/huaweicloud-sdk-moderation.ts index 7a6189899..6529eb21f 100644 --- a/services/moderation/huaweicloud-sdk-moderation.ts +++ b/services/moderation/huaweicloud-sdk-moderation.ts @@ -1,3 +1,2 @@ -export * from './v2/public-api'; -export * as v2 from './v2/public-api'; +export * from './v3/public-api'; export * as v3 from './v3/public-api'; diff --git a/services/moderation/v2/ModerationClient.ts b/services/moderation/v2/ModerationClient.ts deleted file mode 100644 index cf007d0e8..000000000 --- a/services/moderation/v2/ModerationClient.ts +++ /dev/null @@ -1,498 +0,0 @@ -import { HcClient } from "@huaweicloud/huaweicloud-sdk-core/HcClient"; -import { ClientBuilder } from "@huaweicloud/huaweicloud-sdk-core/ClientBuilder"; -import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; - -import { CheckResultItemsBody } from './model/CheckResultItemsBody'; -import { CheckResultResultBody } from './model/CheckResultResultBody'; -import { CheckTaskJobsItemsBody } from './model/CheckTaskJobsItemsBody'; -import { ImageBatchModerationReq } from './model/ImageBatchModerationReq'; -import { ImageBatchModerationResultBody } from './model/ImageBatchModerationResultBody'; -import { ImageDetectionReq } from './model/ImageDetectionReq'; -import { ImageDetectionResultAdDetail } from './model/ImageDetectionResultAdDetail'; -import { ImageDetectionResultBody } from './model/ImageDetectionResultBody'; -import { ImageDetectionResultDetail } from './model/ImageDetectionResultDetail'; -import { ImageDetectionResultDetailFaceDetail } from './model/ImageDetectionResultDetailFaceDetail'; -import { ImageDetectionResultDetailPolitics } from './model/ImageDetectionResultDetailPolitics'; -import { ImageDetectionResultSimpleDetail } from './model/ImageDetectionResultSimpleDetail'; -import { PornModerationResultDetail } from './model/PornModerationResultDetail'; -import { RunCheckResultRequest } from './model/RunCheckResultRequest'; -import { RunCheckResultResponse } from './model/RunCheckResultResponse'; -import { RunCheckTaskJobsRequest } from './model/RunCheckTaskJobsRequest'; -import { RunCheckTaskJobsResponse } from './model/RunCheckTaskJobsResponse'; -import { RunImageBatchModerationRequest } from './model/RunImageBatchModerationRequest'; -import { RunImageBatchModerationResponse } from './model/RunImageBatchModerationResponse'; -import { RunImageModerationRequest } from './model/RunImageModerationRequest'; -import { RunImageModerationResponse } from './model/RunImageModerationResponse'; -import { RunModerationAudioRequest } from './model/RunModerationAudioRequest'; -import { RunModerationAudioRequestBody } from './model/RunModerationAudioRequestBody'; -import { RunModerationAudioRequestBodyConfig } from './model/RunModerationAudioRequestBodyConfig'; -import { RunModerationAudioResponse } from './model/RunModerationAudioResponse'; -import { RunModerationAudioResponseBodyResult } from './model/RunModerationAudioResponseBodyResult'; -import { RunModerationAudioResponseBodyResultDetail } from './model/RunModerationAudioResponseBodyResultDetail'; -import { RunModerationAudioResponseBodyResultDetailAudio } from './model/RunModerationAudioResponseBodyResultDetailAudio'; -import { RunTaskSumbitRequest } from './model/RunTaskSumbitRequest'; -import { RunTaskSumbitResponse } from './model/RunTaskSumbitResponse'; -import { RunTextModerationRequest } from './model/RunTextModerationRequest'; -import { RunTextModerationResponse } from './model/RunTextModerationResponse'; -import { TaskSumbitReq } from './model/TaskSumbitReq'; -import { TaskSumbitResponseResult } from './model/TaskSumbitResponseResult'; -import { TextDetectionItemsReq } from './model/TextDetectionItemsReq'; -import { TextDetectionReq } from './model/TextDetectionReq'; -import { TextDetectionResponseResult } from './model/TextDetectionResponseResult'; - -export class ModerationClient { - public static newBuilder(): ClientBuilder { - return new ClientBuilder(newClient); - } - - private hcClient: HcClient; - public constructor(client: HcClient) { - this.hcClient = client; - } - - public getPath() { - return __dirname; - } - - - /** - * 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 - * > 任务最长保留时间为30分钟,过期后会被清理掉。建议在任务提交后,每30s进行一次周期查询。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @summary 处理结果查询 - * @param {string} jobId 任务标识。 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - public runCheckResult(runCheckResultRequest?: RunCheckResultRequest): Promise { - const options = ParamCreater().runCheckResult(runCheckResultRequest); - - // @ts-ignore - options['responseHeaders'] = ['']; - - return this.hcClient.sendRequest(options); - } - - /** - * 查询批量图像内容审核任务列表,可通过指定任务状态查询来对任务列表进行过滤。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @summary 任务列表查询 - * @param {'created' | 'running' | 'finish' | 'failed'} [status] 图像内容审核任务处理状态如下: - created 已创建 - running 正在处理 - finish 已完成 - failed 处理失败 - * @param {number} [offset] 偏移量, 默认为0。 - * @param {number} [limit] 指定每一页返回的最大条目数,默认为符合查询条件的总任务数量。 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - public runCheckTaskJobs(runCheckTaskJobsRequest?: RunCheckTaskJobsRequest): Promise { - const options = ParamCreater().runCheckTaskJobs(runCheckTaskJobsRequest); - - // @ts-ignore - options['responseHeaders'] = ['']; - - return this.hcClient.sendRequest(options); - } - - /** - * 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @summary 图像内容审核(批量) - * @param {ImageBatchModerationReq} runImageBatchModerationRequestBody 图像内容审核(批量)请求体 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - public runImageBatchModeration(runImageBatchModerationRequest?: RunImageBatchModerationRequest): Promise { - const options = ParamCreater().runImageBatchModeration(runImageBatchModerationRequest); - - // @ts-ignore - options['responseHeaders'] = ['']; - - return this.hcClient.sendRequest(options); - } - - /** - * 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @summary 图像内容审核 - * @param {ImageDetectionReq} runImageModerationRequestBody 图像内容审核请求体 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - public runImageModeration(runImageModerationRequest?: RunImageModerationRequest): Promise { - const options = ParamCreater().runImageModeration(runImageModerationRequest); - - // @ts-ignore - options['responseHeaders'] = ['']; - - return this.hcClient.sendRequest(options); - } - - /** - * 分析并识别用户上传的语音内容是否有敏感内容(如色情、政治等),并将识别结果 返回给用户。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @summary 语音内容审核 - * @param {RunModerationAudioRequestBody} runModerationAudioRequestBody 请求参数 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - public runModerationAudio(runModerationAudioRequest?: RunModerationAudioRequest): Promise { - const options = ParamCreater().runModerationAudio(runModerationAudioRequest); - - // @ts-ignore - options['responseHeaders'] = ['']; - - return this.hcClient.sendRequest(options); - } - - /** - * 提交批量图像内容审核任务,返回任务标识,任务标识可用于查询任务结果。此接口为异步接口,相对于批量接口,支持更大图片列表批次。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @summary 任务提交 - * @param {TaskSumbitReq} runTaskSumbitRequestBody 图像内容审核(批量)- 任务提交请求体 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - public runTaskSumbit(runTaskSumbitRequest?: RunTaskSumbitRequest): Promise { - const options = ParamCreater().runTaskSumbit(runTaskSumbitRequest); - - // @ts-ignore - options['responseHeaders'] = ['']; - - return this.hcClient.sendRequest(options); - } - - /** - * 分析并识别用户上传的文本内容是否有敏感内容(如色情、政治等),并将识别结果返回给用户。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @summary 文本内容审核 - * @param {TextDetectionReq} runTextModerationRequestBody 文本内容审核请求体 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - public runTextModeration(runTextModerationRequest?: RunTextModerationRequest): Promise { - const options = ParamCreater().runTextModeration(runTextModerationRequest); - - // @ts-ignore - options['responseHeaders'] = ['']; - - return this.hcClient.sendRequest(options); - } -} - -export const ParamCreater = function () { - return { - - /** - * 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 - * > 任务最长保留时间为30分钟,过期后会被清理掉。建议在任务提交后,每30s进行一次周期查询。 - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - runCheckResult(runCheckResultRequest?: RunCheckResultRequest) { - const options = { - method: "GET", - url: "/v2/{project_id}/moderation/image/batch", - contentType: "application/json", - queryParams: {}, - pathParams: {}, - headers: {} - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - let jobId; - - if (runCheckResultRequest !== null && runCheckResultRequest !== undefined) { - if (runCheckResultRequest instanceof RunCheckResultRequest) { - jobId = runCheckResultRequest.jobId; - } else { - jobId = runCheckResultRequest['job_id']; - } - } - - - if (jobId === null || jobId === undefined) { - throw new RequiredError('jobId','Required parameter jobId was null or undefined when calling runCheckResult.'); - } - if (jobId !== null && jobId !== undefined) { - localVarQueryParameter['job_id'] = jobId; - } - - options.queryParams = localVarQueryParameter; - options.headers = localVarHeaderParameter; - return options; - }, - - /** - * 查询批量图像内容审核任务列表,可通过指定任务状态查询来对任务列表进行过滤。 - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - runCheckTaskJobs(runCheckTaskJobsRequest?: RunCheckTaskJobsRequest) { - const options = { - method: "GET", - url: "/v2/{project_id}/moderation/image/batch/jobs", - contentType: "application/json", - queryParams: {}, - pathParams: {}, - headers: {} - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - let status; - - let offset; - - let limit; - - if (runCheckTaskJobsRequest !== null && runCheckTaskJobsRequest !== undefined) { - if (runCheckTaskJobsRequest instanceof RunCheckTaskJobsRequest) { - status = runCheckTaskJobsRequest.status; - offset = runCheckTaskJobsRequest.offset; - limit = runCheckTaskJobsRequest.limit; - } else { - status = runCheckTaskJobsRequest['status']; - offset = runCheckTaskJobsRequest['offset']; - limit = runCheckTaskJobsRequest['limit']; - } - } - - - if (status !== null && status !== undefined) { - localVarQueryParameter['status'] = status; - } - if (offset !== null && offset !== undefined) { - localVarQueryParameter['offset'] = offset; - } - if (limit !== null && limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - options.queryParams = localVarQueryParameter; - options.headers = localVarHeaderParameter; - return options; - }, - - /** - * 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - runImageBatchModeration(runImageBatchModerationRequest?: RunImageBatchModerationRequest) { - const options = { - method: "POST", - url: "/v2/{project_id}/moderation/image/batch", - contentType: "application/json;charset=UTF-8", - queryParams: {}, - pathParams: {}, - headers: {}, - data: {} - }; - const localVarHeaderParameter = {} as any; - - let body: any; - - if (runImageBatchModerationRequest !== null && runImageBatchModerationRequest !== undefined) { - if (runImageBatchModerationRequest instanceof RunImageBatchModerationRequest) { - body = runImageBatchModerationRequest.body - } else { - body = runImageBatchModerationRequest['body']; - } - } - - - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); - } - localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; - - options.data = body !== undefined ? body : {}; - options.headers = localVarHeaderParameter; - return options; - }, - - /** - * 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - runImageModeration(runImageModerationRequest?: RunImageModerationRequest) { - const options = { - method: "POST", - url: "/v2/{project_id}/moderation/image", - contentType: "application/json;charset=UTF-8", - queryParams: {}, - pathParams: {}, - headers: {}, - data: {} - }; - const localVarHeaderParameter = {} as any; - - let body: any; - - if (runImageModerationRequest !== null && runImageModerationRequest !== undefined) { - if (runImageModerationRequest instanceof RunImageModerationRequest) { - body = runImageModerationRequest.body - } else { - body = runImageModerationRequest['body']; - } - } - - - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); - } - localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; - - options.data = body !== undefined ? body : {}; - options.headers = localVarHeaderParameter; - return options; - }, - - /** - * 分析并识别用户上传的语音内容是否有敏感内容(如色情、政治等),并将识别结果 返回给用户。 - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - runModerationAudio(runModerationAudioRequest?: RunModerationAudioRequest) { - const options = { - method: "POST", - url: "/v2/{project_id}/moderation/voice", - contentType: "application/json;charset=UTF-8", - queryParams: {}, - pathParams: {}, - headers: {}, - data: {} - }; - const localVarHeaderParameter = {} as any; - - let body: any; - - if (runModerationAudioRequest !== null && runModerationAudioRequest !== undefined) { - if (runModerationAudioRequest instanceof RunModerationAudioRequest) { - body = runModerationAudioRequest.body - } else { - body = runModerationAudioRequest['body']; - } - } - - - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); - } - localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; - - options.data = body !== undefined ? body : {}; - options.headers = localVarHeaderParameter; - return options; - }, - - /** - * 提交批量图像内容审核任务,返回任务标识,任务标识可用于查询任务结果。此接口为异步接口,相对于批量接口,支持更大图片列表批次。 - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - runTaskSumbit(runTaskSumbitRequest?: RunTaskSumbitRequest) { - const options = { - method: "POST", - url: "/v2/{project_id}/moderation/image/batch/jobs", - contentType: "application/json;charset=UTF-8", - queryParams: {}, - pathParams: {}, - headers: {}, - data: {} - }; - const localVarHeaderParameter = {} as any; - - let body: any; - - if (runTaskSumbitRequest !== null && runTaskSumbitRequest !== undefined) { - if (runTaskSumbitRequest instanceof RunTaskSumbitRequest) { - body = runTaskSumbitRequest.body - } else { - body = runTaskSumbitRequest['body']; - } - } - - - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); - } - localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; - - options.data = body !== undefined ? body : {}; - options.headers = localVarHeaderParameter; - return options; - }, - - /** - * 分析并识别用户上传的文本内容是否有敏感内容(如色情、政治等),并将识别结果返回给用户。 - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - runTextModeration(runTextModerationRequest?: RunTextModerationRequest) { - const options = { - method: "POST", - url: "/v2/{project_id}/moderation/text", - contentType: "application/json;charset=UTF-8", - queryParams: {}, - pathParams: {}, - headers: {}, - data: {} - }; - const localVarHeaderParameter = {} as any; - - let body: any; - - if (runTextModerationRequest !== null && runTextModerationRequest !== undefined) { - if (runTextModerationRequest instanceof RunTextModerationRequest) { - body = runTextModerationRequest.body - } else { - body = runTextModerationRequest['body']; - } - } - - - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); - } - localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; - - options.data = body !== undefined ? body : {}; - options.headers = localVarHeaderParameter; - return options; - }, - - } -}; - -function newClient(client: HcClient): ModerationClient { - return new ModerationClient(client); -} - -/** - * - * @export - * @class RequiredError - * @extends {Error} - */ -export class RequiredError extends Error { - name: "RequiredError" = "RequiredError"; - constructor(public field: string, msg?: string) { - super(msg); - } -} \ No newline at end of file diff --git a/services/moderation/v2/ModerationRegion.ts b/services/moderation/v2/ModerationRegion.ts deleted file mode 100644 index 66db3503e..000000000 --- a/services/moderation/v2/ModerationRegion.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { Region } from "@huaweicloud/huaweicloud-sdk-core/region/region"; - - -interface RegionMap { - [key: string]: Region; -} - -export class ModerationRegion { - public static CN_NORTH_4 = new Region("cn-north-4", ["https://moderation.cn-north-4.myhuaweicloud.com"]); - public static CN_NORTH_1 = new Region("cn-north-1", ["https://moderation.cn-north-1.myhuaweicloud.com"]); - public static CN_EAST_3 = new Region("cn-east-3", ["https://moderation.cn-east-3.myhuaweicloud.com"]); - public static AP_SOUTHEAST_1 = new Region("ap-southeast-1", ["https://moderation.ap-southeast-1.myhuaweicloud.com"]); - public static AP_SOUTHEAST_3 = new Region("ap-southeast-3", ["https://moderation.ap-southeast-3.myhuaweicloud.com"]); - - - private static REGION_MAP: RegionMap = { - "cn-north-4":ModerationRegion.CN_NORTH_4, - "cn-north-1":ModerationRegion.CN_NORTH_1, - "cn-east-3":ModerationRegion.CN_EAST_3, - "ap-southeast-1":ModerationRegion.AP_SOUTHEAST_1, - "ap-southeast-3":ModerationRegion.AP_SOUTHEAST_3 - }; - - public static valueOf(regionId: string) { - if (!regionId) { - throw new Error("Unexpected empty parameter: regionId."); - } - const result = this.REGION_MAP[regionId]; - if (result) { - return result; - } - throw new Error(`Unexpected regionId: ${regionId}.`) - } -} diff --git a/services/moderation/v2/model/CheckResultItemsBody.ts b/services/moderation/v2/model/CheckResultItemsBody.ts deleted file mode 100644 index 920cc7ac9..000000000 --- a/services/moderation/v2/model/CheckResultItemsBody.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { ImageDetectionResultDetail } from './ImageDetectionResultDetail'; - - -export class CheckResultItemsBody { - public url?: string; - public suggestion?: string; - public detail?: ImageDetectionResultDetail; - private 'category_suggestions'?: { [key: string]: string; }; - private 'ocr_text'?: string; - private 'error_code'?: string; - private 'error_msg'?: string; - public constructor() { - } - public withUrl(url: string): CheckResultItemsBody { - this['url'] = url; - return this; - } - public withSuggestion(suggestion: string): CheckResultItemsBody { - this['suggestion'] = suggestion; - return this; - } - public withDetail(detail: ImageDetectionResultDetail): CheckResultItemsBody { - this['detail'] = detail; - return this; - } - public withCategorySuggestions(categorySuggestions: { [key: string]: string; }): CheckResultItemsBody { - this['category_suggestions'] = categorySuggestions; - return this; - } - public set categorySuggestions(categorySuggestions: { [key: string]: string; } | undefined) { - this['category_suggestions'] = categorySuggestions; - } - public get categorySuggestions(): { [key: string]: string; } | undefined { - return this['category_suggestions']; - } - public withOcrText(ocrText: string): CheckResultItemsBody { - this['ocr_text'] = ocrText; - return this; - } - public set ocrText(ocrText: string | undefined) { - this['ocr_text'] = ocrText; - } - public get ocrText(): string | undefined { - return this['ocr_text']; - } - public withErrorCode(errorCode: string): CheckResultItemsBody { - this['error_code'] = errorCode; - return this; - } - public set errorCode(errorCode: string | undefined) { - this['error_code'] = errorCode; - } - public get errorCode(): string | undefined { - return this['error_code']; - } - public withErrorMsg(errorMsg: string): CheckResultItemsBody { - this['error_msg'] = errorMsg; - return this; - } - public set errorMsg(errorMsg: string | undefined) { - this['error_msg'] = errorMsg; - } - public get errorMsg(): string | undefined { - return this['error_msg']; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/CheckResultResultBody.ts b/services/moderation/v2/model/CheckResultResultBody.ts deleted file mode 100644 index cd4c3c7b3..000000000 --- a/services/moderation/v2/model/CheckResultResultBody.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { CheckResultItemsBody } from './CheckResultItemsBody'; - - -export class CheckResultResultBody { - private 'job_id'?: string; - public status?: string; - private 'create_time'?: string; - private 'update_time'?: string; - public items?: Array; - public constructor() { - } - public withJobId(jobId: string): CheckResultResultBody { - this['job_id'] = jobId; - return this; - } - public set jobId(jobId: string | undefined) { - this['job_id'] = jobId; - } - public get jobId(): string | undefined { - return this['job_id']; - } - public withStatus(status: string): CheckResultResultBody { - this['status'] = status; - return this; - } - public withCreateTime(createTime: string): CheckResultResultBody { - this['create_time'] = createTime; - return this; - } - public set createTime(createTime: string | undefined) { - this['create_time'] = createTime; - } - public get createTime(): string | undefined { - return this['create_time']; - } - public withUpdateTime(updateTime: string): CheckResultResultBody { - this['update_time'] = updateTime; - return this; - } - public set updateTime(updateTime: string | undefined) { - this['update_time'] = updateTime; - } - public get updateTime(): string | undefined { - return this['update_time']; - } - public withItems(items: Array): CheckResultResultBody { - this['items'] = items; - return this; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/CheckTaskJobsItemsBody.ts b/services/moderation/v2/model/CheckTaskJobsItemsBody.ts deleted file mode 100644 index 617bf2d8f..000000000 --- a/services/moderation/v2/model/CheckTaskJobsItemsBody.ts +++ /dev/null @@ -1,44 +0,0 @@ - - -export class CheckTaskJobsItemsBody { - private 'job_id'?: string; - public status?: string; - private 'create_time'?: string; - private 'update_time'?: string; - public constructor() { - } - public withJobId(jobId: string): CheckTaskJobsItemsBody { - this['job_id'] = jobId; - return this; - } - public set jobId(jobId: string | undefined) { - this['job_id'] = jobId; - } - public get jobId(): string | undefined { - return this['job_id']; - } - public withStatus(status: string): CheckTaskJobsItemsBody { - this['status'] = status; - return this; - } - public withCreateTime(createTime: string): CheckTaskJobsItemsBody { - this['create_time'] = createTime; - return this; - } - public set createTime(createTime: string | undefined) { - this['create_time'] = createTime; - } - public get createTime(): string | undefined { - return this['create_time']; - } - public withUpdateTime(updateTime: string): CheckTaskJobsItemsBody { - this['update_time'] = updateTime; - return this; - } - public set updateTime(updateTime: string | undefined) { - this['update_time'] = updateTime; - } - public get updateTime(): string | undefined { - return this['update_time']; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/ImageBatchModerationReq.ts b/services/moderation/v2/model/ImageBatchModerationReq.ts deleted file mode 100644 index 41cfddcc4..000000000 --- a/services/moderation/v2/model/ImageBatchModerationReq.ts +++ /dev/null @@ -1,67 +0,0 @@ - - -export class ImageBatchModerationReq { - public urls?: Array; - public categories?: Array | Array; - public threshold?: number; - private 'moderation_rule'?: string; - private 'ad_categories'?: Array; - private 'show_ocr_text'?: boolean; - public constructor(urls?: Array) { - this['urls'] = urls; - } - public withUrls(urls: Array): ImageBatchModerationReq { - this['urls'] = urls; - return this; - } - public withCategories(categories: Array | Array): ImageBatchModerationReq { - this['categories'] = categories; - return this; - } - public withThreshold(threshold: number): ImageBatchModerationReq { - this['threshold'] = threshold; - return this; - } - public withModerationRule(moderationRule: string): ImageBatchModerationReq { - this['moderation_rule'] = moderationRule; - return this; - } - public set moderationRule(moderationRule: string | undefined) { - this['moderation_rule'] = moderationRule; - } - public get moderationRule(): string | undefined { - return this['moderation_rule']; - } - public withAdCategories(adCategories: Array): ImageBatchModerationReq { - this['ad_categories'] = adCategories; - return this; - } - public set adCategories(adCategories: Array | undefined) { - this['ad_categories'] = adCategories; - } - public get adCategories(): Array | undefined { - return this['ad_categories']; - } - public withShowOcrText(showOcrText: boolean): ImageBatchModerationReq { - this['show_ocr_text'] = showOcrText; - return this; - } - public set showOcrText(showOcrText: boolean | undefined) { - this['show_ocr_text'] = showOcrText; - } - public get showOcrText(): boolean | undefined { - return this['show_ocr_text']; - } -} - -/** - * @export - * @enum {string} - */ -export enum ImageBatchModerationReqCategoriesEnum { - POLITICS = 'politics', - TERRORISM = 'terrorism', - PORN = 'porn', - AD = 'ad', - ALL = 'all' -} diff --git a/services/moderation/v2/model/ImageBatchModerationResultBody.ts b/services/moderation/v2/model/ImageBatchModerationResultBody.ts deleted file mode 100644 index 37c5b7e32..000000000 --- a/services/moderation/v2/model/ImageBatchModerationResultBody.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { ImageDetectionResultDetail } from './ImageDetectionResultDetail'; - - -export class ImageBatchModerationResultBody { - public url?: string; - public suggestion?: string; - public detail?: ImageDetectionResultDetail; - private 'category_suggestions'?: object; - private 'ocr_text'?: string; - private 'error_code'?: string; - private 'error_msg'?: string; - public constructor() { - } - public withUrl(url: string): ImageBatchModerationResultBody { - this['url'] = url; - return this; - } - public withSuggestion(suggestion: string): ImageBatchModerationResultBody { - this['suggestion'] = suggestion; - return this; - } - public withDetail(detail: ImageDetectionResultDetail): ImageBatchModerationResultBody { - this['detail'] = detail; - return this; - } - public withCategorySuggestions(categorySuggestions: object): ImageBatchModerationResultBody { - this['category_suggestions'] = categorySuggestions; - return this; - } - public set categorySuggestions(categorySuggestions: object | undefined) { - this['category_suggestions'] = categorySuggestions; - } - public get categorySuggestions(): object | undefined { - return this['category_suggestions']; - } - public withOcrText(ocrText: string): ImageBatchModerationResultBody { - this['ocr_text'] = ocrText; - return this; - } - public set ocrText(ocrText: string | undefined) { - this['ocr_text'] = ocrText; - } - public get ocrText(): string | undefined { - return this['ocr_text']; - } - public withErrorCode(errorCode: string): ImageBatchModerationResultBody { - this['error_code'] = errorCode; - return this; - } - public set errorCode(errorCode: string | undefined) { - this['error_code'] = errorCode; - } - public get errorCode(): string | undefined { - return this['error_code']; - } - public withErrorMsg(errorMsg: string): ImageBatchModerationResultBody { - this['error_msg'] = errorMsg; - return this; - } - public set errorMsg(errorMsg: string | undefined) { - this['error_msg'] = errorMsg; - } - public get errorMsg(): string | undefined { - return this['error_msg']; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/ImageDetectionReq.ts b/services/moderation/v2/model/ImageDetectionReq.ts deleted file mode 100644 index dbd36574b..000000000 --- a/services/moderation/v2/model/ImageDetectionReq.ts +++ /dev/null @@ -1,71 +0,0 @@ - - -export class ImageDetectionReq { - public url?: string; - public image?: string; - private 'moderation_rule'?: string; - public categories?: Array | Array; - private 'ad_categories'?: Array; - public threshold?: number; - private 'show_ocr_text'?: boolean; - public constructor() { - } - public withUrl(url: string): ImageDetectionReq { - this['url'] = url; - return this; - } - public withImage(image: string): ImageDetectionReq { - this['image'] = image; - return this; - } - public withModerationRule(moderationRule: string): ImageDetectionReq { - this['moderation_rule'] = moderationRule; - return this; - } - public set moderationRule(moderationRule: string | undefined) { - this['moderation_rule'] = moderationRule; - } - public get moderationRule(): string | undefined { - return this['moderation_rule']; - } - public withCategories(categories: Array | Array): ImageDetectionReq { - this['categories'] = categories; - return this; - } - public withAdCategories(adCategories: Array): ImageDetectionReq { - this['ad_categories'] = adCategories; - return this; - } - public set adCategories(adCategories: Array | undefined) { - this['ad_categories'] = adCategories; - } - public get adCategories(): Array | undefined { - return this['ad_categories']; - } - public withThreshold(threshold: number): ImageDetectionReq { - this['threshold'] = threshold; - return this; - } - public withShowOcrText(showOcrText: boolean): ImageDetectionReq { - this['show_ocr_text'] = showOcrText; - return this; - } - public set showOcrText(showOcrText: boolean | undefined) { - this['show_ocr_text'] = showOcrText; - } - public get showOcrText(): boolean | undefined { - return this['show_ocr_text']; - } -} - -/** - * @export - * @enum {string} - */ -export enum ImageDetectionReqCategoriesEnum { - POLITICS = 'politics', - TERRORISM = 'terrorism', - PORN = 'porn', - AD = 'ad', - ALL = 'all' -} diff --git a/services/moderation/v2/model/ImageDetectionResultAdDetail.ts b/services/moderation/v2/model/ImageDetectionResultAdDetail.ts deleted file mode 100644 index ffcb465b1..000000000 --- a/services/moderation/v2/model/ImageDetectionResultAdDetail.ts +++ /dev/null @@ -1,27 +0,0 @@ - - -export class ImageDetectionResultAdDetail { - public confidence?: number; - public label?: string; - private 'hit_contexts'?: Array; - public constructor() { - } - public withConfidence(confidence: number): ImageDetectionResultAdDetail { - this['confidence'] = confidence; - return this; - } - public withLabel(label: string): ImageDetectionResultAdDetail { - this['label'] = label; - return this; - } - public withHitContexts(hitContexts: Array): ImageDetectionResultAdDetail { - this['hit_contexts'] = hitContexts; - return this; - } - public set hitContexts(hitContexts: Array | undefined) { - this['hit_contexts'] = hitContexts; - } - public get hitContexts(): Array | undefined { - return this['hit_contexts']; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/ImageDetectionResultBody.ts b/services/moderation/v2/model/ImageDetectionResultBody.ts deleted file mode 100644 index b8c14c850..000000000 --- a/services/moderation/v2/model/ImageDetectionResultBody.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { ImageDetectionResultDetail } from './ImageDetectionResultDetail'; - - -export class ImageDetectionResultBody { - public detail?: ImageDetectionResultDetail; - public suggestion?: string; - private 'category_suggestions'?: { [key: string]: string; }; - private 'ocr_text'?: string; - public constructor() { - } - public withDetail(detail: ImageDetectionResultDetail): ImageDetectionResultBody { - this['detail'] = detail; - return this; - } - public withSuggestion(suggestion: string): ImageDetectionResultBody { - this['suggestion'] = suggestion; - return this; - } - public withCategorySuggestions(categorySuggestions: { [key: string]: string; }): ImageDetectionResultBody { - this['category_suggestions'] = categorySuggestions; - return this; - } - public set categorySuggestions(categorySuggestions: { [key: string]: string; } | undefined) { - this['category_suggestions'] = categorySuggestions; - } - public get categorySuggestions(): { [key: string]: string; } | undefined { - return this['category_suggestions']; - } - public withOcrText(ocrText: string): ImageDetectionResultBody { - this['ocr_text'] = ocrText; - return this; - } - public set ocrText(ocrText: string | undefined) { - this['ocr_text'] = ocrText; - } - public get ocrText(): string | undefined { - return this['ocr_text']; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/ImageDetectionResultDetail.ts b/services/moderation/v2/model/ImageDetectionResultDetail.ts deleted file mode 100644 index 33d32e1f0..000000000 --- a/services/moderation/v2/model/ImageDetectionResultDetail.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { ImageDetectionResultAdDetail } from './ImageDetectionResultAdDetail'; -import { ImageDetectionResultDetailPolitics } from './ImageDetectionResultDetailPolitics'; -import { ImageDetectionResultSimpleDetail } from './ImageDetectionResultSimpleDetail'; - - -export class ImageDetectionResultDetail { - public politics?: Array; - public porn?: Array; - public terrorism?: Array; - public ad?: Array; - public constructor() { - } - public withPolitics(politics: Array): ImageDetectionResultDetail { - this['politics'] = politics; - return this; - } - public withPorn(porn: Array): ImageDetectionResultDetail { - this['porn'] = porn; - return this; - } - public withTerrorism(terrorism: Array): ImageDetectionResultDetail { - this['terrorism'] = terrorism; - return this; - } - public withAd(ad: Array): ImageDetectionResultDetail { - this['ad'] = ad; - return this; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/ImageDetectionResultDetailFaceDetail.ts b/services/moderation/v2/model/ImageDetectionResultDetailFaceDetail.ts deleted file mode 100644 index a1eb3e83a..000000000 --- a/services/moderation/v2/model/ImageDetectionResultDetailFaceDetail.ts +++ /dev/null @@ -1,26 +0,0 @@ - - -export class ImageDetectionResultDetailFaceDetail { - public h?: number; - public w?: number; - public x?: number; - public y?: number; - public constructor() { - } - public withH(h: number): ImageDetectionResultDetailFaceDetail { - this['h'] = h; - return this; - } - public withW(w: number): ImageDetectionResultDetailFaceDetail { - this['w'] = w; - return this; - } - public withX(x: number): ImageDetectionResultDetailFaceDetail { - this['x'] = x; - return this; - } - public withY(y: number): ImageDetectionResultDetailFaceDetail { - this['y'] = y; - return this; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/ImageDetectionResultDetailPolitics.ts b/services/moderation/v2/model/ImageDetectionResultDetailPolitics.ts deleted file mode 100644 index 250e6cd5e..000000000 --- a/services/moderation/v2/model/ImageDetectionResultDetailPolitics.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { ImageDetectionResultDetailFaceDetail } from './ImageDetectionResultDetailFaceDetail'; - - -export class ImageDetectionResultDetailPolitics { - public confidence?: number; - public label?: string; - private 'face_detail'?: ImageDetectionResultDetailFaceDetail; - public constructor() { - } - public withConfidence(confidence: number): ImageDetectionResultDetailPolitics { - this['confidence'] = confidence; - return this; - } - public withLabel(label: string): ImageDetectionResultDetailPolitics { - this['label'] = label; - return this; - } - public withFaceDetail(faceDetail: ImageDetectionResultDetailFaceDetail): ImageDetectionResultDetailPolitics { - this['face_detail'] = faceDetail; - return this; - } - public set faceDetail(faceDetail: ImageDetectionResultDetailFaceDetail | undefined) { - this['face_detail'] = faceDetail; - } - public get faceDetail(): ImageDetectionResultDetailFaceDetail | undefined { - return this['face_detail']; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/ImageDetectionResultSimpleDetail.ts b/services/moderation/v2/model/ImageDetectionResultSimpleDetail.ts deleted file mode 100644 index 2565a2d8b..000000000 --- a/services/moderation/v2/model/ImageDetectionResultSimpleDetail.ts +++ /dev/null @@ -1,16 +0,0 @@ - - -export class ImageDetectionResultSimpleDetail { - public confidence?: number; - public label?: string; - public constructor() { - } - public withConfidence(confidence: number): ImageDetectionResultSimpleDetail { - this['confidence'] = confidence; - return this; - } - public withLabel(label: string): ImageDetectionResultSimpleDetail { - this['label'] = label; - return this; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/PornModerationResultDetail.ts b/services/moderation/v2/model/PornModerationResultDetail.ts deleted file mode 100644 index d34ae4d0e..000000000 --- a/services/moderation/v2/model/PornModerationResultDetail.ts +++ /dev/null @@ -1,16 +0,0 @@ - - -export class PornModerationResultDetail { - public confidence?: number; - public label?: string; - public constructor() { - } - public withConfidence(confidence: number): PornModerationResultDetail { - this['confidence'] = confidence; - return this; - } - public withLabel(label: string): PornModerationResultDetail { - this['label'] = label; - return this; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/RunCheckResultResponse.ts b/services/moderation/v2/model/RunCheckResultResponse.ts deleted file mode 100644 index e90df89c0..000000000 --- a/services/moderation/v2/model/RunCheckResultResponse.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { CheckResultResultBody } from './CheckResultResultBody'; - -import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; - -export class RunCheckResultResponse extends SdkResponse { - public result?: CheckResultResultBody; - public constructor() { - super(); - } - public withResult(result: CheckResultResultBody): RunCheckResultResponse { - this['result'] = result; - return this; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/RunCheckTaskJobsRequest.ts b/services/moderation/v2/model/RunCheckTaskJobsRequest.ts deleted file mode 100644 index 58b029a5b..000000000 --- a/services/moderation/v2/model/RunCheckTaskJobsRequest.ts +++ /dev/null @@ -1,32 +0,0 @@ - - -export class RunCheckTaskJobsRequest { - public status?: RunCheckTaskJobsRequestStatusEnum | string; - public offset?: number; - public limit?: number; - public constructor() { - } - public withStatus(status: RunCheckTaskJobsRequestStatusEnum | string): RunCheckTaskJobsRequest { - this['status'] = status; - return this; - } - public withOffset(offset: number): RunCheckTaskJobsRequest { - this['offset'] = offset; - return this; - } - public withLimit(limit: number): RunCheckTaskJobsRequest { - this['limit'] = limit; - return this; - } -} - -/** - * @export - * @enum {string} - */ -export enum RunCheckTaskJobsRequestStatusEnum { - CREATED = 'created', - RUNNING = 'running', - FINISH = 'finish', - FAILED = 'failed' -} diff --git a/services/moderation/v2/model/RunCheckTaskJobsResponse.ts b/services/moderation/v2/model/RunCheckTaskJobsResponse.ts deleted file mode 100644 index 0ef319715..000000000 --- a/services/moderation/v2/model/RunCheckTaskJobsResponse.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { CheckTaskJobsItemsBody } from './CheckTaskJobsItemsBody'; - -import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; - -export class RunCheckTaskJobsResponse extends SdkResponse { - public result?: Array; - public count?: number; - public constructor() { - super(); - } - public withResult(result: Array): RunCheckTaskJobsResponse { - this['result'] = result; - return this; - } - public withCount(count: number): RunCheckTaskJobsResponse { - this['count'] = count; - return this; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/RunImageBatchModerationRequest.ts b/services/moderation/v2/model/RunImageBatchModerationRequest.ts deleted file mode 100644 index 6e91f7b4c..000000000 --- a/services/moderation/v2/model/RunImageBatchModerationRequest.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ImageBatchModerationReq } from './ImageBatchModerationReq'; - - -export class RunImageBatchModerationRequest { - public body?: ImageBatchModerationReq; - public constructor() { - } - public withBody(body: ImageBatchModerationReq): RunImageBatchModerationRequest { - this['body'] = body; - return this; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/RunImageBatchModerationResponse.ts b/services/moderation/v2/model/RunImageBatchModerationResponse.ts deleted file mode 100644 index cbe3670ea..000000000 --- a/services/moderation/v2/model/RunImageBatchModerationResponse.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { ImageBatchModerationResultBody } from './ImageBatchModerationResultBody'; - -import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; - -export class RunImageBatchModerationResponse extends SdkResponse { - public result?: Array; - public constructor() { - super(); - } - public withResult(result: Array): RunImageBatchModerationResponse { - this['result'] = result; - return this; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/RunImageModerationRequest.ts b/services/moderation/v2/model/RunImageModerationRequest.ts deleted file mode 100644 index 51cfca931..000000000 --- a/services/moderation/v2/model/RunImageModerationRequest.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ImageDetectionReq } from './ImageDetectionReq'; - - -export class RunImageModerationRequest { - public body?: ImageDetectionReq; - public constructor() { - } - public withBody(body: ImageDetectionReq): RunImageModerationRequest { - this['body'] = body; - return this; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/RunImageModerationResponse.ts b/services/moderation/v2/model/RunImageModerationResponse.ts deleted file mode 100644 index f18cf0081..000000000 --- a/services/moderation/v2/model/RunImageModerationResponse.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { ImageDetectionResultBody } from './ImageDetectionResultBody'; - -import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; - -export class RunImageModerationResponse extends SdkResponse { - public result?: ImageDetectionResultBody; - public constructor() { - super(); - } - public withResult(result: ImageDetectionResultBody): RunImageModerationResponse { - this['result'] = result; - return this; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/RunModerationAudioRequest.ts b/services/moderation/v2/model/RunModerationAudioRequest.ts deleted file mode 100644 index d80eb4170..000000000 --- a/services/moderation/v2/model/RunModerationAudioRequest.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { RunModerationAudioRequestBody } from './RunModerationAudioRequestBody'; - - -export class RunModerationAudioRequest { - public body?: RunModerationAudioRequestBody; - public constructor() { - } - public withBody(body: RunModerationAudioRequestBody): RunModerationAudioRequest { - this['body'] = body; - return this; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/RunModerationAudioRequestBody.ts b/services/moderation/v2/model/RunModerationAudioRequestBody.ts deleted file mode 100644 index 3077785af..000000000 --- a/services/moderation/v2/model/RunModerationAudioRequestBody.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { RunModerationAudioRequestBodyConfig } from './RunModerationAudioRequestBodyConfig'; - - -export class RunModerationAudioRequestBody { - public data?: string; - public url?: string; - public config?: RunModerationAudioRequestBodyConfig; - public categories?: Array; - public constructor(config?: RunModerationAudioRequestBodyConfig) { - this['config'] = config; - } - public withData(data: string): RunModerationAudioRequestBody { - this['data'] = data; - return this; - } - public withUrl(url: string): RunModerationAudioRequestBody { - this['url'] = url; - return this; - } - public withConfig(config: RunModerationAudioRequestBodyConfig): RunModerationAudioRequestBody { - this['config'] = config; - return this; - } - public withCategories(categories: Array): RunModerationAudioRequestBody { - this['categories'] = categories; - return this; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/RunModerationAudioRequestBodyConfig.ts b/services/moderation/v2/model/RunModerationAudioRequestBodyConfig.ts deleted file mode 100644 index f865b7a08..000000000 --- a/services/moderation/v2/model/RunModerationAudioRequestBodyConfig.ts +++ /dev/null @@ -1,44 +0,0 @@ - - -export class RunModerationAudioRequestBodyConfig { - public format?: RunModerationAudioRequestBodyConfigFormatEnum | string; - public property?: RunModerationAudioRequestBodyConfigPropertyEnum | string; - public constructor(format?: string, property?: string) { - this['format'] = format; - this['property'] = property; - } - public withFormat(format: RunModerationAudioRequestBodyConfigFormatEnum | string): RunModerationAudioRequestBodyConfig { - this['format'] = format; - return this; - } - public withProperty(property: RunModerationAudioRequestBodyConfigPropertyEnum | string): RunModerationAudioRequestBodyConfig { - this['property'] = property; - return this; - } -} - -/** - * @export - * @enum {string} - */ -export enum RunModerationAudioRequestBodyConfigFormatEnum { - PCM16K16BIT = 'pcm16k16bit', - PCM8K16BIT = 'pcm8k16bit', - ULAW16K8BIT = 'ulaw16k8bit', - ULAW8K8BIT = 'ulaw8k8bit', - ALAW16K8BIT = 'alaw16k8bit', - ALAW8K8BIT = 'alaw8k8bit', - MP3 = 'mp3', - AAC = 'aac', - WAV = 'wav', - AMR = 'amr', - AMRWB = 'amrwb' -} -/** - * @export - * @enum {string} - */ -export enum RunModerationAudioRequestBodyConfigPropertyEnum { - CHINESE_8K_COMMON = 'chinese_8k_common', - CHINESE_16K_COMMON = 'chinese_16k_common' -} diff --git a/services/moderation/v2/model/RunModerationAudioResponse.ts b/services/moderation/v2/model/RunModerationAudioResponse.ts deleted file mode 100644 index d688ec181..000000000 --- a/services/moderation/v2/model/RunModerationAudioResponse.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { RunModerationAudioResponseBodyResult } from './RunModerationAudioResponseBodyResult'; - -import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; - -export class RunModerationAudioResponse extends SdkResponse { - public result?: RunModerationAudioResponseBodyResult; - public constructor() { - super(); - } - public withResult(result: RunModerationAudioResponseBodyResult): RunModerationAudioResponse { - this['result'] = result; - return this; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/RunModerationAudioResponseBodyResult.ts b/services/moderation/v2/model/RunModerationAudioResponseBodyResult.ts deleted file mode 100644 index c50c03e65..000000000 --- a/services/moderation/v2/model/RunModerationAudioResponseBodyResult.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { RunModerationAudioResponseBodyResultDetail } from './RunModerationAudioResponseBodyResultDetail'; - - -export class RunModerationAudioResponseBodyResult { - public detail?: RunModerationAudioResponseBodyResultDetail; - public suggestion?: string; - public constructor() { - } - public withDetail(detail: RunModerationAudioResponseBodyResultDetail): RunModerationAudioResponseBodyResult { - this['detail'] = detail; - return this; - } - public withSuggestion(suggestion: string): RunModerationAudioResponseBodyResult { - this['suggestion'] = suggestion; - return this; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/RunModerationAudioResponseBodyResultDetail.ts b/services/moderation/v2/model/RunModerationAudioResponseBodyResultDetail.ts deleted file mode 100644 index 4f9be7453..000000000 --- a/services/moderation/v2/model/RunModerationAudioResponseBodyResultDetail.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { RunModerationAudioResponseBodyResultDetailAudio } from './RunModerationAudioResponseBodyResultDetailAudio'; - - -export class RunModerationAudioResponseBodyResultDetail { - public text?: object; - public audio?: RunModerationAudioResponseBodyResultDetailAudio; - public constructor() { - } - public withText(text: object): RunModerationAudioResponseBodyResultDetail { - this['text'] = text; - return this; - } - public withAudio(audio: RunModerationAudioResponseBodyResultDetailAudio): RunModerationAudioResponseBodyResultDetail { - this['audio'] = audio; - return this; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/RunModerationAudioResponseBodyResultDetailAudio.ts b/services/moderation/v2/model/RunModerationAudioResponseBodyResultDetailAudio.ts deleted file mode 100644 index ea42aa1d9..000000000 --- a/services/moderation/v2/model/RunModerationAudioResponseBodyResultDetailAudio.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { PornModerationResultDetail } from './PornModerationResultDetail'; - - -export class RunModerationAudioResponseBodyResultDetailAudio { - public porn?: Array; - public constructor() { - } - public withPorn(porn: Array): RunModerationAudioResponseBodyResultDetailAudio { - this['porn'] = porn; - return this; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/RunTaskSumbitRequest.ts b/services/moderation/v2/model/RunTaskSumbitRequest.ts deleted file mode 100644 index e6e8c9fb2..000000000 --- a/services/moderation/v2/model/RunTaskSumbitRequest.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { TaskSumbitReq } from './TaskSumbitReq'; - - -export class RunTaskSumbitRequest { - public body?: TaskSumbitReq; - public constructor() { - } - public withBody(body: TaskSumbitReq): RunTaskSumbitRequest { - this['body'] = body; - return this; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/RunTaskSumbitResponse.ts b/services/moderation/v2/model/RunTaskSumbitResponse.ts deleted file mode 100644 index 50d5452d0..000000000 --- a/services/moderation/v2/model/RunTaskSumbitResponse.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { TaskSumbitResponseResult } from './TaskSumbitResponseResult'; - -import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; - -export class RunTaskSumbitResponse extends SdkResponse { - public result?: TaskSumbitResponseResult; - public constructor() { - super(); - } - public withResult(result: TaskSumbitResponseResult): RunTaskSumbitResponse { - this['result'] = result; - return this; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/RunTextModerationRequest.ts b/services/moderation/v2/model/RunTextModerationRequest.ts deleted file mode 100644 index ce83152fe..000000000 --- a/services/moderation/v2/model/RunTextModerationRequest.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { TextDetectionReq } from './TextDetectionReq'; - - -export class RunTextModerationRequest { - public body?: TextDetectionReq; - public constructor() { - } - public withBody(body: TextDetectionReq): RunTextModerationRequest { - this['body'] = body; - return this; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/RunTextModerationResponse.ts b/services/moderation/v2/model/RunTextModerationResponse.ts deleted file mode 100644 index 3c3263656..000000000 --- a/services/moderation/v2/model/RunTextModerationResponse.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { TextDetectionResponseResult } from './TextDetectionResponseResult'; - -import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; - -export class RunTextModerationResponse extends SdkResponse { - public result?: TextDetectionResponseResult; - public constructor() { - super(); - } - public withResult(result: TextDetectionResponseResult): RunTextModerationResponse { - this['result'] = result; - return this; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/TaskSumbitReq.ts b/services/moderation/v2/model/TaskSumbitReq.ts deleted file mode 100644 index 0ae25e34d..000000000 --- a/services/moderation/v2/model/TaskSumbitReq.ts +++ /dev/null @@ -1,60 +0,0 @@ - - -export class TaskSumbitReq { - public urls?: Array; - public categories?: Array | Array; - private 'moderation_rule'?: string; - private 'ad_categories'?: Array; - private 'show_ocr_text'?: boolean; - public constructor(urls?: Array) { - this['urls'] = urls; - } - public withUrls(urls: Array): TaskSumbitReq { - this['urls'] = urls; - return this; - } - public withCategories(categories: Array | Array): TaskSumbitReq { - this['categories'] = categories; - return this; - } - public withModerationRule(moderationRule: string): TaskSumbitReq { - this['moderation_rule'] = moderationRule; - return this; - } - public set moderationRule(moderationRule: string | undefined) { - this['moderation_rule'] = moderationRule; - } - public get moderationRule(): string | undefined { - return this['moderation_rule']; - } - public withAdCategories(adCategories: Array): TaskSumbitReq { - this['ad_categories'] = adCategories; - return this; - } - public set adCategories(adCategories: Array | undefined) { - this['ad_categories'] = adCategories; - } - public get adCategories(): Array | undefined { - return this['ad_categories']; - } - public withShowOcrText(showOcrText: boolean): TaskSumbitReq { - this['show_ocr_text'] = showOcrText; - return this; - } - public set showOcrText(showOcrText: boolean | undefined) { - this['show_ocr_text'] = showOcrText; - } - public get showOcrText(): boolean | undefined { - return this['show_ocr_text']; - } -} - -/** - * @export - * @enum {string} - */ -export enum TaskSumbitReqCategoriesEnum { - POLITICS = 'politics', - PORN = 'porn', - TERRORISM = 'terrorism' -} diff --git a/services/moderation/v2/model/TextDetectionItemsReq.ts b/services/moderation/v2/model/TextDetectionItemsReq.ts deleted file mode 100644 index 93bb08276..000000000 --- a/services/moderation/v2/model/TextDetectionItemsReq.ts +++ /dev/null @@ -1,17 +0,0 @@ - - -export class TextDetectionItemsReq { - public text?: string; - public type?: string; - public constructor(text?: string) { - this['text'] = text; - } - public withText(text: string): TextDetectionItemsReq { - this['text'] = text; - return this; - } - public withType(type: string): TextDetectionItemsReq { - this['type'] = type; - return this; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/TextDetectionReq.ts b/services/moderation/v2/model/TextDetectionReq.ts deleted file mode 100644 index 519bfa120..000000000 --- a/services/moderation/v2/model/TextDetectionReq.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { TextDetectionItemsReq } from './TextDetectionItemsReq'; - - -export class TextDetectionReq { - public categories?: Array; - private 'white_glossaries'?: Array; - public items?: Array; - public constructor(items?: Array) { - this['items'] = items; - } - public withCategories(categories: Array): TextDetectionReq { - this['categories'] = categories; - return this; - } - public withWhiteGlossaries(whiteGlossaries: Array): TextDetectionReq { - this['white_glossaries'] = whiteGlossaries; - return this; - } - public set whiteGlossaries(whiteGlossaries: Array | undefined) { - this['white_glossaries'] = whiteGlossaries; - } - public get whiteGlossaries(): Array | undefined { - return this['white_glossaries']; - } - public withItems(items: Array): TextDetectionReq { - this['items'] = items; - return this; - } -} \ No newline at end of file diff --git a/services/moderation/v2/model/TextDetectionResponseResult.ts b/services/moderation/v2/model/TextDetectionResponseResult.ts deleted file mode 100644 index c64afd24d..000000000 --- a/services/moderation/v2/model/TextDetectionResponseResult.ts +++ /dev/null @@ -1,16 +0,0 @@ - - -export class TextDetectionResponseResult { - public suggestion?: string; - public detail?: object; - public constructor() { - } - public withSuggestion(suggestion: string): TextDetectionResponseResult { - this['suggestion'] = suggestion; - return this; - } - public withDetail(detail: object): TextDetectionResponseResult { - this['detail'] = detail; - return this; - } -} \ No newline at end of file diff --git a/services/moderation/v2/public-api.ts b/services/moderation/v2/public-api.ts deleted file mode 100644 index 41c5001c9..000000000 --- a/services/moderation/v2/public-api.ts +++ /dev/null @@ -1,40 +0,0 @@ -export * from './ModerationClient'; - -export * from './model/CheckResultItemsBody'; -export * from './model/CheckResultResultBody'; -export * from './model/CheckTaskJobsItemsBody'; -export * from './model/ImageBatchModerationReq'; -export * from './model/ImageBatchModerationResultBody'; -export * from './model/ImageDetectionReq'; -export * from './model/ImageDetectionResultAdDetail'; -export * from './model/ImageDetectionResultBody'; -export * from './model/ImageDetectionResultDetail'; -export * from './model/ImageDetectionResultDetailFaceDetail'; -export * from './model/ImageDetectionResultDetailPolitics'; -export * from './model/ImageDetectionResultSimpleDetail'; -export * from './model/PornModerationResultDetail'; -export * from './model/RunCheckResultRequest'; -export * from './model/RunCheckResultResponse'; -export * from './model/RunCheckTaskJobsRequest'; -export * from './model/RunCheckTaskJobsResponse'; -export * from './model/RunImageBatchModerationRequest'; -export * from './model/RunImageBatchModerationResponse'; -export * from './model/RunImageModerationRequest'; -export * from './model/RunImageModerationResponse'; -export * from './model/RunModerationAudioRequest'; -export * from './model/RunModerationAudioRequestBody'; -export * from './model/RunModerationAudioRequestBodyConfig'; -export * from './model/RunModerationAudioResponse'; -export * from './model/RunModerationAudioResponseBodyResult'; -export * from './model/RunModerationAudioResponseBodyResultDetail'; -export * from './model/RunModerationAudioResponseBodyResultDetailAudio'; -export * from './model/RunTaskSumbitRequest'; -export * from './model/RunTaskSumbitResponse'; -export * from './model/RunTextModerationRequest'; -export * from './model/RunTextModerationResponse'; -export * from './model/TaskSumbitReq'; -export * from './model/TaskSumbitResponseResult'; -export * from './model/TextDetectionItemsReq'; -export * from './model/TextDetectionReq'; -export * from './model/TextDetectionResponseResult'; -export * from './ModerationRegion'; diff --git a/services/sfsturbo/v1/SFSTurboClient.ts b/services/sfsturbo/v1/SFSTurboClient.ts index cae4fbc16..01e1f0702 100644 --- a/services/sfsturbo/v1/SFSTurboClient.ts +++ b/services/sfsturbo/v1/SFSTurboClient.ts @@ -3,6 +3,7 @@ import { ClientBuilder } from "@huaweicloud/huaweicloud-sdk-core/ClientBuilder"; import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; import { ActionProgress } from './model/ActionProgress'; +import { AutoExportPolicy } from './model/AutoExportPolicy'; import { BatchAddSharedTagsRequest } from './model/BatchAddSharedTagsRequest'; import { BatchAddSharedTagsRequestBody } from './model/BatchAddSharedTagsRequestBody'; import { BatchAddSharedTagsResponse } from './model/BatchAddSharedTagsResponse'; @@ -16,7 +17,6 @@ import { ChangeShareNameReq } from './model/ChangeShareNameReq'; import { ChangeShareNameRequest } from './model/ChangeShareNameRequest'; import { ChangeShareNameResponse } from './model/ChangeShareNameResponse'; import { ConfigNasTarget } from './model/ConfigNasTarget'; -import { ConfigObsTarget } from './model/ConfigObsTarget'; import { CreateBackendTargetRequest } from './model/CreateBackendTargetRequest'; import { CreateBackendTargetRequestBody } from './model/CreateBackendTargetRequestBody'; import { CreateBackendTargetResponse } from './model/CreateBackendTargetResponse'; @@ -53,6 +53,8 @@ import { DeleteFsDirRequestBody } from './model/DeleteFsDirRequestBody'; import { DeleteFsDirResponse } from './model/DeleteFsDirResponse'; import { DeleteFsTaskRequest } from './model/DeleteFsTaskRequest'; import { DeleteFsTaskResponse } from './model/DeleteFsTaskResponse'; +import { DeleteHpcCacheTaskRequest } from './model/DeleteHpcCacheTaskRequest'; +import { DeleteHpcCacheTaskResponse } from './model/DeleteHpcCacheTaskResponse'; import { DeleteLdapConfigRequest } from './model/DeleteLdapConfigRequest'; import { DeleteLdapConfigResponse } from './model/DeleteLdapConfigResponse'; import { DeletePermRuleRequest } from './model/DeletePermRuleRequest'; @@ -85,6 +87,8 @@ import { ListSharesRequest } from './model/ListSharesRequest'; import { ListSharesResponse } from './model/ListSharesResponse'; import { Metadata } from './model/Metadata'; import { ObsDataRepository } from './model/ObsDataRepository'; +import { ObsDataRepositoryPolicy } from './model/ObsDataRepositoryPolicy'; +import { ObsTargetAttributes } from './model/ObsTargetAttributes'; import { OneFsTaskResp } from './model/OneFsTaskResp'; import { OneHpcCacheTaskInfoResp } from './model/OneHpcCacheTaskInfoResp'; import { OnePermRuleRequestInfo } from './model/OnePermRuleRequestInfo'; @@ -97,6 +101,8 @@ import { SetHpcCacheBackendRequest } from './model/SetHpcCacheBackendRequest'; import { SetHpcCacheBackendResponse } from './model/SetHpcCacheBackendResponse'; import { Share } from './model/Share'; import { ShareInfo } from './model/ShareInfo'; +import { ShareInfoFeature } from './model/ShareInfoFeature'; +import { ShareInfoFeatures } from './model/ShareInfoFeatures'; import { ShareName } from './model/ShareName'; import { ShowBackendTargetInfoRequest } from './model/ShowBackendTargetInfoRequest'; import { ShowBackendTargetInfoResponse } from './model/ShowBackendTargetInfoResponse'; @@ -131,6 +137,12 @@ import { UpdateHpcShareResponse } from './model/UpdateHpcShareResponse'; import { UpdateLdapConfigRequest } from './model/UpdateLdapConfigRequest'; import { UpdateLdapConfigRequestBody } from './model/UpdateLdapConfigRequestBody'; import { UpdateLdapConfigResponse } from './model/UpdateLdapConfigResponse'; +import { UpdateObsTargetAttributesRequest } from './model/UpdateObsTargetAttributesRequest'; +import { UpdateObsTargetAttributesRequestBody } from './model/UpdateObsTargetAttributesRequestBody'; +import { UpdateObsTargetAttributesResponse } from './model/UpdateObsTargetAttributesResponse'; +import { UpdateObsTargetPolicyRequest } from './model/UpdateObsTargetPolicyRequest'; +import { UpdateObsTargetPolicyRequestBody } from './model/UpdateObsTargetPolicyRequestBody'; +import { UpdateObsTargetPolicyResponse } from './model/UpdateObsTargetPolicyResponse'; import { UpdatePermRuleRequest } from './model/UpdatePermRuleRequest'; import { UpdatePermRuleResponse } from './model/UpdatePermRuleResponse'; @@ -152,7 +164,7 @@ export class SFSTurboClient { /** * 指定共享批量添加标签。 * - * 一个共享上最多有10个标签。 + * 一个共享上最多有20个标签。 * 一个共享上的多个标签的key不允许重复。 * 此接口为幂等接口:如果要添加的key在共享上已存在,则覆盖更新标签。 * @@ -214,13 +226,13 @@ export class SFSTurboClient { } /** - * 为SFS Turbo HPC型文件系统绑定后端存储 + * 为SFS Turbo 文件系统绑定后端存储 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 绑定后端存储 * @param {string} shareId 文件系统id - * @param {CreateBackendTargetRequestBody} createBackendTargetRequestBody 创建文件系统后端存储库请求体 + * @param {CreateBackendTargetRequestBody} createBackendTargetRequestBody 创建文件系统后端存储请求体 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -274,13 +286,13 @@ export class SFSTurboClient { } /** - * 创建文件系统异步任务 + * 创建文件系统异步任务,仅支持异步查询目录资源使用情况,API请求路径的feature取值为dir-usage,以下简称为DU任务。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 创建文件系统异步任务 * @param {string} shareId 文件系统id - * @param {string} feature 任务类型。例,DU任务取值为dir-usage + * @param {string} feature 任务类型。当前仅支持取值\"dir-usage\"。 * @param {FsDirReq} [createFsTaskRequestBody] 文件系统内合法的目录全路径,DU任务里,此为必选参数 * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -315,7 +327,11 @@ export class SFSTurboClient { } /** - * 创建并绑定ldap配置 + * 创建并绑定ldap配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有: + * 1. RFC2307(Openldap通常选择此Schema) + * 2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组) + * + * SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -375,7 +391,7 @@ export class SFSTurboClient { /** * 指定共享添加一个标签。 - * 一个共享上最多有10个标签。 + * 一个共享上最多有20个标签。 * 一个共享上的多个标签的key不允许重复。 * 此接口为幂等接口:如果要添加的key在共享上已存在,则覆盖更新标签。 * @@ -458,7 +474,7 @@ export class SFSTurboClient { } /** - * 如果异步任务正在执行,则取消并删除任务;否则,删除任务。 + * 如果异步任务正在执行,则取消并删除任务;否则,删除任务。仅支持删除目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -479,7 +495,31 @@ export class SFSTurboClient { } /** - * 删除ldap配置 + * 删除数据导入导出任务 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 删除数据导入导出任务 + * @param {string} shareId 文件系统ID + * @param {string} taskId 任务ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public deleteHpcCacheTask(deleteHpcCacheTaskRequest?: DeleteHpcCacheTaskRequest): Promise { + const options = ParamCreater().deleteHpcCacheTask(deleteHpcCacheTaskRequest); + + // @ts-ignore + options['responseHeaders'] = ['X-request-id']; + + return this.hcClient.sendRequest(options); + } + + /** + * 删除ldap配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有: + * 1. RFC2307(Openldap通常选择此Schema) + * 2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组) + * + * SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -543,7 +583,7 @@ export class SFSTurboClient { * * @summary 删除共享标签 * @param {string} shareId 共享ID - * @param {string} key 标签的键,最大长度36个字符。 key不能为空,不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 说明:调用删除共享标签接口删除标签时,如果标签的键中存在不被URL直接解析的特殊字符,需要对标签的键进行URL转义处理。 + * @param {string} key 标签的键,最大长度128个字符。 key不能为空,不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 说明:调用删除共享标签接口删除标签时,如果标签的键中存在不被URL直接解析的特殊字符,需要对标签的键进行URL转义处理。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -598,7 +638,7 @@ export class SFSTurboClient { } /** - * 获取文件系统异步任务列表 + * 获取文件系统异步任务列表。仅支持查询目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -630,6 +670,8 @@ export class SFSTurboClient { * @param {string} [status] 任务状态 * @param {number} [offset] offset,默认值为 0 * @param {number} [limit] limit,默认值为 20 + * @param {string} [startTime] start_time + * @param {string} [endTime] end_time * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -649,6 +691,8 @@ export class SFSTurboClient { * * @summary 查询文件系统的权限规则列表 * @param {string} shareId 文件系统id + * @param {number} [limit] 返回的权限规则个数 + * @param {number} [offset] 返回的权限规则的偏移量 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -667,11 +711,13 @@ export class SFSTurboClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询租户所有共享的标签 + * @param {number} [limit] 返回的标签个数 + * @param {number} [offset] 标签查询个数的偏移量 * @param {*} [options] Override http request option. * @throws {RequiredError} */ public listSharedTags(listSharedTagsRequest?: ListSharedTagsRequest): Promise { - const options = ParamCreater().listSharedTags(); + const options = ParamCreater().listSharedTags(listSharedTagsRequest); // @ts-ignore options['responseHeaders'] = ['']; @@ -685,8 +731,8 @@ export class SFSTurboClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 获取文件系统列表 - * @param {number} [limit] 返回的文件系统个数,最大值为200。 - * @param {number} [offset] 文件系统查询个数的偏移量。 + * @param {number} [limit] 设置返回的文件系统个数的最大值,不填默认为1000个 + * @param {number} [offset] 设置返回的文件系统的偏移量。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -760,7 +806,7 @@ export class SFSTurboClient { } /** - * 查询目标文件夹quota + * 查询目标文件夹quota。查询的used_capacity、used_inode数据可能有延迟。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -800,7 +846,7 @@ export class SFSTurboClient { } /** - * 获取文件系统异步任务详情 + * 获取文件系统异步任务详情。仅支持查询目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -841,7 +887,7 @@ export class SFSTurboClient { } /** - * 查询job的执行状态。 可用于查询SFS Turbo异步API的执行状态。 + * 查询job的执行状态。 可用于查询SFS Turbo异步API的执行状态。例如:可使用调用创建并绑定ldap配置接口时返回的jobId,通过该接口查询job的执行状态。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -860,7 +906,11 @@ export class SFSTurboClient { } /** - * 查询Ldap的配置 + * 查询Ldap的配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有: + * 1. RFC2307(Openldap通常选择此Schema) + * 2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组) + * + * SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -963,7 +1013,7 @@ export class SFSTurboClient { * * @summary 更新文件系统 * @param {string} shareId 文件系统ID - * @param {UpdateHpcShareRequestBody} updateHpcShareRequestBody 更新 HPC 型文件系统请求体 + * @param {UpdateHpcShareRequestBody} updateHpcShareRequestBody 更新文件系统请求体 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -977,7 +1027,11 @@ export class SFSTurboClient { } /** - * 修改ldap配置 + * 修改ldap配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有: + * 1. RFC2307(Openldap通常选择此Schema) + * 2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组) + * + * SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -996,6 +1050,48 @@ export class SFSTurboClient { return this.hcClient.sendRequest(options); } + /** + * 更新后端存储属性 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 更新后端存储属性 + * @param {string} shareId 文件系统id + * @param {string} targetId 绑定关系id + * @param {UpdateObsTargetAttributesRequestBody} updateObsTargetAttributesRequestBody 更新后端存储属性请求体 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public updateObsTargetAttributes(updateObsTargetAttributesRequest?: UpdateObsTargetAttributesRequest): Promise { + const options = ParamCreater().updateObsTargetAttributes(updateObsTargetAttributesRequest); + + // @ts-ignore + options['responseHeaders'] = ['X-request-id']; + + return this.hcClient.sendRequest(options); + } + + /** + * 更新后端存储自动同步策略 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 更新后端存储自动同步策略 + * @param {string} shareId 文件系统id + * @param {string} targetId 绑定关系id + * @param {UpdateObsTargetPolicyRequestBody} updateObsTargetPolicyRequestBody 更新后端存储自动同步策略请求体 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public updateObsTargetPolicy(updateObsTargetPolicyRequest?: UpdateObsTargetPolicyRequest): Promise { + const options = ParamCreater().updateObsTargetPolicy(updateObsTargetPolicyRequest); + + // @ts-ignore + options['responseHeaders'] = ['X-request-id']; + + return this.hcClient.sendRequest(options); + } + /** * 修改权限规则 * @@ -1024,7 +1120,7 @@ export const ParamCreater = function () { /** * 指定共享批量添加标签。 * - * 一个共享上最多有10个标签。 + * 一个共享上最多有20个标签。 * 一个共享上的多个标签的key不允许重复。 * 此接口为幂等接口:如果要添加的key在共享上已存在,则覆盖更新标签。 * @@ -1164,7 +1260,7 @@ export const ParamCreater = function () { }, /** - * 为SFS Turbo HPC型文件系统绑定后端存储 + * 为SFS Turbo 文件系统绑定后端存储 * * Please refer to HUAWEI cloud API Explorer for details. */ @@ -1302,7 +1398,7 @@ export const ParamCreater = function () { }, /** - * 创建文件系统异步任务 + * 创建文件系统异步任务,仅支持异步查询目录资源使用情况,API请求路径的feature取值为dir-usage,以下简称为DU任务。 * * Please refer to HUAWEI cloud API Explorer for details. */ @@ -1398,7 +1494,11 @@ export const ParamCreater = function () { }, /** - * 创建并绑定ldap配置 + * 创建并绑定ldap配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有: + * 1. RFC2307(Openldap通常选择此Schema) + * 2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组) + * + * SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。 * * Please refer to HUAWEI cloud API Explorer for details. */ @@ -1529,7 +1629,7 @@ export const ParamCreater = function () { /** * 指定共享添加一个标签。 - * 一个共享上最多有10个标签。 + * 一个共享上最多有20个标签。 * 一个共享上的多个标签的key不允许重复。 * 此接口为幂等接口:如果要添加的key在共享上已存在,则覆盖更新标签。 * @@ -1721,7 +1821,7 @@ export const ParamCreater = function () { }, /** - * 如果异步任务正在执行,则取消并删除任务;否则,删除任务。 + * 如果异步任务正在执行,则取消并删除任务;否则,删除任务。仅支持删除目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。 * * Please refer to HUAWEI cloud API Explorer for details. */ @@ -1772,7 +1872,55 @@ export const ParamCreater = function () { }, /** - * 删除ldap配置 + * 删除数据导入导出任务 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + deleteHpcCacheTask(deleteHpcCacheTaskRequest?: DeleteHpcCacheTaskRequest) { + const options = { + method: "DELETE", + url: "/v1/{project_id}/sfs-turbo/{share_id}/hpc-cache/task/{task_id}", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + let shareId; + + let taskId; + + if (deleteHpcCacheTaskRequest !== null && deleteHpcCacheTaskRequest !== undefined) { + if (deleteHpcCacheTaskRequest instanceof DeleteHpcCacheTaskRequest) { + shareId = deleteHpcCacheTaskRequest.shareId; + taskId = deleteHpcCacheTaskRequest.taskId; + } else { + shareId = deleteHpcCacheTaskRequest['share_id']; + taskId = deleteHpcCacheTaskRequest['task_id']; + } + } + + + if (shareId === null || shareId === undefined) { + throw new RequiredError('shareId','Required parameter shareId was null or undefined when calling deleteHpcCacheTask.'); + } + if (taskId === null || taskId === undefined) { + throw new RequiredError('taskId','Required parameter taskId was null or undefined when calling deleteHpcCacheTask.'); + } + + options.pathParams = { 'share_id': shareId,'task_id': taskId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 删除ldap配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有: + * 1. RFC2307(Openldap通常选择此Schema) + * 2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组) + * + * SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。 * * Please refer to HUAWEI cloud API Explorer for details. */ @@ -2032,7 +2180,7 @@ export const ParamCreater = function () { }, /** - * 获取文件系统异步任务列表 + * 获取文件系统异步任务列表。仅支持查询目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。 * * Please refer to HUAWEI cloud API Explorer for details. */ @@ -2116,6 +2264,10 @@ export const ParamCreater = function () { let offset; let limit; + + let startTime; + + let endTime; if (listHpcCacheTasksRequest !== null && listHpcCacheTasksRequest !== undefined) { if (listHpcCacheTasksRequest instanceof ListHpcCacheTasksRequest) { @@ -2124,12 +2276,16 @@ export const ParamCreater = function () { status = listHpcCacheTasksRequest.status; offset = listHpcCacheTasksRequest.offset; limit = listHpcCacheTasksRequest.limit; + startTime = listHpcCacheTasksRequest.startTime; + endTime = listHpcCacheTasksRequest.endTime; } else { shareId = listHpcCacheTasksRequest['share_id']; type = listHpcCacheTasksRequest['type']; status = listHpcCacheTasksRequest['status']; offset = listHpcCacheTasksRequest['offset']; limit = listHpcCacheTasksRequest['limit']; + startTime = listHpcCacheTasksRequest['start_time']; + endTime = listHpcCacheTasksRequest['end_time']; } } @@ -2149,6 +2305,12 @@ export const ParamCreater = function () { if (limit !== null && limit !== undefined) { localVarQueryParameter['limit'] = limit; } + if (startTime !== null && startTime !== undefined) { + localVarQueryParameter['start_time'] = startTime; + } + if (endTime !== null && endTime !== undefined) { + localVarQueryParameter['end_time'] = endTime; + } options.queryParams = localVarQueryParameter; options.pathParams = { 'share_id': shareId, }; @@ -2171,15 +2333,23 @@ export const ParamCreater = function () { headers: {} }; const localVarHeaderParameter = {} as any; - + const localVarQueryParameter = {} as any; let shareId; + + let limit; + + let offset; if (listPermRulesRequest !== null && listPermRulesRequest !== undefined) { if (listPermRulesRequest instanceof ListPermRulesRequest) { shareId = listPermRulesRequest.shareId; + limit = listPermRulesRequest.limit; + offset = listPermRulesRequest.offset; } else { shareId = listPermRulesRequest['share_id']; + limit = listPermRulesRequest['limit']; + offset = listPermRulesRequest['offset']; } } @@ -2187,7 +2357,14 @@ export const ParamCreater = function () { if (shareId === null || shareId === undefined) { throw new RequiredError('shareId','Required parameter shareId was null or undefined when calling listPermRules.'); } + if (limit !== null && limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (offset !== null && offset !== undefined) { + localVarQueryParameter['offset'] = offset; + } + options.queryParams = localVarQueryParameter; options.pathParams = { 'share_id': shareId, }; options.headers = localVarHeaderParameter; return options; @@ -2198,7 +2375,7 @@ export const ParamCreater = function () { * * Please refer to HUAWEI cloud API Explorer for details. */ - listSharedTags() { + listSharedTags(listSharedTagsRequest?: ListSharedTagsRequest) { const options = { method: "GET", url: "/v1/{project_id}/sfs-turbo/tags", @@ -2208,8 +2385,31 @@ export const ParamCreater = function () { headers: {} }; const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let limit; + + let offset; + + if (listSharedTagsRequest !== null && listSharedTagsRequest !== undefined) { + if (listSharedTagsRequest instanceof ListSharedTagsRequest) { + limit = listSharedTagsRequest.limit; + offset = listSharedTagsRequest.offset; + } else { + limit = listSharedTagsRequest['limit']; + offset = listSharedTagsRequest['offset']; + } + } + + if (limit !== null && limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (offset !== null && offset !== undefined) { + localVarQueryParameter['offset'] = offset; + } + options.queryParams = localVarQueryParameter; options.headers = localVarHeaderParameter; return options; }, @@ -2397,7 +2597,7 @@ export const ParamCreater = function () { }, /** - * 查询目标文件夹quota + * 查询目标文件夹quota。查询的used_capacity、used_inode数据可能有延迟。 * * Please refer to HUAWEI cloud API Explorer for details. */ @@ -2493,7 +2693,7 @@ export const ParamCreater = function () { }, /** - * 获取文件系统异步任务详情 + * 获取文件系统异步任务详情。仅支持查询目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。 * * Please refer to HUAWEI cloud API Explorer for details. */ @@ -2588,7 +2788,7 @@ export const ParamCreater = function () { }, /** - * 查询job的执行状态。 可用于查询SFS Turbo异步API的执行状态。 + * 查询job的执行状态。 可用于查询SFS Turbo异步API的执行状态。例如:可使用调用创建并绑定ldap配置接口时返回的jobId,通过该接口查询job的执行状态。 * * Please refer to HUAWEI cloud API Explorer for details. */ @@ -2625,7 +2825,11 @@ export const ParamCreater = function () { }, /** - * 查询Ldap的配置 + * 查询Ldap的配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有: + * 1. RFC2307(Openldap通常选择此Schema) + * 2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组) + * + * SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。 * * Please refer to HUAWEI cloud API Explorer for details. */ @@ -2872,7 +3076,11 @@ export const ParamCreater = function () { }, /** - * 修改ldap配置 + * 修改ldap配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有: + * 1. RFC2307(Openldap通常选择此Schema) + * 2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组) + * + * SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。 * * Please refer to HUAWEI cloud API Explorer for details. */ @@ -2917,6 +3125,112 @@ export const ParamCreater = function () { return options; }, + /** + * 更新后端存储属性 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + updateObsTargetAttributes(updateObsTargetAttributesRequest?: UpdateObsTargetAttributesRequest) { + const options = { + method: "PUT", + url: "/v1/{project_id}/sfs-turbo/shares/{share_id}/targets/{target_id}/attributes", + contentType: "application/json;charset=UTF-8", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let shareId; + + let targetId; + + if (updateObsTargetAttributesRequest !== null && updateObsTargetAttributesRequest !== undefined) { + if (updateObsTargetAttributesRequest instanceof UpdateObsTargetAttributesRequest) { + shareId = updateObsTargetAttributesRequest.shareId; + targetId = updateObsTargetAttributesRequest.targetId; + body = updateObsTargetAttributesRequest.body + } else { + shareId = updateObsTargetAttributesRequest['share_id']; + targetId = updateObsTargetAttributesRequest['target_id']; + body = updateObsTargetAttributesRequest['body']; + } + } + + + if (shareId === null || shareId === undefined) { + throw new RequiredError('shareId','Required parameter shareId was null or undefined when calling updateObsTargetAttributes.'); + } + if (targetId === null || targetId === undefined) { + throw new RequiredError('targetId','Required parameter targetId was null or undefined when calling updateObsTargetAttributes.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; + + options.data = body !== undefined ? body : {}; + options.pathParams = { 'share_id': shareId,'target_id': targetId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 更新后端存储自动同步策略 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + updateObsTargetPolicy(updateObsTargetPolicyRequest?: UpdateObsTargetPolicyRequest) { + const options = { + method: "PUT", + url: "/v1/{project_id}/sfs-turbo/shares/{share_id}/targets/{target_id}/policy", + contentType: "application/json;charset=UTF-8", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let shareId; + + let targetId; + + if (updateObsTargetPolicyRequest !== null && updateObsTargetPolicyRequest !== undefined) { + if (updateObsTargetPolicyRequest instanceof UpdateObsTargetPolicyRequest) { + shareId = updateObsTargetPolicyRequest.shareId; + targetId = updateObsTargetPolicyRequest.targetId; + body = updateObsTargetPolicyRequest.body + } else { + shareId = updateObsTargetPolicyRequest['share_id']; + targetId = updateObsTargetPolicyRequest['target_id']; + body = updateObsTargetPolicyRequest['body']; + } + } + + + if (shareId === null || shareId === undefined) { + throw new RequiredError('shareId','Required parameter shareId was null or undefined when calling updateObsTargetPolicy.'); + } + if (targetId === null || targetId === undefined) { + throw new RequiredError('targetId','Required parameter targetId was null or undefined when calling updateObsTargetPolicy.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; + + options.data = body !== undefined ? body : {}; + options.pathParams = { 'share_id': shareId,'target_id': targetId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 修改权限规则 * diff --git a/services/sfsturbo/v1/SFSTurboRegion.ts b/services/sfsturbo/v1/SFSTurboRegion.ts index 2fd2927ee..41d9f43e4 100644 --- a/services/sfsturbo/v1/SFSTurboRegion.ts +++ b/services/sfsturbo/v1/SFSTurboRegion.ts @@ -33,6 +33,8 @@ export class SFSTurboRegion { public static MY_KUALALUMPUR_1 = new Region("my-kualalumpur-1", ["https://sfs-turbo.my-kualalumpur-1.myhuaweicloud.com"]); public static CN_EAST_4 = new Region("cn-east-4", ["https://sfs-turbo.cn-east-4.myhuaweicloud.com"]); public static AE_AD_1 = new Region("ae-ad-1", ["https://sfs-turbo.ae-ad-1.myhuaweicloud.com"]); + public static CN_NORTH_11 = new Region("cn-north-11", ["https://sfs-turbo.cn-north-11.myhuaweicloud.com"]); + public static AF_NORTH_1 = new Region("af-north-1", ["https://sfs-turbo.af-north-1.myhuaweicloud.com"]); private static REGION_MAP: RegionMap = { @@ -62,7 +64,9 @@ export class SFSTurboRegion { "ru-moscow-1":SFSTurboRegion.RU_MOSCOW_1, "my-kualalumpur-1":SFSTurboRegion.MY_KUALALUMPUR_1, "cn-east-4":SFSTurboRegion.CN_EAST_4, - "ae-ad-1":SFSTurboRegion.AE_AD_1 + "ae-ad-1":SFSTurboRegion.AE_AD_1, + "cn-north-11":SFSTurboRegion.CN_NORTH_11, + "af-north-1":SFSTurboRegion.AF_NORTH_1 }; public static valueOf(regionId: string) { diff --git a/services/sfsturbo/v1/model/AutoExportPolicy.ts b/services/sfsturbo/v1/model/AutoExportPolicy.ts new file mode 100644 index 000000000..8c21d1904 --- /dev/null +++ b/services/sfsturbo/v1/model/AutoExportPolicy.ts @@ -0,0 +1,21 @@ + + +export class AutoExportPolicy { + public events?: Array | Array; + public constructor() { + } + public withEvents(events: Array | Array): AutoExportPolicy { + this['events'] = events; + return this; + } +} + +/** + * @export + * @enum {string} + */ +export enum AutoExportPolicyEventsEnum { + NEW = 'NEW', + CHANGED = 'CHANGED', + DELETED = 'DELETED' +} diff --git a/services/sfsturbo/v1/model/ConfigObsTarget.ts b/services/sfsturbo/v1/model/ConfigObsTarget.ts deleted file mode 100644 index f3d1d6cc4..000000000 --- a/services/sfsturbo/v1/model/ConfigObsTarget.ts +++ /dev/null @@ -1,30 +0,0 @@ - - -export class ConfigObsTarget { - public name?: string; - public type?: string; - public url?: string; - public bucket?: string; - public constructor(name?: string, type?: string, url?: string, bucket?: string) { - this['name'] = name; - this['type'] = type; - this['url'] = url; - this['bucket'] = bucket; - } - public withName(name: string): ConfigObsTarget { - this['name'] = name; - return this; - } - public withType(type: string): ConfigObsTarget { - this['type'] = type; - return this; - } - public withUrl(url: string): ConfigObsTarget { - this['url'] = url; - return this; - } - public withBucket(bucket: string): ConfigObsTarget { - this['bucket'] = bucket; - return this; - } -} \ No newline at end of file diff --git a/services/sfsturbo/v1/model/CreateHpcCacheTaskReq.ts b/services/sfsturbo/v1/model/CreateHpcCacheTaskReq.ts index 211ed7c82..bc2d3e4d5 100644 --- a/services/sfsturbo/v1/model/CreateHpcCacheTaskReq.ts +++ b/services/sfsturbo/v1/model/CreateHpcCacheTaskReq.ts @@ -1,3 +1,4 @@ +import { ObsTargetAttributes } from './ObsTargetAttributes'; export class CreateHpcCacheTaskReq { @@ -6,6 +7,7 @@ export class CreateHpcCacheTaskReq { private 'src_prefix'?: string; private 'dest_target'?: string; private 'dest_prefix'?: string; + public attributes?: ObsTargetAttributes; public constructor(type?: string, srcTarget?: string, destTarget?: string) { this['type'] = type; this['src_target'] = srcTarget; @@ -55,6 +57,10 @@ export class CreateHpcCacheTaskReq { public get destPrefix(): string | undefined { return this['dest_prefix']; } + public withAttributes(attributes: ObsTargetAttributes): CreateHpcCacheTaskReq { + this['attributes'] = attributes; + return this; + } } /** diff --git a/services/sfsturbo/v1/model/CreateLdapConfigRequestBody.ts b/services/sfsturbo/v1/model/CreateLdapConfigRequestBody.ts index e53b85082..13b1ffc7e 100644 --- a/services/sfsturbo/v1/model/CreateLdapConfigRequestBody.ts +++ b/services/sfsturbo/v1/model/CreateLdapConfigRequestBody.ts @@ -7,6 +7,10 @@ export class CreateLdapConfigRequestBody { public password?: string; private 'vpc_id'?: string; private 'filter_condition'?: string; + private 'backup_url'?: string; + public schema?: string; + private 'search_timeout'?: number; + private 'allow_local_user'?: CreateLdapConfigRequestBodyAllowLocalUserEnum | string; public constructor(url?: string, baseDn?: string) { this['url'] = url; this['base_dn'] = baseDn; @@ -59,4 +63,47 @@ export class CreateLdapConfigRequestBody { public get filterCondition(): string | undefined { return this['filter_condition']; } -} \ No newline at end of file + public withBackupUrl(backupUrl: string): CreateLdapConfigRequestBody { + this['backup_url'] = backupUrl; + return this; + } + public set backupUrl(backupUrl: string | undefined) { + this['backup_url'] = backupUrl; + } + public get backupUrl(): string | undefined { + return this['backup_url']; + } + public withSchema(schema: string): CreateLdapConfigRequestBody { + this['schema'] = schema; + return this; + } + public withSearchTimeout(searchTimeout: number): CreateLdapConfigRequestBody { + this['search_timeout'] = searchTimeout; + return this; + } + public set searchTimeout(searchTimeout: number | undefined) { + this['search_timeout'] = searchTimeout; + } + public get searchTimeout(): number | undefined { + return this['search_timeout']; + } + public withAllowLocalUser(allowLocalUser: CreateLdapConfigRequestBodyAllowLocalUserEnum | string): CreateLdapConfigRequestBody { + this['allow_local_user'] = allowLocalUser; + return this; + } + public set allowLocalUser(allowLocalUser: CreateLdapConfigRequestBodyAllowLocalUserEnum | string | undefined) { + this['allow_local_user'] = allowLocalUser; + } + public get allowLocalUser(): CreateLdapConfigRequestBodyAllowLocalUserEnum | string | undefined { + return this['allow_local_user']; + } +} + +/** + * @export + * @enum {string} + */ +export enum CreateLdapConfigRequestBodyAllowLocalUserEnum { + YES = 'Yes', + NO = 'No' +} diff --git a/services/sfsturbo/v1/model/DeleteHpcCacheTaskRequest.ts b/services/sfsturbo/v1/model/DeleteHpcCacheTaskRequest.ts new file mode 100644 index 000000000..63fde1ee1 --- /dev/null +++ b/services/sfsturbo/v1/model/DeleteHpcCacheTaskRequest.ts @@ -0,0 +1,30 @@ + + +export class DeleteHpcCacheTaskRequest { + private 'share_id'?: string; + private 'task_id'?: string; + public constructor(shareId?: string, taskId?: string) { + this['share_id'] = shareId; + this['task_id'] = taskId; + } + public withShareId(shareId: string): DeleteHpcCacheTaskRequest { + this['share_id'] = shareId; + return this; + } + public set shareId(shareId: string | undefined) { + this['share_id'] = shareId; + } + public get shareId(): string | undefined { + return this['share_id']; + } + public withTaskId(taskId: string): DeleteHpcCacheTaskRequest { + this['task_id'] = taskId; + return this; + } + public set taskId(taskId: string | undefined) { + this['task_id'] = taskId; + } + public get taskId(): string | undefined { + return this['task_id']; + } +} \ No newline at end of file diff --git a/services/sfsturbo/v1/model/DeleteHpcCacheTaskResponse.ts b/services/sfsturbo/v1/model/DeleteHpcCacheTaskResponse.ts new file mode 100644 index 000000000..e1b8c911f --- /dev/null +++ b/services/sfsturbo/v1/model/DeleteHpcCacheTaskResponse.ts @@ -0,0 +1,19 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class DeleteHpcCacheTaskResponse extends SdkResponse { + private 'X-request-id'?: string; + public constructor() { + super(); + } + public withXRequestId(xRequestId: string): DeleteHpcCacheTaskResponse { + this['X-request-id'] = xRequestId; + return this; + } + public set xRequestId(xRequestId: string | undefined) { + this['X-request-id'] = xRequestId; + } + public get xRequestId(): string | undefined { + return this['X-request-id']; + } +} \ No newline at end of file diff --git a/services/sfsturbo/v1/model/ListHpcCacheTasksRequest.ts b/services/sfsturbo/v1/model/ListHpcCacheTasksRequest.ts index 7225fdcc6..aaa6f61e1 100644 --- a/services/sfsturbo/v1/model/ListHpcCacheTasksRequest.ts +++ b/services/sfsturbo/v1/model/ListHpcCacheTasksRequest.ts @@ -6,6 +6,8 @@ export class ListHpcCacheTasksRequest { public status?: string; public offset?: number; public limit?: number; + private 'start_time'?: string; + private 'end_time'?: string; public constructor(shareId?: string) { this['share_id'] = shareId; } @@ -35,4 +37,24 @@ export class ListHpcCacheTasksRequest { this['limit'] = limit; return this; } + public withStartTime(startTime: string): ListHpcCacheTasksRequest { + this['start_time'] = startTime; + return this; + } + public set startTime(startTime: string | undefined) { + this['start_time'] = startTime; + } + public get startTime(): string | undefined { + return this['start_time']; + } + public withEndTime(endTime: string): ListHpcCacheTasksRequest { + this['end_time'] = endTime; + return this; + } + public set endTime(endTime: string | undefined) { + this['end_time'] = endTime; + } + public get endTime(): string | undefined { + return this['end_time']; + } } \ No newline at end of file diff --git a/services/sfsturbo/v1/model/ListPermRulesRequest.ts b/services/sfsturbo/v1/model/ListPermRulesRequest.ts index 392d2f175..bf7f7c160 100644 --- a/services/sfsturbo/v1/model/ListPermRulesRequest.ts +++ b/services/sfsturbo/v1/model/ListPermRulesRequest.ts @@ -2,6 +2,8 @@ export class ListPermRulesRequest { private 'share_id'?: string; + public limit?: number; + public offset?: number; public constructor(shareId?: string) { this['share_id'] = shareId; } @@ -15,4 +17,12 @@ export class ListPermRulesRequest { public get shareId(): string | undefined { return this['share_id']; } + public withLimit(limit: number): ListPermRulesRequest { + this['limit'] = limit; + return this; + } + public withOffset(offset: number): ListPermRulesRequest { + this['offset'] = offset; + return this; + } } \ No newline at end of file diff --git a/services/sfsturbo/v1/model/ListSharedTagsRequest.ts b/services/sfsturbo/v1/model/ListSharedTagsRequest.ts index f4f472db7..2623c75f7 100644 --- a/services/sfsturbo/v1/model/ListSharedTagsRequest.ts +++ b/services/sfsturbo/v1/model/ListSharedTagsRequest.ts @@ -1,6 +1,16 @@ export class ListSharedTagsRequest { + public limit?: number; + public offset?: number; public constructor() { } + public withLimit(limit: number): ListSharedTagsRequest { + this['limit'] = limit; + return this; + } + public withOffset(offset: number): ListSharedTagsRequest { + this['offset'] = offset; + return this; + } } \ No newline at end of file diff --git a/services/sfsturbo/v1/model/ObsDataRepository.ts b/services/sfsturbo/v1/model/ObsDataRepository.ts index dfe6d2c24..dd2789eca 100644 --- a/services/sfsturbo/v1/model/ObsDataRepository.ts +++ b/services/sfsturbo/v1/model/ObsDataRepository.ts @@ -1,8 +1,12 @@ +import { ObsDataRepositoryPolicy } from './ObsDataRepositoryPolicy'; +import { ObsTargetAttributes } from './ObsTargetAttributes'; export class ObsDataRepository { public bucket?: string; public endpoint?: string; + public policy?: ObsDataRepositoryPolicy; + public attributes?: ObsTargetAttributes; public constructor(bucket?: string, endpoint?: string) { this['bucket'] = bucket; this['endpoint'] = endpoint; @@ -15,4 +19,12 @@ export class ObsDataRepository { this['endpoint'] = endpoint; return this; } + public withPolicy(policy: ObsDataRepositoryPolicy): ObsDataRepository { + this['policy'] = policy; + return this; + } + public withAttributes(attributes: ObsTargetAttributes): ObsDataRepository { + this['attributes'] = attributes; + return this; + } } \ No newline at end of file diff --git a/services/sfsturbo/v1/model/ObsDataRepositoryPolicy.ts b/services/sfsturbo/v1/model/ObsDataRepositoryPolicy.ts new file mode 100644 index 000000000..48144f8f6 --- /dev/null +++ b/services/sfsturbo/v1/model/ObsDataRepositoryPolicy.ts @@ -0,0 +1,18 @@ +import { AutoExportPolicy } from './AutoExportPolicy'; + + +export class ObsDataRepositoryPolicy { + private 'auto_export_policy'?: AutoExportPolicy; + public constructor() { + } + public withAutoExportPolicy(autoExportPolicy: AutoExportPolicy): ObsDataRepositoryPolicy { + this['auto_export_policy'] = autoExportPolicy; + return this; + } + public set autoExportPolicy(autoExportPolicy: AutoExportPolicy | undefined) { + this['auto_export_policy'] = autoExportPolicy; + } + public get autoExportPolicy(): AutoExportPolicy | undefined { + return this['auto_export_policy']; + } +} \ No newline at end of file diff --git a/services/sfsturbo/v1/model/ObsTargetAttributes.ts b/services/sfsturbo/v1/model/ObsTargetAttributes.ts new file mode 100644 index 000000000..60cdd132a --- /dev/null +++ b/services/sfsturbo/v1/model/ObsTargetAttributes.ts @@ -0,0 +1,38 @@ + + +export class ObsTargetAttributes { + private 'file_mode'?: number; + private 'dir_mode'?: number; + public uid?: number; + public gid?: number; + public constructor() { + } + public withFileMode(fileMode: number): ObsTargetAttributes { + this['file_mode'] = fileMode; + return this; + } + public set fileMode(fileMode: number | undefined) { + this['file_mode'] = fileMode; + } + public get fileMode(): number | undefined { + return this['file_mode']; + } + public withDirMode(dirMode: number): ObsTargetAttributes { + this['dir_mode'] = dirMode; + return this; + } + public set dirMode(dirMode: number | undefined) { + this['dir_mode'] = dirMode; + } + public get dirMode(): number | undefined { + return this['dir_mode']; + } + public withUid(uid: number): ObsTargetAttributes { + this['uid'] = uid; + return this; + } + public withGid(gid: number): ObsTargetAttributes { + this['gid'] = gid; + return this; + } +} \ No newline at end of file diff --git a/services/sfsturbo/v1/model/OneHpcCacheTaskInfoResp.ts b/services/sfsturbo/v1/model/OneHpcCacheTaskInfoResp.ts index 05b710a75..5c2cf07d1 100644 --- a/services/sfsturbo/v1/model/OneHpcCacheTaskInfoResp.ts +++ b/services/sfsturbo/v1/model/OneHpcCacheTaskInfoResp.ts @@ -3,7 +3,7 @@ export class OneHpcCacheTaskInfoResp { private 'task_id'?: string; public type?: string; - public status?: string; + public status?: OneHpcCacheTaskInfoRespStatusEnum | string; private 'src_target'?: string; private 'src_prefix'?: string; private 'dest_target'?: string; @@ -37,7 +37,7 @@ export class OneHpcCacheTaskInfoResp { this['type'] = type; return this; } - public withStatus(status: string): OneHpcCacheTaskInfoResp { + public withStatus(status: OneHpcCacheTaskInfoRespStatusEnum | string): OneHpcCacheTaskInfoResp { this['status'] = status; return this; } @@ -105,4 +105,14 @@ export class OneHpcCacheTaskInfoResp { this['message'] = message; return this; } -} \ No newline at end of file +} + +/** + * @export + * @enum {string} + */ +export enum OneHpcCacheTaskInfoRespStatusEnum { + SUCCESS = 'SUCCESS', + DOING = 'DOING', + FAIL = 'FAIL' +} diff --git a/services/sfsturbo/v1/model/ReqUpdateHpcCacheData.ts b/services/sfsturbo/v1/model/ReqUpdateHpcCacheData.ts index caa192a55..0bbab1f37 100644 --- a/services/sfsturbo/v1/model/ReqUpdateHpcCacheData.ts +++ b/services/sfsturbo/v1/model/ReqUpdateHpcCacheData.ts @@ -1,12 +1,10 @@ import { ConfigNasTarget } from './ConfigNasTarget'; -import { ConfigObsTarget } from './ConfigObsTarget'; export class ReqUpdateHpcCacheData { private 'gc_time'?: number; private 'ck_time'?: number; public nas?: Array; - public obs?: Array; public constructor(gcTime?: number, ckTime?: number) { this['gc_time'] = gcTime; this['ck_time'] = ckTime; @@ -35,8 +33,4 @@ export class ReqUpdateHpcCacheData { this['nas'] = nas; return this; } - public withObs(obs: Array): ReqUpdateHpcCacheData { - this['obs'] = obs; - return this; - } } \ No newline at end of file diff --git a/services/sfsturbo/v1/model/ShareInfo.ts b/services/sfsturbo/v1/model/ShareInfo.ts index f27818522..1ffbf6188 100644 --- a/services/sfsturbo/v1/model/ShareInfo.ts +++ b/services/sfsturbo/v1/model/ShareInfo.ts @@ -1,5 +1,6 @@ import { ActionProgress } from './ActionProgress'; import { ResourceTag } from './ResourceTag'; +import { ShareInfoFeatures } from './ShareInfoFeatures'; export class ShareInfo { @@ -26,6 +27,12 @@ export class ShareInfo { private 'vpc_id'?: string; private 'enterprise_project_id'?: string; public tags?: Array; + private 'optional_endpoint'?: string; + private 'hpc_bw'?: string; + public instanceId?: string; + public instanceType?: string; + public statusDetail?: string; + public features?: ShareInfoFeatures; public constructor() { } public withActionProgress(actionProgress: ActionProgress): ShareInfo { @@ -216,6 +223,42 @@ export class ShareInfo { this['tags'] = tags; return this; } + public withOptionalEndpoint(optionalEndpoint: string): ShareInfo { + this['optional_endpoint'] = optionalEndpoint; + return this; + } + public set optionalEndpoint(optionalEndpoint: string | undefined) { + this['optional_endpoint'] = optionalEndpoint; + } + public get optionalEndpoint(): string | undefined { + return this['optional_endpoint']; + } + public withHpcBw(hpcBw: string): ShareInfo { + this['hpc_bw'] = hpcBw; + return this; + } + public set hpcBw(hpcBw: string | undefined) { + this['hpc_bw'] = hpcBw; + } + public get hpcBw(): string | undefined { + return this['hpc_bw']; + } + public withInstanceId(instanceId: string): ShareInfo { + this['instanceId'] = instanceId; + return this; + } + public withInstanceType(instanceType: string): ShareInfo { + this['instanceType'] = instanceType; + return this; + } + public withStatusDetail(statusDetail: string): ShareInfo { + this['statusDetail'] = statusDetail; + return this; + } + public withFeatures(features: ShareInfoFeatures): ShareInfo { + this['features'] = features; + return this; + } } /** diff --git a/services/sfsturbo/v1/model/ShareInfoFeature.ts b/services/sfsturbo/v1/model/ShareInfoFeature.ts new file mode 100644 index 000000000..a84351454 --- /dev/null +++ b/services/sfsturbo/v1/model/ShareInfoFeature.ts @@ -0,0 +1,33 @@ + + +export class ShareInfoFeature { + private 'is_support'?: boolean; + public message?: string; + private 'msg_code'?: string; + public constructor() { + } + public withIsSupport(isSupport: boolean): ShareInfoFeature { + this['is_support'] = isSupport; + return this; + } + public set isSupport(isSupport: boolean | undefined) { + this['is_support'] = isSupport; + } + public get isSupport(): boolean | undefined { + return this['is_support']; + } + public withMessage(message: string): ShareInfoFeature { + this['message'] = message; + return this; + } + public withMsgCode(msgCode: string): ShareInfoFeature { + this['msg_code'] = msgCode; + return this; + } + public set msgCode(msgCode: string | undefined) { + this['msg_code'] = msgCode; + } + public get msgCode(): string | undefined { + return this['msg_code']; + } +} \ No newline at end of file diff --git a/services/sfsturbo/v1/model/ShareInfoFeatures.ts b/services/sfsturbo/v1/model/ShareInfoFeatures.ts new file mode 100644 index 000000000..8221627fb --- /dev/null +++ b/services/sfsturbo/v1/model/ShareInfoFeatures.ts @@ -0,0 +1,12 @@ +import { ShareInfoFeature } from './ShareInfoFeature'; + + +export class ShareInfoFeatures { + public backup?: ShareInfoFeature; + public constructor() { + } + public withBackup(backup: ShareInfoFeature): ShareInfoFeatures { + this['backup'] = backup; + return this; + } +} \ No newline at end of file diff --git a/services/sfsturbo/v1/model/ShowHpcCacheTaskResponse.ts b/services/sfsturbo/v1/model/ShowHpcCacheTaskResponse.ts index 481927511..b24ca1be3 100644 --- a/services/sfsturbo/v1/model/ShowHpcCacheTaskResponse.ts +++ b/services/sfsturbo/v1/model/ShowHpcCacheTaskResponse.ts @@ -4,7 +4,7 @@ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; export class ShowHpcCacheTaskResponse extends SdkResponse { private 'task_id'?: string; public type?: string; - public status?: string; + public status?: ShowHpcCacheTaskResponseStatusEnum | string; private 'src_target'?: string; private 'src_prefix'?: string; private 'dest_target'?: string; @@ -30,7 +30,7 @@ export class ShowHpcCacheTaskResponse extends SdkResponse { this['type'] = type; return this; } - public withStatus(status: string): ShowHpcCacheTaskResponse { + public withStatus(status: ShowHpcCacheTaskResponseStatusEnum | string): ShowHpcCacheTaskResponse { this['status'] = status; return this; } @@ -108,4 +108,14 @@ export class ShowHpcCacheTaskResponse extends SdkResponse { public get xRequestId(): string | undefined { return this['X-request-id']; } -} \ No newline at end of file +} + +/** + * @export + * @enum {string} + */ +export enum ShowHpcCacheTaskResponseStatusEnum { + SUCCESS = 'SUCCESS', + DOING = 'DOING', + FAIL = 'FAIL' +} diff --git a/services/sfsturbo/v1/model/ShowJobDetailResponse.ts b/services/sfsturbo/v1/model/ShowJobDetailResponse.ts index 4cddfd539..c9650bc06 100644 --- a/services/sfsturbo/v1/model/ShowJobDetailResponse.ts +++ b/services/sfsturbo/v1/model/ShowJobDetailResponse.ts @@ -3,7 +3,7 @@ import { GetSubJobDetail } from './GetSubJobDetail'; import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; export class ShowJobDetailResponse extends SdkResponse { - public status?: string; + public status?: ShowJobDetailResponseStatusEnum | string; private 'job_id'?: string; private 'job_type'?: string; private 'begin_time'?: string; @@ -15,7 +15,7 @@ export class ShowJobDetailResponse extends SdkResponse { public constructor() { super(); } - public withStatus(status: string): ShowJobDetailResponse { + public withStatus(status: ShowJobDetailResponseStatusEnum | string): ShowJobDetailResponse { this['status'] = status; return this; } @@ -99,4 +99,15 @@ export class ShowJobDetailResponse extends SdkResponse { public get xRequestId(): string | undefined { return this['X-request-id']; } -} \ No newline at end of file +} + +/** + * @export + * @enum {string} + */ +export enum ShowJobDetailResponseStatusEnum { + SUCCESS = 'success', + FAILED = 'failed', + WAITING = 'waiting', + RUNNING = 'running' +} diff --git a/services/sfsturbo/v1/model/ShowLdapConfigResponse.ts b/services/sfsturbo/v1/model/ShowLdapConfigResponse.ts index 0937a7b5c..dd06306bb 100644 --- a/services/sfsturbo/v1/model/ShowLdapConfigResponse.ts +++ b/services/sfsturbo/v1/model/ShowLdapConfigResponse.ts @@ -6,6 +6,10 @@ export class ShowLdapConfigResponse extends SdkResponse { private 'base_dn'?: string; private 'user_dn'?: string; private 'filter_condition'?: string; + private 'backup_url'?: string; + public schema?: string; + private 'search_timeout'?: number; + private 'allow_local_user'?: string; public constructor() { super(); } @@ -43,4 +47,38 @@ export class ShowLdapConfigResponse extends SdkResponse { public get filterCondition(): string | undefined { return this['filter_condition']; } + public withBackupUrl(backupUrl: string): ShowLdapConfigResponse { + this['backup_url'] = backupUrl; + return this; + } + public set backupUrl(backupUrl: string | undefined) { + this['backup_url'] = backupUrl; + } + public get backupUrl(): string | undefined { + return this['backup_url']; + } + public withSchema(schema: string): ShowLdapConfigResponse { + this['schema'] = schema; + return this; + } + public withSearchTimeout(searchTimeout: number): ShowLdapConfigResponse { + this['search_timeout'] = searchTimeout; + return this; + } + public set searchTimeout(searchTimeout: number | undefined) { + this['search_timeout'] = searchTimeout; + } + public get searchTimeout(): number | undefined { + return this['search_timeout']; + } + public withAllowLocalUser(allowLocalUser: string): ShowLdapConfigResponse { + this['allow_local_user'] = allowLocalUser; + return this; + } + public set allowLocalUser(allowLocalUser: string | undefined) { + this['allow_local_user'] = allowLocalUser; + } + public get allowLocalUser(): string | undefined { + return this['allow_local_user']; + } } \ No newline at end of file diff --git a/services/sfsturbo/v1/model/ShowShareResponse.ts b/services/sfsturbo/v1/model/ShowShareResponse.ts index 0bc37acca..9f4968789 100644 --- a/services/sfsturbo/v1/model/ShowShareResponse.ts +++ b/services/sfsturbo/v1/model/ShowShareResponse.ts @@ -1,5 +1,6 @@ import { ActionProgress } from './ActionProgress'; import { ResourceTag } from './ResourceTag'; +import { ShareInfoFeatures } from './ShareInfoFeatures'; import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; @@ -27,6 +28,12 @@ export class ShowShareResponse extends SdkResponse { private 'vpc_id'?: string; private 'enterprise_project_id'?: string; public tags?: Array; + private 'optional_endpoint'?: string; + private 'hpc_bw'?: string; + public instanceId?: string; + public instanceType?: string; + public statusDetail?: string; + public features?: ShareInfoFeatures; public constructor() { super(); } @@ -218,6 +225,42 @@ export class ShowShareResponse extends SdkResponse { this['tags'] = tags; return this; } + public withOptionalEndpoint(optionalEndpoint: string): ShowShareResponse { + this['optional_endpoint'] = optionalEndpoint; + return this; + } + public set optionalEndpoint(optionalEndpoint: string | undefined) { + this['optional_endpoint'] = optionalEndpoint; + } + public get optionalEndpoint(): string | undefined { + return this['optional_endpoint']; + } + public withHpcBw(hpcBw: string): ShowShareResponse { + this['hpc_bw'] = hpcBw; + return this; + } + public set hpcBw(hpcBw: string | undefined) { + this['hpc_bw'] = hpcBw; + } + public get hpcBw(): string | undefined { + return this['hpc_bw']; + } + public withInstanceId(instanceId: string): ShowShareResponse { + this['instanceId'] = instanceId; + return this; + } + public withInstanceType(instanceType: string): ShowShareResponse { + this['instanceType'] = instanceType; + return this; + } + public withStatusDetail(statusDetail: string): ShowShareResponse { + this['statusDetail'] = statusDetail; + return this; + } + public withFeatures(features: ShareInfoFeatures): ShowShareResponse { + this['features'] = features; + return this; + } } /** diff --git a/services/sfsturbo/v1/model/UpdateLdapConfigRequestBody.ts b/services/sfsturbo/v1/model/UpdateLdapConfigRequestBody.ts index 911c77d7c..5f2e14e84 100644 --- a/services/sfsturbo/v1/model/UpdateLdapConfigRequestBody.ts +++ b/services/sfsturbo/v1/model/UpdateLdapConfigRequestBody.ts @@ -7,6 +7,10 @@ export class UpdateLdapConfigRequestBody { public password?: string; private 'vpc_id'?: string; private 'filter_condition'?: string; + private 'backup_url'?: string; + public schema?: string; + private 'search_timeout'?: number; + private 'allow_local_user'?: UpdateLdapConfigRequestBodyAllowLocalUserEnum | string; public constructor() { } public withUrl(url: string): UpdateLdapConfigRequestBody { @@ -57,4 +61,47 @@ export class UpdateLdapConfigRequestBody { public get filterCondition(): string | undefined { return this['filter_condition']; } -} \ No newline at end of file + public withBackupUrl(backupUrl: string): UpdateLdapConfigRequestBody { + this['backup_url'] = backupUrl; + return this; + } + public set backupUrl(backupUrl: string | undefined) { + this['backup_url'] = backupUrl; + } + public get backupUrl(): string | undefined { + return this['backup_url']; + } + public withSchema(schema: string): UpdateLdapConfigRequestBody { + this['schema'] = schema; + return this; + } + public withSearchTimeout(searchTimeout: number): UpdateLdapConfigRequestBody { + this['search_timeout'] = searchTimeout; + return this; + } + public set searchTimeout(searchTimeout: number | undefined) { + this['search_timeout'] = searchTimeout; + } + public get searchTimeout(): number | undefined { + return this['search_timeout']; + } + public withAllowLocalUser(allowLocalUser: UpdateLdapConfigRequestBodyAllowLocalUserEnum | string): UpdateLdapConfigRequestBody { + this['allow_local_user'] = allowLocalUser; + return this; + } + public set allowLocalUser(allowLocalUser: UpdateLdapConfigRequestBodyAllowLocalUserEnum | string | undefined) { + this['allow_local_user'] = allowLocalUser; + } + public get allowLocalUser(): UpdateLdapConfigRequestBodyAllowLocalUserEnum | string | undefined { + return this['allow_local_user']; + } +} + +/** + * @export + * @enum {string} + */ +export enum UpdateLdapConfigRequestBodyAllowLocalUserEnum { + YES = 'Yes', + NO = 'No' +} diff --git a/services/sfsturbo/v1/model/UpdateObsTargetAttributesRequest.ts b/services/sfsturbo/v1/model/UpdateObsTargetAttributesRequest.ts new file mode 100644 index 000000000..027255fd7 --- /dev/null +++ b/services/sfsturbo/v1/model/UpdateObsTargetAttributesRequest.ts @@ -0,0 +1,36 @@ +import { UpdateObsTargetAttributesRequestBody } from './UpdateObsTargetAttributesRequestBody'; + + +export class UpdateObsTargetAttributesRequest { + private 'share_id'?: string; + private 'target_id'?: string; + public body?: UpdateObsTargetAttributesRequestBody; + public constructor(shareId?: string, targetId?: string) { + this['share_id'] = shareId; + this['target_id'] = targetId; + } + public withShareId(shareId: string): UpdateObsTargetAttributesRequest { + this['share_id'] = shareId; + return this; + } + public set shareId(shareId: string | undefined) { + this['share_id'] = shareId; + } + public get shareId(): string | undefined { + return this['share_id']; + } + public withTargetId(targetId: string): UpdateObsTargetAttributesRequest { + this['target_id'] = targetId; + return this; + } + public set targetId(targetId: string | undefined) { + this['target_id'] = targetId; + } + public get targetId(): string | undefined { + return this['target_id']; + } + public withBody(body: UpdateObsTargetAttributesRequestBody): UpdateObsTargetAttributesRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/sfsturbo/v1/model/UpdateObsTargetAttributesRequestBody.ts b/services/sfsturbo/v1/model/UpdateObsTargetAttributesRequestBody.ts new file mode 100644 index 000000000..3df58be3d --- /dev/null +++ b/services/sfsturbo/v1/model/UpdateObsTargetAttributesRequestBody.ts @@ -0,0 +1,13 @@ +import { ObsTargetAttributes } from './ObsTargetAttributes'; + + +export class UpdateObsTargetAttributesRequestBody { + public attributes?: ObsTargetAttributes; + public constructor(attributes?: ObsTargetAttributes) { + this['attributes'] = attributes; + } + public withAttributes(attributes: ObsTargetAttributes): UpdateObsTargetAttributesRequestBody { + this['attributes'] = attributes; + return this; + } +} \ No newline at end of file diff --git a/services/sfsturbo/v1/model/UpdateObsTargetAttributesResponse.ts b/services/sfsturbo/v1/model/UpdateObsTargetAttributesResponse.ts new file mode 100644 index 000000000..905110169 --- /dev/null +++ b/services/sfsturbo/v1/model/UpdateObsTargetAttributesResponse.ts @@ -0,0 +1,36 @@ +import { ObsTargetAttributes } from './ObsTargetAttributes'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class UpdateObsTargetAttributesResponse extends SdkResponse { + private 'target_id'?: string; + public attributes?: ObsTargetAttributes; + private 'X-request-id'?: string; + public constructor() { + super(); + } + public withTargetId(targetId: string): UpdateObsTargetAttributesResponse { + this['target_id'] = targetId; + return this; + } + public set targetId(targetId: string | undefined) { + this['target_id'] = targetId; + } + public get targetId(): string | undefined { + return this['target_id']; + } + public withAttributes(attributes: ObsTargetAttributes): UpdateObsTargetAttributesResponse { + this['attributes'] = attributes; + return this; + } + public withXRequestId(xRequestId: string): UpdateObsTargetAttributesResponse { + this['X-request-id'] = xRequestId; + return this; + } + public set xRequestId(xRequestId: string | undefined) { + this['X-request-id'] = xRequestId; + } + public get xRequestId(): string | undefined { + return this['X-request-id']; + } +} \ No newline at end of file diff --git a/services/sfsturbo/v1/model/UpdateObsTargetPolicyRequest.ts b/services/sfsturbo/v1/model/UpdateObsTargetPolicyRequest.ts new file mode 100644 index 000000000..a843449c1 --- /dev/null +++ b/services/sfsturbo/v1/model/UpdateObsTargetPolicyRequest.ts @@ -0,0 +1,36 @@ +import { UpdateObsTargetPolicyRequestBody } from './UpdateObsTargetPolicyRequestBody'; + + +export class UpdateObsTargetPolicyRequest { + private 'share_id'?: string; + private 'target_id'?: string; + public body?: UpdateObsTargetPolicyRequestBody; + public constructor(shareId?: string, targetId?: string) { + this['share_id'] = shareId; + this['target_id'] = targetId; + } + public withShareId(shareId: string): UpdateObsTargetPolicyRequest { + this['share_id'] = shareId; + return this; + } + public set shareId(shareId: string | undefined) { + this['share_id'] = shareId; + } + public get shareId(): string | undefined { + return this['share_id']; + } + public withTargetId(targetId: string): UpdateObsTargetPolicyRequest { + this['target_id'] = targetId; + return this; + } + public set targetId(targetId: string | undefined) { + this['target_id'] = targetId; + } + public get targetId(): string | undefined { + return this['target_id']; + } + public withBody(body: UpdateObsTargetPolicyRequestBody): UpdateObsTargetPolicyRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/sfsturbo/v1/model/UpdateObsTargetPolicyRequestBody.ts b/services/sfsturbo/v1/model/UpdateObsTargetPolicyRequestBody.ts new file mode 100644 index 000000000..dd7dbd65f --- /dev/null +++ b/services/sfsturbo/v1/model/UpdateObsTargetPolicyRequestBody.ts @@ -0,0 +1,13 @@ +import { ObsDataRepositoryPolicy } from './ObsDataRepositoryPolicy'; + + +export class UpdateObsTargetPolicyRequestBody { + public policy?: ObsDataRepositoryPolicy; + public constructor(policy?: ObsDataRepositoryPolicy) { + this['policy'] = policy; + } + public withPolicy(policy: ObsDataRepositoryPolicy): UpdateObsTargetPolicyRequestBody { + this['policy'] = policy; + return this; + } +} \ No newline at end of file diff --git a/services/sfsturbo/v1/model/UpdateObsTargetPolicyResponse.ts b/services/sfsturbo/v1/model/UpdateObsTargetPolicyResponse.ts new file mode 100644 index 000000000..8b74e7351 --- /dev/null +++ b/services/sfsturbo/v1/model/UpdateObsTargetPolicyResponse.ts @@ -0,0 +1,36 @@ +import { ObsDataRepositoryPolicy } from './ObsDataRepositoryPolicy'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class UpdateObsTargetPolicyResponse extends SdkResponse { + private 'target_id'?: string; + public policy?: ObsDataRepositoryPolicy; + private 'X-request-id'?: string; + public constructor() { + super(); + } + public withTargetId(targetId: string): UpdateObsTargetPolicyResponse { + this['target_id'] = targetId; + return this; + } + public set targetId(targetId: string | undefined) { + this['target_id'] = targetId; + } + public get targetId(): string | undefined { + return this['target_id']; + } + public withPolicy(policy: ObsDataRepositoryPolicy): UpdateObsTargetPolicyResponse { + this['policy'] = policy; + return this; + } + public withXRequestId(xRequestId: string): UpdateObsTargetPolicyResponse { + this['X-request-id'] = xRequestId; + return this; + } + public set xRequestId(xRequestId: string | undefined) { + this['X-request-id'] = xRequestId; + } + public get xRequestId(): string | undefined { + return this['X-request-id']; + } +} \ No newline at end of file diff --git a/services/sfsturbo/v1/public-api.ts b/services/sfsturbo/v1/public-api.ts index 07f2875a0..eed427927 100644 --- a/services/sfsturbo/v1/public-api.ts +++ b/services/sfsturbo/v1/public-api.ts @@ -1,6 +1,7 @@ export * from './SFSTurboClient'; export * from './model/ActionProgress'; +export * from './model/AutoExportPolicy'; export * from './model/BatchAddSharedTagsRequest'; export * from './model/BatchAddSharedTagsRequestBody'; export * from './model/BatchAddSharedTagsResponse'; @@ -14,7 +15,6 @@ export * from './model/ChangeShareNameReq'; export * from './model/ChangeShareNameRequest'; export * from './model/ChangeShareNameResponse'; export * from './model/ConfigNasTarget'; -export * from './model/ConfigObsTarget'; export * from './model/CreateBackendTargetRequest'; export * from './model/CreateBackendTargetRequestBody'; export * from './model/CreateBackendTargetResponse'; @@ -51,6 +51,8 @@ export * from './model/DeleteFsDirRequestBody'; export * from './model/DeleteFsDirResponse'; export * from './model/DeleteFsTaskRequest'; export * from './model/DeleteFsTaskResponse'; +export * from './model/DeleteHpcCacheTaskRequest'; +export * from './model/DeleteHpcCacheTaskResponse'; export * from './model/DeleteLdapConfigRequest'; export * from './model/DeleteLdapConfigResponse'; export * from './model/DeletePermRuleRequest'; @@ -83,6 +85,8 @@ export * from './model/ListSharesRequest'; export * from './model/ListSharesResponse'; export * from './model/Metadata'; export * from './model/ObsDataRepository'; +export * from './model/ObsDataRepositoryPolicy'; +export * from './model/ObsTargetAttributes'; export * from './model/OneFsTaskResp'; export * from './model/OneHpcCacheTaskInfoResp'; export * from './model/OnePermRuleRequestInfo'; @@ -95,6 +99,8 @@ export * from './model/SetHpcCacheBackendRequest'; export * from './model/SetHpcCacheBackendResponse'; export * from './model/Share'; export * from './model/ShareInfo'; +export * from './model/ShareInfoFeature'; +export * from './model/ShareInfoFeatures'; export * from './model/ShareName'; export * from './model/ShowBackendTargetInfoRequest'; export * from './model/ShowBackendTargetInfoResponse'; @@ -129,6 +135,12 @@ export * from './model/UpdateHpcShareResponse'; export * from './model/UpdateLdapConfigRequest'; export * from './model/UpdateLdapConfigRequestBody'; export * from './model/UpdateLdapConfigResponse'; +export * from './model/UpdateObsTargetAttributesRequest'; +export * from './model/UpdateObsTargetAttributesRequestBody'; +export * from './model/UpdateObsTargetAttributesResponse'; +export * from './model/UpdateObsTargetPolicyRequest'; +export * from './model/UpdateObsTargetPolicyRequestBody'; +export * from './model/UpdateObsTargetPolicyResponse'; export * from './model/UpdatePermRuleRequest'; export * from './model/UpdatePermRuleResponse'; export * from './SFSTurboRegion'; diff --git a/services/tms/v1/TmsClient.ts b/services/tms/v1/TmsClient.ts index 6061d84e4..dfde58db5 100644 --- a/services/tms/v1/TmsClient.ts +++ b/services/tms/v1/TmsClient.ts @@ -195,7 +195,7 @@ export class TmsClient { * * @summary 查询标签管理支持的服务 * @param {'zh-cn' | 'en-us'} [locale] 指定显示语言 - * @param {number} [limit] 查询记录数默认为200,limit最多为200,最小值为1。 + * @param {number} [limit] 查询记录数默认为10,limit最多为200,最小值为1。 * @param {number} [offset] 索引位置,从offset指定的下一条数据开始查询,必须为数字,不能为负数,默认为0。 * @param {string} [provider] 云服务名称 * @param {*} [options] Override http request option.