diff --git a/CHANGELOG.md b/CHANGELOG.md index 17bcffdd29..c27ddb0ef3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,372 @@ +# 3.1.122 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.121 2024-11-07 ### HuaweiCloud SDK AAD diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 6b97cb5410..2a32ed332f 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,372 @@ +# 3.1.122 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.121 2024-11-07 ### HuaweiCloud SDK AAD diff --git a/VERSION b/VERSION index 46e9fbfc81..d65367016e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.121 +3.1.122 diff --git a/all/pom.xml b/all/pom.xml index 47b92531c1..a8fb46de7f 100644 --- a/all/pom.xml +++ b/all/pom.xml @@ -8,13 +8,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk 4.0.0 huaweicloud-sdk-all - 3.1.121 + 3.1.122 Huawei Cloud SDK for Java Huawei Cloud SDK for Java provides all services https://github.com/huaweicloud/huaweicloud-sdk-java-v3 @@ -23,886 +23,886 @@ com.huaweicloud.sdk huaweicloud-sdk-dataartsfabric - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-dataartsfabricep - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-mssi - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-orgid - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-cfw - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-antiddos - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-oa - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-aom - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-apig - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-as - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-asm - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-bcs - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-bms - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-bss - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-bssintl - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-cbr - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-cce - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-ces - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-classroom - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-cloudrtc - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-cloudide - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-codeartspipeline - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-cloudpond - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-cloudtest - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-codeartscheck - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-cts - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-das - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-dcs - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-ddm - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-dds - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-dis - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-devstar - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-dlf - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-dgc - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-dli - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-dns - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-drs - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-ecs - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-eihealth - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-eip - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-geip - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-elb - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-eps - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-evs - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-dss - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-functiongraph - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-gaussdbfornosql - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-hss - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-cgs - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-iam - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-iec - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-ief - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-image - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-ims - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-iotda - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-iotdm - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-iotedge - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-kafka - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-kms - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-kps - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-live - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-meeting - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-moderation - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-mpc - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-mrs - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-nat - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-oms - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-osm - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-projectman - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-rabbitmq - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-rds - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-rms - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-roma - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-sa - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-secmaster - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-scm - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-servicestage - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-smn - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-sms - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-swr - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-tms - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-vpc - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-vpcep - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-cdn - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-ugo - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-ocr - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-waf - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-optverse - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-oroas - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-vod - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-lts - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-gaussdb - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-ccm - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-csms - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-codeartsdeploy - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-frs - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-codecraft - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-imagesearch - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-cbs - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-cpts - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-ivs - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-gsl - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-cdm - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-sdrs - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-dbss - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-dsc - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-codeartsinspector - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-nlp - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-gaussdbforopengauss - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-campusgo - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-codehub - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-vas - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-cbh - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-ges - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-sfsturbo - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-sis - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-cloudtable - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-deh - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-res - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-hilens - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-iotanalytics - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-expert - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-css - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-dws - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-vcm - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-cc - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-cse - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-cae - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-rocketmq - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-apm - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-cph - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-eg - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-er - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-ga - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-workspace - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-workspaceapp - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-codeartsartifact - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-koomessage - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-koophone - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-koomap - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-codeartsgovernance - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-dc - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-aos - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-mas - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-dwr - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-dris - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-mapds - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-codeartsbuild - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-lakeformation - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-dataartsinsight - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-organizations - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-ram - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-idme - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-idmeclassicapi - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-metastudio - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-cms - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-msgsms - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-eds - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-obs - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-dataartsstudio - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-tics - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-config - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-identitycenter - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-identitycenterstore - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-pangulargemodels - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-edgesec - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-ec - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-kvs - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-vpn - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-aad - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-rgc - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-iamaccessanalyzer - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-vias - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-sts - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-coc - 3.1.121 + 3.1.122 - ${project.artifactId}-3.1.121 + ${project.artifactId}-3.1.122 maven-dependency-plugin diff --git a/bundle/pom.xml b/bundle/pom.xml index 8932edcd83..51bfa2ce37 100644 --- a/bundle/pom.xml +++ b/bundle/pom.xml @@ -8,13 +8,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk 4.0.0 huaweicloud-sdk-bundle - 3.1.121 + 3.1.122 jar Huawei Cloud SDK for Java Bundle A single bundled dependency that includes all service and dependent JARs for Huawei Cloud Java SDK @@ -24,7 +24,7 @@ com.huaweicloud.sdk huaweicloud-sdk-all - 3.1.121 + 3.1.122 diff --git a/core-bson/pom.xml b/core-bson/pom.xml index 97683b7b8f..b8f0631ea2 100644 --- a/core-bson/pom.xml +++ b/core-bson/pom.xml @@ -4,14 +4,14 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk 4.0.0 jar huaweicloud-sdk-core-bson - 3.1.121 + 3.1.122 Huawei Cloud SDK for Java Core Bson Core Bson library for Huawei Cloud Java SDK https://github.com/huaweicloud/huaweicloud-sdk-java-v3 @@ -25,7 +25,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 ch.qos.logback diff --git a/core-xml/pom.xml b/core-xml/pom.xml index f9aca06949..37f96b16cf 100644 --- a/core-xml/pom.xml +++ b/core-xml/pom.xml @@ -4,14 +4,14 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk 4.0.0 jar huaweicloud-sdk-core-xml - 3.1.121 + 3.1.122 Huawei Cloud SDK for Java Core XML Core XML library for Huawei Cloud Java SDK https://github.com/huaweicloud/huaweicloud-sdk-java-v3 @@ -25,7 +25,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 ch.qos.logback diff --git a/core/pom.xml b/core/pom.xml index eee66e6f09..258fdd59c7 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -5,14 +5,14 @@ com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk 4.0.0 jar huaweicloud-sdk-core - 3.1.121 + 3.1.122 Huawei Cloud SDK for Java Core Core library for Huawei Cloud Java SDK https://github.com/huaweicloud/huaweicloud-sdk-java-v3 diff --git a/pom.xml b/pom.xml index 022e6e37f9..13416b8dd5 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ pom com.huaweicloud.sdk huaweicloud-sdk - 3.1.121 + 3.1.122 Huawei Cloud SDK for Java Parent Huawei Cloud SDK for Java https://github.com/huaweicloud/huaweicloud-sdk-java-v3 diff --git a/services/aad/pom.xml b/services/aad/pom.xml index fd1eac6fb2..311842f0c1 100644 --- a/services/aad/pom.xml +++ b/services/aad/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-aad - 3.1.121 + 3.1.122 Huawei Cloud SDK for AAD 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/antiddos/pom.xml b/services/antiddos/pom.xml index da079e1b72..c3c4885551 100644 --- a/services/antiddos/pom.xml +++ b/services/antiddos/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-antiddos - 3.1.121 + 3.1.122 Huawei Cloud SDK for ANTIDDOS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/aom/pom.xml b/services/aom/pom.xml index 5768f789b7..864310ea8b 100644 --- a/services/aom/pom.xml +++ b/services/aom/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-aom - 3.1.121 + 3.1.122 Huawei Cloud SDK for AOM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/aom/src/main/java/com/huaweicloud/sdk/aom/v2/AomMeta.java b/services/aom/src/main/java/com/huaweicloud/sdk/aom/v2/AomMeta.java index 83114837a4..007d3409e2 100644 --- a/services/aom/src/main/java/com/huaweicloud/sdk/aom/v2/AomMeta.java +++ b/services/aom/src/main/java/com/huaweicloud/sdk/aom/v2/AomMeta.java @@ -999,12 +999,12 @@ private static HttpRequestDef genForPushE FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(PushEventsRequest.ActionEnum.class), f -> f.withMarshaller(PushEventsRequest::getAction, PushEventsRequest::setAction)); - builder.withRequestField("x-enterprise-prject-id", + builder.withRequestField("enterprise-project-id", LocationType.Header, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(PushEventsRequest::getXEnterprisePrjectId, - PushEventsRequest::setXEnterprisePrjectId)); + f -> f.withMarshaller(PushEventsRequest::getEnterpriseProjectId, + PushEventsRequest::setEnterpriseProjectId)); builder.withRequestField("body", LocationType.Body, FieldExistence.NON_NULL_NON_EMPTY, @@ -1483,7 +1483,7 @@ private static HttpRequestDef f -> f.withMarshaller(ListPromInstanceRequest::getPromStatus, ListPromInstanceRequest::setPromStatus)); builder.withRequestField("Enterprise-Project-Id", LocationType.Header, - FieldExistence.NULL_IGNORE, + FieldExistence.NON_NULL_NON_EMPTY, TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(ListPromInstanceRequest::getEnterpriseProjectId, ListPromInstanceRequest::setEnterpriseProjectId)); diff --git a/services/aom/src/main/java/com/huaweicloud/sdk/aom/v2/model/PushEventsRequest.java b/services/aom/src/main/java/com/huaweicloud/sdk/aom/v2/model/PushEventsRequest.java index 56f01acb4b..b4445d3f28 100644 --- a/services/aom/src/main/java/com/huaweicloud/sdk/aom/v2/model/PushEventsRequest.java +++ b/services/aom/src/main/java/com/huaweicloud/sdk/aom/v2/model/PushEventsRequest.java @@ -17,9 +17,9 @@ public class PushEventsRequest { @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "x-enterprise-prject-id") + @JsonProperty(value = "enterprise-project-id") - private String xEnterprisePrjectId; + private String enterpriseProjectId; /** * 接口请求动作。action=clear代表清除告警,不传或者传其他值默认为上报动作。 @@ -95,23 +95,21 @@ public int hashCode() { private EventList body; - public PushEventsRequest withXEnterprisePrjectId(String xEnterprisePrjectId) { - this.xEnterprisePrjectId = xEnterprisePrjectId; + public PushEventsRequest withEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; return this; } /** * 告警所属的企业项目id。 - * @return xEnterprisePrjectId + * @return enterpriseProjectId */ - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "x-enterprise-prject-id") - public String getXEnterprisePrjectId() { - return xEnterprisePrjectId; + public String getEnterpriseProjectId() { + return enterpriseProjectId; } - public void setXEnterprisePrjectId(String xEnterprisePrjectId) { - this.xEnterprisePrjectId = xEnterprisePrjectId; + public void setEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; } public PushEventsRequest withAction(ActionEnum action) { @@ -166,20 +164,20 @@ public boolean equals(java.lang.Object obj) { return false; } PushEventsRequest that = (PushEventsRequest) obj; - return Objects.equals(this.xEnterprisePrjectId, that.xEnterprisePrjectId) + return Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) && Objects.equals(this.action, that.action) && Objects.equals(this.body, that.body); } @Override public int hashCode() { - return Objects.hash(xEnterprisePrjectId, action, body); + return Objects.hash(enterpriseProjectId, action, body); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PushEventsRequest {\n"); - sb.append(" xEnterprisePrjectId: ").append(toIndentedString(xEnterprisePrjectId)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); sb.append(" action: ").append(toIndentedString(action)).append("\n"); sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); diff --git a/services/aos/pom.xml b/services/aos/pom.xml index 96fb559cd0..b17d12afc7 100644 --- a/services/aos/pom.xml +++ b/services/aos/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-aos - 3.1.121 + 3.1.122 Huawei Cloud SDK for AOS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/apig/pom.xml b/services/apig/pom.xml index 0326e7e126..88f2f656d7 100644 --- a/services/apig/pom.xml +++ b/services/apig/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-apig - 3.1.121 + 3.1.122 Huawei Cloud SDK for APIG 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/apm/pom.xml b/services/apm/pom.xml index 8aec74b6c0..d0fc57d993 100644 --- a/services/apm/pom.xml +++ b/services/apm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-apm - 3.1.121 + 3.1.122 Huawei Cloud SDK for APM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/as/pom.xml b/services/as/pom.xml index 4669b1f035..355409d6b3 100644 --- a/services/as/pom.xml +++ b/services/as/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-as - 3.1.121 + 3.1.122 Huawei Cloud SDK for AS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/asm/pom.xml b/services/asm/pom.xml index a4fbaa55eb..723f5fbea4 100644 --- a/services/asm/pom.xml +++ b/services/asm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-asm - 3.1.121 + 3.1.122 Huawei Cloud SDK for ASM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/bcs/pom.xml b/services/bcs/pom.xml index 97737cce78..90babf981e 100644 --- a/services/bcs/pom.xml +++ b/services/bcs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-bcs - 3.1.121 + 3.1.122 Huawei Cloud SDK for BCS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/bms/pom.xml b/services/bms/pom.xml index 16dd42b755..3d32e10f40 100644 --- a/services/bms/pom.xml +++ b/services/bms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-bms - 3.1.121 + 3.1.122 Huawei Cloud SDK for BMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/bss/pom.xml b/services/bss/pom.xml index 326785e825..6d779fa23a 100644 --- a/services/bss/pom.xml +++ b/services/bss/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-bss - 3.1.121 + 3.1.122 Huawei Cloud SDK for BSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/bssintl/pom.xml b/services/bssintl/pom.xml index 05313b5ad9..e2fc85ac5f 100644 --- a/services/bssintl/pom.xml +++ b/services/bssintl/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-bssintl - 3.1.121 + 3.1.122 Huawei Cloud SDK for BSSINTL 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/cae/pom.xml b/services/cae/pom.xml index 056de8d013..2b5a759146 100644 --- a/services/cae/pom.xml +++ b/services/cae/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-cae - 3.1.121 + 3.1.122 Huawei Cloud SDK for CAE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/campusgo/pom.xml b/services/campusgo/pom.xml index b2ed6e03f9..2370c9b10f 100644 --- a/services/campusgo/pom.xml +++ b/services/campusgo/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-campusgo - 3.1.121 + 3.1.122 Huawei Cloud SDK for CAMPUSGO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/cbh/pom.xml b/services/cbh/pom.xml index 6d62be1f22..03327829a2 100644 --- a/services/cbh/pom.xml +++ b/services/cbh/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-cbh - 3.1.121 + 3.1.122 Huawei Cloud SDK for CBH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/cbr/pom.xml b/services/cbr/pom.xml index 768b63a952..3529b335fb 100644 --- a/services/cbr/pom.xml +++ b/services/cbr/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-cbr - 3.1.121 + 3.1.122 Huawei Cloud SDK for CBR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/cbs/pom.xml b/services/cbs/pom.xml index ad02972600..32390f2cc7 100644 --- a/services/cbs/pom.xml +++ b/services/cbs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-cbs - 3.1.121 + 3.1.122 Huawei Cloud SDK for CBS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/cc/pom.xml b/services/cc/pom.xml index 8bc5b90070..a9395b9069 100644 --- a/services/cc/pom.xml +++ b/services/cc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-cc - 3.1.121 + 3.1.122 Huawei Cloud SDK for CC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/cce/pom.xml b/services/cce/pom.xml index d86ac40043..b49ae866dd 100644 --- a/services/cce/pom.xml +++ b/services/cce/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-cce - 3.1.121 + 3.1.122 Huawei Cloud SDK for CCE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/ccm/pom.xml b/services/ccm/pom.xml index 2e0ffb1ea8..260982a24e 100644 --- a/services/ccm/pom.xml +++ b/services/ccm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-ccm - 3.1.121 + 3.1.122 Huawei Cloud SDK for CCM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/cdm/pom.xml b/services/cdm/pom.xml index e38fd817bb..bc4383997c 100644 --- a/services/cdm/pom.xml +++ b/services/cdm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-cdm - 3.1.121 + 3.1.122 Huawei Cloud SDK for CDM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/cdn/pom.xml b/services/cdn/pom.xml index 3113d6affc..8c68dbeb8f 100644 --- a/services/cdn/pom.xml +++ b/services/cdn/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-cdn - 3.1.121 + 3.1.122 Huawei Cloud SDK for CDN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/ces/pom.xml b/services/ces/pom.xml index b5c402c4ee..c1dfaac901 100644 --- a/services/ces/pom.xml +++ b/services/ces/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-ces - 3.1.121 + 3.1.122 Huawei Cloud SDK for CES 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/cfw/pom.xml b/services/cfw/pom.xml index 772c8dc845..68acd7c14f 100644 --- a/services/cfw/pom.xml +++ b/services/cfw/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-cfw - 3.1.121 + 3.1.122 Huawei Cloud SDK for CFW 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/cgs/pom.xml b/services/cgs/pom.xml index 990592076e..bff2b282c6 100644 --- a/services/cgs/pom.xml +++ b/services/cgs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-cgs - 3.1.121 + 3.1.122 Huawei Cloud SDK for CGS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/classroom/pom.xml b/services/classroom/pom.xml index dc3235f74a..7517d9c007 100644 --- a/services/classroom/pom.xml +++ b/services/classroom/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-classroom - 3.1.121 + 3.1.122 Huawei Cloud SDK for CLASSROOM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/cloudide/pom.xml b/services/cloudide/pom.xml index d921d836f6..84965f3b85 100644 --- a/services/cloudide/pom.xml +++ b/services/cloudide/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-cloudide - 3.1.121 + 3.1.122 Huawei Cloud SDK for CLOUDIDE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 junit diff --git a/services/cloudpond/pom.xml b/services/cloudpond/pom.xml index bb9748c6d0..337e74e8d0 100644 --- a/services/cloudpond/pom.xml +++ b/services/cloudpond/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-cloudpond - 3.1.121 + 3.1.122 Huawei Cloud SDK for CLOUDPOND 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/cloudrtc/pom.xml b/services/cloudrtc/pom.xml index 70db1b3a4d..6d5cd780c6 100644 --- a/services/cloudrtc/pom.xml +++ b/services/cloudrtc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-cloudrtc - 3.1.121 + 3.1.122 Huawei Cloud SDK for CLOUDRTC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/CloudRTCAsyncClient.java b/services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/CloudRTCAsyncClient.java index 7157e67bcb..728bf85742 100644 --- a/services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/CloudRTCAsyncClient.java +++ b/services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/CloudRTCAsyncClient.java @@ -36,8 +36,6 @@ import com.huaweicloud.sdk.cloudrtc.v2.model.ShowRecordCallbackResponse; import com.huaweicloud.sdk.cloudrtc.v2.model.ShowRecordRuleRequest; import com.huaweicloud.sdk.cloudrtc.v2.model.ShowRecordRuleResponse; -import com.huaweicloud.sdk.cloudrtc.v2.model.ShowUrlAuthRequest; -import com.huaweicloud.sdk.cloudrtc.v2.model.ShowUrlAuthResponse; import com.huaweicloud.sdk.cloudrtc.v2.model.StartAppRequest; import com.huaweicloud.sdk.cloudrtc.v2.model.StartAppResponse; import com.huaweicloud.sdk.cloudrtc.v2.model.StopAppRequest; @@ -58,8 +56,6 @@ import com.huaweicloud.sdk.cloudrtc.v2.model.UpdateRecordCallbackResponse; import com.huaweicloud.sdk.cloudrtc.v2.model.UpdateRecordRuleRequest; import com.huaweicloud.sdk.cloudrtc.v2.model.UpdateRecordRuleResponse; -import com.huaweicloud.sdk.cloudrtc.v2.model.UpdateUrlAuthRequest; -import com.huaweicloud.sdk.cloudrtc.v2.model.UpdateUrlAuthResponse; import com.huaweicloud.sdk.core.ClientBuilder; import com.huaweicloud.sdk.core.HcClient; import com.huaweicloud.sdk.core.invoker.AsyncInvoker; @@ -588,34 +584,6 @@ public AsyncInvoker showRecordRul return new AsyncInvoker<>(request, CloudRTCMeta.showRecordRule, hcClient); } - /** - * 查询访问控制参数 - * - * 查询应用鉴权配置参数 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowUrlAuthRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture showUrlAuthAsync(ShowUrlAuthRequest request) { - return hcClient.asyncInvokeHttp(request, CloudRTCMeta.showUrlAuth); - } - - /** - * 查询访问控制参数 - * - * 查询应用鉴权配置参数 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowUrlAuthRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker showUrlAuthAsyncInvoker(ShowUrlAuthRequest request) { - return new AsyncInvoker<>(request, CloudRTCMeta.showUrlAuth, hcClient); - } - /** * 启用应用 * @@ -893,35 +861,6 @@ public AsyncInvoker updateRec return new AsyncInvoker<>(request, CloudRTCMeta.updateRecordRule, hcClient); } - /** - * 开关访问控制 - * - * 调用此接口开启或关闭URL鉴权。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request UpdateUrlAuthRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture updateUrlAuthAsync(UpdateUrlAuthRequest request) { - return hcClient.asyncInvokeHttp(request, CloudRTCMeta.updateUrlAuth); - } - - /** - * 开关访问控制 - * - * 调用此接口开启或关闭URL鉴权。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request UpdateUrlAuthRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker updateUrlAuthAsyncInvoker( - UpdateUrlAuthRequest request) { - return new AsyncInvoker<>(request, CloudRTCMeta.updateUrlAuth, hcClient); - } - /** * 查询OBS桶下对象列表 * diff --git a/services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/CloudRTCClient.java b/services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/CloudRTCClient.java index 4f3e22d2b0..0ff0477531 100644 --- a/services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/CloudRTCClient.java +++ b/services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/CloudRTCClient.java @@ -36,8 +36,6 @@ import com.huaweicloud.sdk.cloudrtc.v2.model.ShowRecordCallbackResponse; import com.huaweicloud.sdk.cloudrtc.v2.model.ShowRecordRuleRequest; import com.huaweicloud.sdk.cloudrtc.v2.model.ShowRecordRuleResponse; -import com.huaweicloud.sdk.cloudrtc.v2.model.ShowUrlAuthRequest; -import com.huaweicloud.sdk.cloudrtc.v2.model.ShowUrlAuthResponse; import com.huaweicloud.sdk.cloudrtc.v2.model.StartAppRequest; import com.huaweicloud.sdk.cloudrtc.v2.model.StartAppResponse; import com.huaweicloud.sdk.cloudrtc.v2.model.StopAppRequest; @@ -58,8 +56,6 @@ import com.huaweicloud.sdk.cloudrtc.v2.model.UpdateRecordCallbackResponse; import com.huaweicloud.sdk.cloudrtc.v2.model.UpdateRecordRuleRequest; import com.huaweicloud.sdk.cloudrtc.v2.model.UpdateRecordRuleResponse; -import com.huaweicloud.sdk.cloudrtc.v2.model.UpdateUrlAuthRequest; -import com.huaweicloud.sdk.cloudrtc.v2.model.UpdateUrlAuthResponse; import com.huaweicloud.sdk.core.ClientBuilder; import com.huaweicloud.sdk.core.HcClient; import com.huaweicloud.sdk.core.invoker.SyncInvoker; @@ -583,34 +579,6 @@ public SyncInvoker showRecordRule return new SyncInvoker<>(request, CloudRTCMeta.showRecordRule, hcClient); } - /** - * 查询访问控制参数 - * - * 查询应用鉴权配置参数 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowUrlAuthRequest 请求对象 - * @return ShowUrlAuthResponse - */ - public ShowUrlAuthResponse showUrlAuth(ShowUrlAuthRequest request) { - return hcClient.syncInvokeHttp(request, CloudRTCMeta.showUrlAuth); - } - - /** - * 查询访问控制参数 - * - * 查询应用鉴权配置参数 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ShowUrlAuthRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker showUrlAuthInvoker(ShowUrlAuthRequest request) { - return new SyncInvoker<>(request, CloudRTCMeta.showUrlAuth, hcClient); - } - /** * 启用应用 * @@ -884,34 +852,6 @@ public SyncInvoker updateReco return new SyncInvoker<>(request, CloudRTCMeta.updateRecordRule, hcClient); } - /** - * 开关访问控制 - * - * 调用此接口开启或关闭URL鉴权。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request UpdateUrlAuthRequest 请求对象 - * @return UpdateUrlAuthResponse - */ - public UpdateUrlAuthResponse updateUrlAuth(UpdateUrlAuthRequest request) { - return hcClient.syncInvokeHttp(request, CloudRTCMeta.updateUrlAuth); - } - - /** - * 开关访问控制 - * - * 调用此接口开启或关闭URL鉴权。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request UpdateUrlAuthRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker updateUrlAuthInvoker(UpdateUrlAuthRequest request) { - return new SyncInvoker<>(request, CloudRTCMeta.updateUrlAuth, hcClient); - } - /** * 查询OBS桶下对象列表 * diff --git a/services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/CloudRTCMeta.java b/services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/CloudRTCMeta.java index 4d0d711a18..921dfcedff 100644 --- a/services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/CloudRTCMeta.java +++ b/services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/CloudRTCMeta.java @@ -1,6 +1,5 @@ package com.huaweicloud.sdk.cloudrtc.v2; -import com.huaweicloud.sdk.cloudrtc.v2.model.AppAuthReq; import com.huaweicloud.sdk.cloudrtc.v2.model.AppCallbackUrlReq; import com.huaweicloud.sdk.cloudrtc.v2.model.AppReq; import com.huaweicloud.sdk.cloudrtc.v2.model.AutoRecordModeReq; @@ -45,8 +44,6 @@ import com.huaweicloud.sdk.cloudrtc.v2.model.ShowRecordCallbackResponse; import com.huaweicloud.sdk.cloudrtc.v2.model.ShowRecordRuleRequest; import com.huaweicloud.sdk.cloudrtc.v2.model.ShowRecordRuleResponse; -import com.huaweicloud.sdk.cloudrtc.v2.model.ShowUrlAuthRequest; -import com.huaweicloud.sdk.cloudrtc.v2.model.ShowUrlAuthResponse; import com.huaweicloud.sdk.cloudrtc.v2.model.StartAppRequest; import com.huaweicloud.sdk.cloudrtc.v2.model.StartAppResponse; import com.huaweicloud.sdk.cloudrtc.v2.model.StopAppRequest; @@ -69,8 +66,6 @@ import com.huaweicloud.sdk.cloudrtc.v2.model.UpdateRecordCallbackResponse; import com.huaweicloud.sdk.cloudrtc.v2.model.UpdateRecordRuleRequest; import com.huaweicloud.sdk.cloudrtc.v2.model.UpdateRecordRuleResponse; -import com.huaweicloud.sdk.cloudrtc.v2.model.UpdateUrlAuthRequest; -import com.huaweicloud.sdk.cloudrtc.v2.model.UpdateUrlAuthResponse; import com.huaweicloud.sdk.core.TypeCasts; import com.huaweicloud.sdk.core.http.FieldExistence; import com.huaweicloud.sdk.core.http.HttpMethod; @@ -847,48 +842,6 @@ private static HttpRequestDef gen return builder.build(); } - public static final HttpRequestDef showUrlAuth = genForShowUrlAuth(); - - private static HttpRequestDef genForShowUrlAuth() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.GET, ShowUrlAuthRequest.class, ShowUrlAuthResponse.class) - .withName("ShowUrlAuth") - .withUri("/v2/apps/{app_id}/authentication") - .withContentType("application/json"); - - // requests - builder.withRequestField("app_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ShowUrlAuthRequest::getAppId, ShowUrlAuthRequest::setAppId)); - builder.withRequestField("Authorization", - LocationType.Header, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ShowUrlAuthRequest::getAuthorization, ShowUrlAuthRequest::setAuthorization)); - builder.withRequestField("X-Sdk-Date", - LocationType.Header, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ShowUrlAuthRequest::getXSdkDate, ShowUrlAuthRequest::setXSdkDate)); - builder.withRequestField("X-Project-Id", - LocationType.Header, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ShowUrlAuthRequest::getXProjectId, ShowUrlAuthRequest::setXProjectId)); - - // response - - builder.withResponseField("X-request-Id", - LocationType.Header, - FieldExistence.NULL_IGNORE, - String.class, - f -> f.withMarshaller(ShowUrlAuthResponse::getXRequestId, ShowUrlAuthResponse::setXRequestId)); - return builder.build(); - } - public static final HttpRequestDef startApp = genForStartApp(); private static HttpRequestDef genForStartApp() { @@ -1341,54 +1294,6 @@ private static HttpRequestDef return builder.build(); } - public static final HttpRequestDef updateUrlAuth = - genForUpdateUrlAuth(); - - private static HttpRequestDef genForUpdateUrlAuth() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.PUT, UpdateUrlAuthRequest.class, UpdateUrlAuthResponse.class) - .withName("UpdateUrlAuth") - .withUri("/v2/apps/{app_id}/authentication") - .withContentType("application/json"); - - // requests - builder.withRequestField("app_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(UpdateUrlAuthRequest::getAppId, UpdateUrlAuthRequest::setAppId)); - builder.withRequestField("Authorization", - LocationType.Header, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(UpdateUrlAuthRequest::getAuthorization, UpdateUrlAuthRequest::setAuthorization)); - builder.withRequestField("X-Sdk-Date", - LocationType.Header, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(UpdateUrlAuthRequest::getXSdkDate, UpdateUrlAuthRequest::setXSdkDate)); - builder.withRequestField("X-Project-Id", - LocationType.Header, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(UpdateUrlAuthRequest::getXProjectId, UpdateUrlAuthRequest::setXProjectId)); - builder.withRequestField("body", - LocationType.Body, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(AppAuthReq.class), - f -> f.withMarshaller(UpdateUrlAuthRequest::getBody, UpdateUrlAuthRequest::setBody)); - - // response - - builder.withResponseField("X-request-Id", - LocationType.Header, - FieldExistence.NULL_IGNORE, - String.class, - f -> f.withMarshaller(UpdateUrlAuthResponse::getXRequestId, UpdateUrlAuthResponse::setXRequestId)); - return builder.build(); - } - public static final HttpRequestDef listObsBucketObjects = genForListObsBucketObjects(); diff --git a/services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/model/AppAuthReq.java b/services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/model/AppAuthReq.java deleted file mode 100644 index 15df7d3c8e..0000000000 --- a/services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/model/AppAuthReq.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.huaweicloud.sdk.cloudrtc.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * 修改app鉴权请求 - */ -public class AppAuthReq { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "enable") - - private Boolean enable; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "expire") - - private Integer expire; - - public AppAuthReq withEnable(Boolean enable) { - this.enable = enable; - return this; - } - - /** - * 开启或关闭URL鉴权 - * @return enable - */ - public Boolean getEnable() { - return enable; - } - - public void setEnable(Boolean enable) { - this.enable = enable; - } - - public AppAuthReq withExpire(Integer expire) { - this.expire = expire; - return this; - } - - /** - * 有效期,当开启鉴权时必填。 取值范围:[60,2592000],缺省为300。 单位:秒。 - * minimum: 60 - * maximum: 2592000 - * @return expire - */ - public Integer getExpire() { - return expire; - } - - public void setExpire(Integer expire) { - this.expire = expire; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - AppAuthReq that = (AppAuthReq) obj; - return Objects.equals(this.enable, that.enable) && Objects.equals(this.expire, that.expire); - } - - @Override - public int hashCode() { - return Objects.hash(enable, expire); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AppAuthReq {\n"); - sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); - sb.append(" expire: ").append(toIndentedString(expire)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/model/UpdateUrlAuthResponse.java b/services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/model/UpdateUrlAuthResponse.java deleted file mode 100644 index d183e13d00..0000000000 --- a/services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/model/UpdateUrlAuthResponse.java +++ /dev/null @@ -1,132 +0,0 @@ -package com.huaweicloud.sdk.cloudrtc.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.huaweicloud.sdk.core.SdkResponse; - -import java.util.Objects; -import java.util.function.Consumer; - -/** - * Response Object - */ -public class UpdateUrlAuthResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "app_id") - - private String appId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "authentication") - - private AppAuth authentication; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-request-Id") - - private String xRequestId; - - public UpdateUrlAuthResponse withAppId(String appId) { - this.appId = appId; - return this; - } - - /** - * 应用id - * @return appId - */ - public String getAppId() { - return appId; - } - - public void setAppId(String appId) { - this.appId = appId; - } - - public UpdateUrlAuthResponse withAuthentication(AppAuth authentication) { - this.authentication = authentication; - return this; - } - - public UpdateUrlAuthResponse withAuthentication(Consumer authenticationSetter) { - if (this.authentication == null) { - this.authentication = new AppAuth(); - authenticationSetter.accept(this.authentication); - } - - return this; - } - - /** - * Get authentication - * @return authentication - */ - public AppAuth getAuthentication() { - return authentication; - } - - public void setAuthentication(AppAuth authentication) { - this.authentication = authentication; - } - - public UpdateUrlAuthResponse withXRequestId(String xRequestId) { - this.xRequestId = xRequestId; - return this; - } - - /** - * Get xRequestId - * @return xRequestId - */ - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-request-Id") - public String getXRequestId() { - return xRequestId; - } - - public void setXRequestId(String xRequestId) { - this.xRequestId = xRequestId; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - UpdateUrlAuthResponse that = (UpdateUrlAuthResponse) obj; - return Objects.equals(this.appId, that.appId) && Objects.equals(this.authentication, that.authentication) - && Objects.equals(this.xRequestId, that.xRequestId); - } - - @Override - public int hashCode() { - return Objects.hash(appId, authentication, xRequestId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class UpdateUrlAuthResponse {\n"); - sb.append(" appId: ").append(toIndentedString(appId)).append("\n"); - sb.append(" authentication: ").append(toIndentedString(authentication)).append("\n"); - sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/cloudtable/pom.xml b/services/cloudtable/pom.xml index 51ca294766..c14a9588ff 100644 --- a/services/cloudtable/pom.xml +++ b/services/cloudtable/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-cloudtable - 3.1.121 + 3.1.122 Huawei Cloud SDK for CLOUDTABLE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/cloudtest/pom.xml b/services/cloudtest/pom.xml index 0474e7a4d4..38bd005a6f 100644 --- a/services/cloudtest/pom.xml +++ b/services/cloudtest/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-cloudtest - 3.1.121 + 3.1.122 Huawei Cloud SDK for CLOUDTEST 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/cms/pom.xml b/services/cms/pom.xml index 1bd1ffd241..d5c2290fb5 100644 --- a/services/cms/pom.xml +++ b/services/cms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-cms - 3.1.121 + 3.1.122 Huawei Cloud SDK for CMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/coc/pom.xml b/services/coc/pom.xml index ef1d3d714f..36234b580c 100644 --- a/services/coc/pom.xml +++ b/services/coc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-coc - 3.1.121 + 3.1.122 Huawei Cloud SDK for COC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/codeartsartifact/pom.xml b/services/codeartsartifact/pom.xml index 6bd2cbbe76..c92a8e20b0 100644 --- a/services/codeartsartifact/pom.xml +++ b/services/codeartsartifact/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsartifact - 3.1.121 + 3.1.122 Huawei Cloud SDK for CODEARTSARTIFACT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/codeartsbuild/pom.xml b/services/codeartsbuild/pom.xml index 360dfa6b8c..9eb34bd1fc 100644 --- a/services/codeartsbuild/pom.xml +++ b/services/codeartsbuild/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsbuild - 3.1.121 + 3.1.122 Huawei Cloud SDK for CODEARTSBUILD 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/codeartscheck/pom.xml b/services/codeartscheck/pom.xml index 0f13d95af5..38bc01396c 100644 --- a/services/codeartscheck/pom.xml +++ b/services/codeartscheck/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-codeartscheck - 3.1.121 + 3.1.122 Huawei Cloud SDK for CODEARTSCHECK 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/codeartsdeploy/pom.xml b/services/codeartsdeploy/pom.xml index 78eb5ba657..91523b8eb8 100644 --- a/services/codeartsdeploy/pom.xml +++ b/services/codeartsdeploy/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsdeploy - 3.1.121 + 3.1.122 Huawei Cloud SDK for CODEARTSDEPLOY 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/codeartsgovernance/pom.xml b/services/codeartsgovernance/pom.xml index 9831a01a08..adebdcb935 100644 --- a/services/codeartsgovernance/pom.xml +++ b/services/codeartsgovernance/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsgovernance - 3.1.121 + 3.1.122 Huawei Cloud SDK for CODEARTSGOVERNANCE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/codeartsinspector/pom.xml b/services/codeartsinspector/pom.xml index 5a58db421f..f2cb3ee8d3 100644 --- a/services/codeartsinspector/pom.xml +++ b/services/codeartsinspector/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsinspector - 3.1.121 + 3.1.122 Huawei Cloud SDK for CODEARTSINSPECTOR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/codeartspipeline/pom.xml b/services/codeartspipeline/pom.xml index 9c21099927..c7030cd3f6 100644 --- a/services/codeartspipeline/pom.xml +++ b/services/codeartspipeline/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-codeartspipeline - 3.1.121 + 3.1.122 Huawei Cloud SDK for CODEARTSPIPELINE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/codecraft/pom.xml b/services/codecraft/pom.xml index 1278a724e0..921350fd4a 100644 --- a/services/codecraft/pom.xml +++ b/services/codecraft/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-codecraft - 3.1.121 + 3.1.122 Huawei Cloud SDK for CODECRAFT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/codehub/pom.xml b/services/codehub/pom.xml index bfd601c5ab..45a3eb1aad 100644 --- a/services/codehub/pom.xml +++ b/services/codehub/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-codehub - 3.1.121 + 3.1.122 Huawei Cloud SDK for CODEHUB 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/config/pom.xml b/services/config/pom.xml index 9ae5325687..a5653d753c 100644 --- a/services/config/pom.xml +++ b/services/config/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-config - 3.1.121 + 3.1.122 Huawei Cloud SDK for CONFIG 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/cph/pom.xml b/services/cph/pom.xml index ff5f94511e..b76094af91 100644 --- a/services/cph/pom.xml +++ b/services/cph/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-cph - 3.1.121 + 3.1.122 Huawei Cloud SDK for CPH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/cpts/pom.xml b/services/cpts/pom.xml index 505fddcf4c..ea9b5043f9 100644 --- a/services/cpts/pom.xml +++ b/services/cpts/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-cpts - 3.1.121 + 3.1.122 Huawei Cloud SDK for CPTS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/cse/pom.xml b/services/cse/pom.xml index 4dc04c279e..5f01de027b 100644 --- a/services/cse/pom.xml +++ b/services/cse/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-cse - 3.1.121 + 3.1.122 Huawei Cloud SDK for CSE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/csms/pom.xml b/services/csms/pom.xml index 47c37405a3..a71b1d1945 100644 --- a/services/csms/pom.xml +++ b/services/csms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-csms - 3.1.121 + 3.1.122 Huawei Cloud SDK for CSMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/css/pom.xml b/services/css/pom.xml index a79050f834..bb18f7df16 100644 --- a/services/css/pom.xml +++ b/services/css/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-css - 3.1.121 + 3.1.122 Huawei Cloud SDK for CSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/cts/pom.xml b/services/cts/pom.xml index 8fdc3b19c6..ae4c7a70dc 100644 --- a/services/cts/pom.xml +++ b/services/cts/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-cts - 3.1.121 + 3.1.122 Huawei Cloud SDK for CTS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/das/pom.xml b/services/das/pom.xml index 4820bbdada..f885a13ac3 100644 --- a/services/das/pom.xml +++ b/services/das/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-das - 3.1.121 + 3.1.122 Huawei Cloud SDK for DAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/dataartsfabric/pom.xml b/services/dataartsfabric/pom.xml index 07628d3a4f..2eb680007a 100644 --- a/services/dataartsfabric/pom.xml +++ b/services/dataartsfabric/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-dataartsfabric - 3.1.121 + 3.1.122 Huawei Cloud SDK for DATAARTSFABRIC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/dataartsfabricep/pom.xml b/services/dataartsfabricep/pom.xml index b2baf97875..0bb4665fb8 100644 --- a/services/dataartsfabricep/pom.xml +++ b/services/dataartsfabricep/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-dataartsfabricep - 3.1.121 + 3.1.122 Huawei Cloud SDK for DATAARTSFABRICEP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/dataartsinsight/pom.xml b/services/dataartsinsight/pom.xml index 65fbd16852..ea6964ed4c 100644 --- a/services/dataartsinsight/pom.xml +++ b/services/dataartsinsight/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-dataartsinsight - 3.1.121 + 3.1.122 Huawei Cloud SDK for DATAARTSINSIGHT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/dataartsstudio/pom.xml b/services/dataartsstudio/pom.xml index 26da35f36b..b1d135106c 100644 --- a/services/dataartsstudio/pom.xml +++ b/services/dataartsstudio/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-dataartsstudio - 3.1.121 + 3.1.122 Huawei Cloud SDK for DATAARTSSTUDIO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioAsyncClient.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioAsyncClient.java index 074c9c2688..ad390c29a9 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioAsyncClient.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioAsyncClient.java @@ -369,6 +369,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.ListTableModelsResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListWorkspaceRolesRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListWorkspaceRolesResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListWorkspacesForUserRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListWorkspacesForUserResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListWorkspacesRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListWorkspacesResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListWorkspaceusersRequest; @@ -5698,6 +5700,36 @@ public AsyncInvoker listWorkspace return new AsyncInvoker<>(request, DataArtsStudioMeta.listWorkspaces, hcClient); } + /** + * 获取指定用户所有的工作空间集合 + * + * 获取指定用户所有的工作空间集合 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListWorkspacesForUserRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listWorkspacesForUserAsync( + ListWorkspacesForUserRequest request) { + return hcClient.asyncInvokeHttp(request, DataArtsStudioMeta.listWorkspacesForUser); + } + + /** + * 获取指定用户所有的工作空间集合 + * + * 获取指定用户所有的工作空间集合 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListWorkspacesForUserRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listWorkspacesForUserAsyncInvoker( + ListWorkspacesForUserRequest request) { + return new AsyncInvoker<>(request, DataArtsStudioMeta.listWorkspacesForUser, hcClient); + } + /** * 获取工作空间用户信息 * diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioClient.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioClient.java index 7ccc5deaf4..40dc35b6d6 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioClient.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioClient.java @@ -369,6 +369,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.ListTableModelsResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListWorkspaceRolesRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListWorkspaceRolesResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListWorkspacesForUserRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListWorkspacesForUserResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListWorkspacesRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListWorkspacesResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListWorkspaceusersRequest; @@ -5633,6 +5635,35 @@ public SyncInvoker listWorkspaces return new SyncInvoker<>(request, DataArtsStudioMeta.listWorkspaces, hcClient); } + /** + * 获取指定用户所有的工作空间集合 + * + * 获取指定用户所有的工作空间集合 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListWorkspacesForUserRequest 请求对象 + * @return ListWorkspacesForUserResponse + */ + public ListWorkspacesForUserResponse listWorkspacesForUser(ListWorkspacesForUserRequest request) { + return hcClient.syncInvokeHttp(request, DataArtsStudioMeta.listWorkspacesForUser); + } + + /** + * 获取指定用户所有的工作空间集合 + * + * 获取指定用户所有的工作空间集合 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListWorkspacesForUserRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listWorkspacesForUserInvoker( + ListWorkspacesForUserRequest request) { + return new SyncInvoker<>(request, DataArtsStudioMeta.listWorkspacesForUser, hcClient); + } + /** * 获取工作空间用户信息 * diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioMeta.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioMeta.java index 76c4530792..22eb569b63 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioMeta.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioMeta.java @@ -439,6 +439,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.ListTableModelsResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListWorkspaceRolesRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListWorkspaceRolesResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListWorkspacesForUserRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListWorkspacesForUserResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListWorkspacesRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListWorkspacesResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListWorkspaceusersRequest; @@ -8239,6 +8241,35 @@ private static HttpRequestDef gen return builder.build(); } + public static final HttpRequestDef listWorkspacesForUser = + genForListWorkspacesForUser(); + + private static HttpRequestDef genForListWorkspacesForUser() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ListWorkspacesForUserRequest.class, ListWorkspacesForUserResponse.class) + .withName("ListWorkspacesForUser") + .withUri("/v1/{project_id}/{instance_id}/workspaces/{user_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListWorkspacesForUserRequest::getInstanceId, + ListWorkspacesForUserRequest::setInstanceId)); + builder.withRequestField("user_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListWorkspacesForUserRequest::getUserId, ListWorkspacesForUserRequest::setUserId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listWorkspaceusers = genForListWorkspaceusers(); diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApigDataSourceVo.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApigDataSourceVo.java index 12d00cc68e..fc41672023 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApigDataSourceVo.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApigDataSourceVo.java @@ -40,6 +40,11 @@ public class ApigDataSourceVo { private Integer envType; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "supportService") + + private Integer supportService; + public ApigDataSourceVo withDwName(String dwName) { this.dwName = dwName; return this; @@ -144,6 +149,25 @@ public void setEnvType(Integer envType) { this.envType = envType; } + public ApigDataSourceVo withSupportService(Integer supportService) { + this.supportService = supportService; + return this; + } + + /** + * 1:cdm 2:数据架构 4:数据开发 8:数据质量 16:数据目录 32:数据安全 64:数据服务 + * minimum: 1 + * maximum: 127 + * @return supportService + */ + public Integer getSupportService() { + return supportService; + } + + public void setSupportService(Integer supportService) { + this.supportService = supportService; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -155,12 +179,13 @@ public boolean equals(java.lang.Object obj) { ApigDataSourceVo that = (ApigDataSourceVo) obj; return Objects.equals(this.dwName, that.dwName) && Objects.equals(this.dwType, that.dwType) && Objects.equals(this.dwConfig, that.dwConfig) && Objects.equals(this.agentId, that.agentId) - && Objects.equals(this.agentName, that.agentName) && Objects.equals(this.envType, that.envType); + && Objects.equals(this.agentName, that.agentName) && Objects.equals(this.envType, that.envType) + && Objects.equals(this.supportService, that.supportService); } @Override public int hashCode() { - return Objects.hash(dwName, dwType, dwConfig, agentId, agentName, envType); + return Objects.hash(dwName, dwType, dwConfig, agentId, agentName, envType, supportService); } @Override @@ -173,6 +198,7 @@ public String toString() { sb.append(" agentId: ").append(toIndentedString(agentId)).append("\n"); sb.append(" agentName: ").append(toIndentedString(agentName)).append("\n"); sb.append(" envType: ").append(toIndentedString(envType)).append("\n"); + sb.append(" supportService: ").append(toIndentedString(supportService)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListWorkspacesForUserRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListWorkspacesForUserRequest.java new file mode 100644 index 0000000000..e7470b51db --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListWorkspacesForUserRequest.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListWorkspacesForUserRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "user_id") + + private String userId; + + public ListWorkspacesForUserRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * DataArtsStudio实例id + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ListWorkspacesForUserRequest withUserId(String userId) { + this.userId = userId; + return this; + } + + /** + * 用户id + * @return userId + */ + public String getUserId() { + return userId; + } + + public void setUserId(String userId) { + this.userId = userId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListWorkspacesForUserRequest that = (ListWorkspacesForUserRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.userId, that.userId); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, userId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListWorkspacesForUserRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListWorkspacesForUserResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListWorkspacesForUserResponse.java new file mode 100644 index 0000000000..9881bde6fd --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListWorkspacesForUserResponse.java @@ -0,0 +1,143 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListWorkspacesForUserResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "count") + + private Integer count; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_page") + + private Integer totalPage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data") + + private List data = null; + + public ListWorkspacesForUserResponse withCount(Integer count) { + this.count = count; + return this; + } + + /** + * 当前工作空间用户记录数 + * minimum: 0 + * maximum: 100 + * @return count + */ + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public ListWorkspacesForUserResponse withTotalPage(Integer totalPage) { + this.totalPage = totalPage; + return this; + } + + /** + * 查询结果总页数 + * minimum: 0 + * maximum: 100 + * @return totalPage + */ + public Integer getTotalPage() { + return totalPage; + } + + public void setTotalPage(Integer totalPage) { + this.totalPage = totalPage; + } + + public ListWorkspacesForUserResponse withData(List data) { + this.data = data; + return this; + } + + public ListWorkspacesForUserResponse addDataItem(Workspacebody dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + public ListWorkspacesForUserResponse withData(Consumer> dataSetter) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + dataSetter.accept(this.data); + return this; + } + + /** + * 工作空间列表 + * @return data + */ + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListWorkspacesForUserResponse that = (ListWorkspacesForUserResponse) obj; + return Objects.equals(this.count, that.count) && Objects.equals(this.totalPage, that.totalPage) + && Objects.equals(this.data, that.data); + } + + @Override + public int hashCode() { + return Objects.hash(count, totalPage, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListWorkspacesForUserResponse {\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" totalPage: ").append(toIndentedString(totalPage)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dbss/pom.xml b/services/dbss/pom.xml index d6e47b8a06..ac3e7701f6 100644 --- a/services/dbss/pom.xml +++ b/services/dbss/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-dbss - 3.1.121 + 3.1.122 Huawei Cloud SDK for DBSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/dc/pom.xml b/services/dc/pom.xml index d604000fe4..1d22d9d0d4 100644 --- a/services/dc/pom.xml +++ b/services/dc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-dc - 3.1.121 + 3.1.122 Huawei Cloud SDK for DC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/dcs/pom.xml b/services/dcs/pom.xml index 670ff2737d..83536a2e0f 100644 --- a/services/dcs/pom.xml +++ b/services/dcs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-dcs - 3.1.121 + 3.1.122 Huawei Cloud SDK for DCS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/ddm/pom.xml b/services/ddm/pom.xml index b0622ab1ca..bb30312720 100644 --- a/services/ddm/pom.xml +++ b/services/ddm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-ddm - 3.1.121 + 3.1.122 Huawei Cloud SDK for DDM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/dds/pom.xml b/services/dds/pom.xml index 243697137a..44291112e6 100644 --- a/services/dds/pom.xml +++ b/services/dds/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-dds - 3.1.121 + 3.1.122 Huawei Cloud SDK for DDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/DdsAsyncClient.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/DdsAsyncClient.java index e527753a17..8c56f78b54 100644 --- a/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/DdsAsyncClient.java +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/DdsAsyncClient.java @@ -11,10 +11,16 @@ import com.huaweicloud.sdk.dds.v3.model.AttachEipResponse; import com.huaweicloud.sdk.dds.v3.model.AttachInternalIpRequest; import com.huaweicloud.sdk.dds.v3.model.AttachInternalIpResponse; +import com.huaweicloud.sdk.dds.v3.model.BatchDeleteBackupRequest; +import com.huaweicloud.sdk.dds.v3.model.BatchDeleteBackupResponse; import com.huaweicloud.sdk.dds.v3.model.BatchTagActionRequest; import com.huaweicloud.sdk.dds.v3.model.BatchTagActionResponse; +import com.huaweicloud.sdk.dds.v3.model.BatchUpgradeDatabaseVersionRequest; +import com.huaweicloud.sdk.dds.v3.model.BatchUpgradeDatabaseVersionResponse; import com.huaweicloud.sdk.dds.v3.model.CancelEipRequest; import com.huaweicloud.sdk.dds.v3.model.CancelEipResponse; +import com.huaweicloud.sdk.dds.v3.model.CancelScheduledTaskRequest; +import com.huaweicloud.sdk.dds.v3.model.CancelScheduledTaskResponse; import com.huaweicloud.sdk.dds.v3.model.ChangeOpsWindowRequest; import com.huaweicloud.sdk.dds.v3.model.ChangeOpsWindowResponse; import com.huaweicloud.sdk.dds.v3.model.CheckPasswordRequest; @@ -115,6 +121,8 @@ import com.huaweicloud.sdk.dds.v3.model.ListRestoreDatabasesResponse; import com.huaweicloud.sdk.dds.v3.model.ListRestoreTimesRequest; import com.huaweicloud.sdk.dds.v3.model.ListRestoreTimesResponse; +import com.huaweicloud.sdk.dds.v3.model.ListScheduledTasksRequest; +import com.huaweicloud.sdk.dds.v3.model.ListScheduledTasksResponse; import com.huaweicloud.sdk.dds.v3.model.ListSessionsRequest; import com.huaweicloud.sdk.dds.v3.model.ListSessionsResponse; import com.huaweicloud.sdk.dds.v3.model.ListSlowLogsRequest; @@ -145,6 +153,8 @@ import com.huaweicloud.sdk.dds.v3.model.RestoreNewInstanceResponse; import com.huaweicloud.sdk.dds.v3.model.SetAuditlogPolicyRequest; import com.huaweicloud.sdk.dds.v3.model.SetAuditlogPolicyResponse; +import com.huaweicloud.sdk.dds.v3.model.SetAutoEnlargePoliciesRequest; +import com.huaweicloud.sdk.dds.v3.model.SetAutoEnlargePoliciesResponse; import com.huaweicloud.sdk.dds.v3.model.SetBackupPolicyRequest; import com.huaweicloud.sdk.dds.v3.model.SetBackupPolicyResponse; import com.huaweicloud.sdk.dds.v3.model.SetBalancerSwitchRequest; @@ -157,6 +167,8 @@ import com.huaweicloud.sdk.dds.v3.model.ShowApiVersionResponse; import com.huaweicloud.sdk.dds.v3.model.ShowAuditlogPolicyRequest; import com.huaweicloud.sdk.dds.v3.model.ShowAuditlogPolicyResponse; +import com.huaweicloud.sdk.dds.v3.model.ShowAutoEnlargePolicyRequest; +import com.huaweicloud.sdk.dds.v3.model.ShowAutoEnlargePolicyResponse; import com.huaweicloud.sdk.dds.v3.model.ShowBackupDownloadLinkRequest; import com.huaweicloud.sdk.dds.v3.model.ShowBackupDownloadLinkResponse; import com.huaweicloud.sdk.dds.v3.model.ShowBackupPolicyRequest; @@ -175,6 +187,8 @@ import com.huaweicloud.sdk.dds.v3.model.ShowDiskUsageResponse; import com.huaweicloud.sdk.dds.v3.model.ShowEntityConfigurationRequest; import com.huaweicloud.sdk.dds.v3.model.ShowEntityConfigurationResponse; +import com.huaweicloud.sdk.dds.v3.model.ShowInstanceConfigurationModifyHistoryRequest; +import com.huaweicloud.sdk.dds.v3.model.ShowInstanceConfigurationModifyHistoryResponse; import com.huaweicloud.sdk.dds.v3.model.ShowJobDetailRequest; import com.huaweicloud.sdk.dds.v3.model.ShowJobDetailResponse; import com.huaweicloud.sdk.dds.v3.model.ShowKillOpRuleRuleListRequest; @@ -231,6 +245,8 @@ import com.huaweicloud.sdk.dds.v3.model.UpdateSecurityGroupResponse; import com.huaweicloud.sdk.dds.v3.model.UpgradeDatabaseVersionRequest; import com.huaweicloud.sdk.dds.v3.model.UpgradeDatabaseVersionResponse; +import com.huaweicloud.sdk.dds.v3.model.ValidateConfigurationNameRequest; +import com.huaweicloud.sdk.dds.v3.model.ValidateConfigurationNameResponse; import java.util.concurrent.CompletableFuture; @@ -362,6 +378,35 @@ public AsyncInvoker attachInt return new AsyncInvoker<>(request, DdsMeta.attachInternalIp, hcClient); } + /** + * 批量删除手动备份 + * + * 批量删除数据库实例的手动备份。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteBackupRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture batchDeleteBackupAsync(BatchDeleteBackupRequest request) { + return hcClient.asyncInvokeHttp(request, DdsMeta.batchDeleteBackup); + } + + /** + * 批量删除手动备份 + * + * 批量删除数据库实例的手动备份。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteBackupRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker batchDeleteBackupAsyncInvoker( + BatchDeleteBackupRequest request) { + return new AsyncInvoker<>(request, DdsMeta.batchDeleteBackup, hcClient); + } + /** * 批量添加或删除资源标签 * @@ -391,6 +436,36 @@ public AsyncInvoker batchTagActio return new AsyncInvoker<>(request, DdsMeta.batchTagAction, hcClient); } + /** + * 批量数据库补丁升级 + * + * 批量升级数据库补丁版本。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchUpgradeDatabaseVersionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture batchUpgradeDatabaseVersionAsync( + BatchUpgradeDatabaseVersionRequest request) { + return hcClient.asyncInvokeHttp(request, DdsMeta.batchUpgradeDatabaseVersion); + } + + /** + * 批量数据库补丁升级 + * + * 批量升级数据库补丁版本。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchUpgradeDatabaseVersionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker batchUpgradeDatabaseVersionAsyncInvoker( + BatchUpgradeDatabaseVersionRequest request) { + return new AsyncInvoker<>(request, DdsMeta.batchUpgradeDatabaseVersion, hcClient); + } + /** * 解绑弹性公网IP * @@ -419,6 +494,35 @@ public AsyncInvoker cancelEipAsyncInvoker(C return new AsyncInvoker<>(request, DdsMeta.cancelEip, hcClient); } + /** + * 取消定时任务 + * + * 根据任务ID取消定时任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CancelScheduledTaskRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture cancelScheduledTaskAsync(CancelScheduledTaskRequest request) { + return hcClient.asyncInvokeHttp(request, DdsMeta.cancelScheduledTask); + } + + /** + * 取消定时任务 + * + * 根据任务ID取消定时任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CancelScheduledTaskRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker cancelScheduledTaskAsyncInvoker( + CancelScheduledTaskRequest request) { + return new AsyncInvoker<>(request, DdsMeta.cancelScheduledTask, hcClient); + } + /** * 设置可维护时间段 * @@ -1845,6 +1949,35 @@ public AsyncInvoker listResto return new AsyncInvoker<>(request, DdsMeta.listRestoreTimes, hcClient); } + /** + * 查询定时任务 + * + * 根据指定条件查询定时任务列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListScheduledTasksRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listScheduledTasksAsync(ListScheduledTasksRequest request) { + return hcClient.asyncInvokeHttp(request, DdsMeta.listScheduledTasks); + } + + /** + * 查询定时任务 + * + * 根据指定条件查询定时任务列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListScheduledTasksRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listScheduledTasksAsyncInvoker( + ListScheduledTasksRequest request) { + return new AsyncInvoker<>(request, DdsMeta.listScheduledTasks, hcClient); + } + /** * 查询实例节点会话 * @@ -2281,6 +2414,36 @@ public AsyncInvoker setAudi return new AsyncInvoker<>(request, DdsMeta.setAuditlogPolicy, hcClient); } + /** + * 设置磁盘自动扩容策略 + * + * 设置磁盘自动扩容策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SetAutoEnlargePoliciesRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture setAutoEnlargePoliciesAsync( + SetAutoEnlargePoliciesRequest request) { + return hcClient.asyncInvokeHttp(request, DdsMeta.setAutoEnlargePolicies); + } + + /** + * 设置磁盘自动扩容策略 + * + * 设置磁盘自动扩容策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SetAutoEnlargePoliciesRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker setAutoEnlargePoliciesAsyncInvoker( + SetAutoEnlargePoliciesRequest request) { + return new AsyncInvoker<>(request, DdsMeta.setAutoEnlargePolicies, hcClient); + } + /** * 设置自动备份策略 * @@ -2426,6 +2589,36 @@ public AsyncInvoker showA return new AsyncInvoker<>(request, DdsMeta.showAuditlogPolicy, hcClient); } + /** + * 查询磁盘自动扩容策略 + * + * 查询磁盘自动扩容策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowAutoEnlargePolicyRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showAutoEnlargePolicyAsync( + ShowAutoEnlargePolicyRequest request) { + return hcClient.asyncInvokeHttp(request, DdsMeta.showAutoEnlargePolicy); + } + + /** + * 查询磁盘自动扩容策略 + * + * 查询磁盘自动扩容策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowAutoEnlargePolicyRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showAutoEnlargePolicyAsyncInvoker( + ShowAutoEnlargePolicyRequest request) { + return new AsyncInvoker<>(request, DdsMeta.showAutoEnlargePolicy, hcClient); + } + /** * 获取备份下载链接 * @@ -2693,6 +2886,36 @@ public AsyncInvoker(request, DdsMeta.showEntityConfiguration, hcClient); } + /** + * 查询实例参数的修改历史 + * + * 查询实例参数的修改历史。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowInstanceConfigurationModifyHistoryRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showInstanceConfigurationModifyHistoryAsync( + ShowInstanceConfigurationModifyHistoryRequest request) { + return hcClient.asyncInvokeHttp(request, DdsMeta.showInstanceConfigurationModifyHistory); + } + + /** + * 查询实例参数的修改历史 + * + * 查询实例参数的修改历史。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowInstanceConfigurationModifyHistoryRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showInstanceConfigurationModifyHistoryAsyncInvoker( + ShowInstanceConfigurationModifyHistoryRequest request) { + return new AsyncInvoker<>(request, DdsMeta.showInstanceConfigurationModifyHistory, hcClient); + } + /** * 获取DDS任务中心指定ID的任务信息。 * @@ -3518,6 +3741,36 @@ public AsyncInvoker(request, DdsMeta.upgradeDatabaseVersion, hcClient); } + /** + * 校验参数模板名称是否存在 + * + * 校验参数模板名称是否存在。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ValidateConfigurationNameRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture validateConfigurationNameAsync( + ValidateConfigurationNameRequest request) { + return hcClient.asyncInvokeHttp(request, DdsMeta.validateConfigurationName); + } + + /** + * 校验参数模板名称是否存在 + * + * 校验参数模板名称是否存在。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ValidateConfigurationNameRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker validateConfigurationNameAsyncInvoker( + ValidateConfigurationNameRequest request) { + return new AsyncInvoker<>(request, DdsMeta.validateConfigurationName, hcClient); + } + /** * 查询当前支持的API版本信息列表 * diff --git a/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/DdsClient.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/DdsClient.java index b3b5f24345..7e8c49d13c 100644 --- a/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/DdsClient.java +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/DdsClient.java @@ -11,10 +11,16 @@ import com.huaweicloud.sdk.dds.v3.model.AttachEipResponse; import com.huaweicloud.sdk.dds.v3.model.AttachInternalIpRequest; import com.huaweicloud.sdk.dds.v3.model.AttachInternalIpResponse; +import com.huaweicloud.sdk.dds.v3.model.BatchDeleteBackupRequest; +import com.huaweicloud.sdk.dds.v3.model.BatchDeleteBackupResponse; import com.huaweicloud.sdk.dds.v3.model.BatchTagActionRequest; import com.huaweicloud.sdk.dds.v3.model.BatchTagActionResponse; +import com.huaweicloud.sdk.dds.v3.model.BatchUpgradeDatabaseVersionRequest; +import com.huaweicloud.sdk.dds.v3.model.BatchUpgradeDatabaseVersionResponse; import com.huaweicloud.sdk.dds.v3.model.CancelEipRequest; import com.huaweicloud.sdk.dds.v3.model.CancelEipResponse; +import com.huaweicloud.sdk.dds.v3.model.CancelScheduledTaskRequest; +import com.huaweicloud.sdk.dds.v3.model.CancelScheduledTaskResponse; import com.huaweicloud.sdk.dds.v3.model.ChangeOpsWindowRequest; import com.huaweicloud.sdk.dds.v3.model.ChangeOpsWindowResponse; import com.huaweicloud.sdk.dds.v3.model.CheckPasswordRequest; @@ -115,6 +121,8 @@ import com.huaweicloud.sdk.dds.v3.model.ListRestoreDatabasesResponse; import com.huaweicloud.sdk.dds.v3.model.ListRestoreTimesRequest; import com.huaweicloud.sdk.dds.v3.model.ListRestoreTimesResponse; +import com.huaweicloud.sdk.dds.v3.model.ListScheduledTasksRequest; +import com.huaweicloud.sdk.dds.v3.model.ListScheduledTasksResponse; import com.huaweicloud.sdk.dds.v3.model.ListSessionsRequest; import com.huaweicloud.sdk.dds.v3.model.ListSessionsResponse; import com.huaweicloud.sdk.dds.v3.model.ListSlowLogsRequest; @@ -145,6 +153,8 @@ import com.huaweicloud.sdk.dds.v3.model.RestoreNewInstanceResponse; import com.huaweicloud.sdk.dds.v3.model.SetAuditlogPolicyRequest; import com.huaweicloud.sdk.dds.v3.model.SetAuditlogPolicyResponse; +import com.huaweicloud.sdk.dds.v3.model.SetAutoEnlargePoliciesRequest; +import com.huaweicloud.sdk.dds.v3.model.SetAutoEnlargePoliciesResponse; import com.huaweicloud.sdk.dds.v3.model.SetBackupPolicyRequest; import com.huaweicloud.sdk.dds.v3.model.SetBackupPolicyResponse; import com.huaweicloud.sdk.dds.v3.model.SetBalancerSwitchRequest; @@ -157,6 +167,8 @@ import com.huaweicloud.sdk.dds.v3.model.ShowApiVersionResponse; import com.huaweicloud.sdk.dds.v3.model.ShowAuditlogPolicyRequest; import com.huaweicloud.sdk.dds.v3.model.ShowAuditlogPolicyResponse; +import com.huaweicloud.sdk.dds.v3.model.ShowAutoEnlargePolicyRequest; +import com.huaweicloud.sdk.dds.v3.model.ShowAutoEnlargePolicyResponse; import com.huaweicloud.sdk.dds.v3.model.ShowBackupDownloadLinkRequest; import com.huaweicloud.sdk.dds.v3.model.ShowBackupDownloadLinkResponse; import com.huaweicloud.sdk.dds.v3.model.ShowBackupPolicyRequest; @@ -175,6 +187,8 @@ import com.huaweicloud.sdk.dds.v3.model.ShowDiskUsageResponse; import com.huaweicloud.sdk.dds.v3.model.ShowEntityConfigurationRequest; import com.huaweicloud.sdk.dds.v3.model.ShowEntityConfigurationResponse; +import com.huaweicloud.sdk.dds.v3.model.ShowInstanceConfigurationModifyHistoryRequest; +import com.huaweicloud.sdk.dds.v3.model.ShowInstanceConfigurationModifyHistoryResponse; import com.huaweicloud.sdk.dds.v3.model.ShowJobDetailRequest; import com.huaweicloud.sdk.dds.v3.model.ShowJobDetailResponse; import com.huaweicloud.sdk.dds.v3.model.ShowKillOpRuleRuleListRequest; @@ -231,6 +245,8 @@ import com.huaweicloud.sdk.dds.v3.model.UpdateSecurityGroupResponse; import com.huaweicloud.sdk.dds.v3.model.UpgradeDatabaseVersionRequest; import com.huaweicloud.sdk.dds.v3.model.UpgradeDatabaseVersionResponse; +import com.huaweicloud.sdk.dds.v3.model.ValidateConfigurationNameRequest; +import com.huaweicloud.sdk.dds.v3.model.ValidateConfigurationNameResponse; public class DdsClient { @@ -360,6 +376,35 @@ public SyncInvoker attachInte return new SyncInvoker<>(request, DdsMeta.attachInternalIp, hcClient); } + /** + * 批量删除手动备份 + * + * 批量删除数据库实例的手动备份。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteBackupRequest 请求对象 + * @return BatchDeleteBackupResponse + */ + public BatchDeleteBackupResponse batchDeleteBackup(BatchDeleteBackupRequest request) { + return hcClient.syncInvokeHttp(request, DdsMeta.batchDeleteBackup); + } + + /** + * 批量删除手动备份 + * + * 批量删除数据库实例的手动备份。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteBackupRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker batchDeleteBackupInvoker( + BatchDeleteBackupRequest request) { + return new SyncInvoker<>(request, DdsMeta.batchDeleteBackup, hcClient); + } + /** * 批量添加或删除资源标签 * @@ -389,6 +434,35 @@ public SyncInvoker batchTagAction return new SyncInvoker<>(request, DdsMeta.batchTagAction, hcClient); } + /** + * 批量数据库补丁升级 + * + * 批量升级数据库补丁版本。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchUpgradeDatabaseVersionRequest 请求对象 + * @return BatchUpgradeDatabaseVersionResponse + */ + public BatchUpgradeDatabaseVersionResponse batchUpgradeDatabaseVersion(BatchUpgradeDatabaseVersionRequest request) { + return hcClient.syncInvokeHttp(request, DdsMeta.batchUpgradeDatabaseVersion); + } + + /** + * 批量数据库补丁升级 + * + * 批量升级数据库补丁版本。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchUpgradeDatabaseVersionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker batchUpgradeDatabaseVersionInvoker( + BatchUpgradeDatabaseVersionRequest request) { + return new SyncInvoker<>(request, DdsMeta.batchUpgradeDatabaseVersion, hcClient); + } + /** * 解绑弹性公网IP * @@ -417,6 +491,35 @@ public SyncInvoker cancelEipInvoker(CancelE return new SyncInvoker<>(request, DdsMeta.cancelEip, hcClient); } + /** + * 取消定时任务 + * + * 根据任务ID取消定时任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CancelScheduledTaskRequest 请求对象 + * @return CancelScheduledTaskResponse + */ + public CancelScheduledTaskResponse cancelScheduledTask(CancelScheduledTaskRequest request) { + return hcClient.syncInvokeHttp(request, DdsMeta.cancelScheduledTask); + } + + /** + * 取消定时任务 + * + * 根据任务ID取消定时任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CancelScheduledTaskRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker cancelScheduledTaskInvoker( + CancelScheduledTaskRequest request) { + return new SyncInvoker<>(request, DdsMeta.cancelScheduledTask, hcClient); + } + /** * 设置可维护时间段 * @@ -1829,6 +1932,35 @@ public SyncInvoker listRestor return new SyncInvoker<>(request, DdsMeta.listRestoreTimes, hcClient); } + /** + * 查询定时任务 + * + * 根据指定条件查询定时任务列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListScheduledTasksRequest 请求对象 + * @return ListScheduledTasksResponse + */ + public ListScheduledTasksResponse listScheduledTasks(ListScheduledTasksRequest request) { + return hcClient.syncInvokeHttp(request, DdsMeta.listScheduledTasks); + } + + /** + * 查询定时任务 + * + * 根据指定条件查询定时任务列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListScheduledTasksRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listScheduledTasksInvoker( + ListScheduledTasksRequest request) { + return new SyncInvoker<>(request, DdsMeta.listScheduledTasks, hcClient); + } + /** * 查询实例节点会话 * @@ -2260,6 +2392,35 @@ public SyncInvoker setAudit return new SyncInvoker<>(request, DdsMeta.setAuditlogPolicy, hcClient); } + /** + * 设置磁盘自动扩容策略 + * + * 设置磁盘自动扩容策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SetAutoEnlargePoliciesRequest 请求对象 + * @return SetAutoEnlargePoliciesResponse + */ + public SetAutoEnlargePoliciesResponse setAutoEnlargePolicies(SetAutoEnlargePoliciesRequest request) { + return hcClient.syncInvokeHttp(request, DdsMeta.setAutoEnlargePolicies); + } + + /** + * 设置磁盘自动扩容策略 + * + * 设置磁盘自动扩容策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SetAutoEnlargePoliciesRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker setAutoEnlargePoliciesInvoker( + SetAutoEnlargePoliciesRequest request) { + return new SyncInvoker<>(request, DdsMeta.setAutoEnlargePolicies, hcClient); + } + /** * 设置自动备份策略 * @@ -2405,6 +2566,35 @@ public SyncInvoker showAu return new SyncInvoker<>(request, DdsMeta.showAuditlogPolicy, hcClient); } + /** + * 查询磁盘自动扩容策略 + * + * 查询磁盘自动扩容策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowAutoEnlargePolicyRequest 请求对象 + * @return ShowAutoEnlargePolicyResponse + */ + public ShowAutoEnlargePolicyResponse showAutoEnlargePolicy(ShowAutoEnlargePolicyRequest request) { + return hcClient.syncInvokeHttp(request, DdsMeta.showAutoEnlargePolicy); + } + + /** + * 查询磁盘自动扩容策略 + * + * 查询磁盘自动扩容策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowAutoEnlargePolicyRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showAutoEnlargePolicyInvoker( + ShowAutoEnlargePolicyRequest request) { + return new SyncInvoker<>(request, DdsMeta.showAutoEnlargePolicy, hcClient); + } + /** * 获取备份下载链接 * @@ -2667,6 +2857,36 @@ public SyncInvoker(request, DdsMeta.showEntityConfiguration, hcClient); } + /** + * 查询实例参数的修改历史 + * + * 查询实例参数的修改历史。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowInstanceConfigurationModifyHistoryRequest 请求对象 + * @return ShowInstanceConfigurationModifyHistoryResponse + */ + public ShowInstanceConfigurationModifyHistoryResponse showInstanceConfigurationModifyHistory( + ShowInstanceConfigurationModifyHistoryRequest request) { + return hcClient.syncInvokeHttp(request, DdsMeta.showInstanceConfigurationModifyHistory); + } + + /** + * 查询实例参数的修改历史 + * + * 查询实例参数的修改历史。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowInstanceConfigurationModifyHistoryRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showInstanceConfigurationModifyHistoryInvoker( + ShowInstanceConfigurationModifyHistoryRequest request) { + return new SyncInvoker<>(request, DdsMeta.showInstanceConfigurationModifyHistory, hcClient); + } + /** * 获取DDS任务中心指定ID的任务信息。 * @@ -3483,6 +3703,35 @@ public SyncInvoker(request, DdsMeta.upgradeDatabaseVersion, hcClient); } + /** + * 校验参数模板名称是否存在 + * + * 校验参数模板名称是否存在。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ValidateConfigurationNameRequest 请求对象 + * @return ValidateConfigurationNameResponse + */ + public ValidateConfigurationNameResponse validateConfigurationName(ValidateConfigurationNameRequest request) { + return hcClient.syncInvokeHttp(request, DdsMeta.validateConfigurationName); + } + + /** + * 校验参数模板名称是否存在 + * + * 校验参数模板名称是否存在。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ValidateConfigurationNameRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker validateConfigurationNameInvoker( + ValidateConfigurationNameRequest request) { + return new SyncInvoker<>(request, DdsMeta.validateConfigurationName, hcClient); + } + /** * 查询当前支持的API版本信息列表 * diff --git a/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/DdsMeta.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/DdsMeta.java index e241122a2e..a9b05653ac 100644 --- a/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/DdsMeta.java +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/DdsMeta.java @@ -18,11 +18,19 @@ import com.huaweicloud.sdk.dds.v3.model.AttachInternalIpRequestBody; import com.huaweicloud.sdk.dds.v3.model.AttachInternalIpResponse; import com.huaweicloud.sdk.dds.v3.model.BalancerActiveWindow; +import com.huaweicloud.sdk.dds.v3.model.BatchDeleteBackupRequest; +import com.huaweicloud.sdk.dds.v3.model.BatchDeleteBackupRequestBody; +import com.huaweicloud.sdk.dds.v3.model.BatchDeleteBackupResponse; import com.huaweicloud.sdk.dds.v3.model.BatchOperateInstanceTagRequestBody; import com.huaweicloud.sdk.dds.v3.model.BatchTagActionRequest; import com.huaweicloud.sdk.dds.v3.model.BatchTagActionResponse; +import com.huaweicloud.sdk.dds.v3.model.BatchUpgradeDatabaseVersionRequest; +import com.huaweicloud.sdk.dds.v3.model.BatchUpgradeDatabaseVersionRequestBody; +import com.huaweicloud.sdk.dds.v3.model.BatchUpgradeDatabaseVersionResponse; import com.huaweicloud.sdk.dds.v3.model.CancelEipRequest; import com.huaweicloud.sdk.dds.v3.model.CancelEipResponse; +import com.huaweicloud.sdk.dds.v3.model.CancelScheduledTaskRequest; +import com.huaweicloud.sdk.dds.v3.model.CancelScheduledTaskResponse; import com.huaweicloud.sdk.dds.v3.model.ChangeOpsWindowRequest; import com.huaweicloud.sdk.dds.v3.model.ChangeOpsWindowResponse; import com.huaweicloud.sdk.dds.v3.model.CheckPasswordRequest; @@ -148,6 +156,8 @@ import com.huaweicloud.sdk.dds.v3.model.ListRestoreDatabasesResponse; import com.huaweicloud.sdk.dds.v3.model.ListRestoreTimesRequest; import com.huaweicloud.sdk.dds.v3.model.ListRestoreTimesResponse; +import com.huaweicloud.sdk.dds.v3.model.ListScheduledTasksRequest; +import com.huaweicloud.sdk.dds.v3.model.ListScheduledTasksResponse; import com.huaweicloud.sdk.dds.v3.model.ListSessionsRequest; import com.huaweicloud.sdk.dds.v3.model.ListSessionsResponse; import com.huaweicloud.sdk.dds.v3.model.ListSlowLogsRequest; @@ -192,6 +202,9 @@ import com.huaweicloud.sdk.dds.v3.model.SetAuditlogPolicyRequest; import com.huaweicloud.sdk.dds.v3.model.SetAuditlogPolicyRequestBody; import com.huaweicloud.sdk.dds.v3.model.SetAuditlogPolicyResponse; +import com.huaweicloud.sdk.dds.v3.model.SetAutoEnlargePoliciesRequest; +import com.huaweicloud.sdk.dds.v3.model.SetAutoEnlargePoliciesRequestBody; +import com.huaweicloud.sdk.dds.v3.model.SetAutoEnlargePoliciesResponse; import com.huaweicloud.sdk.dds.v3.model.SetBackupPolicyRequest; import com.huaweicloud.sdk.dds.v3.model.SetBackupPolicyRequestBody; import com.huaweicloud.sdk.dds.v3.model.SetBackupPolicyResponse; @@ -205,6 +218,8 @@ import com.huaweicloud.sdk.dds.v3.model.ShowApiVersionResponse; import com.huaweicloud.sdk.dds.v3.model.ShowAuditlogPolicyRequest; import com.huaweicloud.sdk.dds.v3.model.ShowAuditlogPolicyResponse; +import com.huaweicloud.sdk.dds.v3.model.ShowAutoEnlargePolicyRequest; +import com.huaweicloud.sdk.dds.v3.model.ShowAutoEnlargePolicyResponse; import com.huaweicloud.sdk.dds.v3.model.ShowBackupDownloadLinkRequest; import com.huaweicloud.sdk.dds.v3.model.ShowBackupDownloadLinkResponse; import com.huaweicloud.sdk.dds.v3.model.ShowBackupPolicyRequest; @@ -223,6 +238,8 @@ import com.huaweicloud.sdk.dds.v3.model.ShowDiskUsageResponse; import com.huaweicloud.sdk.dds.v3.model.ShowEntityConfigurationRequest; import com.huaweicloud.sdk.dds.v3.model.ShowEntityConfigurationResponse; +import com.huaweicloud.sdk.dds.v3.model.ShowInstanceConfigurationModifyHistoryRequest; +import com.huaweicloud.sdk.dds.v3.model.ShowInstanceConfigurationModifyHistoryResponse; import com.huaweicloud.sdk.dds.v3.model.ShowJobDetailRequest; import com.huaweicloud.sdk.dds.v3.model.ShowJobDetailResponse; import com.huaweicloud.sdk.dds.v3.model.ShowKillOpRuleRuleListRequest; @@ -291,6 +308,8 @@ import com.huaweicloud.sdk.dds.v3.model.UpgradeDatabaseVersionRequest; import com.huaweicloud.sdk.dds.v3.model.UpgradeDatabaseVersionRequestBody; import com.huaweicloud.sdk.dds.v3.model.UpgradeDatabaseVersionResponse; +import com.huaweicloud.sdk.dds.v3.model.ValidateConfigurationNameRequest; +import com.huaweicloud.sdk.dds.v3.model.ValidateConfigurationNameResponse; import com.huaweicloud.sdk.dds.v3.model.WeakPasswordCheckRequestBody; @SuppressWarnings("unchecked") @@ -407,6 +426,34 @@ private static HttpRequestDef return builder.build(); } + public static final HttpRequestDef batchDeleteBackup = + genForBatchDeleteBackup(); + + private static HttpRequestDef genForBatchDeleteBackup() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.DELETE, BatchDeleteBackupRequest.class, BatchDeleteBackupResponse.class) + .withName("BatchDeleteBackup") + .withUri("/v3/{project_id}/instances/backups") + .withContentType("application/json"); + + // requests + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(BatchDeleteBackupRequest.XLanguageEnum.class), + f -> f.withMarshaller(BatchDeleteBackupRequest::getXLanguage, BatchDeleteBackupRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(BatchDeleteBackupRequestBody.class), + f -> f.withMarshaller(BatchDeleteBackupRequest::getBody, BatchDeleteBackupRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef batchTagAction = genForBatchTagAction(); @@ -435,6 +482,33 @@ private static HttpRequestDef gen return builder.build(); } + public static final HttpRequestDef batchUpgradeDatabaseVersion = + genForBatchUpgradeDatabaseVersion(); + + private static HttpRequestDef genForBatchUpgradeDatabaseVersion() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + BatchUpgradeDatabaseVersionRequest.class, + BatchUpgradeDatabaseVersionResponse.class) + .withName("BatchUpgradeDatabaseVersion") + .withUri("/v3/{project_id}/instances/db-upgrade") + .withContentType("application/json"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(BatchUpgradeDatabaseVersionRequestBody.class), + f -> f.withMarshaller(BatchUpgradeDatabaseVersionRequest::getBody, + BatchUpgradeDatabaseVersionRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef cancelEip = genForCancelEip(); private static HttpRequestDef genForCancelEip() { @@ -457,6 +531,34 @@ private static HttpRequestDef genForCancelE return builder.build(); } + public static final HttpRequestDef cancelScheduledTask = + genForCancelScheduledTask(); + + private static HttpRequestDef genForCancelScheduledTask() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.DELETE, CancelScheduledTaskRequest.class, CancelScheduledTaskResponse.class) + .withName("CancelScheduledTask") + .withUri("/v3/{project_id}/scheduled-jobs/{job_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CancelScheduledTaskRequest::getJobId, CancelScheduledTaskRequest::setJobId)); + + // response + builder.withResponseField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(CancelScheduledTaskResponse::getBody, CancelScheduledTaskResponse::setBody)); + + return builder.build(); + } + public static final HttpRequestDef changeOpsWindow = genForChangeOpsWindow(); @@ -1981,6 +2083,59 @@ private static HttpRequestDef return builder.build(); } + public static final HttpRequestDef listScheduledTasks = + genForListScheduledTasks(); + + private static HttpRequestDef genForListScheduledTasks() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListScheduledTasksRequest.class, ListScheduledTasksResponse.class) + .withName("ListScheduledTasks") + .withUri("/v3/{project_id}/scheduled-jobs") + .withContentType("application/json"); + + // requests + builder.withRequestField("job_name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListScheduledTasksRequest::getJobName, ListScheduledTasksRequest::setJobName)); + builder.withRequestField("job_status", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListScheduledTasksRequest::getJobStatus, ListScheduledTasksRequest::setJobStatus)); + builder.withRequestField("instance_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListScheduledTasksRequest::getInstanceId, ListScheduledTasksRequest::setInstanceId)); + builder.withRequestField("start_time", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListScheduledTasksRequest::getStartTime, ListScheduledTasksRequest::setStartTime)); + builder.withRequestField("end_time", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListScheduledTasksRequest::getEndTime, ListScheduledTasksRequest::setEndTime)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListScheduledTasksRequest::getOffset, ListScheduledTasksRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListScheduledTasksRequest::getLimit, ListScheduledTasksRequest::setLimit)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listSessions = genForListSessions(); private static HttpRequestDef genForListSessions() { @@ -2474,6 +2629,29 @@ private static HttpRequestDef setAutoEnlargePolicies = + genForSetAutoEnlargePolicies(); + + private static HttpRequestDef genForSetAutoEnlargePolicies() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.PUT, SetAutoEnlargePoliciesRequest.class, SetAutoEnlargePoliciesResponse.class) + .withName("SetAutoEnlargePolicies") + .withUri("/v3/{project_id}/instances/auto-enlarge-volume-policies") + .withContentType("application/json"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(SetAutoEnlargePoliciesRequestBody.class), + f -> f.withMarshaller(SetAutoEnlargePoliciesRequest::getBody, SetAutoEnlargePoliciesRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef setBackupPolicy = genForSetBackupPolicy(); @@ -2609,6 +2787,30 @@ private static HttpRequestDef showAutoEnlargePolicy = + genForShowAutoEnlargePolicy(); + + private static HttpRequestDef genForShowAutoEnlargePolicy() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ShowAutoEnlargePolicyRequest.class, ShowAutoEnlargePolicyResponse.class) + .withName("ShowAutoEnlargePolicy") + .withUri("/v3/{project_id}/instances/{instance_id}/auto-enlarge-volume-policy") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowAutoEnlargePolicyRequest::getInstanceId, + ShowAutoEnlargePolicyRequest::setInstanceId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showBackupDownloadLink = genForShowBackupDownloadLink(); @@ -2885,6 +3087,45 @@ private static HttpRequestDef showInstanceConfigurationModifyHistory = + genForShowInstanceConfigurationModifyHistory(); + + private static HttpRequestDef genForShowInstanceConfigurationModifyHistory() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ShowInstanceConfigurationModifyHistoryRequest.class, + ShowInstanceConfigurationModifyHistoryResponse.class) + .withName("ShowInstanceConfigurationModifyHistory") + .withUri("/v3/{project_id}/instances/{instance_id}/configuration-histories") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowInstanceConfigurationModifyHistoryRequest::getInstanceId, + ShowInstanceConfigurationModifyHistoryRequest::setInstanceId)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ShowInstanceConfigurationModifyHistoryRequest::getOffset, + ShowInstanceConfigurationModifyHistoryRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ShowInstanceConfigurationModifyHistoryRequest::getLimit, + ShowInstanceConfigurationModifyHistoryRequest::setLimit)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showJobDetail = genForShowJobDetail(); @@ -3694,6 +3935,33 @@ private static HttpRequestDef validateConfigurationName = + genForValidateConfigurationName(); + + private static HttpRequestDef genForValidateConfigurationName() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ValidateConfigurationNameRequest.class, + ValidateConfigurationNameResponse.class) + .withName("ValidateConfigurationName") + .withUri("/v3/{project_id}/configurations/name-validation") + .withContentType("application/json"); + + // requests + builder.withRequestField("name", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ValidateConfigurationNameRequest::getName, + ValidateConfigurationNameRequest::setName)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listApiVersion = genForListApiVersion(); diff --git a/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/BatchDeleteBackupRequest.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/BatchDeleteBackupRequest.java new file mode 100644 index 0000000000..34c531a9ec --- /dev/null +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/BatchDeleteBackupRequest.java @@ -0,0 +1,182 @@ +package com.huaweicloud.sdk.dds.v3.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class BatchDeleteBackupRequest { + + /** + * 语言。 + */ + public static final class XLanguageEnum { + + /** + * Enum ZH_CN for value: "zh-cn" + */ + public static final XLanguageEnum ZH_CN = new XLanguageEnum("zh-cn"); + + /** + * Enum EN_US for value: "en-us" + */ + public static final XLanguageEnum EN_US = new XLanguageEnum("en-us"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("zh-cn", ZH_CN); + map.put("en-us", EN_US); + return Collections.unmodifiableMap(map); + } + + private String value; + + XLanguageEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static XLanguageEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new XLanguageEnum(value)); + } + + public static XLanguageEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof XLanguageEnum) { + return this.value.equals(((XLanguageEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private XLanguageEnum xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private BatchDeleteBackupRequestBody body; + + public BatchDeleteBackupRequest withXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 语言。 + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public XLanguageEnum getXLanguage() { + return xLanguage; + } + + public void setXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + } + + public BatchDeleteBackupRequest withBody(BatchDeleteBackupRequestBody body) { + this.body = body; + return this; + } + + public BatchDeleteBackupRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new BatchDeleteBackupRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public BatchDeleteBackupRequestBody getBody() { + return body; + } + + public void setBody(BatchDeleteBackupRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchDeleteBackupRequest that = (BatchDeleteBackupRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDeleteBackupRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/BatchDeleteBackupRequestBody.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/BatchDeleteBackupRequestBody.java new file mode 100644 index 0000000000..f7c7c1b773 --- /dev/null +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/BatchDeleteBackupRequestBody.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.dds.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * BatchDeleteBackupRequestBody + */ +public class BatchDeleteBackupRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "backup_ids") + + private List backupIds = null; + + public BatchDeleteBackupRequestBody withBackupIds(List backupIds) { + this.backupIds = backupIds; + return this; + } + + public BatchDeleteBackupRequestBody addBackupIdsItem(String backupIdsItem) { + if (this.backupIds == null) { + this.backupIds = new ArrayList<>(); + } + this.backupIds.add(backupIdsItem); + return this; + } + + public BatchDeleteBackupRequestBody withBackupIds(Consumer> backupIdsSetter) { + if (this.backupIds == null) { + this.backupIds = new ArrayList<>(); + } + backupIdsSetter.accept(this.backupIds); + return this; + } + + /** + * 需要批量删除的手动备份id列表,最多一次不超过10条。 + * @return backupIds + */ + public List getBackupIds() { + return backupIds; + } + + public void setBackupIds(List backupIds) { + this.backupIds = backupIds; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchDeleteBackupRequestBody that = (BatchDeleteBackupRequestBody) obj; + return Objects.equals(this.backupIds, that.backupIds); + } + + @Override + public int hashCode() { + return Objects.hash(backupIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDeleteBackupRequestBody {\n"); + sb.append(" backupIds: ").append(toIndentedString(backupIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/BatchDeleteBackupResponse.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/BatchDeleteBackupResponse.java new file mode 100644 index 0000000000..1b09232dc7 --- /dev/null +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/BatchDeleteBackupResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.dds.v3.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class BatchDeleteBackupResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDeleteBackupResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/BatchUpgradeDatabaseVersionRequest.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/BatchUpgradeDatabaseVersionRequest.java new file mode 100644 index 0000000000..d17109a243 --- /dev/null +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/BatchUpgradeDatabaseVersionRequest.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dds.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class BatchUpgradeDatabaseVersionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private BatchUpgradeDatabaseVersionRequestBody body; + + public BatchUpgradeDatabaseVersionRequest withBody(BatchUpgradeDatabaseVersionRequestBody body) { + this.body = body; + return this; + } + + public BatchUpgradeDatabaseVersionRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new BatchUpgradeDatabaseVersionRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public BatchUpgradeDatabaseVersionRequestBody getBody() { + return body; + } + + public void setBody(BatchUpgradeDatabaseVersionRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchUpgradeDatabaseVersionRequest that = (BatchUpgradeDatabaseVersionRequest) obj; + return Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchUpgradeDatabaseVersionRequest {\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/BatchUpgradeDatabaseVersionRequestBody.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/BatchUpgradeDatabaseVersionRequestBody.java new file mode 100644 index 0000000000..b22a88a824 --- /dev/null +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/BatchUpgradeDatabaseVersionRequestBody.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.dds.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * BatchUpgradeDatabaseVersionRequestBody + */ +public class BatchUpgradeDatabaseVersionRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_ids") + + private List instanceIds = null; + + public BatchUpgradeDatabaseVersionRequestBody withInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + return this; + } + + public BatchUpgradeDatabaseVersionRequestBody addInstanceIdsItem(String instanceIdsItem) { + if (this.instanceIds == null) { + this.instanceIds = new ArrayList<>(); + } + this.instanceIds.add(instanceIdsItem); + return this; + } + + public BatchUpgradeDatabaseVersionRequestBody withInstanceIds(Consumer> instanceIdsSetter) { + if (this.instanceIds == null) { + this.instanceIds = new ArrayList<>(); + } + instanceIdsSetter.accept(this.instanceIds); + return this; + } + + /** + * 指定需要升级数据库补丁版本的实例ID列表。 一次最多可传入10个实例ID。 + * @return instanceIds + */ + public List getInstanceIds() { + return instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchUpgradeDatabaseVersionRequestBody that = (BatchUpgradeDatabaseVersionRequestBody) obj; + return Objects.equals(this.instanceIds, that.instanceIds); + } + + @Override + public int hashCode() { + return Objects.hash(instanceIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchUpgradeDatabaseVersionRequestBody {\n"); + sb.append(" instanceIds: ").append(toIndentedString(instanceIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/BatchUpgradeDatabaseVersionResponse.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/BatchUpgradeDatabaseVersionResponse.java new file mode 100644 index 0000000000..f506d2d7c7 --- /dev/null +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/BatchUpgradeDatabaseVersionResponse.java @@ -0,0 +1,92 @@ +package com.huaweicloud.sdk.dds.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class BatchUpgradeDatabaseVersionResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "upgrade_results") + + private List upgradeResults = null; + + public BatchUpgradeDatabaseVersionResponse withUpgradeResults(List upgradeResults) { + this.upgradeResults = upgradeResults; + return this; + } + + public BatchUpgradeDatabaseVersionResponse addUpgradeResultsItem(UpgradeResult upgradeResultsItem) { + if (this.upgradeResults == null) { + this.upgradeResults = new ArrayList<>(); + } + this.upgradeResults.add(upgradeResultsItem); + return this; + } + + public BatchUpgradeDatabaseVersionResponse withUpgradeResults(Consumer> upgradeResultsSetter) { + if (this.upgradeResults == null) { + this.upgradeResults = new ArrayList<>(); + } + upgradeResultsSetter.accept(this.upgradeResults); + return this; + } + + /** + * 批量升级结果。 + * @return upgradeResults + */ + public List getUpgradeResults() { + return upgradeResults; + } + + public void setUpgradeResults(List upgradeResults) { + this.upgradeResults = upgradeResults; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchUpgradeDatabaseVersionResponse that = (BatchUpgradeDatabaseVersionResponse) obj; + return Objects.equals(this.upgradeResults, that.upgradeResults); + } + + @Override + public int hashCode() { + return Objects.hash(upgradeResults); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchUpgradeDatabaseVersionResponse {\n"); + sb.append(" upgradeResults: ").append(toIndentedString(upgradeResults)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunCheckResultRequest.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/CancelScheduledTaskRequest.java similarity index 80% rename from services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunCheckResultRequest.java rename to services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/CancelScheduledTaskRequest.java index 83755a8283..4374487db9 100644 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunCheckResultRequest.java +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/CancelScheduledTaskRequest.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.moderation.v2.model; +package com.huaweicloud.sdk.dds.v3.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -8,20 +8,20 @@ /** * Request Object */ -public class RunCheckResultRequest { +public class CancelScheduledTaskRequest { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "job_id") private String jobId; - public RunCheckResultRequest withJobId(String jobId) { + public CancelScheduledTaskRequest withJobId(String jobId) { this.jobId = jobId; return this; } /** - * 任务标识。 + * 任务ID,取值为定时任务列表。 * @return jobId */ public String getJobId() { @@ -40,7 +40,7 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - RunCheckResultRequest that = (RunCheckResultRequest) obj; + CancelScheduledTaskRequest that = (CancelScheduledTaskRequest) obj; return Objects.equals(this.jobId, that.jobId); } @@ -52,7 +52,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RunCheckResultRequest {\n"); + sb.append("class CancelScheduledTaskRequest {\n"); sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/ChangeVolumeChargeModeResponse.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/CancelScheduledTaskResponse.java similarity index 81% rename from services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/ChangeVolumeChargeModeResponse.java rename to services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/CancelScheduledTaskResponse.java index a6ed0f2d57..30680927f0 100644 --- a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/ChangeVolumeChargeModeResponse.java +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/CancelScheduledTaskResponse.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.evs.v2.model; +package com.huaweicloud.sdk.dds.v3.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -9,14 +9,14 @@ /** * Response Object */ -public class ChangeVolumeChargeModeResponse extends SdkResponse { +public class CancelScheduledTaskResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "body") private String body; - public ChangeVolumeChargeModeResponse withBody(String body) { + public CancelScheduledTaskResponse withBody(String body) { this.body = body; return this; } @@ -41,7 +41,7 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - ChangeVolumeChargeModeResponse that = (ChangeVolumeChargeModeResponse) obj; + CancelScheduledTaskResponse that = (CancelScheduledTaskResponse) obj; return Objects.equals(this.body, that.body); } @@ -53,7 +53,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ChangeVolumeChargeModeResponse {\n"); + sb.append("class CancelScheduledTaskResponse {\n"); sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ConfigurationModifyHistoryInfo.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ConfigurationModifyHistoryInfo.java new file mode 100644 index 0000000000..fd1d86232b --- /dev/null +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ConfigurationModifyHistoryInfo.java @@ -0,0 +1,213 @@ +package com.huaweicloud.sdk.dds.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * ConfigurationModifyHistoryInfo + */ +public class ConfigurationModifyHistoryInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "parameter_name") + + private String parameterName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "old_value") + + private String oldValue; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "new_value") + + private String newValue; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_result") + + private String updateResult; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "applied") + + private Boolean applied; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "updated_at") + + private String updatedAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "applied_at") + + private String appliedAt; + + public ConfigurationModifyHistoryInfo withParameterName(String parameterName) { + this.parameterName = parameterName; + return this; + } + + /** + * 参数名称。 + * @return parameterName + */ + public String getParameterName() { + return parameterName; + } + + public void setParameterName(String parameterName) { + this.parameterName = parameterName; + } + + public ConfigurationModifyHistoryInfo withOldValue(String oldValue) { + this.oldValue = oldValue; + return this; + } + + /** + * 修改前的值。 + * @return oldValue + */ + public String getOldValue() { + return oldValue; + } + + public void setOldValue(String oldValue) { + this.oldValue = oldValue; + } + + public ConfigurationModifyHistoryInfo withNewValue(String newValue) { + this.newValue = newValue; + return this; + } + + /** + * 修改后的值。 + * @return newValue + */ + public String getNewValue() { + return newValue; + } + + public void setNewValue(String newValue) { + this.newValue = newValue; + } + + public ConfigurationModifyHistoryInfo withUpdateResult(String updateResult) { + this.updateResult = updateResult; + return this; + } + + /** + * 更新结果。 + * @return updateResult + */ + public String getUpdateResult() { + return updateResult; + } + + public void setUpdateResult(String updateResult) { + this.updateResult = updateResult; + } + + public ConfigurationModifyHistoryInfo withApplied(Boolean applied) { + this.applied = applied; + return this; + } + + /** + * 是否被应用。 - true: 已被应用。 - false: 未被应用。 + * @return applied + */ + public Boolean getApplied() { + return applied; + } + + public void setApplied(Boolean applied) { + this.applied = applied; + } + + public ConfigurationModifyHistoryInfo withUpdatedAt(String updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + /** + * 修改时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + * @return updatedAt + */ + public String getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(String updatedAt) { + this.updatedAt = updatedAt; + } + + public ConfigurationModifyHistoryInfo withAppliedAt(String appliedAt) { + this.appliedAt = appliedAt; + return this; + } + + /** + * 应用时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + * @return appliedAt + */ + public String getAppliedAt() { + return appliedAt; + } + + public void setAppliedAt(String appliedAt) { + this.appliedAt = appliedAt; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ConfigurationModifyHistoryInfo that = (ConfigurationModifyHistoryInfo) obj; + return Objects.equals(this.parameterName, that.parameterName) && Objects.equals(this.oldValue, that.oldValue) + && Objects.equals(this.newValue, that.newValue) && Objects.equals(this.updateResult, that.updateResult) + && Objects.equals(this.applied, that.applied) && Objects.equals(this.updatedAt, that.updatedAt) + && Objects.equals(this.appliedAt, that.appliedAt); + } + + @Override + public int hashCode() { + return Objects.hash(parameterName, oldValue, newValue, updateResult, applied, updatedAt, appliedAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConfigurationModifyHistoryInfo {\n"); + sb.append(" parameterName: ").append(toIndentedString(parameterName)).append("\n"); + sb.append(" oldValue: ").append(toIndentedString(oldValue)).append("\n"); + sb.append(" newValue: ").append(toIndentedString(newValue)).append("\n"); + sb.append(" updateResult: ").append(toIndentedString(updateResult)).append("\n"); + sb.append(" applied: ").append(toIndentedString(applied)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" appliedAt: ").append(toIndentedString(appliedAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/DiskAutoExpansionPolicy.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/DiskAutoExpansionPolicy.java new file mode 100644 index 0000000000..dca2c87e7f --- /dev/null +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/DiskAutoExpansionPolicy.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.dds.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * DiskAutoExpansionPolicy + */ +public class DiskAutoExpansionPolicy { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "threshold") + + private Integer threshold; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "step") + + private Integer step; + + public DiskAutoExpansionPolicy withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public DiskAutoExpansionPolicy withThreshold(Integer threshold) { + this.threshold = threshold; + return this; + } + + /** + * 触发自动扩容阈值,只支持输入80、85和90。默认阈值为90,即当已使用存储空间达到总存储空间的90%时就会触发扩容。集群实例的自动扩容阈值指的是每个shard。 + * @return threshold + */ + public Integer getThreshold() { + return threshold; + } + + public void setThreshold(Integer threshold) { + this.threshold = threshold; + } + + public DiskAutoExpansionPolicy withStep(Integer step) { + this.step = step; + return this; + } + + /** + * 扩容步长(s%),默认为10,支持输入10、15和20。当触发自动扩容的时候,自动扩容当前存储空间的s%(非10倍数向上取整。小数点后四舍五入,默认一次最小10G,账户余额不足时,会导致包年包月实例扩容失败)。 + * @return step + */ + public Integer getStep() { + return step; + } + + public void setStep(Integer step) { + this.step = step; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DiskAutoExpansionPolicy that = (DiskAutoExpansionPolicy) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.threshold, that.threshold) + && Objects.equals(this.step, that.step); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, threshold, step); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DiskAutoExpansionPolicy {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" threshold: ").append(toIndentedString(threshold)).append("\n"); + sb.append(" step: ").append(toIndentedString(step)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ListScheduledTasksRequest.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ListScheduledTasksRequest.java new file mode 100644 index 0000000000..bcb972bc06 --- /dev/null +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ListScheduledTasksRequest.java @@ -0,0 +1,213 @@ +package com.huaweicloud.sdk.dds.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListScheduledTasksRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_name") + + private String jobName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_status") + + private String jobStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "start_time") + + private String startTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "end_time") + + private String endTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + public ListScheduledTasksRequest withJobName(String jobName) { + this.jobName = jobName; + return this; + } + + /** + * 任务名称,默认为空。对应取值如下: \"RESIZE_FLAVOR\":变更实例的CPU和内存规格 + * @return jobName + */ + public String getJobName() { + return jobName; + } + + public void setJobName(String jobName) { + this.jobName = jobName; + } + + public ListScheduledTasksRequest withJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + return this; + } + + /** + * 任务执行状态,默认为空。 取值: 值为\"Pending\",表示任务未执行。 值为\"Running\",表示任务正在执行。 值为\"Completed\",表示任务执行成功。 值为\"Failed\",表示任务执行失败。 值为\"Canceled\",表示任务取消执行。 + * @return jobStatus + */ + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public ListScheduledTasksRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID,不传该值默认查所有符合条件的实例。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ListScheduledTasksRequest withStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * 任务创建起始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100,不传默认为当前时间前七天。 + * @return startTime + */ + public String getStartTime() { + return startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public ListScheduledTasksRequest withEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * 任务创建结束时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100,不传默认为当前时间。 + * @return endTime + */ + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public ListScheduledTasksRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0。 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListScheduledTasksRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 查询记录数。不传该参数时,默认为10,取值范围1-100。 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListScheduledTasksRequest that = (ListScheduledTasksRequest) obj; + return Objects.equals(this.jobName, that.jobName) && Objects.equals(this.jobStatus, that.jobStatus) + && Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.startTime, that.startTime) + && Objects.equals(this.endTime, that.endTime) && Objects.equals(this.offset, that.offset) + && Objects.equals(this.limit, that.limit); + } + + @Override + public int hashCode() { + return Objects.hash(jobName, jobStatus, instanceId, startTime, endTime, offset, limit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListScheduledTasksRequest {\n"); + sb.append(" jobName: ").append(toIndentedString(jobName)).append("\n"); + sb.append(" jobStatus: ").append(toIndentedString(jobStatus)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ListScheduledTasksResponse.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ListScheduledTasksResponse.java new file mode 100644 index 0000000000..4f25a20ef4 --- /dev/null +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ListScheduledTasksResponse.java @@ -0,0 +1,115 @@ +package com.huaweicloud.sdk.dds.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListScheduledTasksResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_count") + + private Integer totalCount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schedules") + + private List schedules = null; + + public ListScheduledTasksResponse withTotalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * 记录数量 + * @return totalCount + */ + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public ListScheduledTasksResponse withSchedules(List schedules) { + this.schedules = schedules; + return this; + } + + public ListScheduledTasksResponse addSchedulesItem(ScheduledTasksRspSchedules schedulesItem) { + if (this.schedules == null) { + this.schedules = new ArrayList<>(); + } + this.schedules.add(schedulesItem); + return this; + } + + public ListScheduledTasksResponse withSchedules(Consumer> schedulesSetter) { + if (this.schedules == null) { + this.schedules = new ArrayList<>(); + } + schedulesSetter.accept(this.schedules); + return this; + } + + /** + * 任务详情 + * @return schedules + */ + public List getSchedules() { + return schedules; + } + + public void setSchedules(List schedules) { + this.schedules = schedules; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListScheduledTasksResponse that = (ListScheduledTasksResponse) obj; + return Objects.equals(this.totalCount, that.totalCount) && Objects.equals(this.schedules, that.schedules); + } + + @Override + public int hashCode() { + return Objects.hash(totalCount, schedules); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListScheduledTasksResponse {\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" schedules: ").append(toIndentedString(schedules)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ScheduledTasksRspSchedules.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ScheduledTasksRspSchedules.java new file mode 100644 index 0000000000..0020246b4d --- /dev/null +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ScheduledTasksRspSchedules.java @@ -0,0 +1,262 @@ +package com.huaweicloud.sdk.dds.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * ScheduledTasksRspSchedules + */ +public class ScheduledTasksRspSchedules { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_name") + + private String jobName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_status") + + private String jobStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_name") + + private String instanceName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_status") + + private String instanceStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "start_time") + + private String startTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "end_time") + + private String endTime; + + public ScheduledTasksRspSchedules withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 任务ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public ScheduledTasksRspSchedules withJobName(String jobName) { + this.jobName = jobName; + return this; + } + + /** + * 任务名称。对应取值如下: \"RESIZE_FLAVOR\":变更实例的CPU和内存规格 + * @return jobName + */ + public String getJobName() { + return jobName; + } + + public void setJobName(String jobName) { + this.jobName = jobName; + } + + public ScheduledTasksRspSchedules withJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + return this; + } + + /** + * 任务执行状态。 取值: 值为\"Running\",表示任务正在执行。 值为\"Completed\",表示任务执行成功。 值为\"Failed\",表示任务执行失败。 值为\"Pending\",表示任务未执行。 + * @return jobStatus + */ + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public ScheduledTasksRspSchedules withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ScheduledTasksRspSchedules withInstanceName(String instanceName) { + this.instanceName = instanceName; + return this; + } + + /** + * 实例名称。 + * @return instanceName + */ + public String getInstanceName() { + return instanceName; + } + + public void setInstanceName(String instanceName) { + this.instanceName = instanceName; + } + + public ScheduledTasksRspSchedules withInstanceStatus(String instanceStatus) { + this.instanceStatus = instanceStatus; + return this; + } + + /** + * 实例状态。 取值: 值为“createfail”,表示实例创建失败。 值为“creating”,表示实例创建中。 值为“normal”,表示实例正常。 值为“abnormal”,表示实例异常。 值为“deleted”,表示实例已删除。 + * @return instanceStatus + */ + public String getInstanceStatus() { + return instanceStatus; + } + + public void setInstanceStatus(String instanceStatus) { + this.instanceStatus = instanceStatus; + } + + public ScheduledTasksRspSchedules withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 任务创建时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public ScheduledTasksRspSchedules withStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * 任务开始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + * @return startTime + */ + public String getStartTime() { + return startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public ScheduledTasksRspSchedules withEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * 任务结束时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + * @return endTime + */ + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ScheduledTasksRspSchedules that = (ScheduledTasksRspSchedules) obj; + return Objects.equals(this.jobId, that.jobId) && Objects.equals(this.jobName, that.jobName) + && Objects.equals(this.jobStatus, that.jobStatus) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.instanceName, that.instanceName) + && Objects.equals(this.instanceStatus, that.instanceStatus) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.startTime, that.startTime) + && Objects.equals(this.endTime, that.endTime); + } + + @Override + public int hashCode() { + return Objects + .hash(jobId, jobName, jobStatus, instanceId, instanceName, instanceStatus, createTime, startTime, endTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ScheduledTasksRspSchedules {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" jobName: ").append(toIndentedString(jobName)).append("\n"); + sb.append(" jobStatus: ").append(toIndentedString(jobStatus)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" instanceName: ").append(toIndentedString(instanceName)).append("\n"); + sb.append(" instanceStatus: ").append(toIndentedString(instanceStatus)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/ChangeVolumeChargeModeRequest.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/SetAutoEnlargePoliciesRequest.java similarity index 68% rename from services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/ChangeVolumeChargeModeRequest.java rename to services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/SetAutoEnlargePoliciesRequest.java index 9d667c7d65..ec72584ecd 100644 --- a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/ChangeVolumeChargeModeRequest.java +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/SetAutoEnlargePoliciesRequest.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.evs.v2.model; +package com.huaweicloud.sdk.dds.v3.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -9,21 +9,21 @@ /** * Request Object */ -public class ChangeVolumeChargeModeRequest { +public class SetAutoEnlargePoliciesRequest { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "body") - private ChangeVolumeChargeModeRequestBody body; + private SetAutoEnlargePoliciesRequestBody body; - public ChangeVolumeChargeModeRequest withBody(ChangeVolumeChargeModeRequestBody body) { + public SetAutoEnlargePoliciesRequest withBody(SetAutoEnlargePoliciesRequestBody body) { this.body = body; return this; } - public ChangeVolumeChargeModeRequest withBody(Consumer bodySetter) { + public SetAutoEnlargePoliciesRequest withBody(Consumer bodySetter) { if (this.body == null) { - this.body = new ChangeVolumeChargeModeRequestBody(); + this.body = new SetAutoEnlargePoliciesRequestBody(); bodySetter.accept(this.body); } @@ -34,11 +34,11 @@ public ChangeVolumeChargeModeRequest withBody(Consumer policies = null; + + public SetAutoEnlargePoliciesRequestBody withSwitchOption(String switchOption) { + this.switchOption = switchOption; + return this; + } + + /** + * 自动扩容开关。 - on:开启磁盘自动扩容策略。 - off: 关闭磁盘自动扩容策略。 默认值为on。 + * @return switchOption + */ + public String getSwitchOption() { + return switchOption; + } + + public void setSwitchOption(String switchOption) { + this.switchOption = switchOption; + } + + public SetAutoEnlargePoliciesRequestBody withPolicies(List policies) { + this.policies = policies; + return this; + } + + public SetAutoEnlargePoliciesRequestBody addPoliciesItem(DiskAutoExpansionPolicy policiesItem) { + if (this.policies == null) { + this.policies = new ArrayList<>(); + } + this.policies.add(policiesItem); + return this; + } + + public SetAutoEnlargePoliciesRequestBody withPolicies(Consumer> policiesSetter) { + if (this.policies == null) { + this.policies = new ArrayList<>(); + } + policiesSetter.accept(this.policies); + return this; + } + + /** + * 磁盘自动扩容策略。 最大支持设置10个实例的策略。 + * @return policies + */ + public List getPolicies() { + return policies; + } + + public void setPolicies(List policies) { + this.policies = policies; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SetAutoEnlargePoliciesRequestBody that = (SetAutoEnlargePoliciesRequestBody) obj; + return Objects.equals(this.switchOption, that.switchOption) && Objects.equals(this.policies, that.policies); + } + + @Override + public int hashCode() { + return Objects.hash(switchOption, policies); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SetAutoEnlargePoliciesRequestBody {\n"); + sb.append(" switchOption: ").append(toIndentedString(switchOption)).append("\n"); + sb.append(" policies: ").append(toIndentedString(policies)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/SetAutoEnlargePoliciesResponse.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/SetAutoEnlargePoliciesResponse.java new file mode 100644 index 0000000000..cec3e0a09a --- /dev/null +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/SetAutoEnlargePoliciesResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.dds.v3.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class SetAutoEnlargePoliciesResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SetAutoEnlargePoliciesResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/BssParam2.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ShowAutoEnlargePolicyRequest.java similarity index 54% rename from services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/BssParam2.java rename to services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ShowAutoEnlargePolicyRequest.java index 6792eca86e..5fd08a69e2 100644 --- a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/BssParam2.java +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ShowAutoEnlargePolicyRequest.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.evs.v2.model; +package com.huaweicloud.sdk.dds.v3.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -6,30 +6,30 @@ import java.util.Objects; /** - * 包周期参数: 1. 包年包月的计量属性 2. 包年包月的数量 + * Request Object */ -public class BssParam2 { +public class ShowAutoEnlargePolicyRequest { @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "is_auto_pay") + @JsonProperty(value = "instance_id") - private Boolean isAutoPay; + private String instanceId; - public BssParam2 withIsAutoPay(Boolean isAutoPay) { - this.isAutoPay = isAutoPay; + public ShowAutoEnlargePolicyRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; return this; } /** - * 云硬盘的计费模式转成包周期后,是否自动支付 - * @return isAutoPay + * 实例ID。 + * @return instanceId */ - public Boolean getIsAutoPay() { - return isAutoPay; + public String getInstanceId() { + return instanceId; } - public void setIsAutoPay(Boolean isAutoPay) { - this.isAutoPay = isAutoPay; + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; } @Override @@ -40,20 +40,20 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - BssParam2 that = (BssParam2) obj; - return Objects.equals(this.isAutoPay, that.isAutoPay); + ShowAutoEnlargePolicyRequest that = (ShowAutoEnlargePolicyRequest) obj; + return Objects.equals(this.instanceId, that.instanceId); } @Override public int hashCode() { - return Objects.hash(isAutoPay); + return Objects.hash(instanceId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class BssParam2 {\n"); - sb.append(" isAutoPay: ").append(toIndentedString(isAutoPay)).append("\n"); + sb.append("class ShowAutoEnlargePolicyRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ShowAutoEnlargePolicyResponse.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ShowAutoEnlargePolicyResponse.java new file mode 100644 index 0000000000..3ae0d74a41 --- /dev/null +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ShowAutoEnlargePolicyResponse.java @@ -0,0 +1,106 @@ +package com.huaweicloud.sdk.dds.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowAutoEnlargePolicyResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "switch_option") + + private String switchOption; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "policy") + + private DiskAutoExpansionPolicy policy; + + public ShowAutoEnlargePolicyResponse withSwitchOption(String switchOption) { + this.switchOption = switchOption; + return this; + } + + /** + * 自动扩容开关。 - on:开启磁盘自动扩容策略。 - off: 关闭磁盘自动扩容策略。 默认值为on。 + * @return switchOption + */ + public String getSwitchOption() { + return switchOption; + } + + public void setSwitchOption(String switchOption) { + this.switchOption = switchOption; + } + + public ShowAutoEnlargePolicyResponse withPolicy(DiskAutoExpansionPolicy policy) { + this.policy = policy; + return this; + } + + public ShowAutoEnlargePolicyResponse withPolicy(Consumer policySetter) { + if (this.policy == null) { + this.policy = new DiskAutoExpansionPolicy(); + policySetter.accept(this.policy); + } + + return this; + } + + /** + * Get policy + * @return policy + */ + public DiskAutoExpansionPolicy getPolicy() { + return policy; + } + + public void setPolicy(DiskAutoExpansionPolicy policy) { + this.policy = policy; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowAutoEnlargePolicyResponse that = (ShowAutoEnlargePolicyResponse) obj; + return Objects.equals(this.switchOption, that.switchOption) && Objects.equals(this.policy, that.policy); + } + + @Override + public int hashCode() { + return Objects.hash(switchOption, policy); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowAutoEnlargePolicyResponse {\n"); + sb.append(" switchOption: ").append(toIndentedString(switchOption)).append("\n"); + sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ShowInstanceConfigurationModifyHistoryRequest.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ShowInstanceConfigurationModifyHistoryRequest.java new file mode 100644 index 0000000000..d8670c10ec --- /dev/null +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ShowInstanceConfigurationModifyHistoryRequest.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.dds.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowInstanceConfigurationModifyHistoryRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + public ShowInstanceConfigurationModifyHistoryRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ShowInstanceConfigurationModifyHistoryRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 索引位置,偏移量。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。 取值必须为数字,不能为负数。 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ShowInstanceConfigurationModifyHistoryRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 查询个数上限值。 - 取值范围: 1~100。 - 不传该参数时,默认查询前100条信息。 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowInstanceConfigurationModifyHistoryRequest that = (ShowInstanceConfigurationModifyHistoryRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.offset, that.offset) + && Objects.equals(this.limit, that.limit); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, offset, limit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowInstanceConfigurationModifyHistoryRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ShowInstanceConfigurationModifyHistoryResponse.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ShowInstanceConfigurationModifyHistoryResponse.java new file mode 100644 index 0000000000..c0759d1f8b --- /dev/null +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ShowInstanceConfigurationModifyHistoryResponse.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.dds.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowInstanceConfigurationModifyHistoryResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "histories") + + private List histories = null; + + public ShowInstanceConfigurationModifyHistoryResponse withHistories( + List histories) { + this.histories = histories; + return this; + } + + public ShowInstanceConfigurationModifyHistoryResponse addHistoriesItem( + ConfigurationModifyHistoryInfo historiesItem) { + if (this.histories == null) { + this.histories = new ArrayList<>(); + } + this.histories.add(historiesItem); + return this; + } + + public ShowInstanceConfigurationModifyHistoryResponse withHistories( + Consumer> historiesSetter) { + if (this.histories == null) { + this.histories = new ArrayList<>(); + } + historiesSetter.accept(this.histories); + return this; + } + + /** + * 实例参数的修改历史列表。 + * @return histories + */ + public List getHistories() { + return histories; + } + + public void setHistories(List histories) { + this.histories = histories; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowInstanceConfigurationModifyHistoryResponse that = (ShowInstanceConfigurationModifyHistoryResponse) obj; + return Objects.equals(this.histories, that.histories); + } + + @Override + public int hashCode() { + return Objects.hash(histories); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowInstanceConfigurationModifyHistoryResponse {\n"); + sb.append(" histories: ").append(toIndentedString(histories)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/UpgradeResult.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/UpgradeResult.java new file mode 100644 index 0000000000..f0f0d045fb --- /dev/null +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/UpgradeResult.java @@ -0,0 +1,142 @@ +package com.huaweicloud.sdk.dds.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 数据库补丁升级结果 + */ +public class UpgradeResult { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error_code") + + private String errorCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error_message") + + private String errorMessage; + + public UpgradeResult withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 任务ID。仅当补丁版本升级任务提交成功时返回该字段。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public UpgradeResult withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public UpgradeResult withErrorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * 错误码。仅当补丁版本升级任务提交失败时返回该字段。 + * @return errorCode + */ + public String getErrorCode() { + return errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public UpgradeResult withErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + /** + * 失败原因。仅当补丁版本升级任务提交失败时返回该字段。 + * @return errorMessage + */ + public String getErrorMessage() { + return errorMessage; + } + + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpgradeResult that = (UpgradeResult) obj; + return Objects.equals(this.jobId, that.jobId) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.errorCode, that.errorCode) && Objects.equals(this.errorMessage, that.errorMessage); + } + + @Override + public int hashCode() { + return Objects.hash(jobId, instanceId, errorCode, errorMessage); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpgradeResult {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ValidateConfigurationNameRequest.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ValidateConfigurationNameRequest.java new file mode 100644 index 0000000000..c68348da9e --- /dev/null +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ValidateConfigurationNameRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.dds.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ValidateConfigurationNameRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + public ValidateConfigurationNameRequest withName(String name) { + this.name = name; + return this; + } + + /** + * 参数模板名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ValidateConfigurationNameRequest that = (ValidateConfigurationNameRequest) obj; + return Objects.equals(this.name, that.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ValidateConfigurationNameRequest {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ValidateConfigurationNameResponse.java b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ValidateConfigurationNameResponse.java new file mode 100644 index 0000000000..209a180797 --- /dev/null +++ b/services/dds/src/main/java/com/huaweicloud/sdk/dds/v3/model/ValidateConfigurationNameResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.dds.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ValidateConfigurationNameResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_existed") + + private Boolean isExisted; + + public ValidateConfigurationNameResponse withIsExisted(Boolean isExisted) { + this.isExisted = isExisted; + return this; + } + + /** + * 参数组名称是否存在。 - true:参数组名称存在 - false:参数组名称不存在 + * @return isExisted + */ + public Boolean getIsExisted() { + return isExisted; + } + + public void setIsExisted(Boolean isExisted) { + this.isExisted = isExisted; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ValidateConfigurationNameResponse that = (ValidateConfigurationNameResponse) obj; + return Objects.equals(this.isExisted, that.isExisted); + } + + @Override + public int hashCode() { + return Objects.hash(isExisted); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ValidateConfigurationNameResponse {\n"); + sb.append(" isExisted: ").append(toIndentedString(isExisted)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/deh/pom.xml b/services/deh/pom.xml index 5cbe654d2f..c8633958d0 100644 --- a/services/deh/pom.xml +++ b/services/deh/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-deh - 3.1.121 + 3.1.122 Huawei Cloud SDK for DEH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/devstar/pom.xml b/services/devstar/pom.xml index 888ea7f14f..c68cd1b5d5 100644 --- a/services/devstar/pom.xml +++ b/services/devstar/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-devstar - 3.1.121 + 3.1.122 Huawei Cloud SDK for DEVSTAR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/dgc/pom.xml b/services/dgc/pom.xml index d7eb8e3a3f..f911619a4e 100644 --- a/services/dgc/pom.xml +++ b/services/dgc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-dgc - 3.1.121 + 3.1.122 Huawei Cloud SDK for DGC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/dis/pom.xml b/services/dis/pom.xml index 01aeff70e3..d145a59a5e 100644 --- a/services/dis/pom.xml +++ b/services/dis/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-dis - 3.1.121 + 3.1.122 Huawei Cloud SDK for DIS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/dlf/pom.xml b/services/dlf/pom.xml index bba67ccc14..a6d3767558 100644 --- a/services/dlf/pom.xml +++ b/services/dlf/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-dlf - 3.1.121 + 3.1.122 Huawei Cloud SDK for DLF 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/dli/pom.xml b/services/dli/pom.xml index 1328e3ef47..c165454f33 100644 --- a/services/dli/pom.xml +++ b/services/dli/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-dli - 3.1.121 + 3.1.122 Huawei Cloud SDK for DLI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/dns/pom.xml b/services/dns/pom.xml index 34cb3b0735..0fb144c67f 100644 --- a/services/dns/pom.xml +++ b/services/dns/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-dns - 3.1.121 + 3.1.122 Huawei Cloud SDK for DNS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/dris/pom.xml b/services/dris/pom.xml index 5a1247a74d..915f99d548 100644 --- a/services/dris/pom.xml +++ b/services/dris/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-dris - 3.1.121 + 3.1.122 Huawei Cloud SDK for DRIS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/drs/pom.xml b/services/drs/pom.xml index e8077b66ed..d343fefbe8 100644 --- a/services/drs/pom.xml +++ b/services/drs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-drs - 3.1.121 + 3.1.122 Huawei Cloud SDK for DRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/dsc/pom.xml b/services/dsc/pom.xml index c9f15687d3..7aeed5c9cc 100644 --- a/services/dsc/pom.xml +++ b/services/dsc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-dsc - 3.1.121 + 3.1.122 Huawei Cloud SDK for DSC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/dss/pom.xml b/services/dss/pom.xml index 05585527e5..c861a6852f 100644 --- a/services/dss/pom.xml +++ b/services/dss/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-dss - 3.1.121 + 3.1.122 Huawei Cloud SDK for DSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/dwr/pom.xml b/services/dwr/pom.xml index 20773b7a4b..ec18570e02 100644 --- a/services/dwr/pom.xml +++ b/services/dwr/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-dwr - 3.1.121 + 3.1.122 Huawei Cloud SDK for DWR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/dws/pom.xml b/services/dws/pom.xml index 62c2ee2742..35d88da2df 100644 --- a/services/dws/pom.xml +++ b/services/dws/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-dws - 3.1.121 + 3.1.122 Huawei Cloud SDK for DWS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/DwsAsyncClient.java b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/DwsAsyncClient.java index 830d62b692..d4c49dd5df 100644 --- a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/DwsAsyncClient.java +++ b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/DwsAsyncClient.java @@ -277,10 +277,14 @@ import com.huaweicloud.sdk.dws.v2.model.ShowWorkloadQueueResponse; import com.huaweicloud.sdk.dws.v2.model.ShrinkClusterRequest; import com.huaweicloud.sdk.dws.v2.model.ShrinkClusterResponse; +import com.huaweicloud.sdk.dws.v2.model.StartClusterRequest; +import com.huaweicloud.sdk.dws.v2.model.StartClusterResponse; import com.huaweicloud.sdk.dws.v2.model.StartDisasterRecoveryRequest; import com.huaweicloud.sdk.dws.v2.model.StartDisasterRecoveryResponse; import com.huaweicloud.sdk.dws.v2.model.StartWorkloadPlanRequest; import com.huaweicloud.sdk.dws.v2.model.StartWorkloadPlanResponse; +import com.huaweicloud.sdk.dws.v2.model.StopClusterRequest; +import com.huaweicloud.sdk.dws.v2.model.StopClusterResponse; import com.huaweicloud.sdk.dws.v2.model.StopRedistributionRequest; import com.huaweicloud.sdk.dws.v2.model.StopRedistributionResponse; import com.huaweicloud.sdk.dws.v2.model.StopWorkloadPlanRequest; @@ -4411,6 +4415,35 @@ public AsyncInvoker shrinkClusterAs return new AsyncInvoker<>(request, DwsMeta.shrinkCluster, hcClient); } + /** + * 启动集群 + * + * 集群管理-启动集群 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request StartClusterRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture startClusterAsync(StartClusterRequest request) { + return hcClient.asyncInvokeHttp(request, DwsMeta.startCluster); + } + + /** + * 启动集群 + * + * 集群管理-启动集群 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request StartClusterRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker startClusterAsyncInvoker( + StartClusterRequest request) { + return new AsyncInvoker<>(request, DwsMeta.startCluster, hcClient); + } + /** * 启动容灾 * @@ -4478,6 +4511,34 @@ public AsyncInvoker startWo return new AsyncInvoker<>(request, DwsMeta.startWorkloadPlan, hcClient); } + /** + * 停止集群 + * + * 集群管理-停止集群 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request StopClusterRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture stopClusterAsync(StopClusterRequest request) { + return hcClient.asyncInvokeHttp(request, DwsMeta.stopCluster); + } + + /** + * 停止集群 + * + * 集群管理-停止集群 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request StopClusterRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker stopClusterAsyncInvoker(StopClusterRequest request) { + return new AsyncInvoker<>(request, DwsMeta.stopCluster, hcClient); + } + /** * 暂停重分布 * diff --git a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/DwsClient.java b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/DwsClient.java index ab5b978bc2..7a5ef263c8 100644 --- a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/DwsClient.java +++ b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/DwsClient.java @@ -277,10 +277,14 @@ import com.huaweicloud.sdk.dws.v2.model.ShowWorkloadQueueResponse; import com.huaweicloud.sdk.dws.v2.model.ShrinkClusterRequest; import com.huaweicloud.sdk.dws.v2.model.ShrinkClusterResponse; +import com.huaweicloud.sdk.dws.v2.model.StartClusterRequest; +import com.huaweicloud.sdk.dws.v2.model.StartClusterResponse; import com.huaweicloud.sdk.dws.v2.model.StartDisasterRecoveryRequest; import com.huaweicloud.sdk.dws.v2.model.StartDisasterRecoveryResponse; import com.huaweicloud.sdk.dws.v2.model.StartWorkloadPlanRequest; import com.huaweicloud.sdk.dws.v2.model.StartWorkloadPlanResponse; +import com.huaweicloud.sdk.dws.v2.model.StopClusterRequest; +import com.huaweicloud.sdk.dws.v2.model.StopClusterResponse; import com.huaweicloud.sdk.dws.v2.model.StopRedistributionRequest; import com.huaweicloud.sdk.dws.v2.model.StopRedistributionResponse; import com.huaweicloud.sdk.dws.v2.model.StopWorkloadPlanRequest; @@ -4345,6 +4349,34 @@ public SyncInvoker shrinkClusterInv return new SyncInvoker<>(request, DwsMeta.shrinkCluster, hcClient); } + /** + * 启动集群 + * + * 集群管理-启动集群 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request StartClusterRequest 请求对象 + * @return StartClusterResponse + */ + public StartClusterResponse startCluster(StartClusterRequest request) { + return hcClient.syncInvokeHttp(request, DwsMeta.startCluster); + } + + /** + * 启动集群 + * + * 集群管理-启动集群 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request StartClusterRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker startClusterInvoker(StartClusterRequest request) { + return new SyncInvoker<>(request, DwsMeta.startCluster, hcClient); + } + /** * 启动容灾 * @@ -4411,6 +4443,34 @@ public SyncInvoker startWor return new SyncInvoker<>(request, DwsMeta.startWorkloadPlan, hcClient); } + /** + * 停止集群 + * + * 集群管理-停止集群 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request StopClusterRequest 请求对象 + * @return StopClusterResponse + */ + public StopClusterResponse stopCluster(StopClusterRequest request) { + return hcClient.syncInvokeHttp(request, DwsMeta.stopCluster); + } + + /** + * 停止集群 + * + * 集群管理-停止集群 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request StopClusterRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker stopClusterInvoker(StopClusterRequest request) { + return new SyncInvoker<>(request, DwsMeta.stopCluster, hcClient); + } + /** * 暂停重分布 * diff --git a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/DwsMeta.java b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/DwsMeta.java index 2a0de81046..38ea805aac 100644 --- a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/DwsMeta.java +++ b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/DwsMeta.java @@ -325,10 +325,14 @@ import com.huaweicloud.sdk.dws.v2.model.ShowWorkloadQueueResponse; import com.huaweicloud.sdk.dws.v2.model.ShrinkClusterRequest; import com.huaweicloud.sdk.dws.v2.model.ShrinkClusterResponse; +import com.huaweicloud.sdk.dws.v2.model.StartClusterRequest; +import com.huaweicloud.sdk.dws.v2.model.StartClusterResponse; import com.huaweicloud.sdk.dws.v2.model.StartDisasterRecoveryRequest; import com.huaweicloud.sdk.dws.v2.model.StartDisasterRecoveryResponse; import com.huaweicloud.sdk.dws.v2.model.StartWorkloadPlanRequest; import com.huaweicloud.sdk.dws.v2.model.StartWorkloadPlanResponse; +import com.huaweicloud.sdk.dws.v2.model.StopClusterRequest; +import com.huaweicloud.sdk.dws.v2.model.StopClusterResponse; import com.huaweicloud.sdk.dws.v2.model.StopRedistributionRequest; import com.huaweicloud.sdk.dws.v2.model.StopRedistributionResponse; import com.huaweicloud.sdk.dws.v2.model.StopWorkloadPlanRequest; @@ -4589,6 +4593,28 @@ private static HttpRequestDef genFo return builder.build(); } + public static final HttpRequestDef startCluster = genForStartCluster(); + + private static HttpRequestDef genForStartCluster() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, StartClusterRequest.class, StartClusterResponse.class) + .withName("StartCluster") + .withUri("/v1/{project_id}/clusters/{cluster_id}/start") + .withContentType("application/json"); + + // requests + builder.withRequestField("cluster_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(StartClusterRequest::getClusterId, StartClusterRequest::setClusterId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef startDisasterRecovery = genForStartDisasterRecovery(); @@ -4641,6 +4667,28 @@ private static HttpRequestDef stopCluster = genForStopCluster(); + + private static HttpRequestDef genForStopCluster() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, StopClusterRequest.class, StopClusterResponse.class) + .withName("StopCluster") + .withUri("/v1/{project_id}/clusters/{cluster_id}/stop") + .withContentType("application/json"); + + // requests + builder.withRequestField("cluster_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(StopClusterRequest::getClusterId, StopClusterRequest::setClusterId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef stopRedistribution = genForStopRedistribution(); diff --git a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/StartClusterRequest.java b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/StartClusterRequest.java new file mode 100644 index 0000000000..baa8850491 --- /dev/null +++ b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/StartClusterRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.dws.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class StartClusterRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cluster_id") + + private String clusterId; + + public StartClusterRequest withClusterId(String clusterId) { + this.clusterId = clusterId; + return this; + } + + /** + * 集群ID + * @return clusterId + */ + public String getClusterId() { + return clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StartClusterRequest that = (StartClusterRequest) obj; + return Objects.equals(this.clusterId, that.clusterId); + } + + @Override + public int hashCode() { + return Objects.hash(clusterId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StartClusterRequest {\n"); + sb.append(" clusterId: ").append(toIndentedString(clusterId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/TaskSumbitResponseResult.java b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/StartClusterResponse.java similarity index 76% rename from services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/TaskSumbitResponseResult.java rename to services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/StartClusterResponse.java index 925f0cd58e..4378113e10 100644 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/TaskSumbitResponseResult.java +++ b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/StartClusterResponse.java @@ -1,27 +1,28 @@ -package com.huaweicloud.sdk.moderation.v2.model; +package com.huaweicloud.sdk.dws.v2.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; /** - * 调用成功时表示调用结果。 调用失败时无此字段。 + * Response Object */ -public class TaskSumbitResponseResult { +public class StartClusterResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "job_id") private String jobId; - public TaskSumbitResponseResult withJobId(String jobId) { + public StartClusterResponse withJobId(String jobId) { this.jobId = jobId; return this; } /** - * 批量图像内容审核的任务标识,用于后续的结果查询。 + * 启动集群jobId * @return jobId */ public String getJobId() { @@ -40,7 +41,7 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - TaskSumbitResponseResult that = (TaskSumbitResponseResult) obj; + StartClusterResponse that = (StartClusterResponse) obj; return Objects.equals(this.jobId, that.jobId); } @@ -52,7 +53,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class TaskSumbitResponseResult {\n"); + sb.append("class StartClusterResponse {\n"); sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/StopClusterRequest.java b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/StopClusterRequest.java new file mode 100644 index 0000000000..22b74649f7 --- /dev/null +++ b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/StopClusterRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.dws.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class StopClusterRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cluster_id") + + private String clusterId; + + public StopClusterRequest withClusterId(String clusterId) { + this.clusterId = clusterId; + return this; + } + + /** + * 集群ID + * @return clusterId + */ + public String getClusterId() { + return clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StopClusterRequest that = (StopClusterRequest) obj; + return Objects.equals(this.clusterId, that.clusterId); + } + + @Override + public int hashCode() { + return Objects.hash(clusterId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StopClusterRequest {\n"); + sb.append(" clusterId: ").append(toIndentedString(clusterId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/StopClusterResponse.java b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/StopClusterResponse.java new file mode 100644 index 0000000000..bdda87979a --- /dev/null +++ b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/StopClusterResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.dws.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class StopClusterResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + public StopClusterResponse withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 停止集群jobId + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StopClusterResponse that = (StopClusterResponse) obj; + return Objects.equals(this.jobId, that.jobId); + } + + @Override + public int hashCode() { + return Objects.hash(jobId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StopClusterResponse {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/ec/pom.xml b/services/ec/pom.xml index 4bdff55cbf..eac178bda2 100644 --- a/services/ec/pom.xml +++ b/services/ec/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-ec - 3.1.121 + 3.1.122 Huawei Cloud SDK for EC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/ecs/pom.xml b/services/ecs/pom.xml index befe559dbd..a56c7e27c0 100644 --- a/services/ecs/pom.xml +++ b/services/ecs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-ecs - 3.1.121 + 3.1.122 Huawei Cloud SDK for ECS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 ch.qos.logback diff --git a/services/edgesec/pom.xml b/services/edgesec/pom.xml index ff8b5b9802..23407c3190 100644 --- a/services/edgesec/pom.xml +++ b/services/edgesec/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-edgesec - 3.1.121 + 3.1.122 Huawei Cloud SDK for EDGESEC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/eds/pom.xml b/services/eds/pom.xml index 634d70f44f..7095642f47 100644 --- a/services/eds/pom.xml +++ b/services/eds/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-eds - 3.1.121 + 3.1.122 Huawei Cloud SDK for EDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/eg/pom.xml b/services/eg/pom.xml index 1b07160634..782f8d7293 100644 --- a/services/eg/pom.xml +++ b/services/eg/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-eg - 3.1.121 + 3.1.122 Huawei Cloud SDK for EG 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/eihealth/pom.xml b/services/eihealth/pom.xml index 98aa800aab..98a3b22cd6 100644 --- a/services/eihealth/pom.xml +++ b/services/eihealth/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-eihealth - 3.1.121 + 3.1.122 Huawei Cloud SDK for EIHEALTH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/eip/pom.xml b/services/eip/pom.xml index d0a18f3fbd..1299049262 100644 --- a/services/eip/pom.xml +++ b/services/eip/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-eip - 3.1.121 + 3.1.122 Huawei Cloud SDK for EIP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/elb/pom.xml b/services/elb/pom.xml index 52e8b78464..ab0172a029 100644 --- a/services/elb/pom.xml +++ b/services/elb/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-elb - 3.1.121 + 3.1.122 Huawei Cloud SDK for ELB 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/eps/pom.xml b/services/eps/pom.xml index 701bf3d647..2b234316d9 100644 --- a/services/eps/pom.xml +++ b/services/eps/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-eps - 3.1.121 + 3.1.122 Huawei Cloud SDK for EPS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/er/pom.xml b/services/er/pom.xml index 0b47ef14ea..0bdbfd706d 100644 --- a/services/er/pom.xml +++ b/services/er/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-er - 3.1.121 + 3.1.122 Huawei Cloud SDK for ER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/evs/pom.xml b/services/evs/pom.xml index 491b2bdd40..7e948976ce 100644 --- a/services/evs/pom.xml +++ b/services/evs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-evs - 3.1.121 + 3.1.122 Huawei Cloud SDK for EVS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/EvsAsyncClient.java b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/EvsAsyncClient.java index 378a6c076d..6f0ddb4e0b 100644 --- a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/EvsAsyncClient.java +++ b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/EvsAsyncClient.java @@ -7,8 +7,6 @@ import com.huaweicloud.sdk.evs.v2.model.BatchCreateVolumeTagsResponse; import com.huaweicloud.sdk.evs.v2.model.BatchDeleteVolumeTagsRequest; import com.huaweicloud.sdk.evs.v2.model.BatchDeleteVolumeTagsResponse; -import com.huaweicloud.sdk.evs.v2.model.ChangeVolumeChargeModeRequest; -import com.huaweicloud.sdk.evs.v2.model.ChangeVolumeChargeModeResponse; import com.huaweicloud.sdk.evs.v2.model.CinderAcceptVolumeTransferRequest; import com.huaweicloud.sdk.evs.v2.model.CinderAcceptVolumeTransferResponse; import com.huaweicloud.sdk.evs.v2.model.CinderCreateVolumeTransferRequest; @@ -61,8 +59,6 @@ import com.huaweicloud.sdk.evs.v2.model.ShowVolumeResponse; import com.huaweicloud.sdk.evs.v2.model.ShowVolumeTagsRequest; import com.huaweicloud.sdk.evs.v2.model.ShowVolumeTagsResponse; -import com.huaweicloud.sdk.evs.v2.model.UnsubscribePostpaidVolumeRequest; -import com.huaweicloud.sdk.evs.v2.model.UnsubscribePostpaidVolumeResponse; import com.huaweicloud.sdk.evs.v2.model.UpdateSnapshotRequest; import com.huaweicloud.sdk.evs.v2.model.UpdateSnapshotResponse; import com.huaweicloud.sdk.evs.v2.model.UpdateVolumeRequest; @@ -149,36 +145,6 @@ public AsyncInvoker return new AsyncInvoker<>(request, EvsMeta.batchDeleteVolumeTags, hcClient); } - /** - * 修改云硬盘计费模式 - * - * 将挂载状态下的云硬盘的计费模式有按需转成包周期,且到期时间和挂载的虚拟机保持一致。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ChangeVolumeChargeModeRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture changeVolumeChargeModeAsync( - ChangeVolumeChargeModeRequest request) { - return hcClient.asyncInvokeHttp(request, EvsMeta.changeVolumeChargeMode); - } - - /** - * 修改云硬盘计费模式 - * - * 将挂载状态下的云硬盘的计费模式有按需转成包周期,且到期时间和挂载的虚拟机保持一致。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ChangeVolumeChargeModeRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker changeVolumeChargeModeAsyncInvoker( - ChangeVolumeChargeModeRequest request) { - return new AsyncInvoker<>(request, EvsMeta.changeVolumeChargeMode, hcClient); - } - /** * 接受云硬盘过户 * @@ -913,40 +879,6 @@ public AsyncInvoker showVolumeTag return new AsyncInvoker<>(request, EvsMeta.showVolumeTags, hcClient); } - /** - * 退订包周期计费模式的云硬盘 - * - * 退订包周期计费模式的云硬盘,有如下约束: - * - 系统盘、启动盘不可使用当前接口退订,必须和弹性云服务器一起退订 - * - 接口的请求body体最多可以传60个云硬盘id - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request UnsubscribePostpaidVolumeRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture unsubscribePostpaidVolumeAsync( - UnsubscribePostpaidVolumeRequest request) { - return hcClient.asyncInvokeHttp(request, EvsMeta.unsubscribePostpaidVolume); - } - - /** - * 退订包周期计费模式的云硬盘 - * - * 退订包周期计费模式的云硬盘,有如下约束: - * - 系统盘、启动盘不可使用当前接口退订,必须和弹性云服务器一起退订 - * - 接口的请求body体最多可以传60个云硬盘id - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request UnsubscribePostpaidVolumeRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker unsubscribePostpaidVolumeAsyncInvoker( - UnsubscribePostpaidVolumeRequest request) { - return new AsyncInvoker<>(request, EvsMeta.unsubscribePostpaidVolume, hcClient); - } - /** * 更新云硬盘快照 * diff --git a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/EvsClient.java b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/EvsClient.java index 43b0dadb34..b3eead9725 100644 --- a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/EvsClient.java +++ b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/EvsClient.java @@ -7,8 +7,6 @@ import com.huaweicloud.sdk.evs.v2.model.BatchCreateVolumeTagsResponse; import com.huaweicloud.sdk.evs.v2.model.BatchDeleteVolumeTagsRequest; import com.huaweicloud.sdk.evs.v2.model.BatchDeleteVolumeTagsResponse; -import com.huaweicloud.sdk.evs.v2.model.ChangeVolumeChargeModeRequest; -import com.huaweicloud.sdk.evs.v2.model.ChangeVolumeChargeModeResponse; import com.huaweicloud.sdk.evs.v2.model.CinderAcceptVolumeTransferRequest; import com.huaweicloud.sdk.evs.v2.model.CinderAcceptVolumeTransferResponse; import com.huaweicloud.sdk.evs.v2.model.CinderCreateVolumeTransferRequest; @@ -61,8 +59,6 @@ import com.huaweicloud.sdk.evs.v2.model.ShowVolumeResponse; import com.huaweicloud.sdk.evs.v2.model.ShowVolumeTagsRequest; import com.huaweicloud.sdk.evs.v2.model.ShowVolumeTagsResponse; -import com.huaweicloud.sdk.evs.v2.model.UnsubscribePostpaidVolumeRequest; -import com.huaweicloud.sdk.evs.v2.model.UnsubscribePostpaidVolumeResponse; import com.huaweicloud.sdk.evs.v2.model.UpdateSnapshotRequest; import com.huaweicloud.sdk.evs.v2.model.UpdateSnapshotResponse; import com.huaweicloud.sdk.evs.v2.model.UpdateVolumeRequest; @@ -145,35 +141,6 @@ public SyncInvoker return new SyncInvoker<>(request, EvsMeta.batchDeleteVolumeTags, hcClient); } - /** - * 修改云硬盘计费模式 - * - * 将挂载状态下的云硬盘的计费模式有按需转成包周期,且到期时间和挂载的虚拟机保持一致。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ChangeVolumeChargeModeRequest 请求对象 - * @return ChangeVolumeChargeModeResponse - */ - public ChangeVolumeChargeModeResponse changeVolumeChargeMode(ChangeVolumeChargeModeRequest request) { - return hcClient.syncInvokeHttp(request, EvsMeta.changeVolumeChargeMode); - } - - /** - * 修改云硬盘计费模式 - * - * 将挂载状态下的云硬盘的计费模式有按需转成包周期,且到期时间和挂载的虚拟机保持一致。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request ChangeVolumeChargeModeRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker changeVolumeChargeModeInvoker( - ChangeVolumeChargeModeRequest request) { - return new SyncInvoker<>(request, EvsMeta.changeVolumeChargeMode, hcClient); - } - /** * 接受云硬盘过户 * @@ -895,39 +862,6 @@ public SyncInvoker showVolumeTags return new SyncInvoker<>(request, EvsMeta.showVolumeTags, hcClient); } - /** - * 退订包周期计费模式的云硬盘 - * - * 退订包周期计费模式的云硬盘,有如下约束: - * - 系统盘、启动盘不可使用当前接口退订,必须和弹性云服务器一起退订 - * - 接口的请求body体最多可以传60个云硬盘id - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request UnsubscribePostpaidVolumeRequest 请求对象 - * @return UnsubscribePostpaidVolumeResponse - */ - public UnsubscribePostpaidVolumeResponse unsubscribePostpaidVolume(UnsubscribePostpaidVolumeRequest request) { - return hcClient.syncInvokeHttp(request, EvsMeta.unsubscribePostpaidVolume); - } - - /** - * 退订包周期计费模式的云硬盘 - * - * 退订包周期计费模式的云硬盘,有如下约束: - * - 系统盘、启动盘不可使用当前接口退订,必须和弹性云服务器一起退订 - * - 接口的请求body体最多可以传60个云硬盘id - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request UnsubscribePostpaidVolumeRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker unsubscribePostpaidVolumeInvoker( - UnsubscribePostpaidVolumeRequest request) { - return new SyncInvoker<>(request, EvsMeta.unsubscribePostpaidVolume, hcClient); - } - /** * 更新云硬盘快照 * diff --git a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/EvsMeta.java b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/EvsMeta.java index ddb3d46c3e..220b443eb7 100644 --- a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/EvsMeta.java +++ b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/EvsMeta.java @@ -11,9 +11,6 @@ import com.huaweicloud.sdk.evs.v2.model.BatchDeleteVolumeTagsRequest; import com.huaweicloud.sdk.evs.v2.model.BatchDeleteVolumeTagsRequestBody; import com.huaweicloud.sdk.evs.v2.model.BatchDeleteVolumeTagsResponse; -import com.huaweicloud.sdk.evs.v2.model.ChangeVolumeChargeModeRequest; -import com.huaweicloud.sdk.evs.v2.model.ChangeVolumeChargeModeRequestBody; -import com.huaweicloud.sdk.evs.v2.model.ChangeVolumeChargeModeResponse; import com.huaweicloud.sdk.evs.v2.model.CinderAcceptVolumeTransferRequest; import com.huaweicloud.sdk.evs.v2.model.CinderAcceptVolumeTransferRequestBody; import com.huaweicloud.sdk.evs.v2.model.CinderAcceptVolumeTransferResponse; @@ -75,10 +72,6 @@ import com.huaweicloud.sdk.evs.v2.model.ShowVolumeResponse; import com.huaweicloud.sdk.evs.v2.model.ShowVolumeTagsRequest; import com.huaweicloud.sdk.evs.v2.model.ShowVolumeTagsResponse; -import com.huaweicloud.sdk.evs.v2.model.UnsubscribePostpaidVolumeRequest; -import com.huaweicloud.sdk.evs.v2.model.UnsubscribePostpaidVolumeResponse; -import com.huaweicloud.sdk.evs.v2.model.UnsubscribeVolumeRequestBody; -import com.huaweicloud.sdk.evs.v2.model.UnsubscribeVolumeResponseBody; import com.huaweicloud.sdk.evs.v2.model.UpdateSnapshotRequest; import com.huaweicloud.sdk.evs.v2.model.UpdateSnapshotRequestBody; import com.huaweicloud.sdk.evs.v2.model.UpdateSnapshotResponse; @@ -86,8 +79,6 @@ import com.huaweicloud.sdk.evs.v2.model.UpdateVolumeRequestBody; import com.huaweicloud.sdk.evs.v2.model.UpdateVolumeResponse; -import java.util.List; - @SuppressWarnings("unchecked") public class EvsMeta { @@ -149,34 +140,6 @@ private static HttpRequestDef changeVolumeChargeMode = - genForChangeVolumeChargeMode(); - - private static HttpRequestDef genForChangeVolumeChargeMode() { - // basic - HttpRequestDef.Builder builder = HttpRequestDef - .builder(HttpMethod.POST, ChangeVolumeChargeModeRequest.class, ChangeVolumeChargeModeResponse.class) - .withName("ChangeVolumeChargeMode") - .withUri("/v2/{project_id}/cloudvolumes/change-charge-mode") - .withContentType("application/json;charset=UTF-8"); - - // requests - builder.withRequestField("body", - LocationType.Body, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(ChangeVolumeChargeModeRequestBody.class), - f -> f.withMarshaller(ChangeVolumeChargeModeRequest::getBody, ChangeVolumeChargeModeRequest::setBody)); - - // response - builder.withResponseField("body", - LocationType.Body, - FieldExistence.NULL_IGNORE, - String.class, - f -> f.withMarshaller(ChangeVolumeChargeModeResponse::getBody, ChangeVolumeChargeModeResponse::setBody)); - - return builder.build(); - } - public static final HttpRequestDef cinderAcceptVolumeTransfer = genForCinderAcceptVolumeTransfer(); @@ -907,40 +870,6 @@ private static HttpRequestDef gen return builder.build(); } - public static final HttpRequestDef unsubscribePostpaidVolume = - genForUnsubscribePostpaidVolume(); - - private static HttpRequestDef genForUnsubscribePostpaidVolume() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef - .builder(HttpMethod.POST, - UnsubscribePostpaidVolumeRequest.class, - UnsubscribePostpaidVolumeResponse.class) - .withName("UnsubscribePostpaidVolume") - .withUri("/v2/{project_id}/cloudvolumes/unsubscribe") - .withContentType("application/json;charset=UTF-8"); - - // requests - builder.withRequestField("body", - LocationType.Body, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(UnsubscribeVolumeRequestBody.class), - f -> f.withMarshaller(UnsubscribePostpaidVolumeRequest::getBody, - UnsubscribePostpaidVolumeRequest::setBody)); - - // response - builder.>withResponseField("body", - LocationType.Body, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(List.class), - f -> f - .withMarshaller(UnsubscribePostpaidVolumeResponse::getBody, UnsubscribePostpaidVolumeResponse::setBody) - .withInnerContainerType(UnsubscribeVolumeResponseBody.class)); - - return builder.build(); - } - public static final HttpRequestDef updateSnapshot = genForUpdateSnapshot(); diff --git a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/ChangeVolumeChargeModeRequestBody.java b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/ChangeVolumeChargeModeRequestBody.java deleted file mode 100644 index 38e375748d..0000000000 --- a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/ChangeVolumeChargeModeRequestBody.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.huaweicloud.sdk.evs.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * This is a auto create Body Object - */ -public class ChangeVolumeChargeModeRequestBody { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "volume_ids") - - private List volumeIds = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "server_id") - - private String serverId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "bss_param") - - private BssParam2 bssParam; - - public ChangeVolumeChargeModeRequestBody withVolumeIds(List volumeIds) { - this.volumeIds = volumeIds; - return this; - } - - public ChangeVolumeChargeModeRequestBody addVolumeIdsItem(String volumeIdsItem) { - if (this.volumeIds == null) { - this.volumeIds = new ArrayList<>(); - } - this.volumeIds.add(volumeIdsItem); - return this; - } - - public ChangeVolumeChargeModeRequestBody withVolumeIds(Consumer> volumeIdsSetter) { - if (this.volumeIds == null) { - this.volumeIds = new ArrayList<>(); - } - volumeIdsSetter.accept(this.volumeIds); - return this; - } - - /** - * 要修改计费模式的云硬盘id列表,可以填写多个 - * @return volumeIds - */ - public List getVolumeIds() { - return volumeIds; - } - - public void setVolumeIds(List volumeIds) { - this.volumeIds = volumeIds; - } - - public ChangeVolumeChargeModeRequestBody withServerId(String serverId) { - this.serverId = serverId; - return this; - } - - /** - * 云硬盘所挂载的虚拟机id, 如果volume_ids中没有多挂载的共享云硬盘,则此参数可无需填写。 - * @return serverId - */ - public String getServerId() { - return serverId; - } - - public void setServerId(String serverId) { - this.serverId = serverId; - } - - public ChangeVolumeChargeModeRequestBody withBssParam(BssParam2 bssParam) { - this.bssParam = bssParam; - return this; - } - - public ChangeVolumeChargeModeRequestBody withBssParam(Consumer bssParamSetter) { - if (this.bssParam == null) { - this.bssParam = new BssParam2(); - bssParamSetter.accept(this.bssParam); - } - - return this; - } - - /** - * Get bssParam - * @return bssParam - */ - public BssParam2 getBssParam() { - return bssParam; - } - - public void setBssParam(BssParam2 bssParam) { - this.bssParam = bssParam; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ChangeVolumeChargeModeRequestBody that = (ChangeVolumeChargeModeRequestBody) obj; - return Objects.equals(this.volumeIds, that.volumeIds) && Objects.equals(this.serverId, that.serverId) - && Objects.equals(this.bssParam, that.bssParam); - } - - @Override - public int hashCode() { - return Objects.hash(volumeIds, serverId, bssParam); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ChangeVolumeChargeModeRequestBody {\n"); - sb.append(" volumeIds: ").append(toIndentedString(volumeIds)).append("\n"); - sb.append(" serverId: ").append(toIndentedString(serverId)).append("\n"); - sb.append(" bssParam: ").append(toIndentedString(bssParam)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/RetypeVolume.java b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/RetypeVolume.java index 5f37c3a59e..c093f2a9e5 100644 --- a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/RetypeVolume.java +++ b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/RetypeVolume.java @@ -6,7 +6,7 @@ import java.util.Objects; /** - * 变更磁盘类型 + * 变更云硬盘类型 */ public class RetypeVolume { @@ -15,13 +15,23 @@ public class RetypeVolume { private String newType; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "iops") + + private Integer iops; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "throughput") + + private Integer throughput; + public RetypeVolume withNewType(String newType) { this.newType = newType; return this; } /** - * 磁盘变更至指定的磁盘类型 + * 变更至指定的云硬盘类型 * @return newType */ public String getNewType() { @@ -32,6 +42,40 @@ public void setNewType(String newType) { this.newType = newType; } + public RetypeVolume withIops(Integer iops) { + this.iops = iops; + return this; + } + + /** + * 云硬盘iops大小。 + * @return iops + */ + public Integer getIops() { + return iops; + } + + public void setIops(Integer iops) { + this.iops = iops; + } + + public RetypeVolume withThroughput(Integer throughput) { + this.throughput = throughput; + return this; + } + + /** + * 云硬盘的吞吐量大小。 + * @return throughput + */ + public Integer getThroughput() { + return throughput; + } + + public void setThroughput(Integer throughput) { + this.throughput = throughput; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -41,12 +85,13 @@ public boolean equals(java.lang.Object obj) { return false; } RetypeVolume that = (RetypeVolume) obj; - return Objects.equals(this.newType, that.newType); + return Objects.equals(this.newType, that.newType) && Objects.equals(this.iops, that.iops) + && Objects.equals(this.throughput, that.throughput); } @Override public int hashCode() { - return Objects.hash(newType); + return Objects.hash(newType, iops, throughput); } @Override @@ -54,6 +99,8 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RetypeVolume {\n"); sb.append(" newType: ").append(toIndentedString(newType)).append("\n"); + sb.append(" iops: ").append(toIndentedString(iops)).append("\n"); + sb.append(" throughput: ").append(toIndentedString(throughput)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribePostpaidVolumeResponse.java b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribePostpaidVolumeResponse.java deleted file mode 100644 index cc7023a926..0000000000 --- a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribePostpaidVolumeResponse.java +++ /dev/null @@ -1,92 +0,0 @@ -package com.huaweicloud.sdk.evs.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.huaweicloud.sdk.core.SdkResponse; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * Response Object - */ -public class UnsubscribePostpaidVolumeResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "body") - - private List body = null; - - public UnsubscribePostpaidVolumeResponse withBody(List body) { - this.body = body; - return this; - } - - public UnsubscribePostpaidVolumeResponse addBodyItem(UnsubscribeVolumeResponseBody bodyItem) { - if (this.body == null) { - this.body = new ArrayList<>(); - } - this.body.add(bodyItem); - return this; - } - - public UnsubscribePostpaidVolumeResponse withBody(Consumer> bodySetter) { - if (this.body == null) { - this.body = new ArrayList<>(); - } - bodySetter.accept(this.body); - return this; - } - - /** - * Get body - * @return body - */ - public List getBody() { - return body; - } - - public void setBody(List body) { - this.body = body; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - UnsubscribePostpaidVolumeResponse that = (UnsubscribePostpaidVolumeResponse) obj; - return Objects.equals(this.body, that.body); - } - - @Override - public int hashCode() { - return Objects.hash(body); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class UnsubscribePostpaidVolumeResponse {\n"); - sb.append(" body: ").append(toIndentedString(body)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribeVolume.java b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribeVolume.java deleted file mode 100644 index b731d48891..0000000000 --- a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribeVolume.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.huaweicloud.sdk.evs.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * 包周期云硬盘退订的结果 - */ -public class UnsubscribeVolume { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "volume_id") - - private String volumeId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "order_id") - - private String orderId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "result") - - private String result; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "fail_reason") - - private String failReason; - - public UnsubscribeVolume withVolumeId(String volumeId) { - this.volumeId = volumeId; - return this; - } - - /** - * 卷id对应的结果 - * @return volumeId - */ - public String getVolumeId() { - return volumeId; - } - - public void setVolumeId(String volumeId) { - this.volumeId = volumeId; - } - - public UnsubscribeVolume withOrderId(String orderId) { - this.orderId = orderId; - return this; - } - - /** - * 卷id对应的退订订单id,如果是已到期的云硬盘退订,则不显示此字段。 - * @return orderId - */ - public String getOrderId() { - return orderId; - } - - public void setOrderId(String orderId) { - this.orderId = orderId; - } - - public UnsubscribeVolume withResult(String result) { - this.result = result; - return this; - } - - /** - * volume_id对应的退订结果,只有SUCCESS 和 FAIL两种结果。 - * @return result - */ - public String getResult() { - return result; - } - - public void setResult(String result) { - this.result = result; - } - - public UnsubscribeVolume withFailReason(String failReason) { - this.failReason = failReason; - return this; - } - - /** - * 当result为FAIL时,此字段显示具体的失败原因。 result为SUCCESS时,不显示此字段。 - * @return failReason - */ - public String getFailReason() { - return failReason; - } - - public void setFailReason(String failReason) { - this.failReason = failReason; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - UnsubscribeVolume that = (UnsubscribeVolume) obj; - return Objects.equals(this.volumeId, that.volumeId) && Objects.equals(this.orderId, that.orderId) - && Objects.equals(this.result, that.result) && Objects.equals(this.failReason, that.failReason); - } - - @Override - public int hashCode() { - return Objects.hash(volumeId, orderId, result, failReason); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class UnsubscribeVolume {\n"); - sb.append(" volumeId: ").append(toIndentedString(volumeId)).append("\n"); - sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n"); - sb.append(" result: ").append(toIndentedString(result)).append("\n"); - sb.append(" failReason: ").append(toIndentedString(failReason)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribeVolumeRequestBody.java b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribeVolumeRequestBody.java deleted file mode 100644 index f234f5f017..0000000000 --- a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribeVolumeRequestBody.java +++ /dev/null @@ -1,91 +0,0 @@ -package com.huaweicloud.sdk.evs.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * 退订包周期云硬盘的请求body体 - */ -public class UnsubscribeVolumeRequestBody { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "volume_ids") - - private List volumeIds = null; - - public UnsubscribeVolumeRequestBody withVolumeIds(List volumeIds) { - this.volumeIds = volumeIds; - return this; - } - - public UnsubscribeVolumeRequestBody addVolumeIdsItem(String volumeIdsItem) { - if (this.volumeIds == null) { - this.volumeIds = new ArrayList<>(); - } - this.volumeIds.add(volumeIdsItem); - return this; - } - - public UnsubscribeVolumeRequestBody withVolumeIds(Consumer> volumeIdsSetter) { - if (this.volumeIds == null) { - this.volumeIds = new ArrayList<>(); - } - volumeIdsSetter.accept(this.volumeIds); - return this; - } - - /** - * 退订包周期云硬盘的结果。 - * @return volumeIds - */ - public List getVolumeIds() { - return volumeIds; - } - - public void setVolumeIds(List volumeIds) { - this.volumeIds = volumeIds; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - UnsubscribeVolumeRequestBody that = (UnsubscribeVolumeRequestBody) obj; - return Objects.equals(this.volumeIds, that.volumeIds); - } - - @Override - public int hashCode() { - return Objects.hash(volumeIds); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class UnsubscribeVolumeRequestBody {\n"); - sb.append(" volumeIds: ").append(toIndentedString(volumeIds)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribeVolumeResponseBody.java b/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribeVolumeResponseBody.java deleted file mode 100644 index f7a8f0aabb..0000000000 --- a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribeVolumeResponseBody.java +++ /dev/null @@ -1,91 +0,0 @@ -package com.huaweicloud.sdk.evs.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * 退订包周期云硬盘的响应body体 - */ -public class UnsubscribeVolumeResponseBody { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "results") - - private List results = null; - - public UnsubscribeVolumeResponseBody withResults(List results) { - this.results = results; - return this; - } - - public UnsubscribeVolumeResponseBody addResultsItem(UnsubscribeVolume resultsItem) { - if (this.results == null) { - this.results = new ArrayList<>(); - } - this.results.add(resultsItem); - return this; - } - - public UnsubscribeVolumeResponseBody withResults(Consumer> resultsSetter) { - if (this.results == null) { - this.results = new ArrayList<>(); - } - resultsSetter.accept(this.results); - return this; - } - - /** - * 退订包周期云硬盘的结果。 - * @return results - */ - public List getResults() { - return results; - } - - public void setResults(List results) { - this.results = results; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - UnsubscribeVolumeResponseBody that = (UnsubscribeVolumeResponseBody) obj; - return Objects.equals(this.results, that.results); - } - - @Override - public int hashCode() { - return Objects.hash(results); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class UnsubscribeVolumeResponseBody {\n"); - sb.append(" results: ").append(toIndentedString(results)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/expert/pom.xml b/services/expert/pom.xml index 28713f412e..0aafaa91ea 100644 --- a/services/expert/pom.xml +++ b/services/expert/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-expert - 3.1.121 + 3.1.122 Huawei Cloud SDK for EXPERT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/frs/pom.xml b/services/frs/pom.xml index f9524840b5..ad9824d786 100644 --- a/services/frs/pom.xml +++ b/services/frs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-frs - 3.1.121 + 3.1.122 Huawei Cloud SDK for FRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/functiongraph/pom.xml b/services/functiongraph/pom.xml index d22895e9ce..35d7331a12 100644 --- a/services/functiongraph/pom.xml +++ b/services/functiongraph/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-functiongraph - 3.1.121 + 3.1.122 Huawei Cloud SDK for FUNCTIONGRAPH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 junit diff --git a/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/model/TriggerEventDataRequestBody.java b/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/model/TriggerEventDataRequestBody.java index 5944cbbb57..0110f9988c 100644 --- a/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/model/TriggerEventDataRequestBody.java +++ b/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/model/TriggerEventDataRequestBody.java @@ -945,6 +945,11 @@ public int hashCode() { private String channelName; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "channel_id") + + private String channelId; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "source_name") @@ -955,16 +960,91 @@ public int hashCode() { private OffsetDateTime createdTime; + /** + * 触发器状态(EVENTGRID触发器参数)。 + */ + public static final class StatusEnum { + + /** + * Enum ACTIVE for value: "ACTIVE" + */ + public static final StatusEnum ACTIVE = new StatusEnum("ACTIVE"); + + /** + * Enum DISABLE for value: "DISABLE" + */ + public static final StatusEnum DISABLE = new StatusEnum("DISABLE"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("ACTIVE", ACTIVE); + map.put("DISABLE", DISABLE); + return Collections.unmodifiableMap(map); + } + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StatusEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new StatusEnum(value)); + } + + public static StatusEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof StatusEnum) { + return this.value.equals(((StatusEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "status") - private String status; + private StatusEnum status; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "trigger_name") private String triggerName; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "event_types") + + private List eventTypes = null; + public TriggerEventDataRequestBody withName(String name) { this.name = name; return this; @@ -1863,7 +1943,7 @@ public TriggerEventDataRequestBody withKeyEncode(Boolean keyEncode) { } /** - * EG obs触发器是否对对象加密。 + * EG obs触发器是否对对象加密(EVENTGRID触发器参数)。 * @return keyEncode */ public Boolean getKeyEncode() { @@ -1880,7 +1960,7 @@ public TriggerEventDataRequestBody withAgency(String agency) { } /** - * 使用的代理 + * 使用的代理(EVENTGRID触发器参数)。 * @return agency */ public String getAgency() { @@ -1897,7 +1977,7 @@ public TriggerEventDataRequestBody withChannelName(String channelName) { } /** - * 通道名称 + * 通道名称(EVENTGRID触发器参数)。 * @return channelName */ public String getChannelName() { @@ -1908,13 +1988,30 @@ public void setChannelName(String channelName) { this.channelName = channelName; } + public TriggerEventDataRequestBody withChannelId(String channelId) { + this.channelId = channelId; + return this; + } + + /** + * 通道id(EVENTGRID触发器参数)。 + * @return channelId + */ + public String getChannelId() { + return channelId; + } + + public void setChannelId(String channelId) { + this.channelId = channelId; + } + public TriggerEventDataRequestBody withSourceName(String sourceName) { this.sourceName = sourceName; return this; } /** - * 事件源名称 + * 事件源名称(EVENTGRID触发器参数)。 * @return sourceName */ public String getSourceName() { @@ -1931,7 +2028,7 @@ public TriggerEventDataRequestBody withCreatedTime(OffsetDateTime createdTime) { } /** - * 创建时间 + * 创建时间(EVENTGRID触发器参数)。 * @return createdTime */ public OffsetDateTime getCreatedTime() { @@ -1942,20 +2039,20 @@ public void setCreatedTime(OffsetDateTime createdTime) { this.createdTime = createdTime; } - public TriggerEventDataRequestBody withStatus(String status) { + public TriggerEventDataRequestBody withStatus(StatusEnum status) { this.status = status; return this; } /** - * 触发器状态 + * 触发器状态(EVENTGRID触发器参数)。 * @return status */ - public String getStatus() { + public StatusEnum getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(StatusEnum status) { this.status = status; } @@ -1965,7 +2062,7 @@ public TriggerEventDataRequestBody withTriggerName(String triggerName) { } /** - * 触发器名称 + * 触发器名称(EVENTGRID触发器参数)。 * @return triggerName */ public String getTriggerName() { @@ -1976,6 +2073,39 @@ public void setTriggerName(String triggerName) { this.triggerName = triggerName; } + public TriggerEventDataRequestBody withEventTypes(List eventTypes) { + this.eventTypes = eventTypes; + return this; + } + + public TriggerEventDataRequestBody addEventTypesItem(String eventTypesItem) { + if (this.eventTypes == null) { + this.eventTypes = new ArrayList<>(); + } + this.eventTypes.add(eventTypesItem); + return this; + } + + public TriggerEventDataRequestBody withEventTypes(Consumer> eventTypesSetter) { + if (this.eventTypes == null) { + this.eventTypes = new ArrayList<>(); + } + eventTypesSetter.accept(this.eventTypes); + return this; + } + + /** + * 事件类型(EVENTGRID触发器参数)。 + * @return eventTypes + */ + public List getEventTypes() { + return eventTypes; + } + + public void setEventTypes(List eventTypes) { + this.eventTypes = eventTypes; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -2016,8 +2146,9 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.exchangeName, that.exchangeName) && Objects.equals(this.vhost, that.vhost) && Objects.equals(this.sslEnable, that.sslEnable) && Objects.equals(this.keyEncode, that.keyEncode) && Objects.equals(this.agency, that.agency) && Objects.equals(this.channelName, that.channelName) - && Objects.equals(this.sourceName, that.sourceName) && Objects.equals(this.createdTime, that.createdTime) - && Objects.equals(this.status, that.status) && Objects.equals(this.triggerName, that.triggerName); + && Objects.equals(this.channelId, that.channelId) && Objects.equals(this.sourceName, that.sourceName) + && Objects.equals(this.createdTime, that.createdTime) && Objects.equals(this.status, that.status) + && Objects.equals(this.triggerName, that.triggerName) && Objects.equals(this.eventTypes, that.eventTypes); } @Override @@ -2074,10 +2205,12 @@ public int hashCode() { keyEncode, agency, channelName, + channelId, sourceName, createdTime, status, - triggerName); + triggerName, + eventTypes); } @Override @@ -2136,10 +2269,12 @@ public String toString() { sb.append(" keyEncode: ").append(toIndentedString(keyEncode)).append("\n"); sb.append(" agency: ").append(toIndentedString(agency)).append("\n"); sb.append(" channelName: ").append(toIndentedString(channelName)).append("\n"); + sb.append(" channelId: ").append(toIndentedString(channelId)).append("\n"); sb.append(" sourceName: ").append(toIndentedString(sourceName)).append("\n"); sb.append(" createdTime: ").append(toIndentedString(createdTime)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" triggerName: ").append(toIndentedString(triggerName)).append("\n"); + sb.append(" eventTypes: ").append(toIndentedString(eventTypes)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/model/TriggerEventDataResponseBody.java b/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/model/TriggerEventDataResponseBody.java index aca944b32d..20f892d0c7 100644 --- a/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/model/TriggerEventDataResponseBody.java +++ b/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/model/TriggerEventDataResponseBody.java @@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; @@ -969,6 +970,121 @@ public int hashCode() { private Boolean sslEnable; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Key_encode") + + private Boolean keyEncode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "agency") + + private String agency; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "channel_name") + + private String channelName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "channel_id") + + private String channelId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_name") + + private String sourceName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "created_time") + + private OffsetDateTime createdTime; + + /** + * 触发器状态(EVENTGRID触发器参数)。 + */ + public static final class StatusEnum { + + /** + * Enum ACTIVE for value: "ACTIVE" + */ + public static final StatusEnum ACTIVE = new StatusEnum("ACTIVE"); + + /** + * Enum DISABLE for value: "DISABLE" + */ + public static final StatusEnum DISABLE = new StatusEnum("DISABLE"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("ACTIVE", ACTIVE); + map.put("DISABLE", DISABLE); + return Collections.unmodifiableMap(map); + } + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StatusEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new StatusEnum(value)); + } + + public static StatusEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof StatusEnum) { + return this.value.equals(((StatusEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private StatusEnum status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "trigger_name") + + private String triggerName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "event_types") + + private List eventTypes = null; + public TriggerEventDataResponseBody withName(String name) { this.name = name; return this; @@ -2013,6 +2129,175 @@ public void setSslEnable(Boolean sslEnable) { this.sslEnable = sslEnable; } + public TriggerEventDataResponseBody withKeyEncode(Boolean keyEncode) { + this.keyEncode = keyEncode; + return this; + } + + /** + * EG obs触发器是否对对象加密(EVENTGRID触发器参数)。 + * @return keyEncode + */ + public Boolean getKeyEncode() { + return keyEncode; + } + + public void setKeyEncode(Boolean keyEncode) { + this.keyEncode = keyEncode; + } + + public TriggerEventDataResponseBody withAgency(String agency) { + this.agency = agency; + return this; + } + + /** + * 使用的代理(EVENTGRID触发器参数)。 + * @return agency + */ + public String getAgency() { + return agency; + } + + public void setAgency(String agency) { + this.agency = agency; + } + + public TriggerEventDataResponseBody withChannelName(String channelName) { + this.channelName = channelName; + return this; + } + + /** + * 通道名称(EVENTGRID触发器参数)。 + * @return channelName + */ + public String getChannelName() { + return channelName; + } + + public void setChannelName(String channelName) { + this.channelName = channelName; + } + + public TriggerEventDataResponseBody withChannelId(String channelId) { + this.channelId = channelId; + return this; + } + + /** + * 通道id(EVENTGRID触发器参数)。 + * @return channelId + */ + public String getChannelId() { + return channelId; + } + + public void setChannelId(String channelId) { + this.channelId = channelId; + } + + public TriggerEventDataResponseBody withSourceName(String sourceName) { + this.sourceName = sourceName; + return this; + } + + /** + * 事件源名称(EVENTGRID触发器参数)。 + * @return sourceName + */ + public String getSourceName() { + return sourceName; + } + + public void setSourceName(String sourceName) { + this.sourceName = sourceName; + } + + public TriggerEventDataResponseBody withCreatedTime(OffsetDateTime createdTime) { + this.createdTime = createdTime; + return this; + } + + /** + * 创建时间(EVENTGRID触发器参数)。 + * @return createdTime + */ + public OffsetDateTime getCreatedTime() { + return createdTime; + } + + public void setCreatedTime(OffsetDateTime createdTime) { + this.createdTime = createdTime; + } + + public TriggerEventDataResponseBody withStatus(StatusEnum status) { + this.status = status; + return this; + } + + /** + * 触发器状态(EVENTGRID触发器参数)。 + * @return status + */ + public StatusEnum getStatus() { + return status; + } + + public void setStatus(StatusEnum status) { + this.status = status; + } + + public TriggerEventDataResponseBody withTriggerName(String triggerName) { + this.triggerName = triggerName; + return this; + } + + /** + * 触发器名称(EVENTGRID触发器参数)。 + * @return triggerName + */ + public String getTriggerName() { + return triggerName; + } + + public void setTriggerName(String triggerName) { + this.triggerName = triggerName; + } + + public TriggerEventDataResponseBody withEventTypes(List eventTypes) { + this.eventTypes = eventTypes; + return this; + } + + public TriggerEventDataResponseBody addEventTypesItem(String eventTypesItem) { + if (this.eventTypes == null) { + this.eventTypes = new ArrayList<>(); + } + this.eventTypes.add(eventTypesItem); + return this; + } + + public TriggerEventDataResponseBody withEventTypes(Consumer> eventTypesSetter) { + if (this.eventTypes == null) { + this.eventTypes = new ArrayList<>(); + } + eventTypesSetter.accept(this.eventTypes); + return this; + } + + /** + * 事件类型(EVENTGRID触发器参数)。 + * @return eventTypes + */ + public List getEventTypes() { + return eventTypes; + } + + public void setEventTypes(List eventTypes) { + this.eventTypes = eventTypes; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -2055,7 +2340,11 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.accessUser, that.accessUser) && Objects.equals(this.connectAddress, that.connectAddress) && Objects.equals(this.exchangeName, that.exchangeName) && Objects.equals(this.vhost, that.vhost) - && Objects.equals(this.sslEnable, that.sslEnable); + && Objects.equals(this.sslEnable, that.sslEnable) && Objects.equals(this.keyEncode, that.keyEncode) + && Objects.equals(this.agency, that.agency) && Objects.equals(this.channelName, that.channelName) + && Objects.equals(this.channelId, that.channelId) && Objects.equals(this.sourceName, that.sourceName) + && Objects.equals(this.createdTime, that.createdTime) && Objects.equals(this.status, that.status) + && Objects.equals(this.triggerName, that.triggerName) && Objects.equals(this.eventTypes, that.eventTypes); } @Override @@ -2116,7 +2405,16 @@ public int hashCode() { connectAddress, exchangeName, vhost, - sslEnable); + sslEnable, + keyEncode, + agency, + channelName, + channelId, + sourceName, + createdTime, + status, + triggerName, + eventTypes); } @Override @@ -2180,6 +2478,15 @@ public String toString() { sb.append(" exchangeName: ").append(toIndentedString(exchangeName)).append("\n"); sb.append(" vhost: ").append(toIndentedString(vhost)).append("\n"); sb.append(" sslEnable: ").append(toIndentedString(sslEnable)).append("\n"); + sb.append(" keyEncode: ").append(toIndentedString(keyEncode)).append("\n"); + sb.append(" agency: ").append(toIndentedString(agency)).append("\n"); + sb.append(" channelName: ").append(toIndentedString(channelName)).append("\n"); + sb.append(" channelId: ").append(toIndentedString(channelId)).append("\n"); + sb.append(" sourceName: ").append(toIndentedString(sourceName)).append("\n"); + sb.append(" createdTime: ").append(toIndentedString(createdTime)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" triggerName: ").append(toIndentedString(triggerName)).append("\n"); + sb.append(" eventTypes: ").append(toIndentedString(eventTypes)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ga/pom.xml b/services/ga/pom.xml index 0ce8c21b80..55b5921e1c 100644 --- a/services/ga/pom.xml +++ b/services/ga/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-ga - 3.1.121 + 3.1.122 Huawei Cloud SDK for GA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/gaussdb/pom.xml b/services/gaussdb/pom.xml index 22b84e0481..00b49c5690 100644 --- a/services/gaussdb/pom.xml +++ b/services/gaussdb/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-gaussdb - 3.1.121 + 3.1.122 Huawei Cloud SDK for GAUSSDB 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/gaussdbfornosql/pom.xml b/services/gaussdbfornosql/pom.xml index 0d96f67e95..b4d693026a 100644 --- a/services/gaussdbfornosql/pom.xml +++ b/services/gaussdbfornosql/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-gaussdbfornosql - 3.1.121 + 3.1.122 Huawei Cloud SDK for GAUSSDBFORNOSQL 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/GaussDBforNoSQLAsyncClient.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/GaussDBforNoSQLAsyncClient.java index dda959d1ed..37ab7e5ad2 100644 --- a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/GaussDBforNoSQLAsyncClient.java +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/GaussDBforNoSQLAsyncClient.java @@ -5,10 +5,14 @@ import com.huaweicloud.sdk.core.invoker.AsyncInvoker; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ApplyConfigurationRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ApplyConfigurationResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ApplyConfigurationToInstancesRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ApplyConfigurationToInstancesResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.BatchTagActionRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.BatchTagActionResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.BatchUpgradeDatabaseVersionRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.BatchUpgradeDatabaseVersionResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CancelInstanceScheduleWindowRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CancelInstanceScheduleWindowResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CheckDisasterRecoveryOperationRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CheckDisasterRecoveryOperationResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CheckWeekPasswordRequest; @@ -23,6 +27,10 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateColdVolumeResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateConfigurationRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateConfigurationResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateDbCacheMappingRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateDbCacheMappingResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateDbCacheRuleRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateDbCacheRuleResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateDbUserRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateDbUserResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateDisasterRecoveryRequest; @@ -33,6 +41,10 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteBackupResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteConfigurationRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteConfigurationResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteDbCacheMappingRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteDbCacheMappingResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteDbCacheRuleRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteDbCacheRuleResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteDbUserRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteDbUserResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteDisasterRecoveryRequest; @@ -61,6 +73,10 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListConfigurationsResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDatastoresRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDatastoresResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDbCacheMappingsRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDbCacheMappingsResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDbCacheRulesRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDbCacheRulesResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDbUsersRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDbUsersResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDedicatedResourcesRequest; @@ -75,6 +91,8 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListInfluxdbSlowLogsResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListInstanceDatabasesRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListInstanceDatabasesResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListInstanceMaintenanceWindowRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListInstanceMaintenanceWindowResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListInstanceTagsRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListInstanceTagsResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListInstancesByResourceTagsRequest; @@ -95,6 +113,8 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListMongodbErrorLogsResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListMongodbSlowLogsRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListMongodbSlowLogsResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListNosqlTaskListRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListNosqlTaskListResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListProjectTagsRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListProjectTagsResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListRecycleInstancesRequest; @@ -113,6 +133,8 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyDbUserPrivilegeResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyEpsQuotasRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyEpsQuotasResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyInstanceMaintenanceWindowRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyInstanceMaintenanceWindowResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyPortRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyPortResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyPublicIpRequest; @@ -145,6 +167,8 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SetAutoEnlargePolicyResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SetBackupPolicyRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SetBackupPolicyResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SetInstanceDataDumpRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SetInstanceDataDumpResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SetRecyclePolicyRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SetRecyclePolicyResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowAllInstancesBackupsNewRequest; @@ -159,6 +183,8 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowApplyHistoryResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowAutoEnlargePolicyRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowAutoEnlargePolicyResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowBackupPoliciesRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowBackupPoliciesResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowBackupPolicyRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowBackupPolicyResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowConfigurationDetailRequest; @@ -191,12 +217,16 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowRedisBigKeysResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowRestorableListRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowRestorableListResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowSecondLevelMonitoringStatusRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowSecondLevelMonitoringStatusResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowSlowLogDesensitizationRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowSlowLogDesensitizationResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShrinkInstanceNodeRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShrinkInstanceNodeResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SwitchIpGroupRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SwitchIpGroupResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SwitchSecondLevelMonitoringRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SwitchSecondLevelMonitoringResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SwitchSlowlogDesensitizationRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SwitchSlowlogDesensitizationResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SwitchSslRequest; @@ -211,10 +241,14 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateConfigurationResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateDatabasesRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateDatabasesResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateDbCacheRuleRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateDbCacheRuleResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateHighRiskCommandsRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateHighRiskCommandsResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateInstanceConfigurationRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateInstanceConfigurationResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateInstanceConfigurationsRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateInstanceConfigurationsResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateInstanceNameRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateInstanceNameResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdatePasswordlessConfigRequest; @@ -268,6 +302,36 @@ public AsyncInvoker apply return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.applyConfiguration, hcClient); } + /** + * 应用参数模板 + * + * 将参数模板应用到实例,可以指定一个或多个实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ApplyConfigurationToInstancesRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture applyConfigurationToInstancesAsync( + ApplyConfigurationToInstancesRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforNoSQLMeta.applyConfigurationToInstances); + } + + /** + * 应用参数模板 + * + * 将参数模板应用到实例,可以指定一个或多个实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ApplyConfigurationToInstancesRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker applyConfigurationToInstancesAsyncInvoker( + ApplyConfigurationToInstancesRequest request) { + return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.applyConfigurationToInstances, hcClient); + } + /** * 批量添加或删除资源标签 * @@ -327,6 +391,36 @@ public AsyncInvoker(request, GaussDBforNoSQLMeta.batchUpgradeDatabaseVersion, hcClient); } + /** + * 取消定时任务 + * + * 取消定时任务 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CancelInstanceScheduleWindowRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture cancelInstanceScheduleWindowAsync( + CancelInstanceScheduleWindowRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforNoSQLMeta.cancelInstanceScheduleWindow); + } + + /** + * 取消定时任务 + * + * 取消定时任务 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CancelInstanceScheduleWindowRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker cancelInstanceScheduleWindowAsyncInvoker( + CancelInstanceScheduleWindowRequest request) { + return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.cancelInstanceScheduleWindow, hcClient); + } + /** * 校验实例是否可以与指定实例建立/解除容灾关系 * @@ -533,6 +627,65 @@ public AsyncInvoker cre return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.createConfiguration, hcClient); } + /** + * 创建内存加速映射 + * + * 创建内存加速映射。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateDbCacheMappingRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createDbCacheMappingAsync( + CreateDbCacheMappingRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforNoSQLMeta.createDbCacheMapping); + } + + /** + * 创建内存加速映射 + * + * 创建内存加速映射。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateDbCacheMappingRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createDbCacheMappingAsyncInvoker( + CreateDbCacheMappingRequest request) { + return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.createDbCacheMapping, hcClient); + } + + /** + * 创建内存加速规则 + * + * 创建内存加速规则。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateDbCacheRuleRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createDbCacheRuleAsync(CreateDbCacheRuleRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforNoSQLMeta.createDbCacheRule); + } + + /** + * 创建内存加速规则 + * + * 创建内存加速规则。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateDbCacheRuleRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createDbCacheRuleAsyncInvoker( + CreateDbCacheRuleRequest request) { + return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.createDbCacheRule, hcClient); + } + /** * 创建Redis数据库账号 * @@ -679,6 +832,65 @@ public AsyncInvoker del return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.deleteConfiguration, hcClient); } + /** + * 解除内存加速映射 + * + * 解除指定内存加速映射。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteDbCacheMappingRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteDbCacheMappingAsync( + DeleteDbCacheMappingRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforNoSQLMeta.deleteDbCacheMapping); + } + + /** + * 解除内存加速映射 + * + * 解除指定内存加速映射。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteDbCacheMappingRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteDbCacheMappingAsyncInvoker( + DeleteDbCacheMappingRequest request) { + return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.deleteDbCacheMapping, hcClient); + } + + /** + * 删除内存加速规则 + * + * 删除内存加速规则。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteDbCacheRuleRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteDbCacheRuleAsync(DeleteDbCacheRuleRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforNoSQLMeta.deleteDbCacheRule); + } + + /** + * 删除内存加速规则 + * + * 删除内存加速规则。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteDbCacheRuleRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteDbCacheRuleAsyncInvoker( + DeleteDbCacheRuleRequest request) { + return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.deleteDbCacheRule, hcClient); + } + /** * 删除Redis数据库账号 * @@ -1063,6 +1275,64 @@ public AsyncInvoker listDatastore return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.listDatastores, hcClient); } + /** + * 查询内存加速映射列表和详情 + * + * 根据指定条件查询内存加速映射关系列表和详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDbCacheMappingsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listDbCacheMappingsAsync(ListDbCacheMappingsRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforNoSQLMeta.listDbCacheMappings); + } + + /** + * 查询内存加速映射列表和详情 + * + * 根据指定条件查询内存加速映射关系列表和详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDbCacheMappingsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listDbCacheMappingsAsyncInvoker( + ListDbCacheMappingsRequest request) { + return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.listDbCacheMappings, hcClient); + } + + /** + * 查询内存加速规则列表和详情 + * + * 查询内存加速规则列表和详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDbCacheRulesRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listDbCacheRulesAsync(ListDbCacheRulesRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforNoSQLMeta.listDbCacheRules); + } + + /** + * 查询内存加速规则列表和详情 + * + * 查询内存加速规则列表和详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDbCacheRulesRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listDbCacheRulesAsyncInvoker( + ListDbCacheRulesRequest request) { + return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.listDbCacheRules, hcClient); + } + /** * 获取Redis数据库账号列表和详情 * @@ -1267,6 +1537,36 @@ public AsyncInvoker return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.listInstanceDatabases, hcClient); } + /** + * + * + * 查询实例可维护时间段 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListInstanceMaintenanceWindowRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listInstanceMaintenanceWindowAsync( + ListInstanceMaintenanceWindowRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforNoSQLMeta.listInstanceMaintenanceWindow); + } + + /** + * + * + * 查询实例可维护时间段 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListInstanceMaintenanceWindowRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listInstanceMaintenanceWindowAsyncInvoker( + ListInstanceMaintenanceWindowRequest request) { + return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.listInstanceMaintenanceWindow, hcClient); + } + /** * 查询资源标签 * @@ -1560,6 +1860,35 @@ public AsyncInvoker lis return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.listMongodbSlowLogs, hcClient); } + /** + * 查询定时任务列表 + * + * 根据指定条件查询定时任务列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListNosqlTaskListRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listNosqlTaskListAsync(ListNosqlTaskListRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforNoSQLMeta.listNosqlTaskList); + } + + /** + * 查询定时任务列表 + * + * 根据指定条件查询定时任务列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListNosqlTaskListRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listNosqlTaskListAsyncInvoker( + ListNosqlTaskListRequest request) { + return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.listNosqlTaskList, hcClient); + } + /** * 查询项目标签 * @@ -1824,6 +2153,36 @@ public AsyncInvoker modifyEpsQu return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.modifyEpsQuotas, hcClient); } + /** + * 查询实例可维护时间段 + * + * 设置指定实例可维护时间段。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ModifyInstanceMaintenanceWindowRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture modifyInstanceMaintenanceWindowAsync( + ModifyInstanceMaintenanceWindowRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforNoSQLMeta.modifyInstanceMaintenanceWindow); + } + + /** + * 查询实例可维护时间段 + * + * 设置指定实例可维护时间段。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ModifyInstanceMaintenanceWindowRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker modifyInstanceMaintenanceWindowAsyncInvoker( + ModifyInstanceMaintenanceWindowRequest request) { + return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.modifyInstanceMaintenanceWindow, hcClient); + } + /** * 修改数据库端口 * @@ -2300,6 +2659,37 @@ public AsyncInvoker setBackupPo return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.setBackupPolicy, hcClient); } + /** + * 开启/关闭实例数据导出 + * + * 开启/关闭实例数据导出。 + * 当前支持将InfluxDB数据转为parquet格式文件然后上传到指定的OBS桶中。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SetInstanceDataDumpRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture setInstanceDataDumpAsync(SetInstanceDataDumpRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforNoSQLMeta.setInstanceDataDump); + } + + /** + * 开启/关闭实例数据导出 + * + * 开启/关闭实例数据导出。 + * 当前支持将InfluxDB数据转为parquet格式文件然后上传到指定的OBS桶中。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SetInstanceDataDumpRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker setInstanceDataDumpAsyncInvoker( + SetInstanceDataDumpRequest request) { + return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.setInstanceDataDump, hcClient); + } + /** * 设置回收策略 * @@ -2476,6 +2866,35 @@ public AsyncInvoker return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.showAutoEnlargePolicy, hcClient); } + /** + * 查询自动备份策略 + * + * 查询自动备份策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowBackupPoliciesRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showBackupPoliciesAsync(ShowBackupPoliciesRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforNoSQLMeta.showBackupPolicies); + } + + /** + * 查询自动备份策略 + * + * 查询自动备份策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowBackupPoliciesRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showBackupPoliciesAsyncInvoker( + ShowBackupPoliciesRequest request) { + return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.showBackupPolicies, hcClient); + } + /** * 查询自动备份策略 * @@ -2946,6 +3365,36 @@ public AsyncInvoker showR return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.showRestorableList, hcClient); } + /** + * 查询秒级监控配置 + * + * 查询秒级监控配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowSecondLevelMonitoringStatusRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showSecondLevelMonitoringStatusAsync( + ShowSecondLevelMonitoringStatusRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforNoSQLMeta.showSecondLevelMonitoringStatus); + } + + /** + * 查询秒级监控配置 + * + * 查询秒级监控配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowSecondLevelMonitoringStatusRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showSecondLevelMonitoringStatusAsyncInvoker( + ShowSecondLevelMonitoringStatusRequest request) { + return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.showSecondLevelMonitoringStatus, hcClient); + } + /** * 查询慢日志脱敏状态 * @@ -3034,6 +3483,36 @@ public AsyncInvoker switchIpGroupAs return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.switchIpGroup, hcClient); } + /** + * 开启/关闭秒级监控 + * + * 开启或关闭指定实例的5秒级监控。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SwitchSecondLevelMonitoringRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture switchSecondLevelMonitoringAsync( + SwitchSecondLevelMonitoringRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforNoSQLMeta.switchSecondLevelMonitoring); + } + + /** + * 开启/关闭秒级监控 + * + * 开启或关闭指定实例的5秒级监控。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SwitchSecondLevelMonitoringRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker switchSecondLevelMonitoringAsyncInvoker( + SwitchSecondLevelMonitoringRequest request) { + return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.switchSecondLevelMonitoring, hcClient); + } + /** * 设置慢日志脱敏状态 * @@ -3237,6 +3716,35 @@ public AsyncInvoker updateDatab return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.updateDatabases, hcClient); } + /** + * 修改内存加速规则 + * + * 修改指定内存加速规则。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateDbCacheRuleRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateDbCacheRuleAsync(UpdateDbCacheRuleRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforNoSQLMeta.updateDbCacheRule); + } + + /** + * 修改内存加速规则 + * + * 修改指定内存加速规则。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateDbCacheRuleRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateDbCacheRuleAsyncInvoker( + UpdateDbCacheRuleRequest request) { + return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.updateDbCacheRule, hcClient); + } + /** * 修改高危命令 * @@ -3297,6 +3805,36 @@ public AsyncInvoker(request, GaussDBforNoSQLMeta.updateInstanceConfiguration, hcClient); } + /** + * 修改指定实例的参数 + * + * 修改指定实例的参数。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateInstanceConfigurationsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateInstanceConfigurationsAsync( + UpdateInstanceConfigurationsRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBforNoSQLMeta.updateInstanceConfigurations); + } + + /** + * 修改指定实例的参数 + * + * 修改指定实例的参数。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateInstanceConfigurationsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateInstanceConfigurationsAsyncInvoker( + UpdateInstanceConfigurationsRequest request) { + return new AsyncInvoker<>(request, GaussDBforNoSQLMeta.updateInstanceConfigurations, hcClient); + } + /** * 修改实例名称 * diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/GaussDBforNoSQLClient.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/GaussDBforNoSQLClient.java index 0638ef7ada..1e202bbac4 100644 --- a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/GaussDBforNoSQLClient.java +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/GaussDBforNoSQLClient.java @@ -5,10 +5,14 @@ import com.huaweicloud.sdk.core.invoker.SyncInvoker; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ApplyConfigurationRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ApplyConfigurationResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ApplyConfigurationToInstancesRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ApplyConfigurationToInstancesResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.BatchTagActionRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.BatchTagActionResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.BatchUpgradeDatabaseVersionRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.BatchUpgradeDatabaseVersionResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CancelInstanceScheduleWindowRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CancelInstanceScheduleWindowResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CheckDisasterRecoveryOperationRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CheckDisasterRecoveryOperationResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CheckWeekPasswordRequest; @@ -23,6 +27,10 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateColdVolumeResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateConfigurationRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateConfigurationResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateDbCacheMappingRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateDbCacheMappingResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateDbCacheRuleRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateDbCacheRuleResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateDbUserRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateDbUserResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateDisasterRecoveryRequest; @@ -33,6 +41,10 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteBackupResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteConfigurationRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteConfigurationResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteDbCacheMappingRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteDbCacheMappingResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteDbCacheRuleRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteDbCacheRuleResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteDbUserRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteDbUserResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteDisasterRecoveryRequest; @@ -61,6 +73,10 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListConfigurationsResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDatastoresRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDatastoresResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDbCacheMappingsRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDbCacheMappingsResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDbCacheRulesRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDbCacheRulesResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDbUsersRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDbUsersResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDedicatedResourcesRequest; @@ -75,6 +91,8 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListInfluxdbSlowLogsResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListInstanceDatabasesRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListInstanceDatabasesResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListInstanceMaintenanceWindowRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListInstanceMaintenanceWindowResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListInstanceTagsRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListInstanceTagsResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListInstancesByResourceTagsRequest; @@ -95,6 +113,8 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListMongodbErrorLogsResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListMongodbSlowLogsRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListMongodbSlowLogsResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListNosqlTaskListRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListNosqlTaskListResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListProjectTagsRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListProjectTagsResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListRecycleInstancesRequest; @@ -113,6 +133,8 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyDbUserPrivilegeResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyEpsQuotasRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyEpsQuotasResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyInstanceMaintenanceWindowRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyInstanceMaintenanceWindowResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyPortRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyPortResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyPublicIpRequest; @@ -145,6 +167,8 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SetAutoEnlargePolicyResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SetBackupPolicyRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SetBackupPolicyResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SetInstanceDataDumpRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SetInstanceDataDumpResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SetRecyclePolicyRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SetRecyclePolicyResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowAllInstancesBackupsNewRequest; @@ -159,6 +183,8 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowApplyHistoryResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowAutoEnlargePolicyRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowAutoEnlargePolicyResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowBackupPoliciesRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowBackupPoliciesResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowBackupPolicyRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowBackupPolicyResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowConfigurationDetailRequest; @@ -191,12 +217,16 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowRedisBigKeysResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowRestorableListRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowRestorableListResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowSecondLevelMonitoringStatusRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowSecondLevelMonitoringStatusResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowSlowLogDesensitizationRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowSlowLogDesensitizationResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShrinkInstanceNodeRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShrinkInstanceNodeResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SwitchIpGroupRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SwitchIpGroupResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SwitchSecondLevelMonitoringRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SwitchSecondLevelMonitoringResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SwitchSlowlogDesensitizationRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SwitchSlowlogDesensitizationResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SwitchSslRequest; @@ -211,10 +241,14 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateConfigurationResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateDatabasesRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateDatabasesResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateDbCacheRuleRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateDbCacheRuleResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateHighRiskCommandsRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateHighRiskCommandsResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateInstanceConfigurationRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateInstanceConfigurationResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateInstanceConfigurationsRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateInstanceConfigurationsResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateInstanceNameRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateInstanceNameResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdatePasswordlessConfigRequest; @@ -266,6 +300,36 @@ public SyncInvoker applyC return new SyncInvoker<>(request, GaussDBforNoSQLMeta.applyConfiguration, hcClient); } + /** + * 应用参数模板 + * + * 将参数模板应用到实例,可以指定一个或多个实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ApplyConfigurationToInstancesRequest 请求对象 + * @return ApplyConfigurationToInstancesResponse + */ + public ApplyConfigurationToInstancesResponse applyConfigurationToInstances( + ApplyConfigurationToInstancesRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforNoSQLMeta.applyConfigurationToInstances); + } + + /** + * 应用参数模板 + * + * 将参数模板应用到实例,可以指定一个或多个实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ApplyConfigurationToInstancesRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker applyConfigurationToInstancesInvoker( + ApplyConfigurationToInstancesRequest request) { + return new SyncInvoker<>(request, GaussDBforNoSQLMeta.applyConfigurationToInstances, hcClient); + } + /** * 批量添加或删除资源标签 * @@ -324,6 +388,36 @@ public SyncInvoker(request, GaussDBforNoSQLMeta.batchUpgradeDatabaseVersion, hcClient); } + /** + * 取消定时任务 + * + * 取消定时任务 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CancelInstanceScheduleWindowRequest 请求对象 + * @return CancelInstanceScheduleWindowResponse + */ + public CancelInstanceScheduleWindowResponse cancelInstanceScheduleWindow( + CancelInstanceScheduleWindowRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforNoSQLMeta.cancelInstanceScheduleWindow); + } + + /** + * 取消定时任务 + * + * 取消定时任务 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CancelInstanceScheduleWindowRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker cancelInstanceScheduleWindowInvoker( + CancelInstanceScheduleWindowRequest request) { + return new SyncInvoker<>(request, GaussDBforNoSQLMeta.cancelInstanceScheduleWindow, hcClient); + } + /** * 校验实例是否可以与指定实例建立/解除容灾关系 * @@ -529,6 +623,64 @@ public SyncInvoker crea return new SyncInvoker<>(request, GaussDBforNoSQLMeta.createConfiguration, hcClient); } + /** + * 创建内存加速映射 + * + * 创建内存加速映射。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateDbCacheMappingRequest 请求对象 + * @return CreateDbCacheMappingResponse + */ + public CreateDbCacheMappingResponse createDbCacheMapping(CreateDbCacheMappingRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforNoSQLMeta.createDbCacheMapping); + } + + /** + * 创建内存加速映射 + * + * 创建内存加速映射。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateDbCacheMappingRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createDbCacheMappingInvoker( + CreateDbCacheMappingRequest request) { + return new SyncInvoker<>(request, GaussDBforNoSQLMeta.createDbCacheMapping, hcClient); + } + + /** + * 创建内存加速规则 + * + * 创建内存加速规则。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateDbCacheRuleRequest 请求对象 + * @return CreateDbCacheRuleResponse + */ + public CreateDbCacheRuleResponse createDbCacheRule(CreateDbCacheRuleRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforNoSQLMeta.createDbCacheRule); + } + + /** + * 创建内存加速规则 + * + * 创建内存加速规则。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateDbCacheRuleRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createDbCacheRuleInvoker( + CreateDbCacheRuleRequest request) { + return new SyncInvoker<>(request, GaussDBforNoSQLMeta.createDbCacheRule, hcClient); + } + /** * 创建Redis数据库账号 * @@ -672,6 +824,64 @@ public SyncInvoker dele return new SyncInvoker<>(request, GaussDBforNoSQLMeta.deleteConfiguration, hcClient); } + /** + * 解除内存加速映射 + * + * 解除指定内存加速映射。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteDbCacheMappingRequest 请求对象 + * @return DeleteDbCacheMappingResponse + */ + public DeleteDbCacheMappingResponse deleteDbCacheMapping(DeleteDbCacheMappingRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforNoSQLMeta.deleteDbCacheMapping); + } + + /** + * 解除内存加速映射 + * + * 解除指定内存加速映射。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteDbCacheMappingRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteDbCacheMappingInvoker( + DeleteDbCacheMappingRequest request) { + return new SyncInvoker<>(request, GaussDBforNoSQLMeta.deleteDbCacheMapping, hcClient); + } + + /** + * 删除内存加速规则 + * + * 删除内存加速规则。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteDbCacheRuleRequest 请求对象 + * @return DeleteDbCacheRuleResponse + */ + public DeleteDbCacheRuleResponse deleteDbCacheRule(DeleteDbCacheRuleRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforNoSQLMeta.deleteDbCacheRule); + } + + /** + * 删除内存加速规则 + * + * 删除内存加速规则。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteDbCacheRuleRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteDbCacheRuleInvoker( + DeleteDbCacheRuleRequest request) { + return new SyncInvoker<>(request, GaussDBforNoSQLMeta.deleteDbCacheRule, hcClient); + } + /** * 删除Redis数据库账号 * @@ -1048,6 +1258,64 @@ public SyncInvoker listDatastores return new SyncInvoker<>(request, GaussDBforNoSQLMeta.listDatastores, hcClient); } + /** + * 查询内存加速映射列表和详情 + * + * 根据指定条件查询内存加速映射关系列表和详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDbCacheMappingsRequest 请求对象 + * @return ListDbCacheMappingsResponse + */ + public ListDbCacheMappingsResponse listDbCacheMappings(ListDbCacheMappingsRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforNoSQLMeta.listDbCacheMappings); + } + + /** + * 查询内存加速映射列表和详情 + * + * 根据指定条件查询内存加速映射关系列表和详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDbCacheMappingsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listDbCacheMappingsInvoker( + ListDbCacheMappingsRequest request) { + return new SyncInvoker<>(request, GaussDBforNoSQLMeta.listDbCacheMappings, hcClient); + } + + /** + * 查询内存加速规则列表和详情 + * + * 查询内存加速规则列表和详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDbCacheRulesRequest 请求对象 + * @return ListDbCacheRulesResponse + */ + public ListDbCacheRulesResponse listDbCacheRules(ListDbCacheRulesRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforNoSQLMeta.listDbCacheRules); + } + + /** + * 查询内存加速规则列表和详情 + * + * 查询内存加速规则列表和详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDbCacheRulesRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listDbCacheRulesInvoker( + ListDbCacheRulesRequest request) { + return new SyncInvoker<>(request, GaussDBforNoSQLMeta.listDbCacheRules, hcClient); + } + /** * 获取Redis数据库账号列表和详情 * @@ -1248,6 +1516,36 @@ public SyncInvoker return new SyncInvoker<>(request, GaussDBforNoSQLMeta.listInstanceDatabases, hcClient); } + /** + * + * + * 查询实例可维护时间段 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListInstanceMaintenanceWindowRequest 请求对象 + * @return ListInstanceMaintenanceWindowResponse + */ + public ListInstanceMaintenanceWindowResponse listInstanceMaintenanceWindow( + ListInstanceMaintenanceWindowRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforNoSQLMeta.listInstanceMaintenanceWindow); + } + + /** + * + * + * 查询实例可维护时间段 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListInstanceMaintenanceWindowRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listInstanceMaintenanceWindowInvoker( + ListInstanceMaintenanceWindowRequest request) { + return new SyncInvoker<>(request, GaussDBforNoSQLMeta.listInstanceMaintenanceWindow, hcClient); + } + /** * 查询资源标签 * @@ -1537,6 +1835,35 @@ public SyncInvoker list return new SyncInvoker<>(request, GaussDBforNoSQLMeta.listMongodbSlowLogs, hcClient); } + /** + * 查询定时任务列表 + * + * 根据指定条件查询定时任务列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListNosqlTaskListRequest 请求对象 + * @return ListNosqlTaskListResponse + */ + public ListNosqlTaskListResponse listNosqlTaskList(ListNosqlTaskListRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforNoSQLMeta.listNosqlTaskList); + } + + /** + * 查询定时任务列表 + * + * 根据指定条件查询定时任务列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListNosqlTaskListRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listNosqlTaskListInvoker( + ListNosqlTaskListRequest request) { + return new SyncInvoker<>(request, GaussDBforNoSQLMeta.listNosqlTaskList, hcClient); + } + /** * 查询项目标签 * @@ -1797,6 +2124,36 @@ public SyncInvoker modifyEpsQuo return new SyncInvoker<>(request, GaussDBforNoSQLMeta.modifyEpsQuotas, hcClient); } + /** + * 查询实例可维护时间段 + * + * 设置指定实例可维护时间段。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ModifyInstanceMaintenanceWindowRequest 请求对象 + * @return ModifyInstanceMaintenanceWindowResponse + */ + public ModifyInstanceMaintenanceWindowResponse modifyInstanceMaintenanceWindow( + ModifyInstanceMaintenanceWindowRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforNoSQLMeta.modifyInstanceMaintenanceWindow); + } + + /** + * 查询实例可维护时间段 + * + * 设置指定实例可维护时间段。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ModifyInstanceMaintenanceWindowRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker modifyInstanceMaintenanceWindowInvoker( + ModifyInstanceMaintenanceWindowRequest request) { + return new SyncInvoker<>(request, GaussDBforNoSQLMeta.modifyInstanceMaintenanceWindow, hcClient); + } + /** * 修改数据库端口 * @@ -2266,6 +2623,37 @@ public SyncInvoker setBackupPol return new SyncInvoker<>(request, GaussDBforNoSQLMeta.setBackupPolicy, hcClient); } + /** + * 开启/关闭实例数据导出 + * + * 开启/关闭实例数据导出。 + * 当前支持将InfluxDB数据转为parquet格式文件然后上传到指定的OBS桶中。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SetInstanceDataDumpRequest 请求对象 + * @return SetInstanceDataDumpResponse + */ + public SetInstanceDataDumpResponse setInstanceDataDump(SetInstanceDataDumpRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforNoSQLMeta.setInstanceDataDump); + } + + /** + * 开启/关闭实例数据导出 + * + * 开启/关闭实例数据导出。 + * 当前支持将InfluxDB数据转为parquet格式文件然后上传到指定的OBS桶中。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SetInstanceDataDumpRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker setInstanceDataDumpInvoker( + SetInstanceDataDumpRequest request) { + return new SyncInvoker<>(request, GaussDBforNoSQLMeta.setInstanceDataDump, hcClient); + } + /** * 设置回收策略 * @@ -2438,6 +2826,35 @@ public SyncInvoker return new SyncInvoker<>(request, GaussDBforNoSQLMeta.showAutoEnlargePolicy, hcClient); } + /** + * 查询自动备份策略 + * + * 查询自动备份策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowBackupPoliciesRequest 请求对象 + * @return ShowBackupPoliciesResponse + */ + public ShowBackupPoliciesResponse showBackupPolicies(ShowBackupPoliciesRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforNoSQLMeta.showBackupPolicies); + } + + /** + * 查询自动备份策略 + * + * 查询自动备份策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowBackupPoliciesRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showBackupPoliciesInvoker( + ShowBackupPoliciesRequest request) { + return new SyncInvoker<>(request, GaussDBforNoSQLMeta.showBackupPolicies, hcClient); + } + /** * 查询自动备份策略 * @@ -2900,6 +3317,36 @@ public SyncInvoker showRe return new SyncInvoker<>(request, GaussDBforNoSQLMeta.showRestorableList, hcClient); } + /** + * 查询秒级监控配置 + * + * 查询秒级监控配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowSecondLevelMonitoringStatusRequest 请求对象 + * @return ShowSecondLevelMonitoringStatusResponse + */ + public ShowSecondLevelMonitoringStatusResponse showSecondLevelMonitoringStatus( + ShowSecondLevelMonitoringStatusRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforNoSQLMeta.showSecondLevelMonitoringStatus); + } + + /** + * 查询秒级监控配置 + * + * 查询秒级监控配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowSecondLevelMonitoringStatusRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showSecondLevelMonitoringStatusInvoker( + ShowSecondLevelMonitoringStatusRequest request) { + return new SyncInvoker<>(request, GaussDBforNoSQLMeta.showSecondLevelMonitoringStatus, hcClient); + } + /** * 查询慢日志脱敏状态 * @@ -2986,6 +3433,35 @@ public SyncInvoker switchIpGroupInv return new SyncInvoker<>(request, GaussDBforNoSQLMeta.switchIpGroup, hcClient); } + /** + * 开启/关闭秒级监控 + * + * 开启或关闭指定实例的5秒级监控。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SwitchSecondLevelMonitoringRequest 请求对象 + * @return SwitchSecondLevelMonitoringResponse + */ + public SwitchSecondLevelMonitoringResponse switchSecondLevelMonitoring(SwitchSecondLevelMonitoringRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforNoSQLMeta.switchSecondLevelMonitoring); + } + + /** + * 开启/关闭秒级监控 + * + * 开启或关闭指定实例的5秒级监控。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SwitchSecondLevelMonitoringRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker switchSecondLevelMonitoringInvoker( + SwitchSecondLevelMonitoringRequest request) { + return new SyncInvoker<>(request, GaussDBforNoSQLMeta.switchSecondLevelMonitoring, hcClient); + } + /** * 设置慢日志脱敏状态 * @@ -3188,6 +3664,35 @@ public SyncInvoker updateDataba return new SyncInvoker<>(request, GaussDBforNoSQLMeta.updateDatabases, hcClient); } + /** + * 修改内存加速规则 + * + * 修改指定内存加速规则。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateDbCacheRuleRequest 请求对象 + * @return UpdateDbCacheRuleResponse + */ + public UpdateDbCacheRuleResponse updateDbCacheRule(UpdateDbCacheRuleRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforNoSQLMeta.updateDbCacheRule); + } + + /** + * 修改内存加速规则 + * + * 修改指定内存加速规则。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateDbCacheRuleRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateDbCacheRuleInvoker( + UpdateDbCacheRuleRequest request) { + return new SyncInvoker<>(request, GaussDBforNoSQLMeta.updateDbCacheRule, hcClient); + } + /** * 修改高危命令 * @@ -3246,6 +3751,36 @@ public SyncInvoker(request, GaussDBforNoSQLMeta.updateInstanceConfiguration, hcClient); } + /** + * 修改指定实例的参数 + * + * 修改指定实例的参数。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateInstanceConfigurationsRequest 请求对象 + * @return UpdateInstanceConfigurationsResponse + */ + public UpdateInstanceConfigurationsResponse updateInstanceConfigurations( + UpdateInstanceConfigurationsRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBforNoSQLMeta.updateInstanceConfigurations); + } + + /** + * 修改指定实例的参数 + * + * 修改指定实例的参数。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateInstanceConfigurationsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateInstanceConfigurationsInvoker( + UpdateInstanceConfigurationsRequest request) { + return new SyncInvoker<>(request, GaussDBforNoSQLMeta.updateInstanceConfigurations, hcClient); + } + /** * 修改实例名称 * diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/GaussDBforNoSQLMeta.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/GaussDBforNoSQLMeta.java index fbd56f38fb..eca85c4ffa 100644 --- a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/GaussDBforNoSQLMeta.java +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/GaussDBforNoSQLMeta.java @@ -9,12 +9,17 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ApplyConfigurationRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ApplyConfigurationRequestBody; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ApplyConfigurationResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ApplyConfigurationToInstancesRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ApplyConfigurationToInstancesRequestBody; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ApplyConfigurationToInstancesResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.BatchTagActionRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.BatchTagActionRequestBody; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.BatchTagActionResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.BatchUpgradeDatabaseVersionRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.BatchUpgradeDatabaseVersionRequestBody; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.BatchUpgradeDatabaseVersionResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CancelInstanceScheduleWindowRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CancelInstanceScheduleWindowResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CheckDisasterRecoveryOperationRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CheckDisasterRecoveryOperationResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CheckWeekPasswordRequest; @@ -35,6 +40,12 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateConfigurationRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateConfigurationRequestBody; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateConfigurationResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateDbCacheMappingRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateDbCacheMappingRequestBody; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateDbCacheMappingResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateDbCacheRuleRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateDbCacheRuleRequestBody; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateDbCacheRuleResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateDbUserRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateDbUserResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.CreateDisasterRecoveryRequest; @@ -46,6 +57,12 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteBackupResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteConfigurationRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteConfigurationResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteDbCacheMappingRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteDbCacheMappingRequestBody; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteDbCacheMappingResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteDbCacheRuleRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteDbCacheRuleRequestBody; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteDbCacheRuleResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteDbUserRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteDbUserResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.DeleteDisasterRecoveryRequest; @@ -79,6 +96,10 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListConfigurationsResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDatastoresRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDatastoresResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDbCacheMappingsRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDbCacheMappingsResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDbCacheRulesRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDbCacheRulesResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDbUsersRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDbUsersResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListDedicatedResourcesRequest; @@ -94,6 +115,8 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListInfluxdbSlowLogsResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListInstanceDatabasesRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListInstanceDatabasesResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListInstanceMaintenanceWindowRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListInstanceMaintenanceWindowResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListInstanceTagsRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListInstanceTagsResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListInstancesByResourceTagsRequest; @@ -117,6 +140,8 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListMongodbSlowLogsRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListMongodbSlowLogsRequestBody; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListMongodbSlowLogsResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListNosqlTaskListRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListNosqlTaskListResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListProjectTagsRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListProjectTagsResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ListRecycleInstancesRequest; @@ -136,6 +161,9 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyDbUserPrivilegeResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyEpsQuotasRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyEpsQuotasResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyInstanceMaintenanceWindowRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyInstanceMaintenanceWindowResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyInstanceOpsWindowV3Req; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyPortRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyPortRequestBody; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ModifyPortResponse; @@ -189,6 +217,9 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SetBackupPolicyRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SetBackupPolicyRequestBody; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SetBackupPolicyResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SetInstanceDataDumpRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SetInstanceDataDumpRequestBody; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SetInstanceDataDumpResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SetRecyclePolicyRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SetRecyclePolicyResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowAllInstancesBackupsNewRequest; @@ -203,6 +234,8 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowApplyHistoryResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowAutoEnlargePolicyRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowAutoEnlargePolicyResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowBackupPoliciesRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowBackupPoliciesResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowBackupPolicyRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowBackupPolicyResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowConfigurationDetailRequest; @@ -236,6 +269,8 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowRedisBigKeysResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowRestorableListRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowRestorableListResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowSecondLevelMonitoringStatusRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowSecondLevelMonitoringStatusResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowSlowLogDesensitizationRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShowSlowLogDesensitizationResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.ShrinkInstanceNodeRequest; @@ -244,6 +279,9 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SwitchIpGroupRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SwitchIpGroupRequestBody; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SwitchIpGroupResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SwitchSecondLevelMonitoringRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SwitchSecondLevelMonitoringRequestBody; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SwitchSecondLevelMonitoringResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SwitchSlowlogDesensitizationRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SwitchSlowlogDesensitizationRequestBody; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.SwitchSlowlogDesensitizationResponse; @@ -264,11 +302,17 @@ import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateDatabasesRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateDatabasesRequestBody; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateDatabasesResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateDbCacheRuleRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateDbCacheRuleRequestBody; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateDbCacheRuleResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateHighRiskCommandsRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateHighRiskCommandsResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateInstanceConfigurationRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateInstanceConfigurationRequestBody; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateInstanceConfigurationResponse; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateInstanceConfigurationsRequest; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateInstanceConfigurationsRequestBody; +import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateInstanceConfigurationsResponse; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateInstanceNameRequest; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateInstanceNameRequestBody; import com.huaweicloud.sdk.gaussdbfornosql.v3.model.UpdateInstanceNameResponse; @@ -312,6 +356,39 @@ private static HttpRequestDef applyConfigurationToInstances = + genForApplyConfigurationToInstances(); + + private static HttpRequestDef genForApplyConfigurationToInstances() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.PUT, + ApplyConfigurationToInstancesRequest.class, + ApplyConfigurationToInstancesResponse.class) + .withName("ApplyConfigurationToInstances") + .withUri("/v3.1/{project_id}/configurations/{config_id}/apply") + .withContentType("application/json"); + + // requests + builder.withRequestField("config_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ApplyConfigurationToInstancesRequest::getConfigId, + ApplyConfigurationToInstancesRequest::setConfigId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ApplyConfigurationToInstancesRequestBody.class), + f -> f.withMarshaller(ApplyConfigurationToInstancesRequest::getBody, + ApplyConfigurationToInstancesRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef batchTagAction = genForBatchTagAction(); @@ -367,6 +444,33 @@ private static HttpRequestDef cancelInstanceScheduleWindow = + genForCancelInstanceScheduleWindow(); + + private static HttpRequestDef genForCancelInstanceScheduleWindow() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.DELETE, + CancelInstanceScheduleWindowRequest.class, + CancelInstanceScheduleWindowResponse.class) + .withName("CancelInstanceScheduleWindow") + .withUri("/v3/{project_id}/scheduled-jobs/{job_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CancelInstanceScheduleWindowRequest::getJobId, + CancelInstanceScheduleWindowRequest::setJobId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef checkDisasterRecoveryOperation = genForCheckDisasterRecoveryOperation(); @@ -552,6 +656,52 @@ private static HttpRequestDef createDbCacheMapping = + genForCreateDbCacheMapping(); + + private static HttpRequestDef genForCreateDbCacheMapping() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, CreateDbCacheMappingRequest.class, CreateDbCacheMappingResponse.class) + .withName("CreateDbCacheMapping") + .withUri("/v3/{project_id}/dbcache/mapping") + .withContentType("application/json"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateDbCacheMappingRequestBody.class), + f -> f.withMarshaller(CreateDbCacheMappingRequest::getBody, CreateDbCacheMappingRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef createDbCacheRule = + genForCreateDbCacheRule(); + + private static HttpRequestDef genForCreateDbCacheRule() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, CreateDbCacheRuleRequest.class, CreateDbCacheRuleResponse.class) + .withName("CreateDbCacheRule") + .withUri("/v3/{project_id}/dbcache/rule") + .withContentType("application/json"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(CreateDbCacheRuleRequestBody.class), + f -> f.withMarshaller(CreateDbCacheRuleRequest::getBody, CreateDbCacheRuleRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef createDbUser = genForCreateDbUser(); private static HttpRequestDef genForCreateDbUser() { @@ -676,6 +826,52 @@ private static HttpRequestDef deleteDbCacheMapping = + genForDeleteDbCacheMapping(); + + private static HttpRequestDef genForDeleteDbCacheMapping() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.DELETE, DeleteDbCacheMappingRequest.class, DeleteDbCacheMappingResponse.class) + .withName("DeleteDbCacheMapping") + .withUri("/v3/{project_id}/dbcache/mapping") + .withContentType("application/json"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(DeleteDbCacheMappingRequestBody.class), + f -> f.withMarshaller(DeleteDbCacheMappingRequest::getBody, DeleteDbCacheMappingRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef deleteDbCacheRule = + genForDeleteDbCacheRule(); + + private static HttpRequestDef genForDeleteDbCacheRule() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.DELETE, DeleteDbCacheRuleRequest.class, DeleteDbCacheRuleResponse.class) + .withName("DeleteDbCacheRule") + .withUri("/v3/{project_id}/dbcache/rule") + .withContentType("application/json"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(DeleteDbCacheRuleRequestBody.class), + f -> f.withMarshaller(DeleteDbCacheRuleRequest::getBody, DeleteDbCacheRuleRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef deleteDbUser = genForDeleteDbUser(); private static HttpRequestDef genForDeleteDbUser() { @@ -1024,6 +1220,124 @@ private static HttpRequestDef gen return builder.build(); } + public static final HttpRequestDef listDbCacheMappings = + genForListDbCacheMappings(); + + private static HttpRequestDef genForListDbCacheMappings() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListDbCacheMappingsRequest.class, ListDbCacheMappingsResponse.class) + .withName("ListDbCacheMappings") + .withUri("/v3/{project_id}/dbcache/mappings") + .withContentType("application/json"); + + // requests + builder.withRequestField("id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDbCacheMappingsRequest::getId, ListDbCacheMappingsRequest::setId)); + builder.withRequestField("name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDbCacheMappingsRequest::getName, ListDbCacheMappingsRequest::setName)); + builder.withRequestField("source_instance_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDbCacheMappingsRequest::getSourceInstanceId, + ListDbCacheMappingsRequest::setSourceInstanceId)); + builder.withRequestField("source_instance_name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDbCacheMappingsRequest::getSourceInstanceName, + ListDbCacheMappingsRequest::setSourceInstanceName)); + builder.withRequestField("target_instance_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDbCacheMappingsRequest::getTargetInstanceId, + ListDbCacheMappingsRequest::setTargetInstanceId)); + builder.withRequestField("target_instance_name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDbCacheMappingsRequest::getTargetInstanceName, + ListDbCacheMappingsRequest::setTargetInstanceName)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListDbCacheMappingsRequest::getOffset, ListDbCacheMappingsRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListDbCacheMappingsRequest::getLimit, ListDbCacheMappingsRequest::setLimit)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listDbCacheRules = + genForListDbCacheRules(); + + private static HttpRequestDef genForListDbCacheRules() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListDbCacheRulesRequest.class, ListDbCacheRulesResponse.class) + .withName("ListDbCacheRules") + .withUri("/v3/{project_id}/dbcache/rules") + .withContentType("application/json"); + + // requests + builder.withRequestField("dbcache_mapping_id", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDbCacheRulesRequest::getDbcacheMappingId, + ListDbCacheRulesRequest::setDbcacheMappingId)); + builder.withRequestField("rule_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDbCacheRulesRequest::getRuleId, ListDbCacheRulesRequest::setRuleId)); + builder.withRequestField("rule_name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDbCacheRulesRequest::getRuleName, ListDbCacheRulesRequest::setRuleName)); + builder.withRequestField("source_db_schema", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDbCacheRulesRequest::getSourceDbSchema, + ListDbCacheRulesRequest::setSourceDbSchema)); + builder.withRequestField("source_db_table", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDbCacheRulesRequest::getSourceDbTable, + ListDbCacheRulesRequest::setSourceDbTable)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDbCacheRulesRequest::getOffset, ListDbCacheRulesRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDbCacheRulesRequest::getLimit, ListDbCacheRulesRequest::setLimit)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listDbUsers = genForListDbUsers(); private static HttpRequestDef genForListDbUsers() { @@ -1246,6 +1560,33 @@ private static HttpRequestDef listInstanceMaintenanceWindow = + genForListInstanceMaintenanceWindow(); + + private static HttpRequestDef genForListInstanceMaintenanceWindow() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ListInstanceMaintenanceWindowRequest.class, + ListInstanceMaintenanceWindowResponse.class) + .withName("ListInstanceMaintenanceWindow") + .withUri("/v3/{project_id}/instances/{instance_id}/ops-window") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListInstanceMaintenanceWindowRequest::getInstanceId, + ListInstanceMaintenanceWindowRequest::setInstanceId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listInstanceTags = genForListInstanceTags(); @@ -1602,6 +1943,59 @@ private static HttpRequestDef listNosqlTaskList = + genForListNosqlTaskList(); + + private static HttpRequestDef genForListNosqlTaskList() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListNosqlTaskListRequest.class, ListNosqlTaskListResponse.class) + .withName("ListNosqlTaskList") + .withUri("/v3/{project_id}/scheduled-jobs") + .withContentType("application/json"); + + // requests + builder.withRequestField("job_name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListNosqlTaskListRequest::getJobName, ListNosqlTaskListRequest::setJobName)); + builder.withRequestField("job_status", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListNosqlTaskListRequest::getJobStatus, ListNosqlTaskListRequest::setJobStatus)); + builder.withRequestField("instance_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListNosqlTaskListRequest::getInstanceId, ListNosqlTaskListRequest::setInstanceId)); + builder.withRequestField("start_time", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListNosqlTaskListRequest::getStartTime, ListNosqlTaskListRequest::setStartTime)); + builder.withRequestField("end_time", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListNosqlTaskListRequest::getEndTime, ListNosqlTaskListRequest::setEndTime)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListNosqlTaskListRequest::getOffset, ListNosqlTaskListRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListNosqlTaskListRequest::getLimit, ListNosqlTaskListRequest::setLimit)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listProjectTags = genForListProjectTags(); @@ -1912,6 +2306,39 @@ private static HttpRequestDef g return builder.build(); } + public static final HttpRequestDef modifyInstanceMaintenanceWindow = + genForModifyInstanceMaintenanceWindow(); + + private static HttpRequestDef genForModifyInstanceMaintenanceWindow() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.PUT, + ModifyInstanceMaintenanceWindowRequest.class, + ModifyInstanceMaintenanceWindowResponse.class) + .withName("ModifyInstanceMaintenanceWindow") + .withUri("/v3/{project_id}/instances/{instance_id}/maintenance-window") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ModifyInstanceMaintenanceWindowRequest::getInstanceId, + ModifyInstanceMaintenanceWindowRequest::setInstanceId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ModifyInstanceOpsWindowV3Req.class), + f -> f.withMarshaller(ModifyInstanceMaintenanceWindowRequest::getBody, + ModifyInstanceMaintenanceWindowRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef modifyPort = genForModifyPort(); private static HttpRequestDef genForModifyPort() { @@ -2356,6 +2783,35 @@ private static HttpRequestDef g return builder.build(); } + public static final HttpRequestDef setInstanceDataDump = + genForSetInstanceDataDump(); + + private static HttpRequestDef genForSetInstanceDataDump() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.PUT, SetInstanceDataDumpRequest.class, SetInstanceDataDumpResponse.class) + .withName("SetInstanceDataDump") + .withUri("/v3/{project_id}/instances/{instance_id}/data-dump") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(SetInstanceDataDumpRequest::getInstanceId, + SetInstanceDataDumpRequest::setInstanceId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(SetInstanceDataDumpRequestBody.class), + f -> f.withMarshaller(SetInstanceDataDumpRequest::getBody, SetInstanceDataDumpRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef setRecyclePolicy = genForSetRecyclePolicy(); @@ -2611,6 +3067,29 @@ private static HttpRequestDef showBackupPolicies = + genForShowBackupPolicies(); + + private static HttpRequestDef genForShowBackupPolicies() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowBackupPoliciesRequest.class, ShowBackupPoliciesResponse.class) + .withName("ShowBackupPolicies") + .withUri("/v3.1/{project_id}/instances/{instance_id}/backups/policy") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowBackupPoliciesRequest::getInstanceId, ShowBackupPoliciesRequest::setInstanceId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showBackupPolicy = genForShowBackupPolicy(); @@ -3077,6 +3556,33 @@ private static HttpRequestDef showSecondLevelMonitoringStatus = + genForShowSecondLevelMonitoringStatus(); + + private static HttpRequestDef genForShowSecondLevelMonitoringStatus() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ShowSecondLevelMonitoringStatusRequest.class, + ShowSecondLevelMonitoringStatusResponse.class) + .withName("ShowSecondLevelMonitoringStatus") + .withUri("/v3/{project_id}/instances/{instance_id}/monitoring-by-seconds/switch") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowSecondLevelMonitoringStatusRequest::getInstanceId, + ShowSecondLevelMonitoringStatusRequest::setInstanceId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showSlowLogDesensitization = genForShowSlowLogDesensitization(); @@ -3160,6 +3666,39 @@ private static HttpRequestDef genFo return builder.build(); } + public static final HttpRequestDef switchSecondLevelMonitoring = + genForSwitchSecondLevelMonitoring(); + + private static HttpRequestDef genForSwitchSecondLevelMonitoring() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.PUT, + SwitchSecondLevelMonitoringRequest.class, + SwitchSecondLevelMonitoringResponse.class) + .withName("SwitchSecondLevelMonitoring") + .withUri("/v3/{project_id}/instances/{instance_id}/monitoring-by-seconds/switch") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(SwitchSecondLevelMonitoringRequest::getInstanceId, + SwitchSecondLevelMonitoringRequest::setInstanceId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(SwitchSecondLevelMonitoringRequestBody.class), + f -> f.withMarshaller(SwitchSecondLevelMonitoringRequest::getBody, + SwitchSecondLevelMonitoringRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef switchSlowlogDesensitization = genForSwitchSlowlogDesensitization(); @@ -3356,6 +3895,29 @@ private static HttpRequestDef g return builder.build(); } + public static final HttpRequestDef updateDbCacheRule = + genForUpdateDbCacheRule(); + + private static HttpRequestDef genForUpdateDbCacheRule() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.PUT, UpdateDbCacheRuleRequest.class, UpdateDbCacheRuleResponse.class) + .withName("UpdateDbCacheRule") + .withUri("/v3/{project_id}/dbcache/rule") + .withContentType("application/json"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(UpdateDbCacheRuleRequestBody.class), + f -> f.withMarshaller(UpdateDbCacheRuleRequest::getBody, UpdateDbCacheRuleRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef updateHighRiskCommands = genForUpdateHighRiskCommands(); @@ -3418,6 +3980,39 @@ private static HttpRequestDef updateInstanceConfigurations = + genForUpdateInstanceConfigurations(); + + private static HttpRequestDef genForUpdateInstanceConfigurations() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.PUT, + UpdateInstanceConfigurationsRequest.class, + UpdateInstanceConfigurationsResponse.class) + .withName("UpdateInstanceConfigurations") + .withUri("/v3.1/{project_id}/instances/{instance_id}/configurations") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateInstanceConfigurationsRequest::getInstanceId, + UpdateInstanceConfigurationsRequest::setInstanceId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateInstanceConfigurationsRequestBody.class), + f -> f.withMarshaller(UpdateInstanceConfigurationsRequest::getBody, + UpdateInstanceConfigurationsRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef updateInstanceName = genForUpdateInstanceName(); diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ApplyConfigurationToInstancesRequest.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ApplyConfigurationToInstancesRequest.java new file mode 100644 index 0000000000..8c36fac69a --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ApplyConfigurationToInstancesRequest.java @@ -0,0 +1,106 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class ApplyConfigurationToInstancesRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "config_id") + + private String configId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private ApplyConfigurationToInstancesRequestBody body; + + public ApplyConfigurationToInstancesRequest withConfigId(String configId) { + this.configId = configId; + return this; + } + + /** + * 参数模板ID。 + * @return configId + */ + public String getConfigId() { + return configId; + } + + public void setConfigId(String configId) { + this.configId = configId; + } + + public ApplyConfigurationToInstancesRequest withBody(ApplyConfigurationToInstancesRequestBody body) { + this.body = body; + return this; + } + + public ApplyConfigurationToInstancesRequest withBody( + Consumer bodySetter) { + if (this.body == null) { + this.body = new ApplyConfigurationToInstancesRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ApplyConfigurationToInstancesRequestBody getBody() { + return body; + } + + public void setBody(ApplyConfigurationToInstancesRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ApplyConfigurationToInstancesRequest that = (ApplyConfigurationToInstancesRequest) obj; + return Objects.equals(this.configId, that.configId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(configId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApplyConfigurationToInstancesRequest {\n"); + sb.append(" configId: ").append(toIndentedString(configId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ApplyConfigurationToInstancesRequestBody.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ApplyConfigurationToInstancesRequestBody.java new file mode 100644 index 0000000000..ca51f13493 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ApplyConfigurationToInstancesRequestBody.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * ApplyConfigurationToInstancesRequestBody + */ +public class ApplyConfigurationToInstancesRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_ids") + + private List instanceIds = null; + + public ApplyConfigurationToInstancesRequestBody withInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + return this; + } + + public ApplyConfigurationToInstancesRequestBody addInstanceIdsItem(String instanceIdsItem) { + if (this.instanceIds == null) { + this.instanceIds = new ArrayList<>(); + } + this.instanceIds.add(instanceIdsItem); + return this; + } + + public ApplyConfigurationToInstancesRequestBody withInstanceIds(Consumer> instanceIdsSetter) { + if (this.instanceIds == null) { + this.instanceIds = new ArrayList<>(); + } + instanceIdsSetter.accept(this.instanceIds); + return this; + } + + /** + * 实例ID列表对象。 + * @return instanceIds + */ + public List getInstanceIds() { + return instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ApplyConfigurationToInstancesRequestBody that = (ApplyConfigurationToInstancesRequestBody) obj; + return Objects.equals(this.instanceIds, that.instanceIds); + } + + @Override + public int hashCode() { + return Objects.hash(instanceIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApplyConfigurationToInstancesRequestBody {\n"); + sb.append(" instanceIds: ").append(toIndentedString(instanceIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ApplyConfigurationToInstancesResponse.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ApplyConfigurationToInstancesResponse.java new file mode 100644 index 0000000000..4642ed126d --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ApplyConfigurationToInstancesResponse.java @@ -0,0 +1,96 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ApplyConfigurationToInstancesResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "success") + + private Boolean success; + + public ApplyConfigurationToInstancesResponse withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 应用参数模板的异步任务ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public ApplyConfigurationToInstancesResponse withSuccess(Boolean success) { + this.success = success; + return this; + } + + /** + * 应用参数模板任务是否提交成功。 - 取值为“true”,表示任务提交成功。 - 取值为“false”,表示任务提交失败。 + * @return success + */ + public Boolean getSuccess() { + return success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ApplyConfigurationToInstancesResponse that = (ApplyConfigurationToInstancesResponse) obj; + return Objects.equals(this.jobId, that.jobId) && Objects.equals(this.success, that.success); + } + + @Override + public int hashCode() { + return Objects.hash(jobId, success); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApplyConfigurationToInstancesResponse {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/CancelInstanceScheduleWindowRequest.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/CancelInstanceScheduleWindowRequest.java new file mode 100644 index 0000000000..2c23cf998f --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/CancelInstanceScheduleWindowRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class CancelInstanceScheduleWindowRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + public CancelInstanceScheduleWindowRequest withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 任务ID,取值为定时任务列表返回job_id字段。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CancelInstanceScheduleWindowRequest that = (CancelInstanceScheduleWindowRequest) obj; + return Objects.equals(this.jobId, that.jobId); + } + + @Override + public int hashCode() { + return Objects.hash(jobId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CancelInstanceScheduleWindowRequest {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/CancelInstanceScheduleWindowResponse.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/CancelInstanceScheduleWindowResponse.java new file mode 100644 index 0000000000..d3258ce9da --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/CancelInstanceScheduleWindowResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class CancelInstanceScheduleWindowResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CancelInstanceScheduleWindowResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribePostpaidVolumeRequest.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/CreateDbCacheMappingRequest.java similarity index 69% rename from services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribePostpaidVolumeRequest.java rename to services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/CreateDbCacheMappingRequest.java index 9025ed0c31..ad8090537b 100644 --- a/services/evs/src/main/java/com/huaweicloud/sdk/evs/v2/model/UnsubscribePostpaidVolumeRequest.java +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/CreateDbCacheMappingRequest.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.evs.v2.model; +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -9,21 +9,21 @@ /** * Request Object */ -public class UnsubscribePostpaidVolumeRequest { +public class CreateDbCacheMappingRequest { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "body") - private UnsubscribeVolumeRequestBody body; + private CreateDbCacheMappingRequestBody body; - public UnsubscribePostpaidVolumeRequest withBody(UnsubscribeVolumeRequestBody body) { + public CreateDbCacheMappingRequest withBody(CreateDbCacheMappingRequestBody body) { this.body = body; return this; } - public UnsubscribePostpaidVolumeRequest withBody(Consumer bodySetter) { + public CreateDbCacheMappingRequest withBody(Consumer bodySetter) { if (this.body == null) { - this.body = new UnsubscribeVolumeRequestBody(); + this.body = new CreateDbCacheMappingRequestBody(); bodySetter.accept(this.body); } @@ -34,11 +34,11 @@ public UnsubscribePostpaidVolumeRequest withBody(Consumer bodySetter) { + public CreateDbCacheRuleRequest withBody(Consumer bodySetter) { if (this.body == null) { - this.body = new TextDetectionReq(); + this.body = new CreateDbCacheRuleRequestBody(); bodySetter.accept(this.body); } @@ -34,11 +34,11 @@ public RunTextModerationRequest withBody(Consumer bodySetter) * Get body * @return body */ - public TextDetectionReq getBody() { + public CreateDbCacheRuleRequestBody getBody() { return body; } - public void setBody(TextDetectionReq body) { + public void setBody(CreateDbCacheRuleRequestBody body) { this.body = body; } @@ -50,7 +50,7 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - RunTextModerationRequest that = (RunTextModerationRequest) obj; + CreateDbCacheRuleRequest that = (CreateDbCacheRuleRequest) obj; return Objects.equals(this.body, that.body); } @@ -62,7 +62,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RunTextModerationRequest {\n"); + sb.append("class CreateDbCacheRuleRequest {\n"); sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/CreateDbCacheRuleRequestBody.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/CreateDbCacheRuleRequestBody.java new file mode 100644 index 0000000000..6c53bc0f16 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/CreateDbCacheRuleRequestBody.java @@ -0,0 +1,379 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * CreateDbCacheRuleRequestBody + */ +public class CreateDbCacheRuleRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dbcache_mapping_id") + + private String dbcacheMappingId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_db_schema") + + private String sourceDbSchema; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_db_table") + + private String sourceDbTable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "storage_type") + + private String storageType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_database") + + private String targetDatabase; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key_columns") + + private List keyColumns = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value_columns") + + private List valueColumns = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ttl") + + private String ttl; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key_separator") + + private String keySeparator; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value_separator") + + private String valueSeparator; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key_prefix") + + private String keyPrefix; + + public CreateDbCacheRuleRequestBody withDbcacheMappingId(String dbcacheMappingId) { + this.dbcacheMappingId = dbcacheMappingId; + return this; + } + + /** + * 内存加速映射ID。 + * @return dbcacheMappingId + */ + public String getDbcacheMappingId() { + return dbcacheMappingId; + } + + public void setDbcacheMappingId(String dbcacheMappingId) { + this.dbcacheMappingId = dbcacheMappingId; + } + + public CreateDbCacheRuleRequestBody withName(String name) { + this.name = name; + return this; + } + + /** + * 内存加速规则名称。不超过256字符,需要确保在当前映射下唯一。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateDbCacheRuleRequestBody withSourceDbSchema(String sourceDbSchema) { + this.sourceDbSchema = sourceDbSchema; + return this; + } + + /** + * 源端数据库。 + * @return sourceDbSchema + */ + public String getSourceDbSchema() { + return sourceDbSchema; + } + + public void setSourceDbSchema(String sourceDbSchema) { + this.sourceDbSchema = sourceDbSchema; + } + + public CreateDbCacheRuleRequestBody withSourceDbTable(String sourceDbTable) { + this.sourceDbTable = sourceDbTable; + return this; + } + + /** + * 源端数据表。 + * @return sourceDbTable + */ + public String getSourceDbTable() { + return sourceDbTable; + } + + public void setSourceDbTable(String sourceDbTable) { + this.sourceDbTable = sourceDbTable; + } + + public CreateDbCacheRuleRequestBody withStorageType(String storageType) { + this.storageType = storageType; + return this; + } + + /** + * 目标数据存储类型。 取值为: hash。 + * @return storageType + */ + public String getStorageType() { + return storageType; + } + + public void setStorageType(String storageType) { + this.storageType = storageType; + } + + public CreateDbCacheRuleRequestBody withTargetDatabase(String targetDatabase) { + this.targetDatabase = targetDatabase; + return this; + } + + /** + * 目标数据库。取值范围: [0-999]。 + * @return targetDatabase + */ + public String getTargetDatabase() { + return targetDatabase; + } + + public void setTargetDatabase(String targetDatabase) { + this.targetDatabase = targetDatabase; + } + + public CreateDbCacheRuleRequestBody withKeyColumns(List keyColumns) { + this.keyColumns = keyColumns; + return this; + } + + public CreateDbCacheRuleRequestBody addKeyColumnsItem(String keyColumnsItem) { + if (this.keyColumns == null) { + this.keyColumns = new ArrayList<>(); + } + this.keyColumns.add(keyColumnsItem); + return this; + } + + public CreateDbCacheRuleRequestBody withKeyColumns(Consumer> keyColumnsSetter) { + if (this.keyColumns == null) { + this.keyColumns = new ArrayList<>(); + } + keyColumnsSetter.accept(this.keyColumns); + return this; + } + + /** + * 映射的key使用的column列表。 + * @return keyColumns + */ + public List getKeyColumns() { + return keyColumns; + } + + public void setKeyColumns(List keyColumns) { + this.keyColumns = keyColumns; + } + + public CreateDbCacheRuleRequestBody withValueColumns(List valueColumns) { + this.valueColumns = valueColumns; + return this; + } + + public CreateDbCacheRuleRequestBody addValueColumnsItem(String valueColumnsItem) { + if (this.valueColumns == null) { + this.valueColumns = new ArrayList<>(); + } + this.valueColumns.add(valueColumnsItem); + return this; + } + + public CreateDbCacheRuleRequestBody withValueColumns(Consumer> valueColumnsSetter) { + if (this.valueColumns == null) { + this.valueColumns = new ArrayList<>(); + } + valueColumnsSetter.accept(this.valueColumns); + return this; + } + + /** + * 映射的value使用的column列表。 + * @return valueColumns + */ + public List getValueColumns() { + return valueColumns; + } + + public void setValueColumns(List valueColumns) { + this.valueColumns = valueColumns; + } + + public CreateDbCacheRuleRequestBody withTtl(String ttl) { + this.ttl = ttl; + return this; + } + + /** + * key的生存时间。单位:ms。不传该值,默认取2592000000,表示30天。 + * @return ttl + */ + public String getTtl() { + return ttl; + } + + public void setTtl(String ttl) { + this.ttl = ttl; + } + + public CreateDbCacheRuleRequestBody withKeySeparator(String keySeparator) { + this.keySeparator = keySeparator; + return this; + } + + /** + * 映射的key分隔符。只允许一个字符。 + * @return keySeparator + */ + public String getKeySeparator() { + return keySeparator; + } + + public void setKeySeparator(String keySeparator) { + this.keySeparator = keySeparator; + } + + public CreateDbCacheRuleRequestBody withValueSeparator(String valueSeparator) { + this.valueSeparator = valueSeparator; + return this; + } + + /** + * 映射的value分隔符。只允许一个字符。 + * @return valueSeparator + */ + public String getValueSeparator() { + return valueSeparator; + } + + public void setValueSeparator(String valueSeparator) { + this.valueSeparator = valueSeparator; + } + + public CreateDbCacheRuleRequestBody withKeyPrefix(String keyPrefix) { + this.keyPrefix = keyPrefix; + return this; + } + + /** + * 键前缀。最长限制1024字符。需确保key_prefix和target_database在当前映射下唯一。 + * @return keyPrefix + */ + public String getKeyPrefix() { + return keyPrefix; + } + + public void setKeyPrefix(String keyPrefix) { + this.keyPrefix = keyPrefix; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateDbCacheRuleRequestBody that = (CreateDbCacheRuleRequestBody) obj; + return Objects.equals(this.dbcacheMappingId, that.dbcacheMappingId) && Objects.equals(this.name, that.name) + && Objects.equals(this.sourceDbSchema, that.sourceDbSchema) + && Objects.equals(this.sourceDbTable, that.sourceDbTable) + && Objects.equals(this.storageType, that.storageType) + && Objects.equals(this.targetDatabase, that.targetDatabase) + && Objects.equals(this.keyColumns, that.keyColumns) && Objects.equals(this.valueColumns, that.valueColumns) + && Objects.equals(this.ttl, that.ttl) && Objects.equals(this.keySeparator, that.keySeparator) + && Objects.equals(this.valueSeparator, that.valueSeparator) + && Objects.equals(this.keyPrefix, that.keyPrefix); + } + + @Override + public int hashCode() { + return Objects.hash(dbcacheMappingId, + name, + sourceDbSchema, + sourceDbTable, + storageType, + targetDatabase, + keyColumns, + valueColumns, + ttl, + keySeparator, + valueSeparator, + keyPrefix); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateDbCacheRuleRequestBody {\n"); + sb.append(" dbcacheMappingId: ").append(toIndentedString(dbcacheMappingId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" sourceDbSchema: ").append(toIndentedString(sourceDbSchema)).append("\n"); + sb.append(" sourceDbTable: ").append(toIndentedString(sourceDbTable)).append("\n"); + sb.append(" storageType: ").append(toIndentedString(storageType)).append("\n"); + sb.append(" targetDatabase: ").append(toIndentedString(targetDatabase)).append("\n"); + sb.append(" keyColumns: ").append(toIndentedString(keyColumns)).append("\n"); + sb.append(" valueColumns: ").append(toIndentedString(valueColumns)).append("\n"); + sb.append(" ttl: ").append(toIndentedString(ttl)).append("\n"); + sb.append(" keySeparator: ").append(toIndentedString(keySeparator)).append("\n"); + sb.append(" valueSeparator: ").append(toIndentedString(valueSeparator)).append("\n"); + sb.append(" keyPrefix: ").append(toIndentedString(keyPrefix)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/CreateDbCacheRuleResponse.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/CreateDbCacheRuleResponse.java new file mode 100644 index 0000000000..ed1772b160 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/CreateDbCacheRuleResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class CreateDbCacheRuleResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + public CreateDbCacheRuleResponse withId(String id) { + this.id = id; + return this; + } + + /** + * 内存加速规则ID。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateDbCacheRuleResponse that = (CreateDbCacheRuleResponse) obj; + return Objects.equals(this.id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateDbCacheRuleResponse {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunImageBatchModerationRequest.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/DeleteDbCacheMappingRequest.java similarity index 69% rename from services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunImageBatchModerationRequest.java rename to services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/DeleteDbCacheMappingRequest.java index 4a7d631053..389d23db57 100644 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunImageBatchModerationRequest.java +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/DeleteDbCacheMappingRequest.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.moderation.v2.model; +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -9,21 +9,21 @@ /** * Request Object */ -public class RunImageBatchModerationRequest { +public class DeleteDbCacheMappingRequest { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "body") - private ImageBatchModerationReq body; + private DeleteDbCacheMappingRequestBody body; - public RunImageBatchModerationRequest withBody(ImageBatchModerationReq body) { + public DeleteDbCacheMappingRequest withBody(DeleteDbCacheMappingRequestBody body) { this.body = body; return this; } - public RunImageBatchModerationRequest withBody(Consumer bodySetter) { + public DeleteDbCacheMappingRequest withBody(Consumer bodySetter) { if (this.body == null) { - this.body = new ImageBatchModerationReq(); + this.body = new DeleteDbCacheMappingRequestBody(); bodySetter.accept(this.body); } @@ -34,11 +34,11 @@ public RunImageBatchModerationRequest withBody(Consumer * Get body * @return body */ - public ImageBatchModerationReq getBody() { + public DeleteDbCacheMappingRequestBody getBody() { return body; } - public void setBody(ImageBatchModerationReq body) { + public void setBody(DeleteDbCacheMappingRequestBody body) { this.body = body; } @@ -50,7 +50,7 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - RunImageBatchModerationRequest that = (RunImageBatchModerationRequest) obj; + DeleteDbCacheMappingRequest that = (DeleteDbCacheMappingRequest) obj; return Objects.equals(this.body, that.body); } @@ -62,7 +62,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RunImageBatchModerationRequest {\n"); + sb.append("class DeleteDbCacheMappingRequest {\n"); sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/DeleteDbCacheMappingRequestBody.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/DeleteDbCacheMappingRequestBody.java new file mode 100644 index 0000000000..5d756f78a7 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/DeleteDbCacheMappingRequestBody.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * DeleteDbCacheMappingRequestBody + */ +public class DeleteDbCacheMappingRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + public DeleteDbCacheMappingRequestBody withId(String id) { + this.id = id; + return this; + } + + /** + * 内存加速映射ID。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteDbCacheMappingRequestBody that = (DeleteDbCacheMappingRequestBody) obj; + return Objects.equals(this.id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteDbCacheMappingRequestBody {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/DeleteDbCacheMappingResponse.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/DeleteDbCacheMappingResponse.java new file mode 100644 index 0000000000..dbe0f4b1f2 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/DeleteDbCacheMappingResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeleteDbCacheMappingResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + public DeleteDbCacheMappingResponse withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 任务ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteDbCacheMappingResponse that = (DeleteDbCacheMappingResponse) obj; + return Objects.equals(this.jobId, that.jobId); + } + + @Override + public int hashCode() { + return Objects.hash(jobId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteDbCacheMappingResponse {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunTaskSumbitRequest.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/DeleteDbCacheRuleRequest.java similarity index 70% rename from services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunTaskSumbitRequest.java rename to services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/DeleteDbCacheRuleRequest.java index 7c9e45e0ba..88e52d7fb8 100644 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunTaskSumbitRequest.java +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/DeleteDbCacheRuleRequest.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.moderation.v2.model; +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -9,21 +9,21 @@ /** * Request Object */ -public class RunTaskSumbitRequest { +public class DeleteDbCacheRuleRequest { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "body") - private TaskSumbitReq body; + private DeleteDbCacheRuleRequestBody body; - public RunTaskSumbitRequest withBody(TaskSumbitReq body) { + public DeleteDbCacheRuleRequest withBody(DeleteDbCacheRuleRequestBody body) { this.body = body; return this; } - public RunTaskSumbitRequest withBody(Consumer bodySetter) { + public DeleteDbCacheRuleRequest withBody(Consumer bodySetter) { if (this.body == null) { - this.body = new TaskSumbitReq(); + this.body = new DeleteDbCacheRuleRequestBody(); bodySetter.accept(this.body); } @@ -34,11 +34,11 @@ public RunTaskSumbitRequest withBody(Consumer bodySetter) { * Get body * @return body */ - public TaskSumbitReq getBody() { + public DeleteDbCacheRuleRequestBody getBody() { return body; } - public void setBody(TaskSumbitReq body) { + public void setBody(DeleteDbCacheRuleRequestBody body) { this.body = body; } @@ -50,7 +50,7 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - RunTaskSumbitRequest that = (RunTaskSumbitRequest) obj; + DeleteDbCacheRuleRequest that = (DeleteDbCacheRuleRequest) obj; return Objects.equals(this.body, that.body); } @@ -62,7 +62,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RunTaskSumbitRequest {\n"); + sb.append("class DeleteDbCacheRuleRequest {\n"); sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/DeleteDbCacheRuleRequestBody.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/DeleteDbCacheRuleRequestBody.java new file mode 100644 index 0000000000..6fe67133cc --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/DeleteDbCacheRuleRequestBody.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 删除内存加速规则请求体。 + */ +public class DeleteDbCacheRuleRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + public DeleteDbCacheRuleRequestBody withId(String id) { + this.id = id; + return this; + } + + /** + * 内存加速规则ID。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteDbCacheRuleRequestBody that = (DeleteDbCacheRuleRequestBody) obj; + return Objects.equals(this.id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteDbCacheRuleRequestBody {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/DeleteDbCacheRuleResponse.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/DeleteDbCacheRuleResponse.java new file mode 100644 index 0000000000..2ffe20e5b6 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/DeleteDbCacheRuleResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeleteDbCacheRuleResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteDbCacheRuleResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ListDbCacheMappingsRequest.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ListDbCacheMappingsRequest.java new file mode 100644 index 0000000000..185e28633c --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ListDbCacheMappingsRequest.java @@ -0,0 +1,239 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListDbCacheMappingsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_instance_id") + + private String sourceInstanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_instance_name") + + private String sourceInstanceName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_instance_id") + + private String targetInstanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_instance_name") + + private String targetInstanceName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + public ListDbCacheMappingsRequest withId(String id) { + this.id = id; + return this; + } + + /** + * 映射ID,可以调用“查询内存加速映射列表和详情”接口获取。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ListDbCacheMappingsRequest withName(String name) { + this.name = name; + return this; + } + + /** + * 映射名称。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ListDbCacheMappingsRequest withSourceInstanceId(String sourceInstanceId) { + this.sourceInstanceId = sourceInstanceId; + return this; + } + + /** + * 源实例ID。 + * @return sourceInstanceId + */ + public String getSourceInstanceId() { + return sourceInstanceId; + } + + public void setSourceInstanceId(String sourceInstanceId) { + this.sourceInstanceId = sourceInstanceId; + } + + public ListDbCacheMappingsRequest withSourceInstanceName(String sourceInstanceName) { + this.sourceInstanceName = sourceInstanceName; + return this; + } + + /** + * 源实例名称。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + * @return sourceInstanceName + */ + public String getSourceInstanceName() { + return sourceInstanceName; + } + + public void setSourceInstanceName(String sourceInstanceName) { + this.sourceInstanceName = sourceInstanceName; + } + + public ListDbCacheMappingsRequest withTargetInstanceId(String targetInstanceId) { + this.targetInstanceId = targetInstanceId; + return this; + } + + /** + * 目标实例ID。 + * @return targetInstanceId + */ + public String getTargetInstanceId() { + return targetInstanceId; + } + + public void setTargetInstanceId(String targetInstanceId) { + this.targetInstanceId = targetInstanceId; + } + + public ListDbCacheMappingsRequest withTargetInstanceName(String targetInstanceName) { + this.targetInstanceName = targetInstanceName; + return this; + } + + /** + * 目标实例名称。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + * @return targetInstanceName + */ + public String getTargetInstanceName() { + return targetInstanceName; + } + + public void setTargetInstanceName(String targetInstanceName) { + this.targetInstanceName = targetInstanceName; + } + + public ListDbCacheMappingsRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 索引位置,偏移量。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。 取值必须为数字,不能为负数。 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListDbCacheMappingsRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 查询个数上限值。取值范围:1~100。不传该参数时,默认查询前100条信息。 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListDbCacheMappingsRequest that = (ListDbCacheMappingsRequest) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.sourceInstanceId, that.sourceInstanceId) + && Objects.equals(this.sourceInstanceName, that.sourceInstanceName) + && Objects.equals(this.targetInstanceId, that.targetInstanceId) + && Objects.equals(this.targetInstanceName, that.targetInstanceName) + && Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit); + } + + @Override + public int hashCode() { + return Objects + .hash(id, name, sourceInstanceId, sourceInstanceName, targetInstanceId, targetInstanceName, offset, limit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDbCacheMappingsRequest {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" sourceInstanceId: ").append(toIndentedString(sourceInstanceId)).append("\n"); + sb.append(" sourceInstanceName: ").append(toIndentedString(sourceInstanceName)).append("\n"); + sb.append(" targetInstanceId: ").append(toIndentedString(targetInstanceId)).append("\n"); + sb.append(" targetInstanceName: ").append(toIndentedString(targetInstanceName)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ListDbCacheMappingsResponse.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ListDbCacheMappingsResponse.java new file mode 100644 index 0000000000..168a75a99f --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ListDbCacheMappingsResponse.java @@ -0,0 +1,117 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListDbCacheMappingsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_count") + + private Integer totalCount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dbcache_mappings") + + private List dbcacheMappings = null; + + public ListDbCacheMappingsResponse withTotalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * 总记录数。 + * @return totalCount + */ + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public ListDbCacheMappingsResponse withDbcacheMappings(List dbcacheMappings) { + this.dbcacheMappings = dbcacheMappings; + return this; + } + + public ListDbCacheMappingsResponse addDbcacheMappingsItem(QueryDBCacheMappingResponse dbcacheMappingsItem) { + if (this.dbcacheMappings == null) { + this.dbcacheMappings = new ArrayList<>(); + } + this.dbcacheMappings.add(dbcacheMappingsItem); + return this; + } + + public ListDbCacheMappingsResponse withDbcacheMappings( + Consumer> dbcacheMappingsSetter) { + if (this.dbcacheMappings == null) { + this.dbcacheMappings = new ArrayList<>(); + } + dbcacheMappingsSetter.accept(this.dbcacheMappings); + return this; + } + + /** + * 内存加速映射信息。 + * @return dbcacheMappings + */ + public List getDbcacheMappings() { + return dbcacheMappings; + } + + public void setDbcacheMappings(List dbcacheMappings) { + this.dbcacheMappings = dbcacheMappings; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListDbCacheMappingsResponse that = (ListDbCacheMappingsResponse) obj; + return Objects.equals(this.totalCount, that.totalCount) + && Objects.equals(this.dbcacheMappings, that.dbcacheMappings); + } + + @Override + public int hashCode() { + return Objects.hash(totalCount, dbcacheMappings); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDbCacheMappingsResponse {\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" dbcacheMappings: ").append(toIndentedString(dbcacheMappings)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ListDbCacheRulesRequest.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ListDbCacheRulesRequest.java new file mode 100644 index 0000000000..977fd4d7e1 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ListDbCacheRulesRequest.java @@ -0,0 +1,213 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListDbCacheRulesRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dbcache_mapping_id") + + private String dbcacheMappingId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "rule_id") + + private String ruleId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "rule_name") + + private String ruleName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_db_schema") + + private String sourceDbSchema; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_db_table") + + private String sourceDbTable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private String offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private String limit; + + public ListDbCacheRulesRequest withDbcacheMappingId(String dbcacheMappingId) { + this.dbcacheMappingId = dbcacheMappingId; + return this; + } + + /** + * 内存加速映射ID。 + * @return dbcacheMappingId + */ + public String getDbcacheMappingId() { + return dbcacheMappingId; + } + + public void setDbcacheMappingId(String dbcacheMappingId) { + this.dbcacheMappingId = dbcacheMappingId; + } + + public ListDbCacheRulesRequest withRuleId(String ruleId) { + this.ruleId = ruleId; + return this; + } + + /** + * 内存加速规则ID。 + * @return ruleId + */ + public String getRuleId() { + return ruleId; + } + + public void setRuleId(String ruleId) { + this.ruleId = ruleId; + } + + public ListDbCacheRulesRequest withRuleName(String ruleName) { + this.ruleName = ruleName; + return this; + } + + /** + * 内存加速规则名称。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + * @return ruleName + */ + public String getRuleName() { + return ruleName; + } + + public void setRuleName(String ruleName) { + this.ruleName = ruleName; + } + + public ListDbCacheRulesRequest withSourceDbSchema(String sourceDbSchema) { + this.sourceDbSchema = sourceDbSchema; + return this; + } + + /** + * 源端数据库名。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + * @return sourceDbSchema + */ + public String getSourceDbSchema() { + return sourceDbSchema; + } + + public void setSourceDbSchema(String sourceDbSchema) { + this.sourceDbSchema = sourceDbSchema; + } + + public ListDbCacheRulesRequest withSourceDbTable(String sourceDbTable) { + this.sourceDbTable = sourceDbTable; + return this; + } + + /** + * 源端数据表名。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + * @return sourceDbTable + */ + public String getSourceDbTable() { + return sourceDbTable; + } + + public void setSourceDbTable(String sourceDbTable) { + this.sourceDbTable = sourceDbTable; + } + + public ListDbCacheRulesRequest withOffset(String offset) { + this.offset = offset; + return this; + } + + /** + * 索引位置,偏移量。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。 取值必须为数字,不能为负数。 + * @return offset + */ + public String getOffset() { + return offset; + } + + public void setOffset(String offset) { + this.offset = offset; + } + + public ListDbCacheRulesRequest withLimit(String limit) { + this.limit = limit; + return this; + } + + /** + * 查询个数上限值。取值范围:1~100。不传该参数时,默认查询前100条信息。 + * @return limit + */ + public String getLimit() { + return limit; + } + + public void setLimit(String limit) { + this.limit = limit; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListDbCacheRulesRequest that = (ListDbCacheRulesRequest) obj; + return Objects.equals(this.dbcacheMappingId, that.dbcacheMappingId) && Objects.equals(this.ruleId, that.ruleId) + && Objects.equals(this.ruleName, that.ruleName) && Objects.equals(this.sourceDbSchema, that.sourceDbSchema) + && Objects.equals(this.sourceDbTable, that.sourceDbTable) && Objects.equals(this.offset, that.offset) + && Objects.equals(this.limit, that.limit); + } + + @Override + public int hashCode() { + return Objects.hash(dbcacheMappingId, ruleId, ruleName, sourceDbSchema, sourceDbTable, offset, limit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDbCacheRulesRequest {\n"); + sb.append(" dbcacheMappingId: ").append(toIndentedString(dbcacheMappingId)).append("\n"); + sb.append(" ruleId: ").append(toIndentedString(ruleId)).append("\n"); + sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n"); + sb.append(" sourceDbSchema: ").append(toIndentedString(sourceDbSchema)).append("\n"); + sb.append(" sourceDbTable: ").append(toIndentedString(sourceDbTable)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ListDbCacheRulesResponse.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ListDbCacheRulesResponse.java new file mode 100644 index 0000000000..007e304173 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ListDbCacheRulesResponse.java @@ -0,0 +1,139 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListDbCacheRulesResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_count") + + private Integer totalCount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dbcache_mapping_id") + + private String dbcacheMappingId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "rules") + + private List rules = null; + + public ListDbCacheRulesResponse withTotalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * 总记录数。 + * @return totalCount + */ + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public ListDbCacheRulesResponse withDbcacheMappingId(String dbcacheMappingId) { + this.dbcacheMappingId = dbcacheMappingId; + return this; + } + + /** + * 内存加速映射ID。 + * @return dbcacheMappingId + */ + public String getDbcacheMappingId() { + return dbcacheMappingId; + } + + public void setDbcacheMappingId(String dbcacheMappingId) { + this.dbcacheMappingId = dbcacheMappingId; + } + + public ListDbCacheRulesResponse withRules(List rules) { + this.rules = rules; + return this; + } + + public ListDbCacheRulesResponse addRulesItem(QueryDBCacheRuleResponse rulesItem) { + if (this.rules == null) { + this.rules = new ArrayList<>(); + } + this.rules.add(rulesItem); + return this; + } + + public ListDbCacheRulesResponse withRules(Consumer> rulesSetter) { + if (this.rules == null) { + this.rules = new ArrayList<>(); + } + rulesSetter.accept(this.rules); + return this; + } + + /** + * 内存加速规则详情。 + * @return rules + */ + public List getRules() { + return rules; + } + + public void setRules(List rules) { + this.rules = rules; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListDbCacheRulesResponse that = (ListDbCacheRulesResponse) obj; + return Objects.equals(this.totalCount, that.totalCount) + && Objects.equals(this.dbcacheMappingId, that.dbcacheMappingId) && Objects.equals(this.rules, that.rules); + } + + @Override + public int hashCode() { + return Objects.hash(totalCount, dbcacheMappingId, rules); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDbCacheRulesResponse {\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" dbcacheMappingId: ").append(toIndentedString(dbcacheMappingId)).append("\n"); + sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ListInstanceMaintenanceWindowRequest.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ListInstanceMaintenanceWindowRequest.java new file mode 100644 index 0000000000..b87e38d593 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ListInstanceMaintenanceWindowRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListInstanceMaintenanceWindowRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + public ListInstanceMaintenanceWindowRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListInstanceMaintenanceWindowRequest that = (ListInstanceMaintenanceWindowRequest) obj; + return Objects.equals(this.instanceId, that.instanceId); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListInstanceMaintenanceWindowRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ListInstanceMaintenanceWindowResponse.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ListInstanceMaintenanceWindowResponse.java new file mode 100644 index 0000000000..a10f23001b --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ListInstanceMaintenanceWindowResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ListInstanceMaintenanceWindowResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "maintenance_window") + + private String maintenanceWindow; + + public ListInstanceMaintenanceWindowResponse withMaintenanceWindow(String maintenanceWindow) { + this.maintenanceWindow = maintenanceWindow; + return this; + } + + /** + * 参数解释: 实例的可维护时间窗。 + * @return maintenanceWindow + */ + public String getMaintenanceWindow() { + return maintenanceWindow; + } + + public void setMaintenanceWindow(String maintenanceWindow) { + this.maintenanceWindow = maintenanceWindow; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListInstanceMaintenanceWindowResponse that = (ListInstanceMaintenanceWindowResponse) obj; + return Objects.equals(this.maintenanceWindow, that.maintenanceWindow); + } + + @Override + public int hashCode() { + return Objects.hash(maintenanceWindow); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListInstanceMaintenanceWindowResponse {\n"); + sb.append(" maintenanceWindow: ").append(toIndentedString(maintenanceWindow)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ListNosqlTaskListRequest.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ListNosqlTaskListRequest.java new file mode 100644 index 0000000000..efc2c25cfa --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ListNosqlTaskListRequest.java @@ -0,0 +1,213 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListNosqlTaskListRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_name") + + private String jobName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_status") + + private String jobStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "start_time") + + private String startTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "end_time") + + private String endTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private String offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private String limit; + + public ListNosqlTaskListRequest withJobName(String jobName) { + this.jobName = jobName; + return this; + } + + /** + * 任务名称,默认为空。对应取值如下:  \"REBOOT\":重启实例  \"RESIZE_FLAVOR\":变更实例的CPU和内存规格  \"UPGRADE_DATABASE\":补丁升级 + * @return jobName + */ + public String getJobName() { + return jobName; + } + + public void setJobName(String jobName) { + this.jobName = jobName; + } + + public ListNosqlTaskListRequest withJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + return this; + } + + /** + * 任务执行状态,默认为空。 取值:  值为\"Pending\",表示任务未执行。  值为\"Running\",表示任务正在执行。  值为\"Completed\",表示任务执行成功。  值为\"Failed\",表示任务执行失败。  值为\"Canceled\",表示任务取消执行。 + * @return jobStatus + */ + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public ListNosqlTaskListRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID,不传该值默认查所有符合条件的实例。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ListNosqlTaskListRequest withStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * 任务创建起始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100,不传默认为当前时间前七天。 + * @return startTime + */ + public String getStartTime() { + return startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public ListNosqlTaskListRequest withEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * 任务创建结束时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100,不传默认为当前时间。 + * @return endTime + */ + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public ListNosqlTaskListRequest withOffset(String offset) { + this.offset = offset; + return this; + } + + /** + * 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0。 + * @return offset + */ + public String getOffset() { + return offset; + } + + public void setOffset(String offset) { + this.offset = offset; + } + + public ListNosqlTaskListRequest withLimit(String limit) { + this.limit = limit; + return this; + } + + /** + * 查询记录数。不传该参数时,默认为10,取值范围1-100。 + * @return limit + */ + public String getLimit() { + return limit; + } + + public void setLimit(String limit) { + this.limit = limit; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListNosqlTaskListRequest that = (ListNosqlTaskListRequest) obj; + return Objects.equals(this.jobName, that.jobName) && Objects.equals(this.jobStatus, that.jobStatus) + && Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.startTime, that.startTime) + && Objects.equals(this.endTime, that.endTime) && Objects.equals(this.offset, that.offset) + && Objects.equals(this.limit, that.limit); + } + + @Override + public int hashCode() { + return Objects.hash(jobName, jobStatus, instanceId, startTime, endTime, offset, limit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListNosqlTaskListRequest {\n"); + sb.append(" jobName: ").append(toIndentedString(jobName)).append("\n"); + sb.append(" jobStatus: ").append(toIndentedString(jobStatus)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ListNosqlTaskListResponse.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ListNosqlTaskListResponse.java new file mode 100644 index 0000000000..c64324fc63 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ListNosqlTaskListResponse.java @@ -0,0 +1,115 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListNosqlTaskListResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_count") + + private String totalCount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schedules") + + private List schedules = null; + + public ListNosqlTaskListResponse withTotalCount(String totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * 记录总数。 + * @return totalCount + */ + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public ListNosqlTaskListResponse withSchedules(List schedules) { + this.schedules = schedules; + return this; + } + + public ListNosqlTaskListResponse addSchedulesItem(ScheduleDetailInfo schedulesItem) { + if (this.schedules == null) { + this.schedules = new ArrayList<>(); + } + this.schedules.add(schedulesItem); + return this; + } + + public ListNosqlTaskListResponse withSchedules(Consumer> schedulesSetter) { + if (this.schedules == null) { + this.schedules = new ArrayList<>(); + } + schedulesSetter.accept(this.schedules); + return this; + } + + /** + * 任务详情。 + * @return schedules + */ + public List getSchedules() { + return schedules; + } + + public void setSchedules(List schedules) { + this.schedules = schedules; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListNosqlTaskListResponse that = (ListNosqlTaskListResponse) obj; + return Objects.equals(this.totalCount, that.totalCount) && Objects.equals(this.schedules, that.schedules); + } + + @Override + public int hashCode() { + return Objects.hash(totalCount, schedules); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListNosqlTaskListResponse {\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" schedules: ").append(toIndentedString(schedules)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ModifyInstanceMaintenanceWindowRequest.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ModifyInstanceMaintenanceWindowRequest.java new file mode 100644 index 0000000000..8f041278bf --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ModifyInstanceMaintenanceWindowRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class ModifyInstanceMaintenanceWindowRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private ModifyInstanceOpsWindowV3Req body; + + public ModifyInstanceMaintenanceWindowRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ModifyInstanceMaintenanceWindowRequest withBody(ModifyInstanceOpsWindowV3Req body) { + this.body = body; + return this; + } + + public ModifyInstanceMaintenanceWindowRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new ModifyInstanceOpsWindowV3Req(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ModifyInstanceOpsWindowV3Req getBody() { + return body; + } + + public void setBody(ModifyInstanceOpsWindowV3Req body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ModifyInstanceMaintenanceWindowRequest that = (ModifyInstanceMaintenanceWindowRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyInstanceMaintenanceWindowRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ModifyInstanceMaintenanceWindowResponse.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ModifyInstanceMaintenanceWindowResponse.java new file mode 100644 index 0000000000..f97091e607 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ModifyInstanceMaintenanceWindowResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ModifyInstanceMaintenanceWindowResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyInstanceMaintenanceWindowResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ModifyInstanceOpsWindowV3Req.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ModifyInstanceOpsWindowV3Req.java new file mode 100644 index 0000000000..14b940647d --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ModifyInstanceOpsWindowV3Req.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * ModifyInstanceOpsWindowV3Req + */ +public class ModifyInstanceOpsWindowV3Req { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "start_time") + + private String startTime; + + public ModifyInstanceOpsWindowV3Req withStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * 参数解释: 开始时间,格式必须为HH:MM且有效,时间为UTC时间,只能为整点。结束时间默认与开始时间相隔四个小时。 约束限制: 不涉及。 + * @return startTime + */ + public String getStartTime() { + return startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ModifyInstanceOpsWindowV3Req that = (ModifyInstanceOpsWindowV3Req) obj; + return Objects.equals(this.startTime, that.startTime); + } + + @Override + public int hashCode() { + return Objects.hash(startTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyInstanceOpsWindowV3Req {\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/QueryDBCacheMappingResponse.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/QueryDBCacheMappingResponse.java new file mode 100644 index 0000000000..35f79875c9 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/QueryDBCacheMappingResponse.java @@ -0,0 +1,294 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 内存加速映射信息。 + */ +public class QueryDBCacheMappingResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_instance_id") + + private String sourceInstanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_instance_name") + + private String sourceInstanceName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_instance_id") + + private String targetInstanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_instance_name") + + private String targetInstanceName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "created") + + private String created; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "updated") + + private String updated; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "rule_count") + + private Integer ruleCount; + + public QueryDBCacheMappingResponse withId(String id) { + this.id = id; + return this; + } + + /** + * 内存加速映射ID。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public QueryDBCacheMappingResponse withName(String name) { + this.name = name; + return this; + } + + /** + * 内存加速映射名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public QueryDBCacheMappingResponse withSourceInstanceId(String sourceInstanceId) { + this.sourceInstanceId = sourceInstanceId; + return this; + } + + /** + * 源实例ID。 + * @return sourceInstanceId + */ + public String getSourceInstanceId() { + return sourceInstanceId; + } + + public void setSourceInstanceId(String sourceInstanceId) { + this.sourceInstanceId = sourceInstanceId; + } + + public QueryDBCacheMappingResponse withSourceInstanceName(String sourceInstanceName) { + this.sourceInstanceName = sourceInstanceName; + return this; + } + + /** + * 源实例名称。 + * @return sourceInstanceName + */ + public String getSourceInstanceName() { + return sourceInstanceName; + } + + public void setSourceInstanceName(String sourceInstanceName) { + this.sourceInstanceName = sourceInstanceName; + } + + public QueryDBCacheMappingResponse withTargetInstanceId(String targetInstanceId) { + this.targetInstanceId = targetInstanceId; + return this; + } + + /** + * 目标实例ID。 + * @return targetInstanceId + */ + public String getTargetInstanceId() { + return targetInstanceId; + } + + public void setTargetInstanceId(String targetInstanceId) { + this.targetInstanceId = targetInstanceId; + } + + public QueryDBCacheMappingResponse withTargetInstanceName(String targetInstanceName) { + this.targetInstanceName = targetInstanceName; + return this; + } + + /** + * 目标实例名称。 + * @return targetInstanceName + */ + public String getTargetInstanceName() { + return targetInstanceName; + } + + public void setTargetInstanceName(String targetInstanceName) { + this.targetInstanceName = targetInstanceName; + } + + public QueryDBCacheMappingResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 内存加速映射关系。 - normal: 表示内存加速映射正常。 - creating: 表示内存加速映射创建中。 - createfail: 表示内存加速映射创建失败。 - deleting: 表示内存加速映射解除中。 - stopped: 表示内存加速映射停止。 - deleted: 表示内存加速映射已解除。 + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public QueryDBCacheMappingResponse withCreated(String created) { + this.created = created; + return this; + } + + /** + * 内存加速映射创建时间。 + * @return created + */ + public String getCreated() { + return created; + } + + public void setCreated(String created) { + this.created = created; + } + + public QueryDBCacheMappingResponse withUpdated(String updated) { + this.updated = updated; + return this; + } + + /** + * 内存加速映射最新变更的时间。 + * @return updated + */ + public String getUpdated() { + return updated; + } + + public void setUpdated(String updated) { + this.updated = updated; + } + + public QueryDBCacheMappingResponse withRuleCount(Integer ruleCount) { + this.ruleCount = ruleCount; + return this; + } + + /** + * 该内存加速映射下的规则数量。 + * @return ruleCount + */ + public Integer getRuleCount() { + return ruleCount; + } + + public void setRuleCount(Integer ruleCount) { + this.ruleCount = ruleCount; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + QueryDBCacheMappingResponse that = (QueryDBCacheMappingResponse) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.sourceInstanceId, that.sourceInstanceId) + && Objects.equals(this.sourceInstanceName, that.sourceInstanceName) + && Objects.equals(this.targetInstanceId, that.targetInstanceId) + && Objects.equals(this.targetInstanceName, that.targetInstanceName) + && Objects.equals(this.status, that.status) && Objects.equals(this.created, that.created) + && Objects.equals(this.updated, that.updated) && Objects.equals(this.ruleCount, that.ruleCount); + } + + @Override + public int hashCode() { + return Objects.hash(id, + name, + sourceInstanceId, + sourceInstanceName, + targetInstanceId, + targetInstanceName, + status, + created, + updated, + ruleCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QueryDBCacheMappingResponse {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" sourceInstanceId: ").append(toIndentedString(sourceInstanceId)).append("\n"); + sb.append(" sourceInstanceName: ").append(toIndentedString(sourceInstanceName)).append("\n"); + sb.append(" targetInstanceId: ").append(toIndentedString(targetInstanceId)).append("\n"); + sb.append(" targetInstanceName: ").append(toIndentedString(targetInstanceName)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" created: ").append(toIndentedString(created)).append("\n"); + sb.append(" updated: ").append(toIndentedString(updated)).append("\n"); + sb.append(" ruleCount: ").append(toIndentedString(ruleCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/QueryDBCacheRuleResponse.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/QueryDBCacheRuleResponse.java new file mode 100644 index 0000000000..571fe9bd9b --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/QueryDBCacheRuleResponse.java @@ -0,0 +1,403 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * QueryDBCacheRuleResponse + */ +public class QueryDBCacheRuleResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_db_schema") + + private String sourceDbSchema; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_db_table") + + private String sourceDbTable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "storage_type") + + private String storageType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_database") + + private String targetDatabase; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key_columns") + + private List keyColumns = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value_columns") + + private List valueColumns = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ttl") + + private String ttl; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key_separator") + + private String keySeparator; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value_separator") + + private String valueSeparator; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key_prefix") + + private String keyPrefix; + + public QueryDBCacheRuleResponse withId(String id) { + this.id = id; + return this; + } + + /** + * 内存加速规则ID。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public QueryDBCacheRuleResponse withName(String name) { + this.name = name; + return this; + } + + /** + * 内存加速规则名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public QueryDBCacheRuleResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 内存加速规则状态。 - normal,正常; - createfail, 创建失败; + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public QueryDBCacheRuleResponse withSourceDbSchema(String sourceDbSchema) { + this.sourceDbSchema = sourceDbSchema; + return this; + } + + /** + * 源端数据库。 + * @return sourceDbSchema + */ + public String getSourceDbSchema() { + return sourceDbSchema; + } + + public void setSourceDbSchema(String sourceDbSchema) { + this.sourceDbSchema = sourceDbSchema; + } + + public QueryDBCacheRuleResponse withSourceDbTable(String sourceDbTable) { + this.sourceDbTable = sourceDbTable; + return this; + } + + /** + * 源端数据表。 + * @return sourceDbTable + */ + public String getSourceDbTable() { + return sourceDbTable; + } + + public void setSourceDbTable(String sourceDbTable) { + this.sourceDbTable = sourceDbTable; + } + + public QueryDBCacheRuleResponse withStorageType(String storageType) { + this.storageType = storageType; + return this; + } + + /** + * 目标数据存储类型。取值为: hash。 + * @return storageType + */ + public String getStorageType() { + return storageType; + } + + public void setStorageType(String storageType) { + this.storageType = storageType; + } + + public QueryDBCacheRuleResponse withTargetDatabase(String targetDatabase) { + this.targetDatabase = targetDatabase; + return this; + } + + /** + * 目标数据库。 + * @return targetDatabase + */ + public String getTargetDatabase() { + return targetDatabase; + } + + public void setTargetDatabase(String targetDatabase) { + this.targetDatabase = targetDatabase; + } + + public QueryDBCacheRuleResponse withKeyColumns(List keyColumns) { + this.keyColumns = keyColumns; + return this; + } + + public QueryDBCacheRuleResponse addKeyColumnsItem(String keyColumnsItem) { + if (this.keyColumns == null) { + this.keyColumns = new ArrayList<>(); + } + this.keyColumns.add(keyColumnsItem); + return this; + } + + public QueryDBCacheRuleResponse withKeyColumns(Consumer> keyColumnsSetter) { + if (this.keyColumns == null) { + this.keyColumns = new ArrayList<>(); + } + keyColumnsSetter.accept(this.keyColumns); + return this; + } + + /** + * 映射的key使用的column列表。 + * @return keyColumns + */ + public List getKeyColumns() { + return keyColumns; + } + + public void setKeyColumns(List keyColumns) { + this.keyColumns = keyColumns; + } + + public QueryDBCacheRuleResponse withValueColumns(List valueColumns) { + this.valueColumns = valueColumns; + return this; + } + + public QueryDBCacheRuleResponse addValueColumnsItem(String valueColumnsItem) { + if (this.valueColumns == null) { + this.valueColumns = new ArrayList<>(); + } + this.valueColumns.add(valueColumnsItem); + return this; + } + + public QueryDBCacheRuleResponse withValueColumns(Consumer> valueColumnsSetter) { + if (this.valueColumns == null) { + this.valueColumns = new ArrayList<>(); + } + valueColumnsSetter.accept(this.valueColumns); + return this; + } + + /** + * 映射的value使用的column列表。 + * @return valueColumns + */ + public List getValueColumns() { + return valueColumns; + } + + public void setValueColumns(List valueColumns) { + this.valueColumns = valueColumns; + } + + public QueryDBCacheRuleResponse withTtl(String ttl) { + this.ttl = ttl; + return this; + } + + /** + * key的生存时间。单位:ms。不传该值,默认取-1,表示永久存储。 + * @return ttl + */ + public String getTtl() { + return ttl; + } + + public void setTtl(String ttl) { + this.ttl = ttl; + } + + public QueryDBCacheRuleResponse withKeySeparator(String keySeparator) { + this.keySeparator = keySeparator; + return this; + } + + /** + * 映射的key分隔符。 + * @return keySeparator + */ + public String getKeySeparator() { + return keySeparator; + } + + public void setKeySeparator(String keySeparator) { + this.keySeparator = keySeparator; + } + + public QueryDBCacheRuleResponse withValueSeparator(String valueSeparator) { + this.valueSeparator = valueSeparator; + return this; + } + + /** + * 映射的value分隔符。 + * @return valueSeparator + */ + public String getValueSeparator() { + return valueSeparator; + } + + public void setValueSeparator(String valueSeparator) { + this.valueSeparator = valueSeparator; + } + + public QueryDBCacheRuleResponse withKeyPrefix(String keyPrefix) { + this.keyPrefix = keyPrefix; + return this; + } + + /** + * 键前缀。 + * @return keyPrefix + */ + public String getKeyPrefix() { + return keyPrefix; + } + + public void setKeyPrefix(String keyPrefix) { + this.keyPrefix = keyPrefix; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + QueryDBCacheRuleResponse that = (QueryDBCacheRuleResponse) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.status, that.status) && Objects.equals(this.sourceDbSchema, that.sourceDbSchema) + && Objects.equals(this.sourceDbTable, that.sourceDbTable) + && Objects.equals(this.storageType, that.storageType) + && Objects.equals(this.targetDatabase, that.targetDatabase) + && Objects.equals(this.keyColumns, that.keyColumns) && Objects.equals(this.valueColumns, that.valueColumns) + && Objects.equals(this.ttl, that.ttl) && Objects.equals(this.keySeparator, that.keySeparator) + && Objects.equals(this.valueSeparator, that.valueSeparator) + && Objects.equals(this.keyPrefix, that.keyPrefix); + } + + @Override + public int hashCode() { + return Objects.hash(id, + name, + status, + sourceDbSchema, + sourceDbTable, + storageType, + targetDatabase, + keyColumns, + valueColumns, + ttl, + keySeparator, + valueSeparator, + keyPrefix); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QueryDBCacheRuleResponse {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" sourceDbSchema: ").append(toIndentedString(sourceDbSchema)).append("\n"); + sb.append(" sourceDbTable: ").append(toIndentedString(sourceDbTable)).append("\n"); + sb.append(" storageType: ").append(toIndentedString(storageType)).append("\n"); + sb.append(" targetDatabase: ").append(toIndentedString(targetDatabase)).append("\n"); + sb.append(" keyColumns: ").append(toIndentedString(keyColumns)).append("\n"); + sb.append(" valueColumns: ").append(toIndentedString(valueColumns)).append("\n"); + sb.append(" ttl: ").append(toIndentedString(ttl)).append("\n"); + sb.append(" keySeparator: ").append(toIndentedString(keySeparator)).append("\n"); + sb.append(" valueSeparator: ").append(toIndentedString(valueSeparator)).append("\n"); + sb.append(" keyPrefix: ").append(toIndentedString(keyPrefix)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ScheduleDetailInfo.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ScheduleDetailInfo.java new file mode 100644 index 0000000000..7caf7eda38 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ScheduleDetailInfo.java @@ -0,0 +1,294 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * ScheduleDetailInfo + */ +public class ScheduleDetailInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_name") + + private String jobName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_status") + + private String jobStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_name") + + private String instanceName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_status") + + private String instanceStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "datastore_type") + + private String datastoreType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "start_time") + + private String startTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "end_time") + + private String endTime; + + public ScheduleDetailInfo withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 任务ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public ScheduleDetailInfo withJobName(String jobName) { + this.jobName = jobName; + return this; + } + + /** + * 任务名称。对应取值如下:  \"REBOOT\":重启实例  \"RESIZE_FLAVOR\":变更实例的CPU和内存规格  \"UPGRADE_DATABASE\":补丁升级 + * @return jobName + */ + public String getJobName() { + return jobName; + } + + public void setJobName(String jobName) { + this.jobName = jobName; + } + + public ScheduleDetailInfo withJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + return this; + } + + /** + * 任务执行状态。 取值:  值为\"Running\",表示任务正在执行。  值为\"Completed\",表示任务执行成功。  值为\"Failed\",表示任务执行失败。  值为\"Pending\",表示任务未执行。  值为\"Canceled\",表示任务取消执行。 + * @return jobStatus + */ + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public ScheduleDetailInfo withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ScheduleDetailInfo withInstanceName(String instanceName) { + this.instanceName = instanceName; + return this; + } + + /** + * 实例名称。 + * @return instanceName + */ + public String getInstanceName() { + return instanceName; + } + + public void setInstanceName(String instanceName) { + this.instanceName = instanceName; + } + + public ScheduleDetailInfo withInstanceStatus(String instanceStatus) { + this.instanceStatus = instanceStatus; + return this; + } + + /** + * 实例状态。 取值:  值为“createfail”,表示实例创建失败。  值为“creating”,表示实例创建中。  值为“normal”,表示实例正常。  值为“abnormal”,表示实例异常。  值为“deleted”,表示实例已删除。 + * @return instanceStatus + */ + public String getInstanceStatus() { + return instanceStatus; + } + + public void setInstanceStatus(String instanceStatus) { + this.instanceStatus = instanceStatus; + } + + public ScheduleDetailInfo withDatastoreType(String datastoreType) { + this.datastoreType = datastoreType; + return this; + } + + /** + * 数据库类型。取值:  GaussDB(for Cassandra)  GaussDB(for Mongo)  GaussDB(for Influx)  GaussDB(for Redis) + * @return datastoreType + */ + public String getDatastoreType() { + return datastoreType; + } + + public void setDatastoreType(String datastoreType) { + this.datastoreType = datastoreType; + } + + public ScheduleDetailInfo withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 任务创建时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public ScheduleDetailInfo withStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * 任务开始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + * @return startTime + */ + public String getStartTime() { + return startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public ScheduleDetailInfo withEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * 任务结束时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + * @return endTime + */ + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ScheduleDetailInfo that = (ScheduleDetailInfo) obj; + return Objects.equals(this.jobId, that.jobId) && Objects.equals(this.jobName, that.jobName) + && Objects.equals(this.jobStatus, that.jobStatus) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.instanceName, that.instanceName) + && Objects.equals(this.instanceStatus, that.instanceStatus) + && Objects.equals(this.datastoreType, that.datastoreType) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.startTime, that.startTime) + && Objects.equals(this.endTime, that.endTime); + } + + @Override + public int hashCode() { + return Objects.hash(jobId, + jobName, + jobStatus, + instanceId, + instanceName, + instanceStatus, + datastoreType, + createTime, + startTime, + endTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ScheduleDetailInfo {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" jobName: ").append(toIndentedString(jobName)).append("\n"); + sb.append(" jobStatus: ").append(toIndentedString(jobStatus)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" instanceName: ").append(toIndentedString(instanceName)).append("\n"); + sb.append(" instanceStatus: ").append(toIndentedString(instanceStatus)).append("\n"); + sb.append(" datastoreType: ").append(toIndentedString(datastoreType)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/SetInstanceDataDumpRequest.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/SetInstanceDataDumpRequest.java new file mode 100644 index 0000000000..decc9abf00 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/SetInstanceDataDumpRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class SetInstanceDataDumpRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private SetInstanceDataDumpRequestBody body; + + public SetInstanceDataDumpRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public SetInstanceDataDumpRequest withBody(SetInstanceDataDumpRequestBody body) { + this.body = body; + return this; + } + + public SetInstanceDataDumpRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new SetInstanceDataDumpRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public SetInstanceDataDumpRequestBody getBody() { + return body; + } + + public void setBody(SetInstanceDataDumpRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SetInstanceDataDumpRequest that = (SetInstanceDataDumpRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SetInstanceDataDumpRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/SetInstanceDataDumpRequestBody.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/SetInstanceDataDumpRequestBody.java new file mode 100644 index 0000000000..48640dd737 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/SetInstanceDataDumpRequestBody.java @@ -0,0 +1,170 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * SetInstanceDataDumpRequestBody + */ +public class SetInstanceDataDumpRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bucket_name") + + private String bucketName; + + /** + * 开启/关闭实例数据导出。 + */ + public static final class ActionEnum { + + /** + * Enum OPEN for value: "open" + */ + public static final ActionEnum OPEN = new ActionEnum("open"); + + /** + * Enum CLOSE for value: "close" + */ + public static final ActionEnum CLOSE = new ActionEnum("close"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("open", OPEN); + map.put("close", CLOSE); + return Collections.unmodifiableMap(map); + } + + private String value; + + ActionEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ActionEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ActionEnum(value)); + } + + public static ActionEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof ActionEnum) { + return this.value.equals(((ActionEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "action") + + private ActionEnum action; + + public SetInstanceDataDumpRequestBody withBucketName(String bucketName) { + this.bucketName = bucketName; + return this; + } + + /** + * OBS桶名。 + * @return bucketName + */ + public String getBucketName() { + return bucketName; + } + + public void setBucketName(String bucketName) { + this.bucketName = bucketName; + } + + public SetInstanceDataDumpRequestBody withAction(ActionEnum action) { + this.action = action; + return this; + } + + /** + * 开启/关闭实例数据导出。 + * @return action + */ + public ActionEnum getAction() { + return action; + } + + public void setAction(ActionEnum action) { + this.action = action; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SetInstanceDataDumpRequestBody that = (SetInstanceDataDumpRequestBody) obj; + return Objects.equals(this.bucketName, that.bucketName) && Objects.equals(this.action, that.action); + } + + @Override + public int hashCode() { + return Objects.hash(bucketName, action); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SetInstanceDataDumpRequestBody {\n"); + sb.append(" bucketName: ").append(toIndentedString(bucketName)).append("\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/SetInstanceDataDumpResponse.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/SetInstanceDataDumpResponse.java new file mode 100644 index 0000000000..05a8e21544 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/SetInstanceDataDumpResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class SetInstanceDataDumpResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SetInstanceDataDumpResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ShowBackupPoliciesRequest.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ShowBackupPoliciesRequest.java new file mode 100644 index 0000000000..d0a17528f9 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ShowBackupPoliciesRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowBackupPoliciesRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + public ShowBackupPoliciesRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowBackupPoliciesRequest that = (ShowBackupPoliciesRequest) obj; + return Objects.equals(this.instanceId, that.instanceId); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowBackupPoliciesRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ShowBackupPoliciesResponse.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ShowBackupPoliciesResponse.java new file mode 100644 index 0000000000..3e9f1a8b70 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ShowBackupPoliciesResponse.java @@ -0,0 +1,83 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowBackupPoliciesResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "backup_policy") + + private ShowBackupPolicyResult backupPolicy; + + public ShowBackupPoliciesResponse withBackupPolicy(ShowBackupPolicyResult backupPolicy) { + this.backupPolicy = backupPolicy; + return this; + } + + public ShowBackupPoliciesResponse withBackupPolicy(Consumer backupPolicySetter) { + if (this.backupPolicy == null) { + this.backupPolicy = new ShowBackupPolicyResult(); + backupPolicySetter.accept(this.backupPolicy); + } + + return this; + } + + /** + * Get backupPolicy + * @return backupPolicy + */ + public ShowBackupPolicyResult getBackupPolicy() { + return backupPolicy; + } + + public void setBackupPolicy(ShowBackupPolicyResult backupPolicy) { + this.backupPolicy = backupPolicy; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowBackupPoliciesResponse that = (ShowBackupPoliciesResponse) obj; + return Objects.equals(this.backupPolicy, that.backupPolicy); + } + + @Override + public int hashCode() { + return Objects.hash(backupPolicy); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowBackupPoliciesResponse {\n"); + sb.append(" backupPolicy: ").append(toIndentedString(backupPolicy)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ShowSecondLevelMonitoringStatusRequest.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ShowSecondLevelMonitoringStatusRequest.java new file mode 100644 index 0000000000..2e1cc6b4f5 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ShowSecondLevelMonitoringStatusRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowSecondLevelMonitoringStatusRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + public ShowSecondLevelMonitoringStatusRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowSecondLevelMonitoringStatusRequest that = (ShowSecondLevelMonitoringStatusRequest) obj; + return Objects.equals(this.instanceId, that.instanceId); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowSecondLevelMonitoringStatusRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ShowSecondLevelMonitoringStatusResponse.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ShowSecondLevelMonitoringStatusResponse.java new file mode 100644 index 0000000000..586526a609 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/ShowSecondLevelMonitoringStatusResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ShowSecondLevelMonitoringStatusResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enabled") + + private Boolean enabled; + + public ShowSecondLevelMonitoringStatusResponse withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * 秒级监控开启状态。 - true: 开启; - false: 关闭。 + * @return enabled + */ + public Boolean getEnabled() { + return enabled; + } + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowSecondLevelMonitoringStatusResponse that = (ShowSecondLevelMonitoringStatusResponse) obj; + return Objects.equals(this.enabled, that.enabled); + } + + @Override + public int hashCode() { + return Objects.hash(enabled); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowSecondLevelMonitoringStatusResponse {\n"); + sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/SwitchSecondLevelMonitoringRequest.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/SwitchSecondLevelMonitoringRequest.java new file mode 100644 index 0000000000..e23592da2e --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/SwitchSecondLevelMonitoringRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class SwitchSecondLevelMonitoringRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private SwitchSecondLevelMonitoringRequestBody body; + + public SwitchSecondLevelMonitoringRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public SwitchSecondLevelMonitoringRequest withBody(SwitchSecondLevelMonitoringRequestBody body) { + this.body = body; + return this; + } + + public SwitchSecondLevelMonitoringRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new SwitchSecondLevelMonitoringRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public SwitchSecondLevelMonitoringRequestBody getBody() { + return body; + } + + public void setBody(SwitchSecondLevelMonitoringRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SwitchSecondLevelMonitoringRequest that = (SwitchSecondLevelMonitoringRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SwitchSecondLevelMonitoringRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/SwitchSecondLevelMonitoringRequestBody.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/SwitchSecondLevelMonitoringRequestBody.java new file mode 100644 index 0000000000..be9a7ee629 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/SwitchSecondLevelMonitoringRequestBody.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * SwitchSecondLevelMonitoringRequestBody + */ +public class SwitchSecondLevelMonitoringRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enabled") + + private Boolean enabled; + + public SwitchSecondLevelMonitoringRequestBody withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * 是否开启秒级监控。 - true: 开启; - false: 关闭。 + * @return enabled + */ + public Boolean getEnabled() { + return enabled; + } + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SwitchSecondLevelMonitoringRequestBody that = (SwitchSecondLevelMonitoringRequestBody) obj; + return Objects.equals(this.enabled, that.enabled); + } + + @Override + public int hashCode() { + return Objects.hash(enabled); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SwitchSecondLevelMonitoringRequestBody {\n"); + sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/SwitchSecondLevelMonitoringResponse.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/SwitchSecondLevelMonitoringResponse.java new file mode 100644 index 0000000000..b0757338a7 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/SwitchSecondLevelMonitoringResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class SwitchSecondLevelMonitoringResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SwitchSecondLevelMonitoringResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunImageModerationRequest.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/UpdateDbCacheRuleRequest.java similarity index 70% rename from services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunImageModerationRequest.java rename to services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/UpdateDbCacheRuleRequest.java index 86d4aa83ff..7710c47465 100644 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunImageModerationRequest.java +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/UpdateDbCacheRuleRequest.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.moderation.v2.model; +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -9,21 +9,21 @@ /** * Request Object */ -public class RunImageModerationRequest { +public class UpdateDbCacheRuleRequest { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "body") - private ImageDetectionReq body; + private UpdateDbCacheRuleRequestBody body; - public RunImageModerationRequest withBody(ImageDetectionReq body) { + public UpdateDbCacheRuleRequest withBody(UpdateDbCacheRuleRequestBody body) { this.body = body; return this; } - public RunImageModerationRequest withBody(Consumer bodySetter) { + public UpdateDbCacheRuleRequest withBody(Consumer bodySetter) { if (this.body == null) { - this.body = new ImageDetectionReq(); + this.body = new UpdateDbCacheRuleRequestBody(); bodySetter.accept(this.body); } @@ -34,11 +34,11 @@ public RunImageModerationRequest withBody(Consumer bodySetter * Get body * @return body */ - public ImageDetectionReq getBody() { + public UpdateDbCacheRuleRequestBody getBody() { return body; } - public void setBody(ImageDetectionReq body) { + public void setBody(UpdateDbCacheRuleRequestBody body) { this.body = body; } @@ -50,7 +50,7 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - RunImageModerationRequest that = (RunImageModerationRequest) obj; + UpdateDbCacheRuleRequest that = (UpdateDbCacheRuleRequest) obj; return Objects.equals(this.body, that.body); } @@ -62,7 +62,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RunImageModerationRequest {\n"); + sb.append("class UpdateDbCacheRuleRequest {\n"); sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/UpdateDbCacheRuleRequestBody.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/UpdateDbCacheRuleRequestBody.java new file mode 100644 index 0000000000..1febfa961e --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/UpdateDbCacheRuleRequestBody.java @@ -0,0 +1,162 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 修改内存加速规则请求体。 + */ +public class UpdateDbCacheRuleRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dbcache_rule_id") + + private String dbcacheRuleId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value_columns") + + private List valueColumns = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ttl") + + private String ttl; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value_separator") + + private String valueSeparator; + + public UpdateDbCacheRuleRequestBody withDbcacheRuleId(String dbcacheRuleId) { + this.dbcacheRuleId = dbcacheRuleId; + return this; + } + + /** + * 内存加速规则ID。 + * @return dbcacheRuleId + */ + public String getDbcacheRuleId() { + return dbcacheRuleId; + } + + public void setDbcacheRuleId(String dbcacheRuleId) { + this.dbcacheRuleId = dbcacheRuleId; + } + + public UpdateDbCacheRuleRequestBody withValueColumns(List valueColumns) { + this.valueColumns = valueColumns; + return this; + } + + public UpdateDbCacheRuleRequestBody addValueColumnsItem(String valueColumnsItem) { + if (this.valueColumns == null) { + this.valueColumns = new ArrayList<>(); + } + this.valueColumns.add(valueColumnsItem); + return this; + } + + public UpdateDbCacheRuleRequestBody withValueColumns(Consumer> valueColumnsSetter) { + if (this.valueColumns == null) { + this.valueColumns = new ArrayList<>(); + } + valueColumnsSetter.accept(this.valueColumns); + return this; + } + + /** + * 映射的value使用的column列表。 + * @return valueColumns + */ + public List getValueColumns() { + return valueColumns; + } + + public void setValueColumns(List valueColumns) { + this.valueColumns = valueColumns; + } + + public UpdateDbCacheRuleRequestBody withTtl(String ttl) { + this.ttl = ttl; + return this; + } + + /** + * key的生存时间。单位:ms。不传该值,默认取2592000000,表示30天。 + * @return ttl + */ + public String getTtl() { + return ttl; + } + + public void setTtl(String ttl) { + this.ttl = ttl; + } + + public UpdateDbCacheRuleRequestBody withValueSeparator(String valueSeparator) { + this.valueSeparator = valueSeparator; + return this; + } + + /** + * 映射的value分隔符。只允许一个字符。 + * @return valueSeparator + */ + public String getValueSeparator() { + return valueSeparator; + } + + public void setValueSeparator(String valueSeparator) { + this.valueSeparator = valueSeparator; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateDbCacheRuleRequestBody that = (UpdateDbCacheRuleRequestBody) obj; + return Objects.equals(this.dbcacheRuleId, that.dbcacheRuleId) + && Objects.equals(this.valueColumns, that.valueColumns) && Objects.equals(this.ttl, that.ttl) + && Objects.equals(this.valueSeparator, that.valueSeparator); + } + + @Override + public int hashCode() { + return Objects.hash(dbcacheRuleId, valueColumns, ttl, valueSeparator); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateDbCacheRuleRequestBody {\n"); + sb.append(" dbcacheRuleId: ").append(toIndentedString(dbcacheRuleId)).append("\n"); + sb.append(" valueColumns: ").append(toIndentedString(valueColumns)).append("\n"); + sb.append(" ttl: ").append(toIndentedString(ttl)).append("\n"); + sb.append(" valueSeparator: ").append(toIndentedString(valueSeparator)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/UpdateDbCacheRuleResponse.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/UpdateDbCacheRuleResponse.java new file mode 100644 index 0000000000..edccd9a088 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/UpdateDbCacheRuleResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class UpdateDbCacheRuleResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateDbCacheRuleResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/UpdateInstanceConfigurationsRequest.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/UpdateInstanceConfigurationsRequest.java new file mode 100644 index 0000000000..67fe6d43e3 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/UpdateInstanceConfigurationsRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class UpdateInstanceConfigurationsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdateInstanceConfigurationsRequestBody body; + + public UpdateInstanceConfigurationsRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public UpdateInstanceConfigurationsRequest withBody(UpdateInstanceConfigurationsRequestBody body) { + this.body = body; + return this; + } + + public UpdateInstanceConfigurationsRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdateInstanceConfigurationsRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdateInstanceConfigurationsRequestBody getBody() { + return body; + } + + public void setBody(UpdateInstanceConfigurationsRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateInstanceConfigurationsRequest that = (UpdateInstanceConfigurationsRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateInstanceConfigurationsRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/UpdateInstanceConfigurationsRequestBody.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/UpdateInstanceConfigurationsRequestBody.java new file mode 100644 index 0000000000..bb81f836dc --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/UpdateInstanceConfigurationsRequestBody.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * UpdateInstanceConfigurationsRequestBody + */ +public class UpdateInstanceConfigurationsRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "values") + + private Map values = null; + + public UpdateInstanceConfigurationsRequestBody withValues(Map values) { + this.values = values; + return this; + } + + public UpdateInstanceConfigurationsRequestBody putValuesItem(String key, String valuesItem) { + if (this.values == null) { + this.values = new HashMap<>(); + } + this.values.put(key, valuesItem); + return this; + } + + public UpdateInstanceConfigurationsRequestBody withValues(Consumer> valuesSetter) { + if (this.values == null) { + this.values = new HashMap<>(); + } + valuesSetter.accept(this.values); + return this; + } + + /** + * 参数值对象,用户基于默认参数模板自定义的参数值。为空时不修改参数值。 + * @return values + */ + public Map getValues() { + return values; + } + + public void setValues(Map values) { + this.values = values; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateInstanceConfigurationsRequestBody that = (UpdateInstanceConfigurationsRequestBody) obj; + return Objects.equals(this.values, that.values); + } + + @Override + public int hashCode() { + return Objects.hash(values); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateInstanceConfigurationsRequestBody {\n"); + sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/UpdateInstanceConfigurationsResponse.java b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/UpdateInstanceConfigurationsResponse.java new file mode 100644 index 0000000000..f98f9dadf5 --- /dev/null +++ b/services/gaussdbfornosql/src/main/java/com/huaweicloud/sdk/gaussdbfornosql/v3/model/UpdateInstanceConfigurationsResponse.java @@ -0,0 +1,96 @@ +package com.huaweicloud.sdk.gaussdbfornosql.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class UpdateInstanceConfigurationsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "restart_required") + + private Boolean restartRequired; + + public UpdateInstanceConfigurationsResponse withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 修改实例参数的异步任务ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public UpdateInstanceConfigurationsResponse withRestartRequired(Boolean restartRequired) { + this.restartRequired = restartRequired; + return this; + } + + /** + * 实例是否需要重启。 - “true”需要重启。 - “false”不需要重启。 + * @return restartRequired + */ + public Boolean getRestartRequired() { + return restartRequired; + } + + public void setRestartRequired(Boolean restartRequired) { + this.restartRequired = restartRequired; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateInstanceConfigurationsResponse that = (UpdateInstanceConfigurationsResponse) obj; + return Objects.equals(this.jobId, that.jobId) && Objects.equals(this.restartRequired, that.restartRequired); + } + + @Override + public int hashCode() { + return Objects.hash(jobId, restartRequired); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateInstanceConfigurationsResponse {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" restartRequired: ").append(toIndentedString(restartRequired)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/gaussdbforopengauss/pom.xml b/services/gaussdbforopengauss/pom.xml index bba0c2dafd..a2c6624603 100644 --- a/services/gaussdbforopengauss/pom.xml +++ b/services/gaussdbforopengauss/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-gaussdbforopengauss - 3.1.121 + 3.1.122 Huawei Cloud SDK for GAUSSDBFOROPENGAUSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussAsyncClient.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussAsyncClient.java index cfb27005bd..511374cda1 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussAsyncClient.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussAsyncClient.java @@ -2871,9 +2871,9 @@ public AsyncInvoker startInstanceAs } /** - * 开启MySQl兼容端口服务 + * 开启M兼容端口服务 * - * 开启指定实例的MySQl兼容端口。 + * 开启指定实例的M兼容端口。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -2886,9 +2886,9 @@ public CompletableFuture startMysqlCompatibilit } /** - * 开启MySQl兼容端口服务 + * 开启M兼容端口服务 * - * 开启指定实例的MySQl兼容端口。 + * 开启指定实例的M兼容端口。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -3074,9 +3074,9 @@ public AsyncInvoker updat } /** - * 更新/关闭MySQl兼容端口服务 + * 更新/关闭M兼容端口服务 * - * 更新指定实例的MySQl兼容端口服务配置。 + * 更新指定实例的M兼容端口服务配置。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -3089,9 +3089,9 @@ public CompletableFuture updateMysqlCompatibil } /** - * 更新/关闭MySQl兼容端口服务 + * 更新/关闭M兼容端口服务 * - * 更新指定实例的MySQl兼容端口服务配置。 + * 更新指定实例的M兼容端口服务配置。 * * Please refer to HUAWEI cloud API Explorer for details. * diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussClient.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussClient.java index 4749c4ecaa..3e8ad89f74 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussClient.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/GaussDBforopenGaussClient.java @@ -2830,9 +2830,9 @@ public SyncInvoker startInstanceInv } /** - * 开启MySQl兼容端口服务 + * 开启M兼容端口服务 * - * 开启指定实例的MySQl兼容端口。 + * 开启指定实例的M兼容端口。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -2844,9 +2844,9 @@ public StartMysqlCompatibilityResponse startMysqlCompatibility(StartMysqlCompati } /** - * 开启MySQl兼容端口服务 + * 开启M兼容端口服务 * - * 开启指定实例的MySQl兼容端口。 + * 开启指定实例的M兼容端口。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -3030,9 +3030,9 @@ public SyncInvoker update } /** - * 更新/关闭MySQl兼容端口服务 + * 更新/关闭M兼容端口服务 * - * 更新指定实例的MySQl兼容端口服务配置。 + * 更新指定实例的M兼容端口服务配置。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -3044,9 +3044,9 @@ public UpdateMysqlCompatibilityResponse updateMysqlCompatibility(UpdateMysqlComp } /** - * 更新/关闭MySQl兼容端口服务 + * 更新/关闭M兼容端口服务 * - * 更新指定实例的MySQl兼容端口服务配置。 + * 更新指定实例的M兼容端口服务配置。 * * Please refer to HUAWEI cloud API Explorer for details. * diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateLimitTaskResponse.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateLimitTaskResponse.java index 51b6d7c9a1..85f1ebb255 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateLimitTaskResponse.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateLimitTaskResponse.java @@ -52,7 +52,7 @@ public class CreateLimitTaskResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "key_words") - private List keyWords = null; + private String keyWords; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "status") @@ -120,7 +120,7 @@ public class CreateLimitTaskResponse extends SdkResponse { private List nodeInfos = null; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "jobId") + @JsonProperty(value = "job_id") private String jobId; @@ -243,36 +243,20 @@ public void setSqlModel(String sqlModel) { this.sqlModel = sqlModel; } - public CreateLimitTaskResponse withKeyWords(List keyWords) { + public CreateLimitTaskResponse withKeyWords(String keyWords) { this.keyWords = keyWords; return this; } - public CreateLimitTaskResponse addKeyWordsItem(String keyWordsItem) { - if (this.keyWords == null) { - this.keyWords = new ArrayList<>(); - } - this.keyWords.add(keyWordsItem); - return this; - } - - public CreateLimitTaskResponse withKeyWords(Consumer> keyWordsSetter) { - if (this.keyWords == null) { - this.keyWords = new ArrayList<>(); - } - keyWordsSetter.accept(this.keyWords); - return this; - } - /** * 关键词,仅当任务类型为SQL_TYPE时,返回该值且与请求参数相同。 * @return keyWords */ - public List getKeyWords() { + public String getKeyWords() { return keyWords; } - public void setKeyWords(List keyWords) { + public void setKeyWords(String keyWords) { this.keyWords = keyWords; } diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/StartMySQLCompatibilityRequestBody.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/StartMySQLCompatibilityRequestBody.java index 12f4902d4e..167cddb7b3 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/StartMySQLCompatibilityRequestBody.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/StartMySQLCompatibilityRequestBody.java @@ -21,7 +21,7 @@ public StartMySQLCompatibilityRequestBody withPort(String port) { } /** - * MySQL兼容端口,可选范围为:1024-39998。 - 限制端口: 2378,2379,2380,4999,5000,5999,6000,6001,6500,8000-8006,8097,8098,12016,12017,20049,20050,21731,21732,32122,32123,32124。 - 与数据库对外端口互斥。 + * M兼容端口,可选范围为:0, 1024-39989。 - 如下端口不可设置: 2378,2379,2380,2400,4999,5000,5001,5100,5500,5999,6000,6001,6009,6010,6500,8015,8097,8098,8181,9090,9100,9180,9187,9200,12016,12017,20049,20050,21731,21732,32122,32123,32124,32125,32126,39001,[数据库端口, 数据库端口+10]。 - 取值为0,表示关闭M兼容端口。 * @return port */ public String getPort() { diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/UpdateLimitTaskResponse.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/UpdateLimitTaskResponse.java index bdbe5e14c9..75f680ce76 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/UpdateLimitTaskResponse.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/UpdateLimitTaskResponse.java @@ -62,7 +62,7 @@ public class UpdateLimitTaskResponse extends SdkResponse { private String ruleName; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "jobId") + @JsonProperty(value = "job_id") private String jobId; diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/UpdateMySQLCompatibilityRequestBody.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/UpdateMySQLCompatibilityRequestBody.java index b20d20e330..5029a5524d 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/UpdateMySQLCompatibilityRequestBody.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/UpdateMySQLCompatibilityRequestBody.java @@ -21,7 +21,7 @@ public UpdateMySQLCompatibilityRequestBody withPort(String port) { } /** - * MySQL兼容端口,修改端口的时候必填,不填默认保持原有设定端口,可选范围为:0, 1024-39998。 - 取值为0,标识关闭MySQL兼容端口服务。 - 限制端口: 2378,2379,2380,4999,5000,5999,6000,6001,6500,8000-8006,8097,8098,12016,12017,20049,20050,21731,21732,32122,32123,32124。 - 与数据库对外端口互斥。 + * M兼容端口,可选范围为:0, 1024-39989。 - 如下端口不可设置: 2378,2379,2380,2400,4999,5000,5001,5100,5500,5999,6000,6001,6009,6010,6500,8015,8097,8098,8181,9090,9100,9180,9187,9200,12016,12017,20049,20050,21731,21732,32122,32123,32124,32125,32126,39001,[数据库端口, 数据库端口+10]。 - 取值为0,表示关闭M兼容端口。 * @return port */ public String getPort() { diff --git a/services/geip/pom.xml b/services/geip/pom.xml index f8c5803549..58a87ec1b1 100644 --- a/services/geip/pom.xml +++ b/services/geip/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-geip - 3.1.121 + 3.1.122 Huawei Cloud SDK for GEIP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/ges/pom.xml b/services/ges/pom.xml index ef40d7d008..3152528519 100644 --- a/services/ges/pom.xml +++ b/services/ges/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-ges - 3.1.121 + 3.1.122 Huawei Cloud SDK for GES 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/gsl/pom.xml b/services/gsl/pom.xml index 67987c3209..acf1001cea 100644 --- a/services/gsl/pom.xml +++ b/services/gsl/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-gsl - 3.1.121 + 3.1.122 Huawei Cloud SDK for GSL 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/hilens/pom.xml b/services/hilens/pom.xml index a06d16c2d9..5754091791 100644 --- a/services/hilens/pom.xml +++ b/services/hilens/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-hilens - 3.1.121 + 3.1.122 Huawei Cloud SDK for HILENS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/hss/pom.xml b/services/hss/pom.xml index 989712dff3..575784fdaf 100644 --- a/services/hss/pom.xml +++ b/services/hss/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-hss - 3.1.121 + 3.1.122 Huawei Cloud SDK for HSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/hss/src/main/java/com/huaweicloud/sdk/hss/v5/HssMeta.java b/services/hss/src/main/java/com/huaweicloud/sdk/hss/v5/HssMeta.java index f50ce0d7f4..6187f4c0ce 100644 --- a/services/hss/src/main/java/com/huaweicloud/sdk/hss/v5/HssMeta.java +++ b/services/hss/src/main/java/com/huaweicloud/sdk/hss/v5/HssMeta.java @@ -1009,7 +1009,7 @@ private static HttpRequestDef genForListApps( // requests builder.withRequestField("host_id", LocationType.Query, - FieldExistence.NON_NULL_NON_EMPTY, + FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(ListAppsRequest::getHostId, ListAppsRequest::setHostId)); builder.withRequestField("host_name", diff --git a/services/hss/src/main/java/com/huaweicloud/sdk/hss/v5/region/HssRegion.java b/services/hss/src/main/java/com/huaweicloud/sdk/hss/v5/region/HssRegion.java index ac894f3fc4..bc9b7c6212 100644 --- a/services/hss/src/main/java/com/huaweicloud/sdk/hss/v5/region/HssRegion.java +++ b/services/hss/src/main/java/com/huaweicloud/sdk/hss/v5/region/HssRegion.java @@ -27,6 +27,8 @@ public class HssRegion { public static final Region CN_EAST_3 = new Region("cn-east-3", "https://hss.cn-east-3.myhuaweicloud.com"); + public static final Region CN_EAST_4 = new Region("cn-east-4", "https://hss.cn-east-4.myhuaweicloud.com"); + public static final Region CN_SOUTH_1 = new Region("cn-south-1", "https://hss.cn-south-1.myhuaweicloud.com"); public static final Region CN_SOUTH_2 = new Region("cn-south-2", "https://hss.cn-south-2.myhuaweicloud.com"); @@ -84,6 +86,7 @@ private static Map createStaticFields() { map.put("cn-southwest-2", CN_SOUTHWEST_2); map.put("cn-east-2", CN_EAST_2); map.put("cn-east-3", CN_EAST_3); + map.put("cn-east-4", CN_EAST_4); map.put("cn-south-1", CN_SOUTH_1); map.put("cn-south-2", CN_SOUTH_2); map.put("ap-southeast-1", AP_SOUTHEAST_1); diff --git a/services/iam/pom.xml b/services/iam/pom.xml index bd0a05bf81..8267385f61 100644 --- a/services/iam/pom.xml +++ b/services/iam/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-iam - 3.1.121 + 3.1.122 Huawei Cloud SDK for IAM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/iamaccessanalyzer/pom.xml b/services/iamaccessanalyzer/pom.xml index 76605227c6..a15347b524 100644 --- a/services/iamaccessanalyzer/pom.xml +++ b/services/iamaccessanalyzer/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-iamaccessanalyzer - 3.1.121 + 3.1.122 Huawei Cloud SDK for IAMACCESSANALYZER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/identitycenter/pom.xml b/services/identitycenter/pom.xml index d13c024f19..4d6bf53da4 100644 --- a/services/identitycenter/pom.xml +++ b/services/identitycenter/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-identitycenter - 3.1.121 + 3.1.122 Huawei Cloud SDK for IDENTITYCENTER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/identitycenterstore/pom.xml b/services/identitycenterstore/pom.xml index d61a9794c4..d6ab426e41 100644 --- a/services/identitycenterstore/pom.xml +++ b/services/identitycenterstore/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-identitycenterstore - 3.1.121 + 3.1.122 Huawei Cloud SDK for IDENTITYCENTERSTORE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/idme/pom.xml b/services/idme/pom.xml index 5f979d93f2..c013b31fa6 100644 --- a/services/idme/pom.xml +++ b/services/idme/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-idme - 3.1.121 + 3.1.122 Huawei Cloud SDK for IDME 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/idmeclassicapi/pom.xml b/services/idmeclassicapi/pom.xml index cdafd24520..0ee8e06170 100644 --- a/services/idmeclassicapi/pom.xml +++ b/services/idmeclassicapi/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-idmeclassicapi - 3.1.121 + 3.1.122 Huawei Cloud SDK for IDMECLASSICAPI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/iec/pom.xml b/services/iec/pom.xml index 364a206259..f5140fd141 100644 --- a/services/iec/pom.xml +++ b/services/iec/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-iec - 3.1.121 + 3.1.122 Huawei Cloud SDK for IEC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/ief/pom.xml b/services/ief/pom.xml index 9b3596077e..20fdfefe01 100644 --- a/services/ief/pom.xml +++ b/services/ief/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-ief - 3.1.121 + 3.1.122 Huawei Cloud SDK for IEF 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/image/pom.xml b/services/image/pom.xml index 1ad36f19eb..11732c15b2 100644 --- a/services/image/pom.xml +++ b/services/image/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-image - 3.1.121 + 3.1.122 Huawei Cloud SDK for IMAGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/imagesearch/pom.xml b/services/imagesearch/pom.xml index 14f578ccb9..b5779970e4 100644 --- a/services/imagesearch/pom.xml +++ b/services/imagesearch/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-imagesearch - 3.1.121 + 3.1.122 Huawei Cloud SDK for IMAGESEARCH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/ims/pom.xml b/services/ims/pom.xml index df582e634e..ca2104c53d 100644 --- a/services/ims/pom.xml +++ b/services/ims/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-ims - 3.1.121 + 3.1.122 Huawei Cloud SDK for IMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/iotanalytics/pom.xml b/services/iotanalytics/pom.xml index adaf97100a..4b89704a4a 100644 --- a/services/iotanalytics/pom.xml +++ b/services/iotanalytics/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-iotanalytics - 3.1.121 + 3.1.122 Huawei Cloud SDK for IOTANALYTICS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/iotda/pom.xml b/services/iotda/pom.xml index 76620cb8dc..a11aa16d59 100644 --- a/services/iotda/pom.xml +++ b/services/iotda/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-iotda - 3.1.121 + 3.1.122 Huawei Cloud SDK for IOTDA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 junit diff --git a/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/IoTDAMeta.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/IoTDAMeta.java index 8f64894986..a4905a24e5 100644 --- a/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/IoTDAMeta.java +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/IoTDAMeta.java @@ -3116,16 +3116,6 @@ private static HttpRequestDef genForA FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(AddFunctionsRequest::getInstanceId, AddFunctionsRequest::setInstanceId)); - builder.withRequestField("Sp-Auth-Token", - LocationType.Header, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(AddFunctionsRequest::getSpAuthToken, AddFunctionsRequest::setSpAuthToken)); - builder.withRequestField("Stage-Auth-Token", - LocationType.Header, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(AddFunctionsRequest::getStageAuthToken, AddFunctionsRequest::setStageAuthToken)); builder.withRequestField("body", LocationType.Body, FieldExistence.NON_NULL_NON_EMPTY, @@ -3159,24 +3149,8 @@ private static HttpRequestDef g FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(DeleteFunctionsRequest::getInstanceId, DeleteFunctionsRequest::setInstanceId)); - builder.withRequestField("Sp-Auth-Token", - LocationType.Header, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(DeleteFunctionsRequest::getSpAuthToken, DeleteFunctionsRequest::setSpAuthToken)); - builder.withRequestField("Stage-Auth-Token", - LocationType.Header, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(DeleteFunctionsRequest::getStageAuthToken, - DeleteFunctionsRequest::setStageAuthToken)); // response - builder.withResponseField("body", - LocationType.Body, - FieldExistence.NULL_IGNORE, - String.class, - f -> f.withMarshaller(DeleteFunctionsResponse::getBody, DeleteFunctionsResponse::setBody)); return builder.build(); } @@ -3208,16 +3182,6 @@ private static HttpRequestDef genFo FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(ListFunctionsRequest::getInstanceId, ListFunctionsRequest::setInstanceId)); - builder.withRequestField("Sp-Auth-Token", - LocationType.Header, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListFunctionsRequest::getSpAuthToken, ListFunctionsRequest::setSpAuthToken)); - builder.withRequestField("Stage-Auth-Token", - LocationType.Header, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListFunctionsRequest::getStageAuthToken, ListFunctionsRequest::setStageAuthToken)); // response diff --git a/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/AddFunctionsRequest.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/AddFunctionsRequest.java index 7a6a214a90..29b7e032a8 100644 --- a/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/AddFunctionsRequest.java +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/AddFunctionsRequest.java @@ -16,16 +16,6 @@ public class AddFunctionsRequest { private String instanceId; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "Sp-Auth-Token") - - private String spAuthToken; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "Stage-Auth-Token") - - private String stageAuthToken; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "body") @@ -48,40 +38,6 @@ public void setInstanceId(String instanceId) { this.instanceId = instanceId; } - public AddFunctionsRequest withSpAuthToken(String spAuthToken) { - this.spAuthToken = spAuthToken; - return this; - } - - /** - * **参数说明**:Sp用户Token。通过调用IoBPS服务获取SP用户Token。 - * @return spAuthToken - */ - public String getSpAuthToken() { - return spAuthToken; - } - - public void setSpAuthToken(String spAuthToken) { - this.spAuthToken = spAuthToken; - } - - public AddFunctionsRequest withStageAuthToken(String stageAuthToken) { - this.stageAuthToken = stageAuthToken; - return this; - } - - /** - * **参数说明**:Stage用户的Token, 仅提供给IoStage服务使用。 - * @return stageAuthToken - */ - public String getStageAuthToken() { - return stageAuthToken; - } - - public void setStageAuthToken(String stageAuthToken) { - this.stageAuthToken = stageAuthToken; - } - public AddFunctionsRequest withBody(FunctionRequestDTO body) { this.body = body; return this; @@ -117,13 +73,12 @@ public boolean equals(java.lang.Object obj) { return false; } AddFunctionsRequest that = (AddFunctionsRequest) obj; - return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.spAuthToken, that.spAuthToken) - && Objects.equals(this.stageAuthToken, that.stageAuthToken) && Objects.equals(this.body, that.body); + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.body, that.body); } @Override public int hashCode() { - return Objects.hash(instanceId, spAuthToken, stageAuthToken, body); + return Objects.hash(instanceId, body); } @Override @@ -131,8 +86,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AddFunctionsRequest {\n"); sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); - sb.append(" spAuthToken: ").append(toIndentedString(spAuthToken)).append("\n"); - sb.append(" stageAuthToken: ").append(toIndentedString(stageAuthToken)).append("\n"); sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/DeleteFunctionsRequest.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/DeleteFunctionsRequest.java index b733c3cbf9..78468baa3d 100644 --- a/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/DeleteFunctionsRequest.java +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/DeleteFunctionsRequest.java @@ -15,16 +15,6 @@ public class DeleteFunctionsRequest { private String instanceId; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "Sp-Auth-Token") - - private String spAuthToken; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "Stage-Auth-Token") - - private String stageAuthToken; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "function_id") @@ -47,40 +37,6 @@ public void setInstanceId(String instanceId) { this.instanceId = instanceId; } - public DeleteFunctionsRequest withSpAuthToken(String spAuthToken) { - this.spAuthToken = spAuthToken; - return this; - } - - /** - * **参数说明**:Sp用户Token。通过调用IoBPS服务获取SP用户Token。 - * @return spAuthToken - */ - public String getSpAuthToken() { - return spAuthToken; - } - - public void setSpAuthToken(String spAuthToken) { - this.spAuthToken = spAuthToken; - } - - public DeleteFunctionsRequest withStageAuthToken(String stageAuthToken) { - this.stageAuthToken = stageAuthToken; - return this; - } - - /** - * **参数说明**:Stage用户的Token, 仅提供给IoStage服务使用。 - * @return stageAuthToken - */ - public String getStageAuthToken() { - return stageAuthToken; - } - - public void setStageAuthToken(String stageAuthToken) { - this.stageAuthToken = stageAuthToken; - } - public DeleteFunctionsRequest withFunctionId(String functionId) { this.functionId = functionId; return this; @@ -107,14 +63,12 @@ public boolean equals(java.lang.Object obj) { return false; } DeleteFunctionsRequest that = (DeleteFunctionsRequest) obj; - return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.spAuthToken, that.spAuthToken) - && Objects.equals(this.stageAuthToken, that.stageAuthToken) - && Objects.equals(this.functionId, that.functionId); + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.functionId, that.functionId); } @Override public int hashCode() { - return Objects.hash(instanceId, spAuthToken, stageAuthToken, functionId); + return Objects.hash(instanceId, functionId); } @Override @@ -122,8 +76,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeleteFunctionsRequest {\n"); sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); - sb.append(" spAuthToken: ").append(toIndentedString(spAuthToken)).append("\n"); - sb.append(" stageAuthToken: ").append(toIndentedString(stageAuthToken)).append("\n"); sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/DeleteFunctionsResponse.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/DeleteFunctionsResponse.java index 52e273e126..633fb55a27 100644 --- a/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/DeleteFunctionsResponse.java +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/DeleteFunctionsResponse.java @@ -1,7 +1,5 @@ package com.huaweicloud.sdk.iotda.v5.model; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; @@ -11,28 +9,6 @@ */ public class DeleteFunctionsResponse extends SdkResponse { - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "body") - - private String body; - - public DeleteFunctionsResponse withBody(String body) { - this.body = body; - return this; - } - - /** - * Get body - * @return body - */ - public String getBody() { - return body; - } - - public void setBody(String body) { - this.body = body; - } - @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -41,33 +17,20 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - DeleteFunctionsResponse that = (DeleteFunctionsResponse) obj; - return Objects.equals(this.body, that.body); + return true; } @Override public int hashCode() { - return Objects.hash(body); + return Objects.hash(); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeleteFunctionsResponse {\n"); - sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); return sb.toString(); } - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - } diff --git a/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ListFunctionsRequest.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ListFunctionsRequest.java index 4926e08913..8dc5b28580 100644 --- a/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ListFunctionsRequest.java +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ListFunctionsRequest.java @@ -15,16 +15,6 @@ public class ListFunctionsRequest { private String instanceId; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "Sp-Auth-Token") - - private String spAuthToken; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "Stage-Auth-Token") - - private String stageAuthToken; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "app_id") @@ -52,40 +42,6 @@ public void setInstanceId(String instanceId) { this.instanceId = instanceId; } - public ListFunctionsRequest withSpAuthToken(String spAuthToken) { - this.spAuthToken = spAuthToken; - return this; - } - - /** - * **参数说明**:Sp用户Token。通过调用IoBPS服务获取SP用户Token。 - * @return spAuthToken - */ - public String getSpAuthToken() { - return spAuthToken; - } - - public void setSpAuthToken(String spAuthToken) { - this.spAuthToken = spAuthToken; - } - - public ListFunctionsRequest withStageAuthToken(String stageAuthToken) { - this.stageAuthToken = stageAuthToken; - return this; - } - - /** - * **参数说明**:Stage用户的Token, 仅提供给IoStage服务使用。 - * @return stageAuthToken - */ - public String getStageAuthToken() { - return stageAuthToken; - } - - public void setStageAuthToken(String stageAuthToken) { - this.stageAuthToken = stageAuthToken; - } - public ListFunctionsRequest withAppId(String appId) { this.appId = appId; return this; @@ -129,14 +85,13 @@ public boolean equals(java.lang.Object obj) { return false; } ListFunctionsRequest that = (ListFunctionsRequest) obj; - return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.spAuthToken, that.spAuthToken) - && Objects.equals(this.stageAuthToken, that.stageAuthToken) && Objects.equals(this.appId, that.appId) + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.appId, that.appId) && Objects.equals(this.productId, that.productId); } @Override public int hashCode() { - return Objects.hash(instanceId, spAuthToken, stageAuthToken, appId, productId); + return Objects.hash(instanceId, appId, productId); } @Override @@ -144,8 +99,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListFunctionsRequest {\n"); sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); - sb.append(" spAuthToken: ").append(toIndentedString(spAuthToken)).append("\n"); - sb.append(" stageAuthToken: ").append(toIndentedString(stageAuthToken)).append("\n"); sb.append(" appId: ").append(toIndentedString(appId)).append("\n"); sb.append(" productId: ").append(toIndentedString(productId)).append("\n"); sb.append("}"); diff --git a/services/iotdm/pom.xml b/services/iotdm/pom.xml index 03e55021ab..6e176368e8 100644 --- a/services/iotdm/pom.xml +++ b/services/iotdm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-iotdm - 3.1.121 + 3.1.122 Huawei Cloud SDK for IOTDM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/iotedge/pom.xml b/services/iotedge/pom.xml index 118cbd366e..4ff9c284a8 100644 --- a/services/iotedge/pom.xml +++ b/services/iotedge/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-iotedge - 3.1.121 + 3.1.122 Huawei Cloud SDK for IOTEDGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/ivs/pom.xml b/services/ivs/pom.xml index 2b88aa1645..e282ec2952 100644 --- a/services/ivs/pom.xml +++ b/services/ivs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-ivs - 3.1.121 + 3.1.122 Huawei Cloud SDK for IVS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/kafka/pom.xml b/services/kafka/pom.xml index 1088009049..1acba417fa 100644 --- a/services/kafka/pom.xml +++ b/services/kafka/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-kafka - 3.1.121 + 3.1.122 Huawei Cloud SDK for KAFKA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/kms/pom.xml b/services/kms/pom.xml index 7680fa7f58..e5d2034528 100644 --- a/services/kms/pom.xml +++ b/services/kms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-kms - 3.1.121 + 3.1.122 Huawei Cloud SDK for KMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/koomap/pom.xml b/services/koomap/pom.xml index 6cec2820ca..6a892990a1 100644 --- a/services/koomap/pom.xml +++ b/services/koomap/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-koomap - 3.1.121 + 3.1.122 Huawei Cloud SDK for KOOMAP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/koomessage/pom.xml b/services/koomessage/pom.xml index 5c874d03f4..4ba9b60c07 100644 --- a/services/koomessage/pom.xml +++ b/services/koomessage/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-koomessage - 3.1.121 + 3.1.122 Huawei Cloud SDK for KOOMESSAGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/koophone/pom.xml b/services/koophone/pom.xml index f5e851e114..f195aaba2e 100644 --- a/services/koophone/pom.xml +++ b/services/koophone/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-koophone - 3.1.121 + 3.1.122 Huawei Cloud SDK for KOOPHONE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/kps/pom.xml b/services/kps/pom.xml index a631250dd7..db6da33568 100644 --- a/services/kps/pom.xml +++ b/services/kps/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-kps - 3.1.121 + 3.1.122 Huawei Cloud SDK for KPS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/kvs/pom.xml b/services/kvs/pom.xml index 844d1779bb..73ca682c89 100644 --- a/services/kvs/pom.xml +++ b/services/kvs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-kvs - 3.1.121 + 3.1.122 Huawei Cloud SDK for KVS 4.0.0 @@ -17,22 +17,22 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-core-bson - 3.1.121 + 3.1.122 org.apache.commons commons-configuration2 - 2.8.0 + 2.10.1 commons-beanutils commons-beanutils - 1.9.3 + 1.9.4 org.powermock diff --git a/services/lakeformation/pom.xml b/services/lakeformation/pom.xml index 186e24da98..4566cc8b03 100644 --- a/services/lakeformation/pom.xml +++ b/services/lakeformation/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-lakeformation - 3.1.121 + 3.1.122 Huawei Cloud SDK for LAKEFORMATION 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/live/pom.xml b/services/live/pom.xml index c98639ebf4..e4f372d570 100644 --- a/services/live/pom.xml +++ b/services/live/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-live - 3.1.121 + 3.1.122 Huawei Cloud SDK for LIVE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/AreaTimeValue.java b/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/AreaTimeValue.java index 4f28a4257a..35208e3455 100644 --- a/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/AreaTimeValue.java +++ b/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/AreaTimeValue.java @@ -29,7 +29,7 @@ public AreaTimeValue withName(String name) { } /** - * 各个大区下的具体省份、区域、国家的名称。 中国内地返回结果为省份/直辖市的中文名称,比如:广东、上海; 海外大区下的地区/国家对应关系请参考[地区/国家代码对照表](live_03_0049.xml)。 + * 各个大区下的具体省份、区域、国家的名称。 中国内地返回结果为省份/直辖市的中文名称,比如:广东、上海; 海外大区下的地区/国家对应关系请参考[地区/国家代码对照表](https://support.huaweicloud.com/api-live/live_03_0049.html)。 * @return name */ public String getName() { diff --git a/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListAreaDetailRequest.java b/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListAreaDetailRequest.java index 112a5474a5..9110f8ab9e 100644 --- a/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListAreaDetailRequest.java +++ b/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListAreaDetailRequest.java @@ -319,7 +319,7 @@ public ListAreaDetailRequest withArea(Consumer> areaSetter) { } /** - * 需查询的计费大区,取值如下: - CN:中国内地。 - AP1:亚太1区。 - AP2:亚太2区。 - AP3:亚太3区。 - MEAA:中东非洲。 - SA:南美。 - EU:欧洲。 - ALL:全部。 中国内地返回结果为省份/直辖市的中文名称,比如:广东、上海; 海外大区与地区/国家的对应关系请参考[地区/国家代码对照表](live_03_0049.xml)。 + * 需查询的计费大区,取值如下: - CN:中国内地。 - AP1:亚太1区。 - AP2:亚太2区。 - AP3:亚太3区。 - MEAA:中东非洲。 - SA:南美。 - EU:欧洲。 - ALL:全部。 中国内地返回结果为省份/直辖市的中文名称,比如:广东、上海; 海外大区与地区/国家的对应关系请参考[地区/国家代码对照表](https://support.huaweicloud.com/api-live/live_03_0049.html)。 * @return area */ public List getArea() { diff --git a/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListBandwidthDetailRequest.java b/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListBandwidthDetailRequest.java index 1b4b153bab..9f61e85c78 100644 --- a/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListBandwidthDetailRequest.java +++ b/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListBandwidthDetailRequest.java @@ -384,7 +384,7 @@ public ListBandwidthDetailRequest withCountry(Consumer> countrySett } /** - * 国家列表。具体取值请参考[国家名称缩写](vod_08_0172.xml),不填写查询所有国家。 + * 国家列表。具体取值请参考[国家名称缩写](https://support.huaweicloud.com/api-live/vod_08_0172.html),不填写查询所有国家。 * @return country */ public List getCountry() { @@ -417,7 +417,7 @@ public ListBandwidthDetailRequest withRegion(Consumer> regionSetter } /** - * 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + * 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 * @return region */ public List getRegion() { diff --git a/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListDomainBandwidthPeakRequest.java b/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListDomainBandwidthPeakRequest.java index 693e34241d..181206e4f6 100644 --- a/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListDomainBandwidthPeakRequest.java +++ b/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListDomainBandwidthPeakRequest.java @@ -298,7 +298,7 @@ public ListDomainBandwidthPeakRequest withRegion(Consumer> regionSe } /** - * 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + * 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 * @return region */ public List getRegion() { diff --git a/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListDomainTrafficDetailRequest.java b/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListDomainTrafficDetailRequest.java index 4f5428124a..428ad62569 100644 --- a/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListDomainTrafficDetailRequest.java +++ b/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListDomainTrafficDetailRequest.java @@ -303,7 +303,7 @@ public ListDomainTrafficDetailRequest withRegion(Consumer> regionSe } /** - * 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + * 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 * @return region */ public List getRegion() { diff --git a/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListDomainTrafficSummaryRequest.java b/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListDomainTrafficSummaryRequest.java index 1c648c0d52..7bd0fa1a08 100644 --- a/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListDomainTrafficSummaryRequest.java +++ b/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListDomainTrafficSummaryRequest.java @@ -298,7 +298,7 @@ public ListDomainTrafficSummaryRequest withRegion(Consumer> regionS } /** - * 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + * 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 * @return region */ public List getRegion() { diff --git a/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListQueryHttpCodeRequest.java b/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListQueryHttpCodeRequest.java index 6ad61ee03f..c6eeb26e02 100644 --- a/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListQueryHttpCodeRequest.java +++ b/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListQueryHttpCodeRequest.java @@ -131,7 +131,7 @@ public ListQueryHttpCodeRequest withRegion(Consumer> regionSetter) } /** - * 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + * 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 * @return region */ public List getRegion() { diff --git a/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListUsersOfStreamRequest.java b/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListUsersOfStreamRequest.java index f5cce3c46b..7018793aa0 100644 --- a/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListUsersOfStreamRequest.java +++ b/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ListUsersOfStreamRequest.java @@ -395,7 +395,7 @@ public ListUsersOfStreamRequest withCountry(Consumer> countrySetter } /** - * 国家列表。具体取值请参考[国家名称缩写](vod_08_0172.xml),不填写查询所有国家。 + * 国家列表。具体取值请参考[国家名称缩写](https://support.huaweicloud.com/api-live/vod_08_0172.html),不填写查询所有国家。 * @return country */ public List getCountry() { @@ -428,7 +428,7 @@ public ListUsersOfStreamRequest withRegion(Consumer> regionSetter) } /** - * 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + * 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 * @return region */ public List getRegion() { diff --git a/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ShowUpBandwidthRequest.java b/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ShowUpBandwidthRequest.java index b3449e76c0..c3e1969cc8 100644 --- a/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ShowUpBandwidthRequest.java +++ b/services/live/src/main/java/com/huaweicloud/sdk/live/v2/model/ShowUpBandwidthRequest.java @@ -292,7 +292,7 @@ public ShowUpBandwidthRequest withRegion(Consumer> regionSetter) { } /** - * 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + * 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 * @return region */ public List getRegion() { diff --git a/services/lts/pom.xml b/services/lts/pom.xml index d7c3416063..9b96097c8c 100644 --- a/services/lts/pom.xml +++ b/services/lts/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-lts - 3.1.121 + 3.1.122 Huawei Cloud SDK for LTS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/mapds/pom.xml b/services/mapds/pom.xml index ebe9b14a0a..0a0dfadc11 100644 --- a/services/mapds/pom.xml +++ b/services/mapds/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-mapds - 3.1.121 + 3.1.122 Huawei Cloud SDK for MAPDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/mas/pom.xml b/services/mas/pom.xml index b1cc3a6932..81af71bb52 100644 --- a/services/mas/pom.xml +++ b/services/mas/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-mas - 3.1.121 + 3.1.122 Huawei Cloud SDK for MAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/meeting/pom.xml b/services/meeting/pom.xml index 4197882946..2c3d71747f 100644 --- a/services/meeting/pom.xml +++ b/services/meeting/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-meeting - 3.1.121 + 3.1.122 Huawei Cloud SDK for MEETING 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/MeetingAsyncClient.java b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/MeetingAsyncClient.java index 693f9ff3d8..1a7a3c5fc2 100644 --- a/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/MeetingAsyncClient.java +++ b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/MeetingAsyncClient.java @@ -65,6 +65,8 @@ import com.huaweicloud.sdk.meeting.v1.model.CancelRecurringMeetingResponse; import com.huaweicloud.sdk.meeting.v1.model.CancelRecurringSubMeetingRequest; import com.huaweicloud.sdk.meeting.v1.model.CancelRecurringSubMeetingResponse; +import com.huaweicloud.sdk.meeting.v1.model.CheckCallNumberInConfRequest; +import com.huaweicloud.sdk.meeting.v1.model.CheckCallNumberInConfResponse; import com.huaweicloud.sdk.meeting.v1.model.CheckSlideVerifyCodeRequest; import com.huaweicloud.sdk.meeting.v1.model.CheckSlideVerifyCodeResponse; import com.huaweicloud.sdk.meeting.v1.model.CheckTokenRequest; @@ -1307,6 +1309,36 @@ public AsyncInvoker(request, MeetingMeta.cancelRecurringSubMeeting, hcClient); } + /** + * 根据号码,查询是否在会议中 + * + * 通过该接口查询号码,是否在会议中 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CheckCallNumberInConfRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture checkCallNumberInConfAsync( + CheckCallNumberInConfRequest request) { + return hcClient.asyncInvokeHttp(request, MeetingMeta.checkCallNumberInConf); + } + + /** + * 根据号码,查询是否在会议中 + * + * 通过该接口查询号码,是否在会议中 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CheckCallNumberInConfRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker checkCallNumberInConfAsyncInvoker( + CheckCallNumberInConfRequest request) { + return new AsyncInvoker<>(request, MeetingMeta.checkCallNumberInConf, hcClient); + } + /** * 校验滑块验证码 * diff --git a/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/MeetingClient.java b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/MeetingClient.java index ef4e8ecc64..964678b1eb 100644 --- a/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/MeetingClient.java +++ b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/MeetingClient.java @@ -65,6 +65,8 @@ import com.huaweicloud.sdk.meeting.v1.model.CancelRecurringMeetingResponse; import com.huaweicloud.sdk.meeting.v1.model.CancelRecurringSubMeetingRequest; import com.huaweicloud.sdk.meeting.v1.model.CancelRecurringSubMeetingResponse; +import com.huaweicloud.sdk.meeting.v1.model.CheckCallNumberInConfRequest; +import com.huaweicloud.sdk.meeting.v1.model.CheckCallNumberInConfResponse; import com.huaweicloud.sdk.meeting.v1.model.CheckSlideVerifyCodeRequest; import com.huaweicloud.sdk.meeting.v1.model.CheckSlideVerifyCodeResponse; import com.huaweicloud.sdk.meeting.v1.model.CheckTokenRequest; @@ -1290,6 +1292,35 @@ public SyncInvoker(request, MeetingMeta.cancelRecurringSubMeeting, hcClient); } + /** + * 根据号码,查询是否在会议中 + * + * 通过该接口查询号码,是否在会议中 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CheckCallNumberInConfRequest 请求对象 + * @return CheckCallNumberInConfResponse + */ + public CheckCallNumberInConfResponse checkCallNumberInConf(CheckCallNumberInConfRequest request) { + return hcClient.syncInvokeHttp(request, MeetingMeta.checkCallNumberInConf); + } + + /** + * 根据号码,查询是否在会议中 + * + * 通过该接口查询号码,是否在会议中 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CheckCallNumberInConfRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker checkCallNumberInConfInvoker( + CheckCallNumberInConfRequest request) { + return new SyncInvoker<>(request, MeetingMeta.checkCallNumberInConf, hcClient); + } + /** * 校验滑块验证码 * diff --git a/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/MeetingMeta.java b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/MeetingMeta.java index be4f31031d..7f375e79b6 100644 --- a/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/MeetingMeta.java +++ b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/MeetingMeta.java @@ -76,6 +76,8 @@ import com.huaweicloud.sdk.meeting.v1.model.CancelRecurringMeetingResponse; import com.huaweicloud.sdk.meeting.v1.model.CancelRecurringSubMeetingRequest; import com.huaweicloud.sdk.meeting.v1.model.CancelRecurringSubMeetingResponse; +import com.huaweicloud.sdk.meeting.v1.model.CheckCallNumberInConfRequest; +import com.huaweicloud.sdk.meeting.v1.model.CheckCallNumberInConfResponse; import com.huaweicloud.sdk.meeting.v1.model.CheckSlideVerifyCodeRequest; import com.huaweicloud.sdk.meeting.v1.model.CheckSlideVerifyCodeResponse; import com.huaweicloud.sdk.meeting.v1.model.CheckTokenRequest; @@ -1644,6 +1646,30 @@ private static HttpRequestDef checkCallNumberInConf = + genForCheckCallNumberInConf(); + + private static HttpRequestDef genForCheckCallNumberInConf() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, CheckCallNumberInConfRequest.class, CheckCallNumberInConfResponse.class) + .withName("CheckCallNumberInConf") + .withUri("/v2/mms/ncms/conferences/online/check-callnumber-in-conf") + .withContentType("application/json"); + + // requests + builder.withRequestField("call_number", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CheckCallNumberInConfRequest::getCallNumber, + CheckCallNumberInConfRequest::setCallNumber)); + + // response + + return builder.build(); + } + public static final HttpRequestDef checkSlideVerifyCode = genForCheckSlideVerifyCode(); diff --git a/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/CheckCallNumberInConfRequest.java b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/CheckCallNumberInConfRequest.java new file mode 100644 index 0000000000..c892c7425e --- /dev/null +++ b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/CheckCallNumberInConfRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.meeting.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class CheckCallNumberInConfRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "call_number") + + private String callNumber; + + public CheckCallNumberInConfRequest withCallNumber(String callNumber) { + this.callNumber = callNumber; + return this; + } + + /** + * 呼叫号码 + * @return callNumber + */ + public String getCallNumber() { + return callNumber; + } + + public void setCallNumber(String callNumber) { + this.callNumber = callNumber; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CheckCallNumberInConfRequest that = (CheckCallNumberInConfRequest) obj; + return Objects.equals(this.callNumber, that.callNumber); + } + + @Override + public int hashCode() { + return Objects.hash(callNumber); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CheckCallNumberInConfRequest {\n"); + sb.append(" callNumber: ").append(toIndentedString(callNumber)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/CheckCallNumberInConfResponse.java b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/CheckCallNumberInConfResponse.java new file mode 100644 index 0000000000..aa13f8ad82 --- /dev/null +++ b/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/CheckCallNumberInConfResponse.java @@ -0,0 +1,96 @@ +package com.huaweicloud.sdk.meeting.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class CheckCallNumberInConfResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "in_conf") + + private Boolean inConf; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "conf_id") + + private String confId; + + public CheckCallNumberInConfResponse withInConf(Boolean inConf) { + this.inConf = inConf; + return this; + } + + /** + * 是否在会议中 + * @return inConf + */ + public Boolean getInConf() { + return inConf; + } + + public void setInConf(Boolean inConf) { + this.inConf = inConf; + } + + public CheckCallNumberInConfResponse withConfId(String confId) { + this.confId = confId; + return this; + } + + /** + * 会议id + * @return confId + */ + public String getConfId() { + return confId; + } + + public void setConfId(String confId) { + this.confId = confId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CheckCallNumberInConfResponse that = (CheckCallNumberInConfResponse) obj; + return Objects.equals(this.inConf, that.inConf) && Objects.equals(this.confId, that.confId); + } + + @Override + public int hashCode() { + return Objects.hash(inConf, confId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CheckCallNumberInConfResponse {\n"); + sb.append(" inConf: ").append(toIndentedString(inConf)).append("\n"); + sb.append(" confId: ").append(toIndentedString(confId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/pom.xml b/services/metastudio/pom.xml index 9b9cb78a24..8ad9dcbf40 100644 --- a/services/metastudio/pom.xml +++ b/services/metastudio/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-metastudio - 3.1.121 + 3.1.122 Huawei Cloud SDK for METASTUDIO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioAsyncClient.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioAsyncClient.java index ee2008aff7..bca6b55040 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioAsyncClient.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioAsyncClient.java @@ -31,6 +31,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.CreateAssetByReplicationInfoResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateBatchKnowledgeQuestionRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateBatchKnowledgeQuestionResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateBeautyPreviewJobRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateBeautyPreviewJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateDialogUrlRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateDialogUrlResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateDigitalAssetRequest; @@ -215,6 +217,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.ShowAssetReplicationInfoResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowAssetRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowAssetResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ShowBeautyPreviewJobRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ShowBeautyPreviewJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowDigitalHumanBusinessCardRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowDigitalHumanBusinessCardResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowHotQuestionRequest; @@ -267,6 +271,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.ShowWelcomeSpeechResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowWelcomeSpeechSwitchRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowWelcomeSpeechSwitchResponse; +import com.huaweicloud.sdk.metastudio.v1.model.StartBeautyPreviewJobRequest; +import com.huaweicloud.sdk.metastudio.v1.model.StartBeautyPreviewJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.StartSmartChatJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.StartSmartChatJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.StartSmartLiveRequest; @@ -595,6 +601,96 @@ public AsyncInvoker showAgencyAsyncInvoke return new AsyncInvoker<>(request, MetaStudioMeta.showAgency, hcClient); } + /** + * 创建美白预览任务 + * + * 该接口用于创建美白预览任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateBeautyPreviewJobRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createBeautyPreviewJobAsync( + CreateBeautyPreviewJobRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.createBeautyPreviewJob); + } + + /** + * 创建美白预览任务 + * + * 该接口用于创建美白预览任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateBeautyPreviewJobRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createBeautyPreviewJobAsyncInvoker( + CreateBeautyPreviewJobRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.createBeautyPreviewJob, hcClient); + } + + /** + * 查询美白预览任务 + * + * 该接口用于查询美白预览任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowBeautyPreviewJobRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showBeautyPreviewJobAsync( + ShowBeautyPreviewJobRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.showBeautyPreviewJob); + } + + /** + * 查询美白预览任务 + * + * 该接口用于查询美白预览任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowBeautyPreviewJobRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showBeautyPreviewJobAsyncInvoker( + ShowBeautyPreviewJobRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.showBeautyPreviewJob, hcClient); + } + + /** + * 启动美白预览任务 + * + * 该接口用于启动美白预览任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request StartBeautyPreviewJobRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture startBeautyPreviewJobAsync( + StartBeautyPreviewJobRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.startBeautyPreviewJob); + } + + /** + * 启动美白预览任务 + * + * 该接口用于启动美白预览任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request StartBeautyPreviewJobRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker startBeautyPreviewJobAsyncInvoker( + StartBeautyPreviewJobRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.startBeautyPreviewJob, hcClient); + } + /** * 创建对话链接 * diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioClient.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioClient.java index 7e08df9da6..044c6c545b 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioClient.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioClient.java @@ -31,6 +31,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.CreateAssetByReplicationInfoResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateBatchKnowledgeQuestionRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateBatchKnowledgeQuestionResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateBeautyPreviewJobRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateBeautyPreviewJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateDialogUrlRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateDialogUrlResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateDigitalAssetRequest; @@ -215,6 +217,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.ShowAssetReplicationInfoResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowAssetRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowAssetResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ShowBeautyPreviewJobRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ShowBeautyPreviewJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowDigitalHumanBusinessCardRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowDigitalHumanBusinessCardResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowHotQuestionRequest; @@ -267,6 +271,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.ShowWelcomeSpeechResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowWelcomeSpeechSwitchRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowWelcomeSpeechSwitchResponse; +import com.huaweicloud.sdk.metastudio.v1.model.StartBeautyPreviewJobRequest; +import com.huaweicloud.sdk.metastudio.v1.model.StartBeautyPreviewJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.StartSmartChatJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.StartSmartChatJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.StartSmartLiveRequest; @@ -591,6 +597,93 @@ public SyncInvoker showAgencyInvoker(Show return new SyncInvoker<>(request, MetaStudioMeta.showAgency, hcClient); } + /** + * 创建美白预览任务 + * + * 该接口用于创建美白预览任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateBeautyPreviewJobRequest 请求对象 + * @return CreateBeautyPreviewJobResponse + */ + public CreateBeautyPreviewJobResponse createBeautyPreviewJob(CreateBeautyPreviewJobRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.createBeautyPreviewJob); + } + + /** + * 创建美白预览任务 + * + * 该接口用于创建美白预览任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateBeautyPreviewJobRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createBeautyPreviewJobInvoker( + CreateBeautyPreviewJobRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.createBeautyPreviewJob, hcClient); + } + + /** + * 查询美白预览任务 + * + * 该接口用于查询美白预览任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowBeautyPreviewJobRequest 请求对象 + * @return ShowBeautyPreviewJobResponse + */ + public ShowBeautyPreviewJobResponse showBeautyPreviewJob(ShowBeautyPreviewJobRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.showBeautyPreviewJob); + } + + /** + * 查询美白预览任务 + * + * 该接口用于查询美白预览任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowBeautyPreviewJobRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showBeautyPreviewJobInvoker( + ShowBeautyPreviewJobRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.showBeautyPreviewJob, hcClient); + } + + /** + * 启动美白预览任务 + * + * 该接口用于启动美白预览任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request StartBeautyPreviewJobRequest 请求对象 + * @return StartBeautyPreviewJobResponse + */ + public StartBeautyPreviewJobResponse startBeautyPreviewJob(StartBeautyPreviewJobRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.startBeautyPreviewJob); + } + + /** + * 启动美白预览任务 + * + * 该接口用于启动美白预览任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request StartBeautyPreviewJobRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker startBeautyPreviewJobInvoker( + StartBeautyPreviewJobRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.startBeautyPreviewJob, hcClient); + } + /** * 创建对话链接 * diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioMeta.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioMeta.java index e70c00e184..d1e6cd5054 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioMeta.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioMeta.java @@ -42,6 +42,9 @@ import com.huaweicloud.sdk.metastudio.v1.model.CreateBatchKnowledgeQuestionReq; import com.huaweicloud.sdk.metastudio.v1.model.CreateBatchKnowledgeQuestionRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateBatchKnowledgeQuestionResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateBeautyPreviewJobReq; +import com.huaweicloud.sdk.metastudio.v1.model.CreateBeautyPreviewJobRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateBeautyPreviewJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateDialogUrlReq; import com.huaweicloud.sdk.metastudio.v1.model.CreateDialogUrlRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateDialogUrlResponse; @@ -258,6 +261,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.ShowAssetReplicationInfoResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowAssetRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowAssetResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ShowBeautyPreviewJobRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ShowBeautyPreviewJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowDigitalHumanBusinessCardRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowDigitalHumanBusinessCardResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowHotQuestionRequest; @@ -311,6 +316,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.ShowWelcomeSpeechSwitchRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowWelcomeSpeechSwitchResponse; import com.huaweicloud.sdk.metastudio.v1.model.SmartChatJobsReq; +import com.huaweicloud.sdk.metastudio.v1.model.StartBeautyPreviewJobRequest; +import com.huaweicloud.sdk.metastudio.v1.model.StartBeautyPreviewJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.StartSmartChatJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.StartSmartChatJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.StartSmartLiveReq; @@ -788,6 +795,164 @@ private static HttpRequestDef genForShowA return builder.build(); } + public static final HttpRequestDef createBeautyPreviewJob = + genForCreateBeautyPreviewJob(); + + private static HttpRequestDef genForCreateBeautyPreviewJob() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, CreateBeautyPreviewJobRequest.class, CreateBeautyPreviewJobResponse.class) + .withName("CreateBeautyPreviewJob") + .withUri("/v1/{project_id}/digital-human-training-manage/beauty-preview/jobs") + .withContentType("application/json"); + + // requests + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateBeautyPreviewJobRequest::getAuthorization, + CreateBeautyPreviewJobRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateBeautyPreviewJobRequest::getXSdkDate, + CreateBeautyPreviewJobRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateBeautyPreviewJobRequest::getXProjectId, + CreateBeautyPreviewJobRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateBeautyPreviewJobRequest::getXAppUserId, + CreateBeautyPreviewJobRequest::setXAppUserId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateBeautyPreviewJobReq.class), + f -> f.withMarshaller(CreateBeautyPreviewJobRequest::getBody, CreateBeautyPreviewJobRequest::setBody)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(CreateBeautyPreviewJobResponse::getXRequestId, + CreateBeautyPreviewJobResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef showBeautyPreviewJob = + genForShowBeautyPreviewJob(); + + private static HttpRequestDef genForShowBeautyPreviewJob() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ShowBeautyPreviewJobRequest.class, ShowBeautyPreviewJobResponse.class) + .withName("ShowBeautyPreviewJob") + .withUri("/v1/{project_id}/digital-human-training-manage/beauty-preview/jobs/{job_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowBeautyPreviewJobRequest::getJobId, ShowBeautyPreviewJobRequest::setJobId)); + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowBeautyPreviewJobRequest::getAuthorization, + ShowBeautyPreviewJobRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowBeautyPreviewJobRequest::getXSdkDate, ShowBeautyPreviewJobRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowBeautyPreviewJobRequest::getXProjectId, + ShowBeautyPreviewJobRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowBeautyPreviewJobRequest::getXAppUserId, + ShowBeautyPreviewJobRequest::setXAppUserId)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(ShowBeautyPreviewJobResponse::getXRequestId, + ShowBeautyPreviewJobResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef startBeautyPreviewJob = + genForStartBeautyPreviewJob(); + + private static HttpRequestDef genForStartBeautyPreviewJob() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, StartBeautyPreviewJobRequest.class, StartBeautyPreviewJobResponse.class) + .withName("StartBeautyPreviewJob") + .withUri("/v1/{project_id}/digital-human-training-manage/beauty-preview/jobs/{job_id}/start") + .withContentType("application/json"); + + // requests + builder.withRequestField("job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(StartBeautyPreviewJobRequest::getJobId, StartBeautyPreviewJobRequest::setJobId)); + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(StartBeautyPreviewJobRequest::getAuthorization, + StartBeautyPreviewJobRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(StartBeautyPreviewJobRequest::getXSdkDate, + StartBeautyPreviewJobRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(StartBeautyPreviewJobRequest::getXProjectId, + StartBeautyPreviewJobRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(StartBeautyPreviewJobRequest::getXAppUserId, + StartBeautyPreviewJobRequest::setXAppUserId)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(StartBeautyPreviewJobResponse::getXRequestId, + StartBeautyPreviewJobResponse::setXRequestId)); + return builder.build(); + } + public static final HttpRequestDef createDialogUrl = genForCreateDialogUrl(); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ActionBasicSampleInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ActionBasicSampleInfo.java index d362abb0c5..6fc465c9c0 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ActionBasicSampleInfo.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ActionBasicSampleInfo.java @@ -30,6 +30,11 @@ public class ActionBasicSampleInfo { private String catalog; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "recommended_value") + + private Integer recommendedValue; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "is_selected") @@ -103,6 +108,25 @@ public void setCatalog(String catalog) { this.catalog = catalog; } + public ActionBasicSampleInfo withRecommendedValue(Integer recommendedValue) { + this.recommendedValue = recommendedValue; + return this; + } + + /** + * 推荐等级。 + * minimum: 0 + * maximum: 100 + * @return recommendedValue + */ + public Integer getRecommendedValue() { + return recommendedValue; + } + + public void setRecommendedValue(Integer recommendedValue) { + this.recommendedValue = recommendedValue; + } + public ActionBasicSampleInfo withIsSelected(Boolean isSelected) { this.isSelected = isSelected; return this; @@ -131,12 +155,14 @@ public boolean equals(java.lang.Object obj) { ActionBasicSampleInfo that = (ActionBasicSampleInfo) obj; return Objects.equals(this.actionNameZh, that.actionNameZh) && Objects.equals(this.actionNameEn, that.actionNameEn) && Objects.equals(this.actionTag, that.actionTag) - && Objects.equals(this.catalog, that.catalog) && Objects.equals(this.isSelected, that.isSelected); + && Objects.equals(this.catalog, that.catalog) + && Objects.equals(this.recommendedValue, that.recommendedValue) + && Objects.equals(this.isSelected, that.isSelected); } @Override public int hashCode() { - return Objects.hash(actionNameZh, actionNameEn, actionTag, catalog, isSelected); + return Objects.hash(actionNameZh, actionNameEn, actionTag, catalog, recommendedValue, isSelected); } @Override @@ -147,6 +173,7 @@ public String toString() { sb.append(" actionNameEn: ").append(toIndentedString(actionNameEn)).append("\n"); sb.append(" actionTag: ").append(toIndentedString(actionTag)).append("\n"); sb.append(" catalog: ").append(toIndentedString(catalog)).append("\n"); + sb.append(" recommendedValue: ").append(toIndentedString(recommendedValue)).append("\n"); sb.append(" isSelected: ").append(toIndentedString(isSelected)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ActionSampleInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ActionSampleInfo.java index 9581782519..c29a712e60 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ActionSampleInfo.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ActionSampleInfo.java @@ -30,6 +30,11 @@ public class ActionSampleInfo { private String catalog; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "recommended_value") + + private Integer recommendedValue; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "is_selected") @@ -108,6 +113,25 @@ public void setCatalog(String catalog) { this.catalog = catalog; } + public ActionSampleInfo withRecommendedValue(Integer recommendedValue) { + this.recommendedValue = recommendedValue; + return this; + } + + /** + * 推荐等级。 + * minimum: 0 + * maximum: 100 + * @return recommendedValue + */ + public Integer getRecommendedValue() { + return recommendedValue; + } + + public void setRecommendedValue(Integer recommendedValue) { + this.recommendedValue = recommendedValue; + } + public ActionSampleInfo withIsSelected(Boolean isSelected) { this.isSelected = isSelected; return this; @@ -153,13 +177,16 @@ public boolean equals(java.lang.Object obj) { ActionSampleInfo that = (ActionSampleInfo) obj; return Objects.equals(this.actionNameZh, that.actionNameZh) && Objects.equals(this.actionNameEn, that.actionNameEn) && Objects.equals(this.actionTag, that.actionTag) - && Objects.equals(this.catalog, that.catalog) && Objects.equals(this.isSelected, that.isSelected) + && Objects.equals(this.catalog, that.catalog) + && Objects.equals(this.recommendedValue, that.recommendedValue) + && Objects.equals(this.isSelected, that.isSelected) && Objects.equals(this.sampleDownloadUrl, that.sampleDownloadUrl); } @Override public int hashCode() { - return Objects.hash(actionNameZh, actionNameEn, actionTag, catalog, isSelected, sampleDownloadUrl); + return Objects + .hash(actionNameZh, actionNameEn, actionTag, catalog, recommendedValue, isSelected, sampleDownloadUrl); } @Override @@ -170,6 +197,7 @@ public String toString() { sb.append(" actionNameEn: ").append(toIndentedString(actionNameEn)).append("\n"); sb.append(" actionTag: ").append(toIndentedString(actionTag)).append("\n"); sb.append(" catalog: ").append(toIndentedString(catalog)).append("\n"); + sb.append(" recommendedValue: ").append(toIndentedString(recommendedValue)).append("\n"); sb.append(" isSelected: ").append(toIndentedString(isSelected)).append("\n"); sb.append(" sampleDownloadUrl: ").append(toIndentedString(sampleDownloadUrl)).append("\n"); sb.append("}"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/Create2dModelTrainingJobReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/Create2dModelTrainingJobReq.java index c47d852458..fd429aade2 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/Create2dModelTrainingJobReq.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/Create2dModelTrainingJobReq.java @@ -222,11 +222,21 @@ public int hashCode() { private ModelVersionEnum modelVersion; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "beauty_level") + + private Integer beautyLevel; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "is_flexus") private Boolean isFlexus; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_only_human_model") + + private Boolean isOnlyHumanModel; + /** * 声音来源类型 * VIDEO:视频中抽取音频 * AUDIO:单独上传的音频 */ @@ -485,6 +495,25 @@ public void setModelVersion(ModelVersionEnum modelVersion) { this.modelVersion = modelVersion; } + public Create2dModelTrainingJobReq withBeautyLevel(Integer beautyLevel) { + this.beautyLevel = beautyLevel; + return this; + } + + /** + * 美白等级。默认值0,不美白。 + * minimum: 0 + * maximum: 3 + * @return beautyLevel + */ + public Integer getBeautyLevel() { + return beautyLevel; + } + + public void setBeautyLevel(Integer beautyLevel) { + this.beautyLevel = beautyLevel; + } + public Create2dModelTrainingJobReq withIsFlexus(Boolean isFlexus) { this.isFlexus = isFlexus; return this; @@ -502,6 +531,23 @@ public void setIsFlexus(Boolean isFlexus) { this.isFlexus = isFlexus; } + public Create2dModelTrainingJobReq withIsOnlyHumanModel(Boolean isOnlyHumanModel) { + this.isOnlyHumanModel = isOnlyHumanModel; + return this; + } + + /** + * 是否只训练形象模型,不训练声音模型。仅Flexus版本时有效,默认false。 + * @return isOnlyHumanModel + */ + public Boolean getIsOnlyHumanModel() { + return isOnlyHumanModel; + } + + public void setIsOnlyHumanModel(Boolean isOnlyHumanModel) { + this.isOnlyHumanModel = isOnlyHumanModel; + } + public Create2dModelTrainingJobReq withAudioSourceType(AudioSourceTypeEnum audioSourceType) { this.audioSourceType = audioSourceType; return this; @@ -594,7 +640,9 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.actionVideoMultipartCount, that.actionVideoMultipartCount) && Objects.equals(this.isBackgroundReplacement, that.isBackgroundReplacement) && Objects.equals(this.batchName, that.batchName) && Objects.equals(this.tags, that.tags) - && Objects.equals(this.modelVersion, that.modelVersion) && Objects.equals(this.isFlexus, that.isFlexus) + && Objects.equals(this.modelVersion, that.modelVersion) + && Objects.equals(this.beautyLevel, that.beautyLevel) && Objects.equals(this.isFlexus, that.isFlexus) + && Objects.equals(this.isOnlyHumanModel, that.isOnlyHumanModel) && Objects.equals(this.audioSourceType, that.audioSourceType) && Objects.equals(this.voiceProperties, that.voiceProperties) && Objects.equals(this.supportedService, that.supportedService); @@ -611,7 +659,9 @@ public int hashCode() { batchName, tags, modelVersion, + beautyLevel, isFlexus, + isOnlyHumanModel, audioSourceType, voiceProperties, supportedService); @@ -630,7 +680,9 @@ public String toString() { sb.append(" batchName: ").append(toIndentedString(batchName)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" modelVersion: ").append(toIndentedString(modelVersion)).append("\n"); + sb.append(" beautyLevel: ").append(toIndentedString(beautyLevel)).append("\n"); sb.append(" isFlexus: ").append(toIndentedString(isFlexus)).append("\n"); + sb.append(" isOnlyHumanModel: ").append(toIndentedString(isOnlyHumanModel)).append("\n"); sb.append(" audioSourceType: ").append(toIndentedString(audioSourceType)).append("\n"); sb.append(" voiceProperties: ").append(toIndentedString(voiceProperties)).append("\n"); sb.append(" supportedService: ").append(toIndentedString(supportedService)).append("\n"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/Create2dModelTrainingJobResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/Create2dModelTrainingJobResponse.java index d369d6eab1..d13318f457 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/Create2dModelTrainingJobResponse.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/Create2dModelTrainingJobResponse.java @@ -54,6 +54,16 @@ public class Create2dModelTrainingJobResponse extends SdkResponse { private String grantFileUploadUrl; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pre_beauty_image_upload_url") + + private String preBeautyImageUploadUrl; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "post_beauty_image_upload_url") + + private String postBeautyImageUploadUrl; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "X-Request-Id") @@ -99,7 +109,7 @@ public Create2dModelTrainingJobResponse withTrainingVideoUploadUrl( } /** - * 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 + * 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream * @return trainingVideoUploadUrl */ public List getTrainingVideoUploadUrl() { @@ -133,7 +143,7 @@ public Create2dModelTrainingJobResponse withActionVideoUploadUrl( } /** - * 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 + * 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream * @return actionVideoUploadUrl */ public List getActionVideoUploadUrl() { @@ -150,7 +160,7 @@ public Create2dModelTrainingJobResponse withAudioUploadUrl(String audioUploadUrl } /** - * 音频数据训练上传URL。该url在文件上传成功后失效,只能上传一次 + * 音频数据训练上传URL。该url在文件上传成功后失效,只能上传一次 > 通过该地址上传时,需设置content-type为application/zip。 * @return audioUploadUrl */ public String getAudioUploadUrl() { @@ -167,7 +177,7 @@ public Create2dModelTrainingJobResponse withCoverUploadUrl(String coverUploadUrl } /** - * 模型封面上传URL。该URL在文件上传成功后失效,只能上传一次。 + * 模型封面上传URL。该URL在文件上传成功后失效,只能上传一次。 > 通过该地址上传时,需设置content-type为application/octet-stream * @return coverUploadUrl */ public String getCoverUploadUrl() { @@ -184,7 +194,7 @@ public Create2dModelTrainingJobResponse withIdCardImage1UploadUrl(String idCardI } /** - * 身份证正面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 + * 身份证正面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream * @return idCardImage1UploadUrl */ public String getIdCardImage1UploadUrl() { @@ -201,7 +211,7 @@ public Create2dModelTrainingJobResponse withIdCardImage2UploadUrl(String idCardI } /** - * 身份证反面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 + * 身份证反面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream * @return idCardImage2UploadUrl */ public String getIdCardImage2UploadUrl() { @@ -218,7 +228,7 @@ public Create2dModelTrainingJobResponse withGrantFileUploadUrl(String grantFileU } /** - * 授权书上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 + * 授权书上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream * @return grantFileUploadUrl */ public String getGrantFileUploadUrl() { @@ -229,6 +239,40 @@ public void setGrantFileUploadUrl(String grantFileUploadUrl) { this.grantFileUploadUrl = grantFileUploadUrl; } + public Create2dModelTrainingJobResponse withPreBeautyImageUploadUrl(String preBeautyImageUploadUrl) { + this.preBeautyImageUploadUrl = preBeautyImageUploadUrl; + return this; + } + + /** + * 美白前图片上传url。 > 通过该地址上传时,需设置content-type为application/octet-stream + * @return preBeautyImageUploadUrl + */ + public String getPreBeautyImageUploadUrl() { + return preBeautyImageUploadUrl; + } + + public void setPreBeautyImageUploadUrl(String preBeautyImageUploadUrl) { + this.preBeautyImageUploadUrl = preBeautyImageUploadUrl; + } + + public Create2dModelTrainingJobResponse withPostBeautyImageUploadUrl(String postBeautyImageUploadUrl) { + this.postBeautyImageUploadUrl = postBeautyImageUploadUrl; + return this; + } + + /** + * 美白后图片上传url。 > 通过该地址上传时,需设置content-type为application/octet-stream + * @return postBeautyImageUploadUrl + */ + public String getPostBeautyImageUploadUrl() { + return postBeautyImageUploadUrl; + } + + public void setPostBeautyImageUploadUrl(String postBeautyImageUploadUrl) { + this.postBeautyImageUploadUrl = postBeautyImageUploadUrl; + } + public Create2dModelTrainingJobResponse withXRequestId(String xRequestId) { this.xRequestId = xRequestId; return this; @@ -265,6 +309,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.idCardImage1UploadUrl, that.idCardImage1UploadUrl) && Objects.equals(this.idCardImage2UploadUrl, that.idCardImage2UploadUrl) && Objects.equals(this.grantFileUploadUrl, that.grantFileUploadUrl) + && Objects.equals(this.preBeautyImageUploadUrl, that.preBeautyImageUploadUrl) + && Objects.equals(this.postBeautyImageUploadUrl, that.postBeautyImageUploadUrl) && Objects.equals(this.xRequestId, that.xRequestId); } @@ -278,6 +324,8 @@ public int hashCode() { idCardImage1UploadUrl, idCardImage2UploadUrl, grantFileUploadUrl, + preBeautyImageUploadUrl, + postBeautyImageUploadUrl, xRequestId); } @@ -293,6 +341,8 @@ public String toString() { sb.append(" idCardImage1UploadUrl: ").append(toIndentedString(idCardImage1UploadUrl)).append("\n"); sb.append(" idCardImage2UploadUrl: ").append(toIndentedString(idCardImage2UploadUrl)).append("\n"); sb.append(" grantFileUploadUrl: ").append(toIndentedString(grantFileUploadUrl)).append("\n"); + sb.append(" preBeautyImageUploadUrl: ").append(toIndentedString(preBeautyImageUploadUrl)).append("\n"); + sb.append(" postBeautyImageUploadUrl: ").append(toIndentedString(postBeautyImageUploadUrl)).append("\n"); sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateBeautyPreviewJobReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateBeautyPreviewJobReq.java new file mode 100644 index 0000000000..b8988c5ff5 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateBeautyPreviewJobReq.java @@ -0,0 +1,97 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 创建美白预览任务请求。 + */ +public class CreateBeautyPreviewJobReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "level") + + private Integer level; + + public CreateBeautyPreviewJobReq withName(String name) { + this.name = name; + return this; + } + + /** + * 美白预览任务名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateBeautyPreviewJobReq withLevel(Integer level) { + this.level = level; + return this; + } + + /** + * 美白等级。默认1级。 + * minimum: 1 + * maximum: 3 + * @return level + */ + public Integer getLevel() { + return level; + } + + public void setLevel(Integer level) { + this.level = level; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateBeautyPreviewJobReq that = (CreateBeautyPreviewJobReq) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.level, that.level); + } + + @Override + public int hashCode() { + return Objects.hash(name, level); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateBeautyPreviewJobReq {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" level: ").append(toIndentedString(level)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/model/UpdateUrlAuthRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateBeautyPreviewJobRequest.java similarity index 69% rename from services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/model/UpdateUrlAuthRequest.java rename to services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateBeautyPreviewJobRequest.java index 253e06b9f9..75258e435d 100644 --- a/services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/model/UpdateUrlAuthRequest.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateBeautyPreviewJobRequest.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.cloudrtc.v2.model; +package com.huaweicloud.sdk.metastudio.v1.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -9,7 +9,7 @@ /** * Request Object */ -public class UpdateUrlAuthRequest { +public class CreateBeautyPreviewJobRequest { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "Authorization") @@ -27,16 +27,16 @@ public class UpdateUrlAuthRequest { private String xProjectId; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "app_id") + @JsonProperty(value = "X-App-UserId") - private String appId; + private String xAppUserId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "body") - private AppAuthReq body; + private CreateBeautyPreviewJobReq body; - public UpdateUrlAuthRequest withAuthorization(String authorization) { + public CreateBeautyPreviewJobRequest withAuthorization(String authorization) { this.authorization = authorization; return this; } @@ -53,13 +53,13 @@ public void setAuthorization(String authorization) { this.authorization = authorization; } - public UpdateUrlAuthRequest withXSdkDate(String xSdkDate) { + public CreateBeautyPreviewJobRequest withXSdkDate(String xSdkDate) { this.xSdkDate = xSdkDate; return this; } /** - * 使用AK/SK方式认证时必选,请求的发生时间。 + * 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD'T'HHMMSS'Z')。 * @return xSdkDate */ @JsonInclude(JsonInclude.Include.NON_NULL) @@ -72,7 +72,7 @@ public void setXSdkDate(String xSdkDate) { this.xSdkDate = xSdkDate; } - public UpdateUrlAuthRequest withXProjectId(String xProjectId) { + public CreateBeautyPreviewJobRequest withXProjectId(String xProjectId) { this.xProjectId = xProjectId; return this; } @@ -91,31 +91,33 @@ public void setXProjectId(String xProjectId) { this.xProjectId = xProjectId; } - public UpdateUrlAuthRequest withAppId(String appId) { - this.appId = appId; + public CreateBeautyPreviewJobRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; return this; } /** - * 应用id - * @return appId + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId */ - public String getAppId() { - return appId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; } - public void setAppId(String appId) { - this.appId = appId; + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; } - public UpdateUrlAuthRequest withBody(AppAuthReq body) { + public CreateBeautyPreviewJobRequest withBody(CreateBeautyPreviewJobReq body) { this.body = body; return this; } - public UpdateUrlAuthRequest withBody(Consumer bodySetter) { + public CreateBeautyPreviewJobRequest withBody(Consumer bodySetter) { if (this.body == null) { - this.body = new AppAuthReq(); + this.body = new CreateBeautyPreviewJobReq(); bodySetter.accept(this.body); } @@ -126,11 +128,11 @@ public UpdateUrlAuthRequest withBody(Consumer bodySetter) { * Get body * @return body */ - public AppAuthReq getBody() { + public CreateBeautyPreviewJobReq getBody() { return body; } - public void setBody(AppAuthReq body) { + public void setBody(CreateBeautyPreviewJobReq body) { this.body = body; } @@ -142,25 +144,25 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - UpdateUrlAuthRequest that = (UpdateUrlAuthRequest) obj; + CreateBeautyPreviewJobRequest that = (CreateBeautyPreviewJobRequest) obj; return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) - && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.appId, that.appId) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) && Objects.equals(this.body, that.body); } @Override public int hashCode() { - return Objects.hash(authorization, xSdkDate, xProjectId, appId, body); + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, body); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UpdateUrlAuthRequest {\n"); + sb.append("class CreateBeautyPreviewJobRequest {\n"); sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); - sb.append(" appId: ").append(toIndentedString(appId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateBeautyPreviewJobResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateBeautyPreviewJobResponse.java new file mode 100644 index 0000000000..2b247b6f70 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateBeautyPreviewJobResponse.java @@ -0,0 +1,123 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class CreateBeautyPreviewJobResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pre_beauty_image_upload_url") + + private String preBeautyImageUploadUrl; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public CreateBeautyPreviewJobResponse withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 任务ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public CreateBeautyPreviewJobResponse withPreBeautyImageUploadUrl(String preBeautyImageUploadUrl) { + this.preBeautyImageUploadUrl = preBeautyImageUploadUrl; + return this; + } + + /** + * 美白前图片上传url。 + * @return preBeautyImageUploadUrl + */ + public String getPreBeautyImageUploadUrl() { + return preBeautyImageUploadUrl; + } + + public void setPreBeautyImageUploadUrl(String preBeautyImageUploadUrl) { + this.preBeautyImageUploadUrl = preBeautyImageUploadUrl; + } + + public CreateBeautyPreviewJobResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateBeautyPreviewJobResponse that = (CreateBeautyPreviewJobResponse) obj; + return Objects.equals(this.jobId, that.jobId) + && Objects.equals(this.preBeautyImageUploadUrl, that.preBeautyImageUploadUrl) + && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(jobId, preBeautyImageUploadUrl, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateBeautyPreviewJobResponse {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" preBeautyImageUploadUrl: ").append(toIndentedString(preBeautyImageUploadUrl)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateFileResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateFileResponse.java index 3e03470e30..6c13bbcb15 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateFileResponse.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateFileResponse.java @@ -49,7 +49,7 @@ public CreateFileResponse withUploadUrl(String uploadUrl) { } /** - * 文件上传地址,有效期为24小时。 > * [调用OBS的[“PUT上传”](https://support.huaweicloud.com/api-obs/obs_04_0080.html)接口上传文件。](tag:hc) > * [调用OBS的[“PUT上传”](https://support.huaweicloud.com/intl/zh-cn/api-obs/obs_04_0080.html)接口上传文件。](tag:hk) > * [调用OBS的“PUT上传”接口上传文件。](tag:cmcc) > * 调用上述接口时,Content-MD5头必须填写,填写的值跟file_md5中的值相同。 + * 文件上传地址,有效期为24小时。 > * [调用OBS的[“PUT上传”](https://support.huaweicloud.com/api-obs/obs_04_0080.html)接口上传文件。](tag:hc) > * [调用OBS的[“PUT上传”](https://support.huaweicloud.com/intl/zh-cn/api-obs/obs_04_0080.html)接口上传文件。](tag:hk) > * [调用OBS的“PUT上传”接口上传文件。](tag:cmcc) > * 调用上述接口时,Content-MD5头必须填写,填写的值跟file_md5中的值相同,md5值获取详情请参考[使用Java代码生成文件内容的MD5值](metastudio_02_0052.xml)。 > * 调用上述接口时,Content-Type头必须填写,填写的值根据不同的文件类型有所不同。 文件类型为gif,Content-Type填写image/gif 文件类型为jpeg、jpg,Content-Type填写image/jpeg 文件类型为png,Content-Type填写image/png 文件类型为mp4,Content-Type填写video/mp4 文件类型为mp3,Content-Type填写audio/mp3 文件类型为wav,Content-Type填写audio/wav 其余所有类型,Content-Type填写application/octet-stream * @return uploadUrl */ public String getUploadUrl() { diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateTTSAReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateTTSAReq.java index bdcd4d8ee0..dee005f177 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateTTSAReq.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateTTSAReq.java @@ -358,7 +358,7 @@ public CreateTTSAReq withStyleId(String styleId) { } /** - * 风格化ID。需要调用数字人风格管理相关接口,从系统重查得。 + * 风格化ID。需要调用数字人风格管理相关接口,从系统中查得。 * @return styleId */ public String getStyleId() { diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/FilesCreateReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/FilesCreateReq.java index 4a26a90354..d39105f1ba 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/FilesCreateReq.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/FilesCreateReq.java @@ -63,7 +63,7 @@ public FilesCreateReq withFileMd5(String fileMd5) { } /** - * **参数解释**: 文件内容MD5值。按照RFC 1864标准计算出消息体的MD5摘要字符串,即消息体128-bit MD5值经过base64编码后得到的字符串。 **约束限制**: 不涉及 **取值范围**: 字符长度24位。 **默认取值**: 不涉及 + * **参数解释**: 文件内容MD5值。按照RFC 1864标准计算出消息体的MD5摘要字符串,即消息体128-bit MD5值经过base64编码后得到的字符串。 md5值获取详情请参考[使用Java代码生成文件内容的MD5值](metastudio_02_0052.xml)。 **约束限制**: 不涉及 **取值范围**: 字符长度24位。 **默认取值**: 不涉及 * @return fileMd5 */ public String getFileMd5() { diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ImageAssetMeta.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ImageAssetMeta.java index 3a9ea54cc5..27fb11b949 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ImageAssetMeta.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ImageAssetMeta.java @@ -5,7 +5,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; import java.util.Collections; import java.util.HashMap; import java.util.Map; @@ -35,7 +34,7 @@ public class ImageAssetMeta { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "size") - private BigDecimal size; + private Long size; /** * **参数解释**: 图片形态。 **约束限制**: 用户无需填写,系统自行提取。 **取值范围**: * Horizontal:横向 * Vertical:纵向 **默认取值**: 不涉及。 @@ -172,7 +171,7 @@ public void setHeight(Integer height) { this.height = height; } - public ImageAssetMeta withSize(BigDecimal size) { + public ImageAssetMeta withSize(Long size) { this.size = size; return this; } @@ -183,11 +182,11 @@ public ImageAssetMeta withSize(BigDecimal size) { * maximum: 9223372036854775807 * @return size */ - public BigDecimal getSize() { + public Long getSize() { return size; } - public void setSize(BigDecimal size) { + public void setSize(Long size) { this.size = size; } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/InferenceVideoMarkInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/InferenceVideoMarkInfo.java index d29a146d76..242a7599e3 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/InferenceVideoMarkInfo.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/InferenceVideoMarkInfo.java @@ -20,6 +20,16 @@ public class InferenceVideoMarkInfo { private String videoEndTime; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "chat_video_start_time") + + private String chatVideoStartTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "chat_video_end_time") + + private String chatVideoEndTime; + public InferenceVideoMarkInfo withVideoStartTime(String videoStartTime) { this.videoStartTime = videoStartTime; return this; @@ -54,6 +64,40 @@ public void setVideoEndTime(String videoEndTime) { this.videoEndTime = videoEndTime; } + public InferenceVideoMarkInfo withChatVideoStartTime(String chatVideoStartTime) { + this.chatVideoStartTime = chatVideoStartTime; + return this; + } + + /** + * 选取推理数据预处理智能交互视频起始时间。格式:“HH:MM:SS.mmm”。 + * @return chatVideoStartTime + */ + public String getChatVideoStartTime() { + return chatVideoStartTime; + } + + public void setChatVideoStartTime(String chatVideoStartTime) { + this.chatVideoStartTime = chatVideoStartTime; + } + + public InferenceVideoMarkInfo withChatVideoEndTime(String chatVideoEndTime) { + this.chatVideoEndTime = chatVideoEndTime; + return this; + } + + /** + * 选取推理数据预处理智能交互视频结束时间。格式:“HH:MM:SS.mmm”。 + * @return chatVideoEndTime + */ + public String getChatVideoEndTime() { + return chatVideoEndTime; + } + + public void setChatVideoEndTime(String chatVideoEndTime) { + this.chatVideoEndTime = chatVideoEndTime; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -64,12 +108,14 @@ public boolean equals(java.lang.Object obj) { } InferenceVideoMarkInfo that = (InferenceVideoMarkInfo) obj; return Objects.equals(this.videoStartTime, that.videoStartTime) - && Objects.equals(this.videoEndTime, that.videoEndTime); + && Objects.equals(this.videoEndTime, that.videoEndTime) + && Objects.equals(this.chatVideoStartTime, that.chatVideoStartTime) + && Objects.equals(this.chatVideoEndTime, that.chatVideoEndTime); } @Override public int hashCode() { - return Objects.hash(videoStartTime, videoEndTime); + return Objects.hash(videoStartTime, videoEndTime, chatVideoStartTime, chatVideoEndTime); } @Override @@ -78,6 +124,8 @@ public String toString() { sb.append("class InferenceVideoMarkInfo {\n"); sb.append(" videoStartTime: ").append(toIndentedString(videoStartTime)).append("\n"); sb.append(" videoEndTime: ").append(toIndentedString(videoEndTime)).append("\n"); + sb.append(" chatVideoStartTime: ").append(toIndentedString(chatVideoStartTime)).append("\n"); + sb.append(" chatVideoEndTime: ").append(toIndentedString(chatVideoEndTime)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListAssetsRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListAssetsRequest.java index e0e12f93e0..d13c23a851 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListAssetsRequest.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListAssetsRequest.java @@ -654,7 +654,7 @@ public ListAssetsRequest withAssetType(String assetType) { } /** - * 资产类型。多个类型使用英文逗号分割。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型(仅系统管理员可上传) * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * HUMAN_MODEL_2D: 2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 * AUDIO: 音频 + * 资产类型。多个类型使用英文逗号分隔。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型(仅系统管理员可上传) * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * HUMAN_MODEL_2D: 2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 * AUDIO: 音频 * @return assetType */ public String getAssetType() { @@ -722,7 +722,7 @@ public ListAssetsRequest withAssetState(String assetState) { } /** - * 资产状态。多个资产状态使用英文逗号分割。 * CREATING:资产创建中,主文件尚未上传 * FAILED:主文件上传失败 * UNACTIVED:主文件上传成功,资产未激活,资产不可用于其他业务(用户可更新状态) * ACTIVED:主文件上传成功,资产激活,资产可用于其他业务(用户可更新状态) * DELETING:资产删除中,资产不可用,资产可恢复 * DELETED:资产文件已删除,资产不可用,资产不可恢复 * BLOCK:资产被冻结,资产不可用,不可查看文件。 * WAITING_DELETE:资产将被下线 默认查询所有状态的资产。 + * 资产状态。多个资产状态使用英文逗号分隔。 * CREATING:资产创建中,主文件尚未上传 * FAILED:主文件上传失败 * UNACTIVED:主文件上传成功,资产未激活,资产不可用于其他业务(用户可更新状态) * ACTIVED:主文件上传成功,资产激活,资产可用于其他业务(用户可更新状态) * DELETING:资产删除中,资产不可用,资产可恢复 * DELETED:资产文件已删除,资产不可用,资产不可恢复 * BLOCK:资产被冻结,资产不可用,不可查看文件。 * WAITING_DELETE:资产将被下线 默认查询所有状态的资产。 * @return assetState */ public String getAssetState() { diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/OperationLogInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/OperationLogInfo.java index e0cb77410b..94274024cc 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/OperationLogInfo.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/OperationLogInfo.java @@ -21,7 +21,7 @@ public class OperationLogInfo { private String operateTime; /** - * 命令执行结果。 * USER_CREATE_JOD:用户开始分身数字人定制 * USER_VERIFYING_SUBMITTED:用户提交审核 * SYSTEM_VERIFY_FAILED:自动审核失败 * SYSTEM_VERIFY_SUCCESS:自动审核成功 * ADMIN_VERIFY_SUCCESS:人工审核通过 * ADMIN_VERIFY_FAILED:人工审核不通过 * SYSTEM_TRAIN_DATA_PREPROCESSING:训练数据预处理中 * SYSTEM_TRAIN_DATA_PREPROCESS_FAILED:训练数据预处理失败 * SYSTEM_TRAIN_DATA_PREPROCESS_SUCCESS:训练数据预处理成功 * SYSTEM_ACTION_GENERATE_DATA_PREPROCESSING:动作编排原子动作生成中 * SYSTEM_ACTION_GENERATE_DATA_SUCCESS:动作编排原子动作生成成功 * SYSTEM_ACTION_GENERATE_ORI_SUCCESS:动作编排资产数据生成成功 * SYSTEM_ACTION_GENERATE_DATA_FAILED:动作编排原子动作生成失败 * SYSTEM_ACTION_GENERATE_ORI_FAILED:动作编排资产数据生成失败 * SYSTEM_ACTION_GENERATE_ORI_PREPROCESSING:动作编排资产数据生成中 * SYSTEM_TRAINING:开始训练 * ADMIN_STOP_TRAINING_DATA_PREPROCESS:人工中止训练 * ADMIN_STOP_INFERENCE_DATA_PREPROCESS:人工中止推理预处理 * ADMIN_STOP_TRAIN:人工终止训练 * SYSTEM_TRAIN_FAILED:训练失败 * SYSTEM_TRAIN_SUCCESS:训练成功 * SYSTEM_INFERENCE_DATA_PREPROCESSING:推理数据预处理中 * SYSTEM_INFERENCE_DATA_PREPROCESS_FAILED:推理数据预处理失败 * SYSTEM_INFERENCE_DATA_PREPROCESS_SUCCESS:推理数据预处理成功 * SYSTEM_JOB_SUCCESS:任务处理完成 * ADMIN_MASK_UPLOADED:遮罩文件上传完成(已废弃) * ADMIN_UPDATE_VIDEO:管理员更换视频 * ADMIN_UPDATE_ACTION_VIDEO:管理员更换动作编排视频 * ADMIN_RESET:管理员一键重置 * ADMIN_ACCEPT:管理员通过 * USER_REPAIR:用户修复 * SYSTEM_UPDATE_COVER:更换封面 * ADMIN_SET_SILENCE_REPEAT_NUM:管理员设置静默轮数 * SYSTEM_MARKABLE_VIDEO:标记视频生成任务 * SYSTEM_MASK_VERIFY_VIDEO:校验视频生成任务 * SYSTEM_MASK_VERIFY_VIDEO_SUCCESS:校验视频生成成功 * SYSTEM_MASK_VERIFY_VIDEO_FAILED:校验视频生成失败 * SYSTEM_MARKABLE_VIDEO_SUCCESS:标记视频生成成功 * ADMIN_CONFIRM_ACTION:管理员确认动作 * ADMIN_STOP_ACTION_GENERATE_DATA_PREPROCESS:人工中止原子动作生成 * ADMIN_STOP_ACTION_GENERATE_ORI_PREPROCESS:人工中止动作编排 * SYSTEM_COMPILE_FAILED:转编译失败 * SYSTEM_COMPILE_SUCCESS:转编译成功 * SYSTEM_MARKABLE_VIDEO_FAILED:标记视频生成失败 * ADMIN_UPDATE_COMPILE:管理员更新转编译配置 * ADMIN_UPDATE_INFERENCE_DATA_PROCESS_VIDEO:管理员更新推理预处理时间段信息 * SYSTEM_EXECUTE_COMPILE:执行转编译 * SYSTEM_MASK_VIDEO_AND_ACTION_TIME_SUCCESS:自动标记成功 * SYSTEM_MASK_VIDEO_AND_ACTION_TIME_FAILED:自动标记失败 * USER_UPDATE_VIDEO:用户更换视频 * ADMIN_UPDATE_GENERAL_CONFIG:管理员更新通用配置 * ADMIN_MASK_ACTION_TIME:管理员标记 * STOP_COMPILE:人工中止转编译 + * 命令执行结果。 * USER_CREATE_JOD:用户开始分身数字人定制 * USER_VERIFYING_SUBMITTED:用户提交审核 * SYSTEM_VERIFY_FAILED:自动审核失败 * ADMIN_UPDATE_BEAUTY_LEVEL:管理员更新美白等级 * SYSTEM_VERIFY_SUCCESS:自动审核成功 * ADMIN_VERIFY_SUCCESS:人工审核通过 * ADMIN_VERIFY_FAILED:人工审核不通过 * SYSTEM_TRAIN_DATA_PREPROCESSING:训练数据预处理中 * SYSTEM_TRAIN_DATA_PREPROCESS_FAILED:训练数据预处理失败 * SYSTEM_TRAIN_DATA_PREPROCESS_SUCCESS:训练数据预处理成功 * SYSTEM_ACTION_GENERATE_DATA_PREPROCESSING:动作编排原子动作生成中 * SYSTEM_ACTION_GENERATE_DATA_SUCCESS:动作编排原子动作生成成功 * SYSTEM_ACTION_GENERATE_ORI_SUCCESS:动作编排资产数据生成成功 * SYSTEM_ACTION_GENERATE_DATA_FAILED:动作编排原子动作生成失败 * SYSTEM_ACTION_GENERATE_ORI_FAILED:动作编排资产数据生成失败 * SYSTEM_ACTION_GENERATE_ORI_PREPROCESSING:动作编排资产数据生成中 * SYSTEM_TRAINING:开始训练 * ADMIN_STOP_TRAINING_DATA_PREPROCESS:人工中止训练 * ADMIN_STOP_BEAUTY_PREPROCESS:人工中止美白 * ADMIN_STOP_INFERENCE_DATA_PREPROCESS:人工中止推理预处理 * ADMIN_STOP_TRAIN:人工终止训练 * SYSTEM_TRAIN_FAILED:训练失败 * SYSTEM_TRAIN_SUCCESS:训练成功 * SYSTEM_INFERENCE_DATA_PREPROCESSING:推理数据预处理中 * SYSTEM_INFERENCE_DATA_PREPROCESS_FAILED:推理数据预处理失败 * SYSTEM_INFERENCE_DATA_PREPROCESS_SUCCESS:推理数据预处理成功 * SYSTEM_JOB_SUCCESS:任务处理完成 * ADMIN_MASK_UPLOADED:遮罩文件上传完成(已废弃) * ADMIN_UPDATE_VIDEO:管理员更换视频 * ADMIN_UPDATE_ACTION_VIDEO:管理员更换动作编排视频 * ADMIN_RESET:管理员一键重置 * ADMIN_ACCEPT:管理员通过 * USER_REPAIR:用户修复 * SYSTEM_UPDATE_COVER:更换封面 * ADMIN_SET_SILENCE_REPEAT_NUM:管理员设置静默轮数 * SYSTEM_MARKABLE_VIDEO:标记视频生成任务 * SYSTEM_MASK_VERIFY_VIDEO:校验视频生成任务 * SYSTEM_MASK_VERIFY_VIDEO_SUCCESS:校验视频生成成功 * SYSTEM_MASK_VERIFY_VIDEO_FAILED:校验视频生成失败 * SYSTEM_MARKABLE_VIDEO_SUCCESS:标记视频生成成功 * SYSTEM_BEAUTY_PREPROCESSING:美白处理中 * SYSTEM_BEAUTY_PREPROCESS_FAILED:美白处理失败 * ADMIN_CONFIRM_ACTION:管理员确认动作 * ADMIN_STOP_ACTION_GENERATE_DATA_PREPROCESS:人工中止原子动作生成 * ADMIN_STOP_ACTION_GENERATE_ORI_PREPROCESS:人工中止动作编排 * SYSTEM_BEAUTY_PREPROCESS_SUCCESS:美白视频训练预处理成功 * SYSTEM_COMPILE_FAILED:转编译失败 * SYSTEM_COMPILE_SUCCESS:转编译成功 * SYSTEM_MARKABLE_VIDEO_FAILED:标记视频生成失败 * ADMIN_UPDATE_COMPILE:管理员更新转编译配置 * ADMIN_UPDATE_INFERENCE_DATA_PROCESS_VIDEO:管理员更新推理预处理时间段信息 * SYSTEM_EXECUTE_COMPILE:执行转编译 * SYSTEM_EXECUTE_BEAUTY:执行美白处理 * SYSTEM_MASK_VIDEO_AND_ACTION_TIME_SUCCESS:自动标记成功 * SYSTEM_MASK_VIDEO_AND_ACTION_TIME_FAILED:自动标记失败 * USER_UPDATE_VIDEO:用户更换视频 * ADMIN_UPDATE_GENERAL_CONFIG:管理员更新通用配置 * ADMIN_MASK_ACTION_TIME:管理员标记 * STOP_COMPILE:人工中止转编译 */ public static final class LogTypeEnum { @@ -570,7 +570,7 @@ public OperationLogInfo withLogType(LogTypeEnum logType) { } /** - * 命令执行结果。 * USER_CREATE_JOD:用户开始分身数字人定制 * USER_VERIFYING_SUBMITTED:用户提交审核 * SYSTEM_VERIFY_FAILED:自动审核失败 * SYSTEM_VERIFY_SUCCESS:自动审核成功 * ADMIN_VERIFY_SUCCESS:人工审核通过 * ADMIN_VERIFY_FAILED:人工审核不通过 * SYSTEM_TRAIN_DATA_PREPROCESSING:训练数据预处理中 * SYSTEM_TRAIN_DATA_PREPROCESS_FAILED:训练数据预处理失败 * SYSTEM_TRAIN_DATA_PREPROCESS_SUCCESS:训练数据预处理成功 * SYSTEM_ACTION_GENERATE_DATA_PREPROCESSING:动作编排原子动作生成中 * SYSTEM_ACTION_GENERATE_DATA_SUCCESS:动作编排原子动作生成成功 * SYSTEM_ACTION_GENERATE_ORI_SUCCESS:动作编排资产数据生成成功 * SYSTEM_ACTION_GENERATE_DATA_FAILED:动作编排原子动作生成失败 * SYSTEM_ACTION_GENERATE_ORI_FAILED:动作编排资产数据生成失败 * SYSTEM_ACTION_GENERATE_ORI_PREPROCESSING:动作编排资产数据生成中 * SYSTEM_TRAINING:开始训练 * ADMIN_STOP_TRAINING_DATA_PREPROCESS:人工中止训练 * ADMIN_STOP_INFERENCE_DATA_PREPROCESS:人工中止推理预处理 * ADMIN_STOP_TRAIN:人工终止训练 * SYSTEM_TRAIN_FAILED:训练失败 * SYSTEM_TRAIN_SUCCESS:训练成功 * SYSTEM_INFERENCE_DATA_PREPROCESSING:推理数据预处理中 * SYSTEM_INFERENCE_DATA_PREPROCESS_FAILED:推理数据预处理失败 * SYSTEM_INFERENCE_DATA_PREPROCESS_SUCCESS:推理数据预处理成功 * SYSTEM_JOB_SUCCESS:任务处理完成 * ADMIN_MASK_UPLOADED:遮罩文件上传完成(已废弃) * ADMIN_UPDATE_VIDEO:管理员更换视频 * ADMIN_UPDATE_ACTION_VIDEO:管理员更换动作编排视频 * ADMIN_RESET:管理员一键重置 * ADMIN_ACCEPT:管理员通过 * USER_REPAIR:用户修复 * SYSTEM_UPDATE_COVER:更换封面 * ADMIN_SET_SILENCE_REPEAT_NUM:管理员设置静默轮数 * SYSTEM_MARKABLE_VIDEO:标记视频生成任务 * SYSTEM_MASK_VERIFY_VIDEO:校验视频生成任务 * SYSTEM_MASK_VERIFY_VIDEO_SUCCESS:校验视频生成成功 * SYSTEM_MASK_VERIFY_VIDEO_FAILED:校验视频生成失败 * SYSTEM_MARKABLE_VIDEO_SUCCESS:标记视频生成成功 * ADMIN_CONFIRM_ACTION:管理员确认动作 * ADMIN_STOP_ACTION_GENERATE_DATA_PREPROCESS:人工中止原子动作生成 * ADMIN_STOP_ACTION_GENERATE_ORI_PREPROCESS:人工中止动作编排 * SYSTEM_COMPILE_FAILED:转编译失败 * SYSTEM_COMPILE_SUCCESS:转编译成功 * SYSTEM_MARKABLE_VIDEO_FAILED:标记视频生成失败 * ADMIN_UPDATE_COMPILE:管理员更新转编译配置 * ADMIN_UPDATE_INFERENCE_DATA_PROCESS_VIDEO:管理员更新推理预处理时间段信息 * SYSTEM_EXECUTE_COMPILE:执行转编译 * SYSTEM_MASK_VIDEO_AND_ACTION_TIME_SUCCESS:自动标记成功 * SYSTEM_MASK_VIDEO_AND_ACTION_TIME_FAILED:自动标记失败 * USER_UPDATE_VIDEO:用户更换视频 * ADMIN_UPDATE_GENERAL_CONFIG:管理员更新通用配置 * ADMIN_MASK_ACTION_TIME:管理员标记 * STOP_COMPILE:人工中止转编译 + * 命令执行结果。 * USER_CREATE_JOD:用户开始分身数字人定制 * USER_VERIFYING_SUBMITTED:用户提交审核 * SYSTEM_VERIFY_FAILED:自动审核失败 * ADMIN_UPDATE_BEAUTY_LEVEL:管理员更新美白等级 * SYSTEM_VERIFY_SUCCESS:自动审核成功 * ADMIN_VERIFY_SUCCESS:人工审核通过 * ADMIN_VERIFY_FAILED:人工审核不通过 * SYSTEM_TRAIN_DATA_PREPROCESSING:训练数据预处理中 * SYSTEM_TRAIN_DATA_PREPROCESS_FAILED:训练数据预处理失败 * SYSTEM_TRAIN_DATA_PREPROCESS_SUCCESS:训练数据预处理成功 * SYSTEM_ACTION_GENERATE_DATA_PREPROCESSING:动作编排原子动作生成中 * SYSTEM_ACTION_GENERATE_DATA_SUCCESS:动作编排原子动作生成成功 * SYSTEM_ACTION_GENERATE_ORI_SUCCESS:动作编排资产数据生成成功 * SYSTEM_ACTION_GENERATE_DATA_FAILED:动作编排原子动作生成失败 * SYSTEM_ACTION_GENERATE_ORI_FAILED:动作编排资产数据生成失败 * SYSTEM_ACTION_GENERATE_ORI_PREPROCESSING:动作编排资产数据生成中 * SYSTEM_TRAINING:开始训练 * ADMIN_STOP_TRAINING_DATA_PREPROCESS:人工中止训练 * ADMIN_STOP_BEAUTY_PREPROCESS:人工中止美白 * ADMIN_STOP_INFERENCE_DATA_PREPROCESS:人工中止推理预处理 * ADMIN_STOP_TRAIN:人工终止训练 * SYSTEM_TRAIN_FAILED:训练失败 * SYSTEM_TRAIN_SUCCESS:训练成功 * SYSTEM_INFERENCE_DATA_PREPROCESSING:推理数据预处理中 * SYSTEM_INFERENCE_DATA_PREPROCESS_FAILED:推理数据预处理失败 * SYSTEM_INFERENCE_DATA_PREPROCESS_SUCCESS:推理数据预处理成功 * SYSTEM_JOB_SUCCESS:任务处理完成 * ADMIN_MASK_UPLOADED:遮罩文件上传完成(已废弃) * ADMIN_UPDATE_VIDEO:管理员更换视频 * ADMIN_UPDATE_ACTION_VIDEO:管理员更换动作编排视频 * ADMIN_RESET:管理员一键重置 * ADMIN_ACCEPT:管理员通过 * USER_REPAIR:用户修复 * SYSTEM_UPDATE_COVER:更换封面 * ADMIN_SET_SILENCE_REPEAT_NUM:管理员设置静默轮数 * SYSTEM_MARKABLE_VIDEO:标记视频生成任务 * SYSTEM_MASK_VERIFY_VIDEO:校验视频生成任务 * SYSTEM_MASK_VERIFY_VIDEO_SUCCESS:校验视频生成成功 * SYSTEM_MASK_VERIFY_VIDEO_FAILED:校验视频生成失败 * SYSTEM_MARKABLE_VIDEO_SUCCESS:标记视频生成成功 * SYSTEM_BEAUTY_PREPROCESSING:美白处理中 * SYSTEM_BEAUTY_PREPROCESS_FAILED:美白处理失败 * ADMIN_CONFIRM_ACTION:管理员确认动作 * ADMIN_STOP_ACTION_GENERATE_DATA_PREPROCESS:人工中止原子动作生成 * ADMIN_STOP_ACTION_GENERATE_ORI_PREPROCESS:人工中止动作编排 * SYSTEM_BEAUTY_PREPROCESS_SUCCESS:美白视频训练预处理成功 * SYSTEM_COMPILE_FAILED:转编译失败 * SYSTEM_COMPILE_SUCCESS:转编译成功 * SYSTEM_MARKABLE_VIDEO_FAILED:标记视频生成失败 * ADMIN_UPDATE_COMPILE:管理员更新转编译配置 * ADMIN_UPDATE_INFERENCE_DATA_PROCESS_VIDEO:管理员更新推理预处理时间段信息 * SYSTEM_EXECUTE_COMPILE:执行转编译 * SYSTEM_EXECUTE_BEAUTY:执行美白处理 * SYSTEM_MASK_VIDEO_AND_ACTION_TIME_SUCCESS:自动标记成功 * SYSTEM_MASK_VIDEO_AND_ACTION_TIME_FAILED:自动标记失败 * USER_UPDATE_VIDEO:用户更换视频 * ADMIN_UPDATE_GENERAL_CONFIG:管理员更新通用配置 * ADMIN_MASK_ACTION_TIME:管理员标记 * STOP_COMPILE:人工中止转编译 * @return logType */ public LogTypeEnum getLogType() { diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/Show2dModelTrainingJobResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/Show2dModelTrainingJobResponse.java index 4da56ef70d..1fa8fd130d 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/Show2dModelTrainingJobResponse.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/Show2dModelTrainingJobResponse.java @@ -30,7 +30,7 @@ public class Show2dModelTrainingJobResponse extends SdkResponse { private String name; /** - * 任务的状态。 与MetaStudio Console上用户看到的状态映射关系如下: - 待提交 * WAIT_FILE_UPLOAD: 待上传文件 - 系统审核中 * AUTO_VERIFYING: 自动审核中 * MANUAL_VERIFYING: 人工审核中 - 系统审核未通过 * AUTO_VERIFY_FAILED: 自动审核失败 * MANUAL_VERIFY_FAILED: 人工审核失败 - 算法训练中 > 算法训练中的状态仅管理员需要处理,普通用户仅需要显示“算法训练中”即可。 * MANUAL_VERIFY_SUCCESS: 审核通过,等待预处理资源 * WAIT_TRAINING_DATA_PREPROCESS: 等待训练数据预处理 * TRAINING_DATA_PREPROCESSING: 训练数据预处理中 * TRAINING_DATA_PREPROCESS_FAILED: 训练数据预处理失败 * TRAINING_DATA_PREPROCESS_SUCCESS: 训练数据预处理完成,等待训练资源中 * TRAINING: 训练中 * TRAIN_FAILED: 训练失败 * TRAIN_SUCCESS: 训练完成,等待预处理资源 * INFERENCE_DATA_PREPROCESSING: 推理数据预处理中 * INFERENCE_DATA_PREPROCESS_FAILED: 推理数据预处理失败 * WAIT_MAIN_FILE_UPLOAD: 等待主文件上传 * MANUAL_STOP_INFERENCE_DATA_PREPROCESS: 人工中止推理预处理 * MANUAL_STOP_TRAIN: 人工中止训练 * MANUAL_STOP_TRAINING_DATA_PREPROCESS: 人工中止训练预处理 * WAIT_ADMIN_CONFIRM: 等待管理员审核 * WAIT_COMPILE: 等待转编译 * COMPILING: 转编译中 * COMPILE_FAILED: 转编译失败 * WAIT_GENERATE_ACTION: 等待原子动作生成 * WAIT_ARRANGE: 等待编排 * ACTION_GENERATE_DATA_PROCESSING: 原子动作生成中 * MANUAL_STOP_ACTION_GENERATE_DATA_PROCESSING: 人工中止动作生成 * MANUAL_STOP_ACTION_GENERATE_ORI_PROCESSING: 人工中止动作编排 * ACTION_GENERATE_ORI_PROCESSING: 动作编排中 * ACTION_GENERATE_DATA_FAILED: 动作生成失败 * ACTION_GENERATE_ORI_FAILED: 生成动作编排资产失败 * ACTION_GENERATE_ORI_SUCCESS: 动作编排成功 * GENERATE_ACTION_PREPROCESS_FAILED: 生成动作编排原子动作失败 * WAIT_ADMIN_CALIBRATION: 等待管理员确认动作信息 - 待用户审核,仅NA白名单用户有该状态 * WAIT_USER_CONFIRM: 等待用户确认训练效果 - 用户驳回,仅NA白名单用户有该状态 * JOB_REJECT: 驳回任务 - 已完成 * JOB_SUCCESS: 训练任务完成(普通用户任务的完成状态,此时用户已经可以使用模型) * JOB_FINISH: 任务结束,是最终状态,不支持修改此状态(NA用户任务的完成状态,并且此状态表明模型效果已通过用户的验收) - 挂起,仅NA白名单用户有该状态 * JOB_PENDING: 挂起任务 + * 任务的状态。 与MetaStudio Console上用户看到的状态映射关系如下: - 待提交 * WAIT_FILE_UPLOAD: 待上传文件 - 系统审核中 * AUTO_VERIFYING: 自动审核中 * MANUAL_VERIFYING: 人工审核中 - 系统审核未通过 * AUTO_VERIFY_FAILED: 自动审核失败 * MANUAL_VERIFY_FAILED: 人工审核失败 - 算法训练中 > 算法训练中的状态仅管理员需要处理,普通用户仅需要显示“算法训练中”即可。 * MANUAL_VERIFY_SUCCESS: 审核通过,等待预处理资源 * WAIT_TRAINING_DATA_PREPROCESS: 等待训练数据预处理 * TRAINING_DATA_PREPROCESSING: 训练数据预处理中 * TRAINING_DATA_PREPROCESS_FAILED: 训练数据预处理失败 * TRAINING_DATA_PREPROCESS_SUCCESS: 训练数据预处理完成,等待训练资源中 * TRAINING: 训练中 * TRAIN_FAILED: 训练失败 * TRAIN_SUCCESS: 训练完成,等待预处理资源 * INFERENCE_DATA_PREPROCESSING: 推理数据预处理中 * INFERENCE_DATA_PREPROCESS_FAILED: 推理数据预处理失败 * WAIT_MAIN_FILE_UPLOAD: 等待主文件上传 * MANUAL_STOP_INFERENCE_DATA_PREPROCESS: 人工中止推理预处理 * MANUAL_STOP_TRAIN: 人工中止训练 * MANUAL_STOP_TRAINING_DATA_PREPROCESS: 人工中止训练预处理 * WAIT_ADMIN_CONFIRM: 等待管理员审核 * WAIT_COMPILE: 等待转编译 * COMPILING: 转编译中 * COMPILE_FAILED: 转编译失败 * WAIT_GENERATE_ACTION: 等待原子动作生成 * WAIT_ARRANGE: 等待编排 * ACTION_GENERATE_DATA_PROCESSING: 原子动作生成中 * MANUAL_STOP_ACTION_GENERATE_DATA_PROCESSING: 人工中止动作生成 * MANUAL_STOP_ACTION_GENERATE_ORI_PROCESSING: 人工中止动作编排 * ACTION_GENERATE_ORI_PROCESSING: 动作编排中 * ACTION_GENERATE_DATA_FAILED: 动作生成失败 * ACTION_GENERATE_ORI_FAILED: 生成动作编排资产失败 * ACTION_GENERATE_ORI_SUCCESS: 动作编排成功 * GENERATE_ACTION_PREPROCESS_FAILED: 生成动作编排原子动作失败 * WAIT_ADMIN_CALIBRATION: 等待管理员确认动作信息 * WAIT_ASSET_SYNC: 等待资产同步 - 待用户审核,仅NA白名单用户有该状态 * WAIT_USER_CONFIRM: 等待用户确认训练效果 - 用户驳回,仅NA白名单用户有该状态 * JOB_REJECT: 驳回任务 - 已完成 * JOB_SUCCESS: 训练任务完成(普通用户任务的完成状态,此时用户已经可以使用模型) * JOB_FINISH: 任务结束,是最终状态,不支持修改此状态(NA用户任务的完成状态,并且此状态表明模型效果已通过用户的验收) - 挂起,仅NA白名单用户有该状态 * JOB_PENDING: 挂起任务 */ public static final class StateEnum { @@ -164,6 +164,11 @@ public static final class StateEnum { */ public static final StateEnum JOB_PENDING = new StateEnum("JOB_PENDING"); + /** + * Enum WAIT_ASSET_SYNC for value: "WAIT_ASSET_SYNC" + */ + public static final StateEnum WAIT_ASSET_SYNC = new StateEnum("WAIT_ASSET_SYNC"); + /** * Enum WAIT_ADMIN_CONFIRM for value: "WAIT_ADMIN_CONFIRM" */ @@ -307,6 +312,7 @@ private static Map createStaticFields() { map.put("WAIT_USER_CONFIRM", WAIT_USER_CONFIRM); map.put("JOB_REJECT", JOB_REJECT); map.put("JOB_PENDING", JOB_PENDING); + map.put("WAIT_ASSET_SYNC", WAIT_ASSET_SYNC); map.put("WAIT_ADMIN_CONFIRM", WAIT_ADMIN_CONFIRM); map.put("JOB_FINISH", JOB_FINISH); map.put("COMPILING", COMPILING); @@ -594,6 +600,11 @@ public int hashCode() { private Boolean isFlexus; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_only_human_model") + + private Boolean isOnlyHumanModel; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "training_video_download_url") @@ -614,11 +625,21 @@ public int hashCode() { private String grantFileDownloadUrl; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pre_beauty_image_download_url") + + private String preBeautyImageDownloadUrl; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "action_video_download_url") private String actionVideoDownloadUrl; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "post_beauty_image_download_url") + + private String postBeautyImageDownloadUrl; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "audio_file_download_url") @@ -664,6 +685,11 @@ public int hashCode() { private String markableVideoDownloadUrl; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "traning_video_mark_info") + + private TrainingVideoMarkInfo traningVideoMarkInfo; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "inference_data_process_video_mark_info") @@ -674,6 +700,11 @@ public int hashCode() { private InferenceActionMarkInfo inferenceDataProcessActionMarkInfo; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "inference_data_process_chat_action_mark_info") + + private InferenceActionMarkInfo inferenceDataProcessChatActionMarkInfo; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "inference_data_process_eye_correction_mark_info") @@ -689,6 +720,11 @@ public int hashCode() { private List workerType = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "beauty_level") + + private Integer beautyLevel; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "voice_train_job_id") @@ -779,6 +815,11 @@ public int hashCode() { private List supportedService = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "allocated_resource") + + private TrainingAllocatedResource allocatedResource; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "X-Request-Id") @@ -824,7 +865,7 @@ public Show2dModelTrainingJobResponse withState(StateEnum state) { } /** - * 任务的状态。 与MetaStudio Console上用户看到的状态映射关系如下: - 待提交 * WAIT_FILE_UPLOAD: 待上传文件 - 系统审核中 * AUTO_VERIFYING: 自动审核中 * MANUAL_VERIFYING: 人工审核中 - 系统审核未通过 * AUTO_VERIFY_FAILED: 自动审核失败 * MANUAL_VERIFY_FAILED: 人工审核失败 - 算法训练中 > 算法训练中的状态仅管理员需要处理,普通用户仅需要显示“算法训练中”即可。 * MANUAL_VERIFY_SUCCESS: 审核通过,等待预处理资源 * WAIT_TRAINING_DATA_PREPROCESS: 等待训练数据预处理 * TRAINING_DATA_PREPROCESSING: 训练数据预处理中 * TRAINING_DATA_PREPROCESS_FAILED: 训练数据预处理失败 * TRAINING_DATA_PREPROCESS_SUCCESS: 训练数据预处理完成,等待训练资源中 * TRAINING: 训练中 * TRAIN_FAILED: 训练失败 * TRAIN_SUCCESS: 训练完成,等待预处理资源 * INFERENCE_DATA_PREPROCESSING: 推理数据预处理中 * INFERENCE_DATA_PREPROCESS_FAILED: 推理数据预处理失败 * WAIT_MAIN_FILE_UPLOAD: 等待主文件上传 * MANUAL_STOP_INFERENCE_DATA_PREPROCESS: 人工中止推理预处理 * MANUAL_STOP_TRAIN: 人工中止训练 * MANUAL_STOP_TRAINING_DATA_PREPROCESS: 人工中止训练预处理 * WAIT_ADMIN_CONFIRM: 等待管理员审核 * WAIT_COMPILE: 等待转编译 * COMPILING: 转编译中 * COMPILE_FAILED: 转编译失败 * WAIT_GENERATE_ACTION: 等待原子动作生成 * WAIT_ARRANGE: 等待编排 * ACTION_GENERATE_DATA_PROCESSING: 原子动作生成中 * MANUAL_STOP_ACTION_GENERATE_DATA_PROCESSING: 人工中止动作生成 * MANUAL_STOP_ACTION_GENERATE_ORI_PROCESSING: 人工中止动作编排 * ACTION_GENERATE_ORI_PROCESSING: 动作编排中 * ACTION_GENERATE_DATA_FAILED: 动作生成失败 * ACTION_GENERATE_ORI_FAILED: 生成动作编排资产失败 * ACTION_GENERATE_ORI_SUCCESS: 动作编排成功 * GENERATE_ACTION_PREPROCESS_FAILED: 生成动作编排原子动作失败 * WAIT_ADMIN_CALIBRATION: 等待管理员确认动作信息 - 待用户审核,仅NA白名单用户有该状态 * WAIT_USER_CONFIRM: 等待用户确认训练效果 - 用户驳回,仅NA白名单用户有该状态 * JOB_REJECT: 驳回任务 - 已完成 * JOB_SUCCESS: 训练任务完成(普通用户任务的完成状态,此时用户已经可以使用模型) * JOB_FINISH: 任务结束,是最终状态,不支持修改此状态(NA用户任务的完成状态,并且此状态表明模型效果已通过用户的验收) - 挂起,仅NA白名单用户有该状态 * JOB_PENDING: 挂起任务 + * 任务的状态。 与MetaStudio Console上用户看到的状态映射关系如下: - 待提交 * WAIT_FILE_UPLOAD: 待上传文件 - 系统审核中 * AUTO_VERIFYING: 自动审核中 * MANUAL_VERIFYING: 人工审核中 - 系统审核未通过 * AUTO_VERIFY_FAILED: 自动审核失败 * MANUAL_VERIFY_FAILED: 人工审核失败 - 算法训练中 > 算法训练中的状态仅管理员需要处理,普通用户仅需要显示“算法训练中”即可。 * MANUAL_VERIFY_SUCCESS: 审核通过,等待预处理资源 * WAIT_TRAINING_DATA_PREPROCESS: 等待训练数据预处理 * TRAINING_DATA_PREPROCESSING: 训练数据预处理中 * TRAINING_DATA_PREPROCESS_FAILED: 训练数据预处理失败 * TRAINING_DATA_PREPROCESS_SUCCESS: 训练数据预处理完成,等待训练资源中 * TRAINING: 训练中 * TRAIN_FAILED: 训练失败 * TRAIN_SUCCESS: 训练完成,等待预处理资源 * INFERENCE_DATA_PREPROCESSING: 推理数据预处理中 * INFERENCE_DATA_PREPROCESS_FAILED: 推理数据预处理失败 * WAIT_MAIN_FILE_UPLOAD: 等待主文件上传 * MANUAL_STOP_INFERENCE_DATA_PREPROCESS: 人工中止推理预处理 * MANUAL_STOP_TRAIN: 人工中止训练 * MANUAL_STOP_TRAINING_DATA_PREPROCESS: 人工中止训练预处理 * WAIT_ADMIN_CONFIRM: 等待管理员审核 * WAIT_COMPILE: 等待转编译 * COMPILING: 转编译中 * COMPILE_FAILED: 转编译失败 * WAIT_GENERATE_ACTION: 等待原子动作生成 * WAIT_ARRANGE: 等待编排 * ACTION_GENERATE_DATA_PROCESSING: 原子动作生成中 * MANUAL_STOP_ACTION_GENERATE_DATA_PROCESSING: 人工中止动作生成 * MANUAL_STOP_ACTION_GENERATE_ORI_PROCESSING: 人工中止动作编排 * ACTION_GENERATE_ORI_PROCESSING: 动作编排中 * ACTION_GENERATE_DATA_FAILED: 动作生成失败 * ACTION_GENERATE_ORI_FAILED: 生成动作编排资产失败 * ACTION_GENERATE_ORI_SUCCESS: 动作编排成功 * GENERATE_ACTION_PREPROCESS_FAILED: 生成动作编排原子动作失败 * WAIT_ADMIN_CALIBRATION: 等待管理员确认动作信息 * WAIT_ASSET_SYNC: 等待资产同步 - 待用户审核,仅NA白名单用户有该状态 * WAIT_USER_CONFIRM: 等待用户确认训练效果 - 用户驳回,仅NA白名单用户有该状态 * JOB_REJECT: 驳回任务 - 已完成 * JOB_SUCCESS: 训练任务完成(普通用户任务的完成状态,此时用户已经可以使用模型) * JOB_FINISH: 任务结束,是最终状态,不支持修改此状态(NA用户任务的完成状态,并且此状态表明模型效果已通过用户的验收) - 挂起,仅NA白名单用户有该状态 * JOB_PENDING: 挂起任务 * @return state */ public StateEnum getState() { @@ -1072,6 +1113,23 @@ public void setIsFlexus(Boolean isFlexus) { this.isFlexus = isFlexus; } + public Show2dModelTrainingJobResponse withIsOnlyHumanModel(Boolean isOnlyHumanModel) { + this.isOnlyHumanModel = isOnlyHumanModel; + return this; + } + + /** + * 是否只训练形象模型,不训练声音模型。仅Flexus版本时有效,默认false。 + * @return isOnlyHumanModel + */ + public Boolean getIsOnlyHumanModel() { + return isOnlyHumanModel; + } + + public void setIsOnlyHumanModel(Boolean isOnlyHumanModel) { + this.isOnlyHumanModel = isOnlyHumanModel; + } + public Show2dModelTrainingJobResponse withTrainingVideoDownloadUrl(String trainingVideoDownloadUrl) { this.trainingVideoDownloadUrl = trainingVideoDownloadUrl; return this; @@ -1140,6 +1198,23 @@ public void setGrantFileDownloadUrl(String grantFileDownloadUrl) { this.grantFileDownloadUrl = grantFileDownloadUrl; } + public Show2dModelTrainingJobResponse withPreBeautyImageDownloadUrl(String preBeautyImageDownloadUrl) { + this.preBeautyImageDownloadUrl = preBeautyImageDownloadUrl; + return this; + } + + /** + * 美白前图片下载url。 + * @return preBeautyImageDownloadUrl + */ + public String getPreBeautyImageDownloadUrl() { + return preBeautyImageDownloadUrl; + } + + public void setPreBeautyImageDownloadUrl(String preBeautyImageDownloadUrl) { + this.preBeautyImageDownloadUrl = preBeautyImageDownloadUrl; + } + public Show2dModelTrainingJobResponse withActionVideoDownloadUrl(String actionVideoDownloadUrl) { this.actionVideoDownloadUrl = actionVideoDownloadUrl; return this; @@ -1157,6 +1232,23 @@ public void setActionVideoDownloadUrl(String actionVideoDownloadUrl) { this.actionVideoDownloadUrl = actionVideoDownloadUrl; } + public Show2dModelTrainingJobResponse withPostBeautyImageDownloadUrl(String postBeautyImageDownloadUrl) { + this.postBeautyImageDownloadUrl = postBeautyImageDownloadUrl; + return this; + } + + /** + * 美白后图片下载url。 + * @return postBeautyImageDownloadUrl + */ + public String getPostBeautyImageDownloadUrl() { + return postBeautyImageDownloadUrl; + } + + public void setPostBeautyImageDownloadUrl(String postBeautyImageDownloadUrl) { + this.postBeautyImageDownloadUrl = postBeautyImageDownloadUrl; + } + public Show2dModelTrainingJobResponse withAudioFileDownloadUrl(String audioFileDownloadUrl) { this.audioFileDownloadUrl = audioFileDownloadUrl; return this; @@ -1377,6 +1469,33 @@ public void setMarkableVideoDownloadUrl(String markableVideoDownloadUrl) { this.markableVideoDownloadUrl = markableVideoDownloadUrl; } + public Show2dModelTrainingJobResponse withTraningVideoMarkInfo(TrainingVideoMarkInfo traningVideoMarkInfo) { + this.traningVideoMarkInfo = traningVideoMarkInfo; + return this; + } + + public Show2dModelTrainingJobResponse withTraningVideoMarkInfo( + Consumer traningVideoMarkInfoSetter) { + if (this.traningVideoMarkInfo == null) { + this.traningVideoMarkInfo = new TrainingVideoMarkInfo(); + traningVideoMarkInfoSetter.accept(this.traningVideoMarkInfo); + } + + return this; + } + + /** + * Get traningVideoMarkInfo + * @return traningVideoMarkInfo + */ + public TrainingVideoMarkInfo getTraningVideoMarkInfo() { + return traningVideoMarkInfo; + } + + public void setTraningVideoMarkInfo(TrainingVideoMarkInfo traningVideoMarkInfo) { + this.traningVideoMarkInfo = traningVideoMarkInfo; + } + public Show2dModelTrainingJobResponse withInferenceDataProcessVideoMarkInfo( InferenceVideoMarkInfo inferenceDataProcessVideoMarkInfo) { this.inferenceDataProcessVideoMarkInfo = inferenceDataProcessVideoMarkInfo; @@ -1433,6 +1552,35 @@ public void setInferenceDataProcessActionMarkInfo(InferenceActionMarkInfo infere this.inferenceDataProcessActionMarkInfo = inferenceDataProcessActionMarkInfo; } + public Show2dModelTrainingJobResponse withInferenceDataProcessChatActionMarkInfo( + InferenceActionMarkInfo inferenceDataProcessChatActionMarkInfo) { + this.inferenceDataProcessChatActionMarkInfo = inferenceDataProcessChatActionMarkInfo; + return this; + } + + public Show2dModelTrainingJobResponse withInferenceDataProcessChatActionMarkInfo( + Consumer inferenceDataProcessChatActionMarkInfoSetter) { + if (this.inferenceDataProcessChatActionMarkInfo == null) { + this.inferenceDataProcessChatActionMarkInfo = new InferenceActionMarkInfo(); + inferenceDataProcessChatActionMarkInfoSetter.accept(this.inferenceDataProcessChatActionMarkInfo); + } + + return this; + } + + /** + * Get inferenceDataProcessChatActionMarkInfo + * @return inferenceDataProcessChatActionMarkInfo + */ + public InferenceActionMarkInfo getInferenceDataProcessChatActionMarkInfo() { + return inferenceDataProcessChatActionMarkInfo; + } + + public void setInferenceDataProcessChatActionMarkInfo( + InferenceActionMarkInfo inferenceDataProcessChatActionMarkInfo) { + this.inferenceDataProcessChatActionMarkInfo = inferenceDataProcessChatActionMarkInfo; + } + public Show2dModelTrainingJobResponse withInferenceDataProcessEyeCorrectionMarkInfo( InferenceEyeCorrectionMarkInfo inferenceDataProcessEyeCorrectionMarkInfo) { this.inferenceDataProcessEyeCorrectionMarkInfo = inferenceDataProcessEyeCorrectionMarkInfo; @@ -1512,6 +1660,25 @@ public void setWorkerType(List workerType) { this.workerType = workerType; } + public Show2dModelTrainingJobResponse withBeautyLevel(Integer beautyLevel) { + this.beautyLevel = beautyLevel; + return this; + } + + /** + * 美白等级。默认值0,不美白。 + * minimum: 0 + * maximum: 3 + * @return beautyLevel + */ + public Integer getBeautyLevel() { + return beautyLevel; + } + + public void setBeautyLevel(Integer beautyLevel) { + this.beautyLevel = beautyLevel; + } + public Show2dModelTrainingJobResponse withVoiceTrainJobId(String voiceTrainJobId) { this.voiceTrainJobId = voiceTrainJobId; return this; @@ -1599,6 +1766,33 @@ public void setSupportedService(List supportedService) { this.supportedService = supportedService; } + public Show2dModelTrainingJobResponse withAllocatedResource(TrainingAllocatedResource allocatedResource) { + this.allocatedResource = allocatedResource; + return this; + } + + public Show2dModelTrainingJobResponse withAllocatedResource( + Consumer allocatedResourceSetter) { + if (this.allocatedResource == null) { + this.allocatedResource = new TrainingAllocatedResource(); + allocatedResourceSetter.accept(this.allocatedResource); + } + + return this; + } + + /** + * Get allocatedResource + * @return allocatedResource + */ + public TrainingAllocatedResource getAllocatedResource() { + return allocatedResource; + } + + public void setAllocatedResource(TrainingAllocatedResource allocatedResource) { + this.allocatedResource = allocatedResource; + } + public Show2dModelTrainingJobResponse withXRequestId(String xRequestId) { this.xRequestId = xRequestId; return this; @@ -1638,11 +1832,14 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.mattingType, that.mattingType) && Objects.equals(this.modelResolution, that.modelResolution) && Objects.equals(this.appUserId, that.appUserId) && Objects.equals(this.isFlexus, that.isFlexus) + && Objects.equals(this.isOnlyHumanModel, that.isOnlyHumanModel) && Objects.equals(this.trainingVideoDownloadUrl, that.trainingVideoDownloadUrl) && Objects.equals(this.idCardImage1DownloadUrl, that.idCardImage1DownloadUrl) && Objects.equals(this.idCardImage2DownloadUrl, that.idCardImage2DownloadUrl) && Objects.equals(this.grantFileDownloadUrl, that.grantFileDownloadUrl) + && Objects.equals(this.preBeautyImageDownloadUrl, that.preBeautyImageDownloadUrl) && Objects.equals(this.actionVideoDownloadUrl, that.actionVideoDownloadUrl) + && Objects.equals(this.postBeautyImageDownloadUrl, that.postBeautyImageDownloadUrl) && Objects.equals(this.audioFileDownloadUrl, that.audioFileDownloadUrl) && Objects.equals(this.operationLogs, that.operationLogs) && Objects.equals(this.verifyVideoMattingInfo, that.verifyVideoMattingInfo) @@ -1651,16 +1848,19 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.maskFileDownloadUrl, that.maskFileDownloadUrl) && Objects.equals(this.verifyVideoDownloadUrl, that.verifyVideoDownloadUrl) && Objects.equals(this.markableVideoDownloadUrl, that.markableVideoDownloadUrl) + && Objects.equals(this.traningVideoMarkInfo, that.traningVideoMarkInfo) && Objects.equals(this.inferenceDataProcessVideoMarkInfo, that.inferenceDataProcessVideoMarkInfo) && Objects.equals(this.inferenceDataProcessActionMarkInfo, that.inferenceDataProcessActionMarkInfo) + && Objects.equals(this.inferenceDataProcessChatActionMarkInfo, that.inferenceDataProcessChatActionMarkInfo) && Objects.equals(this.inferenceDataProcessEyeCorrectionMarkInfo, that.inferenceDataProcessEyeCorrectionMarkInfo) && Objects.equals(this.isBackgroundReplacement, that.isBackgroundReplacement) - && Objects.equals(this.workerType, that.workerType) + && Objects.equals(this.workerType, that.workerType) && Objects.equals(this.beautyLevel, that.beautyLevel) && Objects.equals(this.voiceTrainJobId, that.voiceTrainJobId) && Objects.equals(this.flexusRetryCount, that.flexusRetryCount) && Objects.equals(this.audioSourceType, that.audioSourceType) && Objects.equals(this.supportedService, that.supportedService) + && Objects.equals(this.allocatedResource, that.allocatedResource) && Objects.equals(this.xRequestId, that.xRequestId); } @@ -1682,11 +1882,14 @@ public int hashCode() { modelResolution, appUserId, isFlexus, + isOnlyHumanModel, trainingVideoDownloadUrl, idCardImage1DownloadUrl, idCardImage2DownloadUrl, grantFileDownloadUrl, + preBeautyImageDownloadUrl, actionVideoDownloadUrl, + postBeautyImageDownloadUrl, audioFileDownloadUrl, operationLogs, verifyVideoMattingInfo, @@ -1696,15 +1899,19 @@ public int hashCode() { maskFileDownloadUrl, verifyVideoDownloadUrl, markableVideoDownloadUrl, + traningVideoMarkInfo, inferenceDataProcessVideoMarkInfo, inferenceDataProcessActionMarkInfo, + inferenceDataProcessChatActionMarkInfo, inferenceDataProcessEyeCorrectionMarkInfo, isBackgroundReplacement, workerType, + beautyLevel, voiceTrainJobId, flexusRetryCount, audioSourceType, supportedService, + allocatedResource, xRequestId); } @@ -1728,11 +1935,14 @@ public String toString() { sb.append(" modelResolution: ").append(toIndentedString(modelResolution)).append("\n"); sb.append(" appUserId: ").append(toIndentedString(appUserId)).append("\n"); sb.append(" isFlexus: ").append(toIndentedString(isFlexus)).append("\n"); + sb.append(" isOnlyHumanModel: ").append(toIndentedString(isOnlyHumanModel)).append("\n"); sb.append(" trainingVideoDownloadUrl: ").append(toIndentedString(trainingVideoDownloadUrl)).append("\n"); sb.append(" idCardImage1DownloadUrl: ").append(toIndentedString(idCardImage1DownloadUrl)).append("\n"); sb.append(" idCardImage2DownloadUrl: ").append(toIndentedString(idCardImage2DownloadUrl)).append("\n"); sb.append(" grantFileDownloadUrl: ").append(toIndentedString(grantFileDownloadUrl)).append("\n"); + sb.append(" preBeautyImageDownloadUrl: ").append(toIndentedString(preBeautyImageDownloadUrl)).append("\n"); sb.append(" actionVideoDownloadUrl: ").append(toIndentedString(actionVideoDownloadUrl)).append("\n"); + sb.append(" postBeautyImageDownloadUrl: ").append(toIndentedString(postBeautyImageDownloadUrl)).append("\n"); sb.append(" audioFileDownloadUrl: ").append(toIndentedString(audioFileDownloadUrl)).append("\n"); sb.append(" operationLogs: ").append(toIndentedString(operationLogs)).append("\n"); sb.append(" verifyVideoMattingInfo: ").append(toIndentedString(verifyVideoMattingInfo)).append("\n"); @@ -1742,21 +1952,27 @@ public String toString() { sb.append(" maskFileDownloadUrl: ").append(toIndentedString(maskFileDownloadUrl)).append("\n"); sb.append(" verifyVideoDownloadUrl: ").append(toIndentedString(verifyVideoDownloadUrl)).append("\n"); sb.append(" markableVideoDownloadUrl: ").append(toIndentedString(markableVideoDownloadUrl)).append("\n"); + sb.append(" traningVideoMarkInfo: ").append(toIndentedString(traningVideoMarkInfo)).append("\n"); sb.append(" inferenceDataProcessVideoMarkInfo: ") .append(toIndentedString(inferenceDataProcessVideoMarkInfo)) .append("\n"); sb.append(" inferenceDataProcessActionMarkInfo: ") .append(toIndentedString(inferenceDataProcessActionMarkInfo)) .append("\n"); + sb.append(" inferenceDataProcessChatActionMarkInfo: ") + .append(toIndentedString(inferenceDataProcessChatActionMarkInfo)) + .append("\n"); sb.append(" inferenceDataProcessEyeCorrectionMarkInfo: ") .append(toIndentedString(inferenceDataProcessEyeCorrectionMarkInfo)) .append("\n"); sb.append(" isBackgroundReplacement: ").append(toIndentedString(isBackgroundReplacement)).append("\n"); sb.append(" workerType: ").append(toIndentedString(workerType)).append("\n"); + sb.append(" beautyLevel: ").append(toIndentedString(beautyLevel)).append("\n"); sb.append(" voiceTrainJobId: ").append(toIndentedString(voiceTrainJobId)).append("\n"); sb.append(" flexusRetryCount: ").append(toIndentedString(flexusRetryCount)).append("\n"); sb.append(" audioSourceType: ").append(toIndentedString(audioSourceType)).append("\n"); sb.append(" supportedService: ").append(toIndentedString(supportedService)).append("\n"); + sb.append(" allocatedResource: ").append(toIndentedString(allocatedResource)).append("\n"); sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/model/ShowUrlAuthRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowBeautyPreviewJobRequest.java similarity index 59% rename from services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/model/ShowUrlAuthRequest.java rename to services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowBeautyPreviewJobRequest.java index 8f1dbeba7a..266ef22c38 100644 --- a/services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/model/ShowUrlAuthRequest.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowBeautyPreviewJobRequest.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.cloudrtc.v2.model; +package com.huaweicloud.sdk.metastudio.v1.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -8,7 +8,12 @@ /** * Request Object */ -public class ShowUrlAuthRequest { +public class ShowBeautyPreviewJobRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "Authorization") @@ -26,11 +31,28 @@ public class ShowUrlAuthRequest { private String xProjectId; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "app_id") + @JsonProperty(value = "X-App-UserId") - private String appId; + private String xAppUserId; - public ShowUrlAuthRequest withAuthorization(String authorization) { + public ShowBeautyPreviewJobRequest withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 任务ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public ShowBeautyPreviewJobRequest withAuthorization(String authorization) { this.authorization = authorization; return this; } @@ -47,13 +69,13 @@ public void setAuthorization(String authorization) { this.authorization = authorization; } - public ShowUrlAuthRequest withXSdkDate(String xSdkDate) { + public ShowBeautyPreviewJobRequest withXSdkDate(String xSdkDate) { this.xSdkDate = xSdkDate; return this; } /** - * 使用AK/SK方式认证时必选,请求的发生时间。 + * 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD'T'HHMMSS'Z')。 * @return xSdkDate */ @JsonInclude(JsonInclude.Include.NON_NULL) @@ -66,7 +88,7 @@ public void setXSdkDate(String xSdkDate) { this.xSdkDate = xSdkDate; } - public ShowUrlAuthRequest withXProjectId(String xProjectId) { + public ShowBeautyPreviewJobRequest withXProjectId(String xProjectId) { this.xProjectId = xProjectId; return this; } @@ -85,21 +107,23 @@ public void setXProjectId(String xProjectId) { this.xProjectId = xProjectId; } - public ShowUrlAuthRequest withAppId(String appId) { - this.appId = appId; + public ShowBeautyPreviewJobRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; return this; } /** - * 应用id - * @return appId + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId */ - public String getAppId() { - return appId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; } - public void setAppId(String appId) { - this.appId = appId; + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; } @Override @@ -110,24 +134,26 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - ShowUrlAuthRequest that = (ShowUrlAuthRequest) obj; - return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) - && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.appId, that.appId); + ShowBeautyPreviewJobRequest that = (ShowBeautyPreviewJobRequest) obj; + return Objects.equals(this.jobId, that.jobId) && Objects.equals(this.authorization, that.authorization) + && Objects.equals(this.xSdkDate, that.xSdkDate) && Objects.equals(this.xProjectId, that.xProjectId) + && Objects.equals(this.xAppUserId, that.xAppUserId); } @Override public int hashCode() { - return Objects.hash(authorization, xSdkDate, xProjectId, appId); + return Objects.hash(jobId, authorization, xSdkDate, xProjectId, xAppUserId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ShowUrlAuthRequest {\n"); + sb.append("class ShowBeautyPreviewJobRequest {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); - sb.append(" appId: ").append(toIndentedString(appId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowBeautyPreviewJobResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowBeautyPreviewJobResponse.java new file mode 100644 index 0000000000..057daa29c8 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowBeautyPreviewJobResponse.java @@ -0,0 +1,216 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Response Object + */ +public class ShowBeautyPreviewJobResponse extends SdkResponse { + + /** + * 任务的状态。 * WAIT_IMAGE_UPLOAD:待上传美白前图片 * WAITING:等待生成美白预览图 * PROCESSING:美白预览图生成中 * SUCCESS:美白预览图生成成功 * FAILED:美白预览图生成失败 + */ + public static final class StateEnum { + + /** + * Enum WAIT_IMAGE_UPLOAD for value: "WAIT_IMAGE_UPLOAD" + */ + public static final StateEnum WAIT_IMAGE_UPLOAD = new StateEnum("WAIT_IMAGE_UPLOAD"); + + /** + * Enum WAITING for value: "WAITING" + */ + public static final StateEnum WAITING = new StateEnum("WAITING"); + + /** + * Enum PROCESSING for value: "PROCESSING" + */ + public static final StateEnum PROCESSING = new StateEnum("PROCESSING"); + + /** + * Enum SUCCESS for value: "SUCCESS" + */ + public static final StateEnum SUCCESS = new StateEnum("SUCCESS"); + + /** + * Enum FAILED for value: "FAILED" + */ + public static final StateEnum FAILED = new StateEnum("FAILED"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("WAIT_IMAGE_UPLOAD", WAIT_IMAGE_UPLOAD); + map.put("WAITING", WAITING); + map.put("PROCESSING", PROCESSING); + map.put("SUCCESS", SUCCESS); + map.put("FAILED", FAILED); + return Collections.unmodifiableMap(map); + } + + private String value; + + StateEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StateEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new StateEnum(value)); + } + + public static StateEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof StateEnum) { + return this.value.equals(((StateEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "state") + + private StateEnum state; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "post_beauty_image_download_url") + + private String postBeautyImageDownloadUrl; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public ShowBeautyPreviewJobResponse withState(StateEnum state) { + this.state = state; + return this; + } + + /** + * 任务的状态。 * WAIT_IMAGE_UPLOAD:待上传美白前图片 * WAITING:等待生成美白预览图 * PROCESSING:美白预览图生成中 * SUCCESS:美白预览图生成成功 * FAILED:美白预览图生成失败 + * @return state + */ + public StateEnum getState() { + return state; + } + + public void setState(StateEnum state) { + this.state = state; + } + + public ShowBeautyPreviewJobResponse withPostBeautyImageDownloadUrl(String postBeautyImageDownloadUrl) { + this.postBeautyImageDownloadUrl = postBeautyImageDownloadUrl; + return this; + } + + /** + * 美白后图片下载url。 + * @return postBeautyImageDownloadUrl + */ + public String getPostBeautyImageDownloadUrl() { + return postBeautyImageDownloadUrl; + } + + public void setPostBeautyImageDownloadUrl(String postBeautyImageDownloadUrl) { + this.postBeautyImageDownloadUrl = postBeautyImageDownloadUrl; + } + + public ShowBeautyPreviewJobResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowBeautyPreviewJobResponse that = (ShowBeautyPreviewJobResponse) obj; + return Objects.equals(this.state, that.state) + && Objects.equals(this.postBeautyImageDownloadUrl, that.postBeautyImageDownloadUrl) + && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(state, postBeautyImageDownloadUrl, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowBeautyPreviewJobResponse {\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" postBeautyImageDownloadUrl: ").append(toIndentedString(postBeautyImageDownloadUrl)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/StartBeautyPreviewJobRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/StartBeautyPreviewJobRequest.java new file mode 100644 index 0000000000..fb3862bf01 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/StartBeautyPreviewJobRequest.java @@ -0,0 +1,172 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class StartBeautyPreviewJobRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + public StartBeautyPreviewJobRequest withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 任务ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public StartBeautyPreviewJobRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public StartBeautyPreviewJobRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD'T'HHMMSS'Z')。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public StartBeautyPreviewJobRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public StartBeautyPreviewJobRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StartBeautyPreviewJobRequest that = (StartBeautyPreviewJobRequest) obj; + return Objects.equals(this.jobId, that.jobId) && Objects.equals(this.authorization, that.authorization) + && Objects.equals(this.xSdkDate, that.xSdkDate) && Objects.equals(this.xProjectId, that.xProjectId) + && Objects.equals(this.xAppUserId, that.xAppUserId); + } + + @Override + public int hashCode() { + return Objects.hash(jobId, authorization, xSdkDate, xProjectId, xAppUserId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StartBeautyPreviewJobRequest {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/StartBeautyPreviewJobResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/StartBeautyPreviewJobResponse.java new file mode 100644 index 0000000000..dd9dc09002 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/StartBeautyPreviewJobResponse.java @@ -0,0 +1,75 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class StartBeautyPreviewJobResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public StartBeautyPreviewJobResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StartBeautyPreviewJobResponse that = (StartBeautyPreviewJobResponse) obj; + return Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StartBeautyPreviewJobResponse {\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SystemProperty.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SystemProperty.java index abb45d9ae7..7d646d9985 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SystemProperty.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SystemProperty.java @@ -91,7 +91,7 @@ public int hashCode() { private ActionEnum action; /** - * **参数解释**: 系统属性条目。 **约束限制**: 系统属性仅为系统设置,普通用户无法修改。 **取值范围**: 公共资产属性: * BACKGROUND_IMG:视频制作的背景图片。value设置成Yes * CREATED_BY_PLATFORM: 是否平台生成。 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作图片图层。value设置成Yes。 * MATERIAL_VIDEO:素材视频,用作视频图层。value设置成Yes。 * DIGITAL_HUMAN_2D_VIDEO:分身数字人视频。 * DIGITAL_HUMAN_3D_VIDEO:3D数字人视频。 * BUSINESS_CARD_VIDEO:名片视频。 * BUSSINESS_CARD_VIDEO:名片视频(过期) * PHOTO_VIDEO:照片数字人视频。 视频翻译资产属性: * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes。 * TRANSLATED_VIDEO: 视频翻译后的视频 3D数字人资产属性: * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏)。 * LAYER_CONFIG_ENABLE: 可用前景图层配置 * MEITUAN_MATERIAL_APPROVED: 美团平台已审核标识,value设置成YES。 **默认取值**: 不涉及 + * **参数解释**: 系统属性条目。 **约束限制**: 系统属性仅为系统设置,普通用户无法修改。 **取值范围**: 公共资产属性: * BACKGROUND_IMG:视频制作的背景图片。value设置成Yes * CREATED_BY_PLATFORM: 是否平台生成。 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作图片图层。value设置成Yes,否则控制台视频制作、直播等界面的贴图区域,将无法看到此图片。 * MATERIAL_VIDEO:素材视频,用作视频图层。value设置成Yes,否则控制台视频制作、直播等界面的视频区域,将无法看到此视频。 * DIGITAL_HUMAN_2D_VIDEO:分身数字人视频。 * DIGITAL_HUMAN_3D_VIDEO:3D数字人视频。 * BUSINESS_CARD_VIDEO:名片视频。 * BUSSINESS_CARD_VIDEO:名片视频(过期) * PHOTO_VIDEO:照片数字人视频。 视频翻译资产属性: * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes。 * TRANSLATED_VIDEO: 视频翻译后的视频 3D数字人资产属性: * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏)。 * LAYER_CONFIG_ENABLE: 可用前景图层配置 * MEITUAN_MATERIAL_APPROVED: 美团平台已审核标识,value设置成YES。 **默认取值**: 不涉及 */ public static final class KeyEnum { @@ -289,7 +289,7 @@ public SystemProperty withKey(KeyEnum key) { } /** - * **参数解释**: 系统属性条目。 **约束限制**: 系统属性仅为系统设置,普通用户无法修改。 **取值范围**: 公共资产属性: * BACKGROUND_IMG:视频制作的背景图片。value设置成Yes * CREATED_BY_PLATFORM: 是否平台生成。 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作图片图层。value设置成Yes。 * MATERIAL_VIDEO:素材视频,用作视频图层。value设置成Yes。 * DIGITAL_HUMAN_2D_VIDEO:分身数字人视频。 * DIGITAL_HUMAN_3D_VIDEO:3D数字人视频。 * BUSINESS_CARD_VIDEO:名片视频。 * BUSSINESS_CARD_VIDEO:名片视频(过期) * PHOTO_VIDEO:照片数字人视频。 视频翻译资产属性: * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes。 * TRANSLATED_VIDEO: 视频翻译后的视频 3D数字人资产属性: * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏)。 * LAYER_CONFIG_ENABLE: 可用前景图层配置 * MEITUAN_MATERIAL_APPROVED: 美团平台已审核标识,value设置成YES。 **默认取值**: 不涉及 + * **参数解释**: 系统属性条目。 **约束限制**: 系统属性仅为系统设置,普通用户无法修改。 **取值范围**: 公共资产属性: * BACKGROUND_IMG:视频制作的背景图片。value设置成Yes * CREATED_BY_PLATFORM: 是否平台生成。 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作图片图层。value设置成Yes,否则控制台视频制作、直播等界面的贴图区域,将无法看到此图片。 * MATERIAL_VIDEO:素材视频,用作视频图层。value设置成Yes,否则控制台视频制作、直播等界面的视频区域,将无法看到此视频。 * DIGITAL_HUMAN_2D_VIDEO:分身数字人视频。 * DIGITAL_HUMAN_3D_VIDEO:3D数字人视频。 * BUSINESS_CARD_VIDEO:名片视频。 * BUSSINESS_CARD_VIDEO:名片视频(过期) * PHOTO_VIDEO:照片数字人视频。 视频翻译资产属性: * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes。 * TRANSLATED_VIDEO: 视频翻译后的视频 3D数字人资产属性: * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏)。 * LAYER_CONFIG_ENABLE: 可用前景图层配置 * MEITUAN_MATERIAL_APPROVED: 美团平台已审核标识,value设置成YES。 **默认取值**: 不涉及 * @return key */ public KeyEnum getKey() { diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/TrainingAllocatedResource.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/TrainingAllocatedResource.java new file mode 100644 index 0000000000..447f913bc3 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/TrainingAllocatedResource.java @@ -0,0 +1,194 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * TrainingAllocatedResource + */ +public class TrainingAllocatedResource { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_id") + + private String resourceId; + + /** + * 资源计费类型。 * PERIODIC: 包周期 * ONE_TIME:一次性计费 > * 一次性计费包括:租户订购的一次性资源,SP管理员分配给租户的一次性资源。 + */ + public static final class ChargeModeEnum { + + /** + * Enum PERIODIC for value: "PERIODIC" + */ + public static final ChargeModeEnum PERIODIC = new ChargeModeEnum("PERIODIC"); + + /** + * Enum ONE_TIME for value: "ONE_TIME" + */ + public static final ChargeModeEnum ONE_TIME = new ChargeModeEnum("ONE_TIME"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("PERIODIC", PERIODIC); + map.put("ONE_TIME", ONE_TIME); + return Collections.unmodifiableMap(map); + } + + private String value; + + ChargeModeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ChargeModeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ChargeModeEnum(value)); + } + + public static ChargeModeEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof ChargeModeEnum) { + return this.value.equals(((ChargeModeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "charge_mode") + + private ChargeModeEnum chargeMode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "expire_time") + + private String expireTime; + + public TrainingAllocatedResource withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * 资源ID。 + * @return resourceId + */ + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public TrainingAllocatedResource withChargeMode(ChargeModeEnum chargeMode) { + this.chargeMode = chargeMode; + return this; + } + + /** + * 资源计费类型。 * PERIODIC: 包周期 * ONE_TIME:一次性计费 > * 一次性计费包括:租户订购的一次性资源,SP管理员分配给租户的一次性资源。 + * @return chargeMode + */ + public ChargeModeEnum getChargeMode() { + return chargeMode; + } + + public void setChargeMode(ChargeModeEnum chargeMode) { + this.chargeMode = chargeMode; + } + + public TrainingAllocatedResource withExpireTime(String expireTime) { + this.expireTime = expireTime; + return this; + } + + /** + * 资源过期时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\" + * @return expireTime + */ + public String getExpireTime() { + return expireTime; + } + + public void setExpireTime(String expireTime) { + this.expireTime = expireTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + TrainingAllocatedResource that = (TrainingAllocatedResource) obj; + return Objects.equals(this.resourceId, that.resourceId) && Objects.equals(this.chargeMode, that.chargeMode) + && Objects.equals(this.expireTime, that.expireTime); + } + + @Override + public int hashCode() { + return Objects.hash(resourceId, chargeMode, expireTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TrainingAllocatedResource {\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); + sb.append(" chargeMode: ").append(toIndentedString(chargeMode)).append("\n"); + sb.append(" expireTime: ").append(toIndentedString(expireTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/TrainingJobBasicInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/TrainingJobBasicInfo.java index f46d9ef6e4..43a6ffba15 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/TrainingJobBasicInfo.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/TrainingJobBasicInfo.java @@ -29,7 +29,7 @@ public class TrainingJobBasicInfo { private String name; /** - * 任务的状态。 与MetaStudio Console上用户看到的状态映射关系如下: - 待提交 * WAIT_FILE_UPLOAD: 待上传文件 - 系统审核中 * AUTO_VERIFYING: 自动审核中 * MANUAL_VERIFYING: 人工审核中 - 系统审核未通过 * AUTO_VERIFY_FAILED: 自动审核失败 * MANUAL_VERIFY_FAILED: 人工审核失败 - 算法训练中 > 算法训练中的状态仅管理员需要处理,普通用户仅需要显示“算法训练中”即可。 * MANUAL_VERIFY_SUCCESS: 审核通过,等待预处理资源 * WAIT_TRAINING_DATA_PREPROCESS: 等待训练数据预处理 * TRAINING_DATA_PREPROCESSING: 训练数据预处理中 * TRAINING_DATA_PREPROCESS_FAILED: 训练数据预处理失败 * TRAINING_DATA_PREPROCESS_SUCCESS: 训练数据预处理完成,等待训练资源中 * TRAINING: 训练中 * TRAIN_FAILED: 训练失败 * TRAIN_SUCCESS: 训练完成,等待预处理资源 * INFERENCE_DATA_PREPROCESSING: 推理数据预处理中 * INFERENCE_DATA_PREPROCESS_FAILED: 推理数据预处理失败 * WAIT_MAIN_FILE_UPLOAD: 等待主文件上传 * MANUAL_STOP_INFERENCE_DATA_PREPROCESS: 人工中止推理预处理 * MANUAL_STOP_TRAIN: 人工中止训练 * MANUAL_STOP_TRAINING_DATA_PREPROCESS: 人工中止训练预处理 * WAIT_ADMIN_CONFIRM: 等待管理员审核 * WAIT_COMPILE: 等待转编译 * COMPILING: 转编译中 * COMPILE_FAILED: 转编译失败 * WAIT_GENERATE_ACTION: 等待原子动作生成 * WAIT_ARRANGE: 等待编排 * ACTION_GENERATE_DATA_PROCESSING: 原子动作生成中 * MANUAL_STOP_ACTION_GENERATE_DATA_PROCESSING: 人工中止动作生成 * MANUAL_STOP_ACTION_GENERATE_ORI_PROCESSING: 人工中止动作编排 * ACTION_GENERATE_ORI_PROCESSING: 动作编排中 * ACTION_GENERATE_DATA_FAILED: 动作生成失败 * ACTION_GENERATE_ORI_FAILED: 生成动作编排资产失败 * ACTION_GENERATE_ORI_SUCCESS: 动作编排成功 * GENERATE_ACTION_PREPROCESS_FAILED: 生成动作编排原子动作失败 * WAIT_ADMIN_CALIBRATION: 等待管理员确认动作信息 - 待用户审核,仅NA白名单用户有该状态 * WAIT_USER_CONFIRM: 等待用户确认训练效果 - 用户驳回,仅NA白名单用户有该状态 * JOB_REJECT: 驳回任务 - 已完成 * JOB_SUCCESS: 训练任务完成(普通用户任务的完成状态,此时用户已经可以使用模型) * JOB_FINISH: 任务结束,是最终状态,不支持修改此状态(NA用户任务的完成状态,并且此状态表明模型效果已通过用户的验收) - 挂起,仅NA白名单用户有该状态 * JOB_PENDING: 挂起任务 + * 任务的状态。 与MetaStudio Console上用户看到的状态映射关系如下: - 待提交 * WAIT_FILE_UPLOAD: 待上传文件 - 系统审核中 * AUTO_VERIFYING: 自动审核中 * MANUAL_VERIFYING: 人工审核中 - 系统审核未通过 * AUTO_VERIFY_FAILED: 自动审核失败 * MANUAL_VERIFY_FAILED: 人工审核失败 - 算法训练中 > 算法训练中的状态仅管理员需要处理,普通用户仅需要显示“算法训练中”即可。 * MANUAL_VERIFY_SUCCESS: 审核通过,等待预处理资源 * WAIT_TRAINING_DATA_PREPROCESS: 等待训练数据预处理 * TRAINING_DATA_PREPROCESSING: 训练数据预处理中 * TRAINING_DATA_PREPROCESS_FAILED: 训练数据预处理失败 * TRAINING_DATA_PREPROCESS_SUCCESS: 训练数据预处理完成,等待训练资源中 * TRAINING: 训练中 * TRAIN_FAILED: 训练失败 * TRAIN_SUCCESS: 训练完成,等待预处理资源 * INFERENCE_DATA_PREPROCESSING: 推理数据预处理中 * INFERENCE_DATA_PREPROCESS_FAILED: 推理数据预处理失败 * WAIT_MAIN_FILE_UPLOAD: 等待主文件上传 * MANUAL_STOP_INFERENCE_DATA_PREPROCESS: 人工中止推理预处理 * MANUAL_STOP_TRAIN: 人工中止训练 * MANUAL_STOP_TRAINING_DATA_PREPROCESS: 人工中止训练预处理 * WAIT_ADMIN_CONFIRM: 等待管理员审核 * WAIT_COMPILE: 等待转编译 * COMPILING: 转编译中 * COMPILE_FAILED: 转编译失败 * WAIT_GENERATE_ACTION: 等待原子动作生成 * WAIT_ARRANGE: 等待编排 * ACTION_GENERATE_DATA_PROCESSING: 原子动作生成中 * MANUAL_STOP_ACTION_GENERATE_DATA_PROCESSING: 人工中止动作生成 * MANUAL_STOP_ACTION_GENERATE_ORI_PROCESSING: 人工中止动作编排 * ACTION_GENERATE_ORI_PROCESSING: 动作编排中 * ACTION_GENERATE_DATA_FAILED: 动作生成失败 * ACTION_GENERATE_ORI_FAILED: 生成动作编排资产失败 * ACTION_GENERATE_ORI_SUCCESS: 动作编排成功 * GENERATE_ACTION_PREPROCESS_FAILED: 生成动作编排原子动作失败 * WAIT_ADMIN_CALIBRATION: 等待管理员确认动作信息 * WAIT_ASSET_SYNC: 等待资产同步 - 待用户审核,仅NA白名单用户有该状态 * WAIT_USER_CONFIRM: 等待用户确认训练效果 - 用户驳回,仅NA白名单用户有该状态 * JOB_REJECT: 驳回任务 - 已完成 * JOB_SUCCESS: 训练任务完成(普通用户任务的完成状态,此时用户已经可以使用模型) * JOB_FINISH: 任务结束,是最终状态,不支持修改此状态(NA用户任务的完成状态,并且此状态表明模型效果已通过用户的验收) - 挂起,仅NA白名单用户有该状态 * JOB_PENDING: 挂起任务 */ public static final class StateEnum { @@ -163,6 +163,11 @@ public static final class StateEnum { */ public static final StateEnum JOB_PENDING = new StateEnum("JOB_PENDING"); + /** + * Enum WAIT_ASSET_SYNC for value: "WAIT_ASSET_SYNC" + */ + public static final StateEnum WAIT_ASSET_SYNC = new StateEnum("WAIT_ASSET_SYNC"); + /** * Enum WAIT_ADMIN_CONFIRM for value: "WAIT_ADMIN_CONFIRM" */ @@ -306,6 +311,7 @@ private static Map createStaticFields() { map.put("WAIT_USER_CONFIRM", WAIT_USER_CONFIRM); map.put("JOB_REJECT", JOB_REJECT); map.put("JOB_PENDING", JOB_PENDING); + map.put("WAIT_ASSET_SYNC", WAIT_ASSET_SYNC); map.put("WAIT_ADMIN_CONFIRM", WAIT_ADMIN_CONFIRM); map.put("JOB_FINISH", JOB_FINISH); map.put("COMPILING", COMPILING); @@ -593,6 +599,11 @@ public int hashCode() { private Boolean isFlexus; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_only_human_model") + + private Boolean isOnlyHumanModel; + public TrainingJobBasicInfo withJobId(String jobId) { this.jobId = jobId; return this; @@ -633,7 +644,7 @@ public TrainingJobBasicInfo withState(StateEnum state) { } /** - * 任务的状态。 与MetaStudio Console上用户看到的状态映射关系如下: - 待提交 * WAIT_FILE_UPLOAD: 待上传文件 - 系统审核中 * AUTO_VERIFYING: 自动审核中 * MANUAL_VERIFYING: 人工审核中 - 系统审核未通过 * AUTO_VERIFY_FAILED: 自动审核失败 * MANUAL_VERIFY_FAILED: 人工审核失败 - 算法训练中 > 算法训练中的状态仅管理员需要处理,普通用户仅需要显示“算法训练中”即可。 * MANUAL_VERIFY_SUCCESS: 审核通过,等待预处理资源 * WAIT_TRAINING_DATA_PREPROCESS: 等待训练数据预处理 * TRAINING_DATA_PREPROCESSING: 训练数据预处理中 * TRAINING_DATA_PREPROCESS_FAILED: 训练数据预处理失败 * TRAINING_DATA_PREPROCESS_SUCCESS: 训练数据预处理完成,等待训练资源中 * TRAINING: 训练中 * TRAIN_FAILED: 训练失败 * TRAIN_SUCCESS: 训练完成,等待预处理资源 * INFERENCE_DATA_PREPROCESSING: 推理数据预处理中 * INFERENCE_DATA_PREPROCESS_FAILED: 推理数据预处理失败 * WAIT_MAIN_FILE_UPLOAD: 等待主文件上传 * MANUAL_STOP_INFERENCE_DATA_PREPROCESS: 人工中止推理预处理 * MANUAL_STOP_TRAIN: 人工中止训练 * MANUAL_STOP_TRAINING_DATA_PREPROCESS: 人工中止训练预处理 * WAIT_ADMIN_CONFIRM: 等待管理员审核 * WAIT_COMPILE: 等待转编译 * COMPILING: 转编译中 * COMPILE_FAILED: 转编译失败 * WAIT_GENERATE_ACTION: 等待原子动作生成 * WAIT_ARRANGE: 等待编排 * ACTION_GENERATE_DATA_PROCESSING: 原子动作生成中 * MANUAL_STOP_ACTION_GENERATE_DATA_PROCESSING: 人工中止动作生成 * MANUAL_STOP_ACTION_GENERATE_ORI_PROCESSING: 人工中止动作编排 * ACTION_GENERATE_ORI_PROCESSING: 动作编排中 * ACTION_GENERATE_DATA_FAILED: 动作生成失败 * ACTION_GENERATE_ORI_FAILED: 生成动作编排资产失败 * ACTION_GENERATE_ORI_SUCCESS: 动作编排成功 * GENERATE_ACTION_PREPROCESS_FAILED: 生成动作编排原子动作失败 * WAIT_ADMIN_CALIBRATION: 等待管理员确认动作信息 - 待用户审核,仅NA白名单用户有该状态 * WAIT_USER_CONFIRM: 等待用户确认训练效果 - 用户驳回,仅NA白名单用户有该状态 * JOB_REJECT: 驳回任务 - 已完成 * JOB_SUCCESS: 训练任务完成(普通用户任务的完成状态,此时用户已经可以使用模型) * JOB_FINISH: 任务结束,是最终状态,不支持修改此状态(NA用户任务的完成状态,并且此状态表明模型效果已通过用户的验收) - 挂起,仅NA白名单用户有该状态 * JOB_PENDING: 挂起任务 + * 任务的状态。 与MetaStudio Console上用户看到的状态映射关系如下: - 待提交 * WAIT_FILE_UPLOAD: 待上传文件 - 系统审核中 * AUTO_VERIFYING: 自动审核中 * MANUAL_VERIFYING: 人工审核中 - 系统审核未通过 * AUTO_VERIFY_FAILED: 自动审核失败 * MANUAL_VERIFY_FAILED: 人工审核失败 - 算法训练中 > 算法训练中的状态仅管理员需要处理,普通用户仅需要显示“算法训练中”即可。 * MANUAL_VERIFY_SUCCESS: 审核通过,等待预处理资源 * WAIT_TRAINING_DATA_PREPROCESS: 等待训练数据预处理 * TRAINING_DATA_PREPROCESSING: 训练数据预处理中 * TRAINING_DATA_PREPROCESS_FAILED: 训练数据预处理失败 * TRAINING_DATA_PREPROCESS_SUCCESS: 训练数据预处理完成,等待训练资源中 * TRAINING: 训练中 * TRAIN_FAILED: 训练失败 * TRAIN_SUCCESS: 训练完成,等待预处理资源 * INFERENCE_DATA_PREPROCESSING: 推理数据预处理中 * INFERENCE_DATA_PREPROCESS_FAILED: 推理数据预处理失败 * WAIT_MAIN_FILE_UPLOAD: 等待主文件上传 * MANUAL_STOP_INFERENCE_DATA_PREPROCESS: 人工中止推理预处理 * MANUAL_STOP_TRAIN: 人工中止训练 * MANUAL_STOP_TRAINING_DATA_PREPROCESS: 人工中止训练预处理 * WAIT_ADMIN_CONFIRM: 等待管理员审核 * WAIT_COMPILE: 等待转编译 * COMPILING: 转编译中 * COMPILE_FAILED: 转编译失败 * WAIT_GENERATE_ACTION: 等待原子动作生成 * WAIT_ARRANGE: 等待编排 * ACTION_GENERATE_DATA_PROCESSING: 原子动作生成中 * MANUAL_STOP_ACTION_GENERATE_DATA_PROCESSING: 人工中止动作生成 * MANUAL_STOP_ACTION_GENERATE_ORI_PROCESSING: 人工中止动作编排 * ACTION_GENERATE_ORI_PROCESSING: 动作编排中 * ACTION_GENERATE_DATA_FAILED: 动作生成失败 * ACTION_GENERATE_ORI_FAILED: 生成动作编排资产失败 * ACTION_GENERATE_ORI_SUCCESS: 动作编排成功 * GENERATE_ACTION_PREPROCESS_FAILED: 生成动作编排原子动作失败 * WAIT_ADMIN_CALIBRATION: 等待管理员确认动作信息 * WAIT_ASSET_SYNC: 等待资产同步 - 待用户审核,仅NA白名单用户有该状态 * WAIT_USER_CONFIRM: 等待用户确认训练效果 - 用户驳回,仅NA白名单用户有该状态 * JOB_REJECT: 驳回任务 - 已完成 * JOB_SUCCESS: 训练任务完成(普通用户任务的完成状态,此时用户已经可以使用模型) * JOB_FINISH: 任务结束,是最终状态,不支持修改此状态(NA用户任务的完成状态,并且此状态表明模型效果已通过用户的验收) - 挂起,仅NA白名单用户有该状态 * JOB_PENDING: 挂起任务 * @return state */ public StateEnum getState() { @@ -881,6 +892,23 @@ public void setIsFlexus(Boolean isFlexus) { this.isFlexus = isFlexus; } + public TrainingJobBasicInfo withIsOnlyHumanModel(Boolean isOnlyHumanModel) { + this.isOnlyHumanModel = isOnlyHumanModel; + return this; + } + + /** + * 是否只训练形象模型,不训练声音模型。仅Flexus版本时有效,默认false。 + * @return isOnlyHumanModel + */ + public Boolean getIsOnlyHumanModel() { + return isOnlyHumanModel; + } + + public void setIsOnlyHumanModel(Boolean isOnlyHumanModel) { + this.isOnlyHumanModel = isOnlyHumanModel; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -900,7 +928,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.modelVersion, that.modelVersion) && Objects.equals(this.mattingType, that.mattingType) && Objects.equals(this.modelResolution, that.modelResolution) - && Objects.equals(this.appUserId, that.appUserId) && Objects.equals(this.isFlexus, that.isFlexus); + && Objects.equals(this.appUserId, that.appUserId) && Objects.equals(this.isFlexus, that.isFlexus) + && Objects.equals(this.isOnlyHumanModel, that.isOnlyHumanModel); } @Override @@ -920,7 +949,8 @@ public int hashCode() { mattingType, modelResolution, appUserId, - isFlexus); + isFlexus, + isOnlyHumanModel); } @Override @@ -943,6 +973,7 @@ public String toString() { sb.append(" modelResolution: ").append(toIndentedString(modelResolution)).append("\n"); sb.append(" appUserId: ").append(toIndentedString(appUserId)).append("\n"); sb.append(" isFlexus: ").append(toIndentedString(isFlexus)).append("\n"); + sb.append(" isOnlyHumanModel: ").append(toIndentedString(isOnlyHumanModel)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/TrainingVideoMarkInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/TrainingVideoMarkInfo.java new file mode 100644 index 0000000000..d9ed871f99 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/TrainingVideoMarkInfo.java @@ -0,0 +1,96 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 分身数字训练视频标记信息。 + */ +public class TrainingVideoMarkInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "video_start_time") + + private String videoStartTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "video_end_time") + + private String videoEndTime; + + public TrainingVideoMarkInfo withVideoStartTime(String videoStartTime) { + this.videoStartTime = videoStartTime; + return this; + } + + /** + * 训练视频起始时间。格式:“HH:MM:SS.mmm”。 + * @return videoStartTime + */ + public String getVideoStartTime() { + return videoStartTime; + } + + public void setVideoStartTime(String videoStartTime) { + this.videoStartTime = videoStartTime; + } + + public TrainingVideoMarkInfo withVideoEndTime(String videoEndTime) { + this.videoEndTime = videoEndTime; + return this; + } + + /** + * 训练视频结束时间。格式:“HH:MM:SS.mmm”。 + * @return videoEndTime + */ + public String getVideoEndTime() { + return videoEndTime; + } + + public void setVideoEndTime(String videoEndTime) { + this.videoEndTime = videoEndTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + TrainingVideoMarkInfo that = (TrainingVideoMarkInfo) obj; + return Objects.equals(this.videoStartTime, that.videoStartTime) + && Objects.equals(this.videoEndTime, that.videoEndTime); + } + + @Override + public int hashCode() { + return Objects.hash(videoStartTime, videoEndTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TrainingVideoMarkInfo {\n"); + sb.append(" videoStartTime: ").append(toIndentedString(videoStartTime)).append("\n"); + sb.append(" videoEndTime: ").append(toIndentedString(videoEndTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/Update2dModelTrainingJobReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/Update2dModelTrainingJobReq.java index da36944bc1..ae9fea0c6e 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/Update2dModelTrainingJobReq.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/Update2dModelTrainingJobReq.java @@ -126,6 +126,11 @@ public int hashCode() { private Integer actionVideoMultipartCount; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "beauty_level") + + private Integer beautyLevel; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "is_background_replacement") @@ -315,6 +320,25 @@ public void setActionVideoMultipartCount(Integer actionVideoMultipartCount) { this.actionVideoMultipartCount = actionVideoMultipartCount; } + public Update2dModelTrainingJobReq withBeautyLevel(Integer beautyLevel) { + this.beautyLevel = beautyLevel; + return this; + } + + /** + * 美白等级。默认值0,不美白。 + * minimum: 0 + * maximum: 3 + * @return beautyLevel + */ + public Integer getBeautyLevel() { + return beautyLevel; + } + + public void setBeautyLevel(Integer beautyLevel) { + this.beautyLevel = beautyLevel; + } + public Update2dModelTrainingJobReq withIsBackgroundReplacement(Boolean isBackgroundReplacement) { this.isBackgroundReplacement = isBackgroundReplacement; return this; @@ -480,6 +504,7 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.commandMessage, that.commandMessage) && Objects.equals(this.videoMultipartCount, that.videoMultipartCount) && Objects.equals(this.actionVideoMultipartCount, that.actionVideoMultipartCount) + && Objects.equals(this.beautyLevel, that.beautyLevel) && Objects.equals(this.isBackgroundReplacement, that.isBackgroundReplacement) && Objects.equals(this.batchName, that.batchName) && Objects.equals(this.tags, that.tags) && Objects.equals(this.samplesBasicInfo, that.samplesBasicInfo) @@ -494,6 +519,7 @@ public int hashCode() { commandMessage, videoMultipartCount, actionVideoMultipartCount, + beautyLevel, isBackgroundReplacement, batchName, tags, @@ -511,6 +537,7 @@ public String toString() { sb.append(" commandMessage: ").append(toIndentedString(commandMessage)).append("\n"); sb.append(" videoMultipartCount: ").append(toIndentedString(videoMultipartCount)).append("\n"); sb.append(" actionVideoMultipartCount: ").append(toIndentedString(actionVideoMultipartCount)).append("\n"); + sb.append(" beautyLevel: ").append(toIndentedString(beautyLevel)).append("\n"); sb.append(" isBackgroundReplacement: ").append(toIndentedString(isBackgroundReplacement)).append("\n"); sb.append(" batchName: ").append(toIndentedString(batchName)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/Update2dModelTrainingJobResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/Update2dModelTrainingJobResponse.java index 00250a362a..b494248ef6 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/Update2dModelTrainingJobResponse.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/Update2dModelTrainingJobResponse.java @@ -54,6 +54,16 @@ public class Update2dModelTrainingJobResponse extends SdkResponse { private String grantFileUploadUrl; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pre_beauty_image_upload_url") + + private String preBeautyImageUploadUrl; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "post_beauty_image_upload_url") + + private String postBeautyImageUploadUrl; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "X-Request-Id") @@ -99,7 +109,7 @@ public Update2dModelTrainingJobResponse withTrainingVideoUploadUrl( } /** - * 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 + * 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream * @return trainingVideoUploadUrl */ public List getTrainingVideoUploadUrl() { @@ -133,7 +143,7 @@ public Update2dModelTrainingJobResponse withActionVideoUploadUrl( } /** - * 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 + * 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream * @return actionVideoUploadUrl */ public List getActionVideoUploadUrl() { @@ -150,7 +160,7 @@ public Update2dModelTrainingJobResponse withAudioUploadUrl(String audioUploadUrl } /** - * 音频数据训练上传URL。该url在文件上传成功后失效,只能上传一次 + * 音频数据训练上传URL。该url在文件上传成功后失效,只能上传一次 > 通过该地址上传时,需设置content-type为application/zip。 * @return audioUploadUrl */ public String getAudioUploadUrl() { @@ -167,7 +177,7 @@ public Update2dModelTrainingJobResponse withCoverUploadUrl(String coverUploadUrl } /** - * 模型封面上传URL。该URL在文件上传成功后失效,只能上传一次。 + * 模型封面上传URL。该URL在文件上传成功后失效,只能上传一次。 > 通过该地址上传时,需设置content-type为application/octet-stream * @return coverUploadUrl */ public String getCoverUploadUrl() { @@ -184,7 +194,7 @@ public Update2dModelTrainingJobResponse withIdCardImage1UploadUrl(String idCardI } /** - * 身份证正面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 + * 身份证正面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream * @return idCardImage1UploadUrl */ public String getIdCardImage1UploadUrl() { @@ -201,7 +211,7 @@ public Update2dModelTrainingJobResponse withIdCardImage2UploadUrl(String idCardI } /** - * 身份证反面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 + * 身份证反面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream * @return idCardImage2UploadUrl */ public String getIdCardImage2UploadUrl() { @@ -218,7 +228,7 @@ public Update2dModelTrainingJobResponse withGrantFileUploadUrl(String grantFileU } /** - * 授权书上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 + * 授权书上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream * @return grantFileUploadUrl */ public String getGrantFileUploadUrl() { @@ -229,6 +239,40 @@ public void setGrantFileUploadUrl(String grantFileUploadUrl) { this.grantFileUploadUrl = grantFileUploadUrl; } + public Update2dModelTrainingJobResponse withPreBeautyImageUploadUrl(String preBeautyImageUploadUrl) { + this.preBeautyImageUploadUrl = preBeautyImageUploadUrl; + return this; + } + + /** + * 美白前图片上传url。 > 通过该地址上传时,需设置content-type为application/octet-stream + * @return preBeautyImageUploadUrl + */ + public String getPreBeautyImageUploadUrl() { + return preBeautyImageUploadUrl; + } + + public void setPreBeautyImageUploadUrl(String preBeautyImageUploadUrl) { + this.preBeautyImageUploadUrl = preBeautyImageUploadUrl; + } + + public Update2dModelTrainingJobResponse withPostBeautyImageUploadUrl(String postBeautyImageUploadUrl) { + this.postBeautyImageUploadUrl = postBeautyImageUploadUrl; + return this; + } + + /** + * 美白后图片上传url。 > 通过该地址上传时,需设置content-type为application/octet-stream + * @return postBeautyImageUploadUrl + */ + public String getPostBeautyImageUploadUrl() { + return postBeautyImageUploadUrl; + } + + public void setPostBeautyImageUploadUrl(String postBeautyImageUploadUrl) { + this.postBeautyImageUploadUrl = postBeautyImageUploadUrl; + } + public Update2dModelTrainingJobResponse withXRequestId(String xRequestId) { this.xRequestId = xRequestId; return this; @@ -265,6 +309,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.idCardImage1UploadUrl, that.idCardImage1UploadUrl) && Objects.equals(this.idCardImage2UploadUrl, that.idCardImage2UploadUrl) && Objects.equals(this.grantFileUploadUrl, that.grantFileUploadUrl) + && Objects.equals(this.preBeautyImageUploadUrl, that.preBeautyImageUploadUrl) + && Objects.equals(this.postBeautyImageUploadUrl, that.postBeautyImageUploadUrl) && Objects.equals(this.xRequestId, that.xRequestId); } @@ -278,6 +324,8 @@ public int hashCode() { idCardImage1UploadUrl, idCardImage2UploadUrl, grantFileUploadUrl, + preBeautyImageUploadUrl, + postBeautyImageUploadUrl, xRequestId); } @@ -293,6 +341,8 @@ public String toString() { sb.append(" idCardImage1UploadUrl: ").append(toIndentedString(idCardImage1UploadUrl)).append("\n"); sb.append(" idCardImage2UploadUrl: ").append(toIndentedString(idCardImage2UploadUrl)).append("\n"); sb.append(" grantFileUploadUrl: ").append(toIndentedString(grantFileUploadUrl)).append("\n"); + sb.append(" preBeautyImageUploadUrl: ").append(toIndentedString(preBeautyImageUploadUrl)).append("\n"); + sb.append(" postBeautyImageUploadUrl: ").append(toIndentedString(postBeautyImageUploadUrl)).append("\n"); sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VoiceProperties.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VoiceProperties.java index 931fe47c16..c3258b9bd7 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VoiceProperties.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VoiceProperties.java @@ -11,12 +11,12 @@ import java.util.Objects; /** - * 声音配置信息 + * 声音配置信息,为Flexus版声音的配置项,标准版声音不支持此配置。 */ public class VoiceProperties { /** - * 任务标签。 * ECOMMERCE: 电商 * NEWS: 新闻 * MARKETING: 营销 + * 任务标签,为Flexus版声音的配置。 * ECOMMERCE: 电商 * NEWS: 新闻 * MARKETING: 营销 */ public static final class JobTagEnum { @@ -97,7 +97,7 @@ public int hashCode() { private JobTagEnum jobTag; /** - * 语音性别,是男性声音还是女性声音。 * FEMALE: 女性 * MALE: 男性 + * 语音性别,是男性声音还是女性声音,为Flexus版声音的配置。 * FEMALE: 女性 * MALE: 男性 */ public static final class SexEnum { @@ -172,7 +172,7 @@ public int hashCode() { private SexEnum sex; /** - * 训练语言,当前仅支持中文。 * CN: 中文 * EN: 英文 + * 训练语言,当前仅支持中文,为Flexus版声音的配置。 * CN: 中文 * EN: 英文 */ public static final class LanguageEnum { @@ -252,7 +252,7 @@ public VoiceProperties withJobTag(JobTagEnum jobTag) { } /** - * 任务标签。 * ECOMMERCE: 电商 * NEWS: 新闻 * MARKETING: 营销 + * 任务标签,为Flexus版声音的配置。 * ECOMMERCE: 电商 * NEWS: 新闻 * MARKETING: 营销 * @return jobTag */ public JobTagEnum getJobTag() { @@ -269,7 +269,7 @@ public VoiceProperties withSex(SexEnum sex) { } /** - * 语音性别,是男性声音还是女性声音。 * FEMALE: 女性 * MALE: 男性 + * 语音性别,是男性声音还是女性声音,为Flexus版声音的配置。 * FEMALE: 女性 * MALE: 男性 * @return sex */ public SexEnum getSex() { @@ -286,7 +286,7 @@ public VoiceProperties withLanguage(LanguageEnum language) { } /** - * 训练语言,当前仅支持中文。 * CN: 中文 * EN: 英文 + * 训练语言,当前仅支持中文,为Flexus版声音的配置。 * CN: 中文 * EN: 英文 * @return language */ public LanguageEnum getLanguage() { diff --git a/services/moderation/pom.xml b/services/moderation/pom.xml index 7416d4c20f..8ed3e7ec5e 100644 --- a/services/moderation/pom.xml +++ b/services/moderation/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-moderation - 3.1.121 + 3.1.122 Huawei Cloud SDK for MODERATION 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/ModerationAsyncClient.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/ModerationAsyncClient.java deleted file mode 100644 index d025648cf3..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/ModerationAsyncClient.java +++ /dev/null @@ -1,242 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2; - -import com.huaweicloud.sdk.core.ClientBuilder; -import com.huaweicloud.sdk.core.HcClient; -import com.huaweicloud.sdk.core.invoker.AsyncInvoker; -import com.huaweicloud.sdk.moderation.v2.model.RunCheckResultRequest; -import com.huaweicloud.sdk.moderation.v2.model.RunCheckResultResponse; -import com.huaweicloud.sdk.moderation.v2.model.RunCheckTaskJobsRequest; -import com.huaweicloud.sdk.moderation.v2.model.RunCheckTaskJobsResponse; -import com.huaweicloud.sdk.moderation.v2.model.RunImageBatchModerationRequest; -import com.huaweicloud.sdk.moderation.v2.model.RunImageBatchModerationResponse; -import com.huaweicloud.sdk.moderation.v2.model.RunImageModerationRequest; -import com.huaweicloud.sdk.moderation.v2.model.RunImageModerationResponse; -import com.huaweicloud.sdk.moderation.v2.model.RunModerationAudioRequest; -import com.huaweicloud.sdk.moderation.v2.model.RunModerationAudioResponse; -import com.huaweicloud.sdk.moderation.v2.model.RunTaskSumbitRequest; -import com.huaweicloud.sdk.moderation.v2.model.RunTaskSumbitResponse; -import com.huaweicloud.sdk.moderation.v2.model.RunTextModerationRequest; -import com.huaweicloud.sdk.moderation.v2.model.RunTextModerationResponse; - -import java.util.concurrent.CompletableFuture; - -public class ModerationAsyncClient { - - protected HcClient hcClient; - - public ModerationAsyncClient(HcClient hcClient) { - this.hcClient = hcClient; - } - - public static ClientBuilder newBuilder() { - ClientBuilder clientBuilder = new ClientBuilder<>(ModerationAsyncClient::new); - return clientBuilder; - } - - /** - * 处理结果查询 - * - * 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 - * > 任务最长保留时间为30分钟,过期后会被清理掉。建议在任务提交后,每30s进行一次周期查询。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunCheckResultRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture runCheckResultAsync(RunCheckResultRequest request) { - return hcClient.asyncInvokeHttp(request, ModerationMeta.runCheckResult); - } - - /** - * 处理结果查询 - * - * 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 - * > 任务最长保留时间为30分钟,过期后会被清理掉。建议在任务提交后,每30s进行一次周期查询。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunCheckResultRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker runCheckResultAsyncInvoker( - RunCheckResultRequest request) { - return new AsyncInvoker<>(request, ModerationMeta.runCheckResult, hcClient); - } - - /** - * 任务列表查询 - * - * 查询批量图像内容审核任务列表,可通过指定任务状态查询来对任务列表进行过滤。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunCheckTaskJobsRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture runCheckTaskJobsAsync(RunCheckTaskJobsRequest request) { - return hcClient.asyncInvokeHttp(request, ModerationMeta.runCheckTaskJobs); - } - - /** - * 任务列表查询 - * - * 查询批量图像内容审核任务列表,可通过指定任务状态查询来对任务列表进行过滤。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunCheckTaskJobsRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker runCheckTaskJobsAsyncInvoker( - RunCheckTaskJobsRequest request) { - return new AsyncInvoker<>(request, ModerationMeta.runCheckTaskJobs, hcClient); - } - - /** - * 图像内容审核(批量) - * - * 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunImageBatchModerationRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture runImageBatchModerationAsync( - RunImageBatchModerationRequest request) { - return hcClient.asyncInvokeHttp(request, ModerationMeta.runImageBatchModeration); - } - - /** - * 图像内容审核(批量) - * - * 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunImageBatchModerationRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker runImageBatchModerationAsyncInvoker( - RunImageBatchModerationRequest request) { - return new AsyncInvoker<>(request, ModerationMeta.runImageBatchModeration, hcClient); - } - - /** - * 图像内容审核 - * - * 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunImageModerationRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture runImageModerationAsync(RunImageModerationRequest request) { - return hcClient.asyncInvokeHttp(request, ModerationMeta.runImageModeration); - } - - /** - * 图像内容审核 - * - * 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunImageModerationRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker runImageModerationAsyncInvoker( - RunImageModerationRequest request) { - return new AsyncInvoker<>(request, ModerationMeta.runImageModeration, hcClient); - } - - /** - * 语音内容审核 - * - * 分析并识别用户上传的语音内容是否有敏感内容(如色情、政治等),并将识别结果 返回给用户。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunModerationAudioRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture runModerationAudioAsync(RunModerationAudioRequest request) { - return hcClient.asyncInvokeHttp(request, ModerationMeta.runModerationAudio); - } - - /** - * 语音内容审核 - * - * 分析并识别用户上传的语音内容是否有敏感内容(如色情、政治等),并将识别结果 返回给用户。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunModerationAudioRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker runModerationAudioAsyncInvoker( - RunModerationAudioRequest request) { - return new AsyncInvoker<>(request, ModerationMeta.runModerationAudio, hcClient); - } - - /** - * 任务提交 - * - * 提交批量图像内容审核任务,返回任务标识,任务标识可用于查询任务结果。此接口为异步接口,相对于批量接口,支持更大图片列表批次。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunTaskSumbitRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture runTaskSumbitAsync(RunTaskSumbitRequest request) { - return hcClient.asyncInvokeHttp(request, ModerationMeta.runTaskSumbit); - } - - /** - * 任务提交 - * - * 提交批量图像内容审核任务,返回任务标识,任务标识可用于查询任务结果。此接口为异步接口,相对于批量接口,支持更大图片列表批次。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunTaskSumbitRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker runTaskSumbitAsyncInvoker( - RunTaskSumbitRequest request) { - return new AsyncInvoker<>(request, ModerationMeta.runTaskSumbit, hcClient); - } - - /** - * 文本内容审核 - * - * 分析并识别用户上传的文本内容是否有敏感内容(如色情、政治等),并将识别结果返回给用户。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunTextModerationRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture runTextModerationAsync(RunTextModerationRequest request) { - return hcClient.asyncInvokeHttp(request, ModerationMeta.runTextModeration); - } - - /** - * 文本内容审核 - * - * 分析并识别用户上传的文本内容是否有敏感内容(如色情、政治等),并将识别结果返回给用户。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunTextModerationRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker runTextModerationAsyncInvoker( - RunTextModerationRequest request) { - return new AsyncInvoker<>(request, ModerationMeta.runTextModeration, hcClient); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/ModerationClient.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/ModerationClient.java deleted file mode 100644 index 9da87abacd..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/ModerationClient.java +++ /dev/null @@ -1,238 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2; - -import com.huaweicloud.sdk.core.ClientBuilder; -import com.huaweicloud.sdk.core.HcClient; -import com.huaweicloud.sdk.core.invoker.SyncInvoker; -import com.huaweicloud.sdk.moderation.v2.model.RunCheckResultRequest; -import com.huaweicloud.sdk.moderation.v2.model.RunCheckResultResponse; -import com.huaweicloud.sdk.moderation.v2.model.RunCheckTaskJobsRequest; -import com.huaweicloud.sdk.moderation.v2.model.RunCheckTaskJobsResponse; -import com.huaweicloud.sdk.moderation.v2.model.RunImageBatchModerationRequest; -import com.huaweicloud.sdk.moderation.v2.model.RunImageBatchModerationResponse; -import com.huaweicloud.sdk.moderation.v2.model.RunImageModerationRequest; -import com.huaweicloud.sdk.moderation.v2.model.RunImageModerationResponse; -import com.huaweicloud.sdk.moderation.v2.model.RunModerationAudioRequest; -import com.huaweicloud.sdk.moderation.v2.model.RunModerationAudioResponse; -import com.huaweicloud.sdk.moderation.v2.model.RunTaskSumbitRequest; -import com.huaweicloud.sdk.moderation.v2.model.RunTaskSumbitResponse; -import com.huaweicloud.sdk.moderation.v2.model.RunTextModerationRequest; -import com.huaweicloud.sdk.moderation.v2.model.RunTextModerationResponse; - -public class ModerationClient { - - protected HcClient hcClient; - - public ModerationClient(HcClient hcClient) { - this.hcClient = hcClient; - } - - public static ClientBuilder newBuilder() { - ClientBuilder clientBuilder = new ClientBuilder<>(ModerationClient::new); - return clientBuilder; - } - - /** - * 处理结果查询 - * - * 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 - * > 任务最长保留时间为30分钟,过期后会被清理掉。建议在任务提交后,每30s进行一次周期查询。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunCheckResultRequest 请求对象 - * @return RunCheckResultResponse - */ - public RunCheckResultResponse runCheckResult(RunCheckResultRequest request) { - return hcClient.syncInvokeHttp(request, ModerationMeta.runCheckResult); - } - - /** - * 处理结果查询 - * - * 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 - * > 任务最长保留时间为30分钟,过期后会被清理掉。建议在任务提交后,每30s进行一次周期查询。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunCheckResultRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker runCheckResultInvoker( - RunCheckResultRequest request) { - return new SyncInvoker<>(request, ModerationMeta.runCheckResult, hcClient); - } - - /** - * 任务列表查询 - * - * 查询批量图像内容审核任务列表,可通过指定任务状态查询来对任务列表进行过滤。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunCheckTaskJobsRequest 请求对象 - * @return RunCheckTaskJobsResponse - */ - public RunCheckTaskJobsResponse runCheckTaskJobs(RunCheckTaskJobsRequest request) { - return hcClient.syncInvokeHttp(request, ModerationMeta.runCheckTaskJobs); - } - - /** - * 任务列表查询 - * - * 查询批量图像内容审核任务列表,可通过指定任务状态查询来对任务列表进行过滤。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunCheckTaskJobsRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker runCheckTaskJobsInvoker( - RunCheckTaskJobsRequest request) { - return new SyncInvoker<>(request, ModerationMeta.runCheckTaskJobs, hcClient); - } - - /** - * 图像内容审核(批量) - * - * 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunImageBatchModerationRequest 请求对象 - * @return RunImageBatchModerationResponse - */ - public RunImageBatchModerationResponse runImageBatchModeration(RunImageBatchModerationRequest request) { - return hcClient.syncInvokeHttp(request, ModerationMeta.runImageBatchModeration); - } - - /** - * 图像内容审核(批量) - * - * 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunImageBatchModerationRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker runImageBatchModerationInvoker( - RunImageBatchModerationRequest request) { - return new SyncInvoker<>(request, ModerationMeta.runImageBatchModeration, hcClient); - } - - /** - * 图像内容审核 - * - * 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunImageModerationRequest 请求对象 - * @return RunImageModerationResponse - */ - public RunImageModerationResponse runImageModeration(RunImageModerationRequest request) { - return hcClient.syncInvokeHttp(request, ModerationMeta.runImageModeration); - } - - /** - * 图像内容审核 - * - * 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunImageModerationRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker runImageModerationInvoker( - RunImageModerationRequest request) { - return new SyncInvoker<>(request, ModerationMeta.runImageModeration, hcClient); - } - - /** - * 语音内容审核 - * - * 分析并识别用户上传的语音内容是否有敏感内容(如色情、政治等),并将识别结果 返回给用户。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunModerationAudioRequest 请求对象 - * @return RunModerationAudioResponse - */ - public RunModerationAudioResponse runModerationAudio(RunModerationAudioRequest request) { - return hcClient.syncInvokeHttp(request, ModerationMeta.runModerationAudio); - } - - /** - * 语音内容审核 - * - * 分析并识别用户上传的语音内容是否有敏感内容(如色情、政治等),并将识别结果 返回给用户。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunModerationAudioRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker runModerationAudioInvoker( - RunModerationAudioRequest request) { - return new SyncInvoker<>(request, ModerationMeta.runModerationAudio, hcClient); - } - - /** - * 任务提交 - * - * 提交批量图像内容审核任务,返回任务标识,任务标识可用于查询任务结果。此接口为异步接口,相对于批量接口,支持更大图片列表批次。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunTaskSumbitRequest 请求对象 - * @return RunTaskSumbitResponse - */ - public RunTaskSumbitResponse runTaskSumbit(RunTaskSumbitRequest request) { - return hcClient.syncInvokeHttp(request, ModerationMeta.runTaskSumbit); - } - - /** - * 任务提交 - * - * 提交批量图像内容审核任务,返回任务标识,任务标识可用于查询任务结果。此接口为异步接口,相对于批量接口,支持更大图片列表批次。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunTaskSumbitRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker runTaskSumbitInvoker(RunTaskSumbitRequest request) { - return new SyncInvoker<>(request, ModerationMeta.runTaskSumbit, hcClient); - } - - /** - * 文本内容审核 - * - * 分析并识别用户上传的文本内容是否有敏感内容(如色情、政治等),并将识别结果返回给用户。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunTextModerationRequest 请求对象 - * @return RunTextModerationResponse - */ - public RunTextModerationResponse runTextModeration(RunTextModerationRequest request) { - return hcClient.syncInvokeHttp(request, ModerationMeta.runTextModeration); - } - - /** - * 文本内容审核 - * - * 分析并识别用户上传的文本内容是否有敏感内容(如色情、政治等),并将识别结果返回给用户。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request RunTextModerationRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker runTextModerationInvoker( - RunTextModerationRequest request) { - return new SyncInvoker<>(request, ModerationMeta.runTextModeration, hcClient); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/ModerationMeta.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/ModerationMeta.java deleted file mode 100644 index c32f7ec4a5..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/ModerationMeta.java +++ /dev/null @@ -1,202 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2; - -import com.huaweicloud.sdk.core.TypeCasts; -import com.huaweicloud.sdk.core.http.FieldExistence; -import com.huaweicloud.sdk.core.http.HttpMethod; -import com.huaweicloud.sdk.core.http.HttpRequestDef; -import com.huaweicloud.sdk.core.http.LocationType; -import com.huaweicloud.sdk.moderation.v2.model.ImageBatchModerationReq; -import com.huaweicloud.sdk.moderation.v2.model.ImageDetectionReq; -import com.huaweicloud.sdk.moderation.v2.model.RunCheckResultRequest; -import com.huaweicloud.sdk.moderation.v2.model.RunCheckResultResponse; -import com.huaweicloud.sdk.moderation.v2.model.RunCheckTaskJobsRequest; -import com.huaweicloud.sdk.moderation.v2.model.RunCheckTaskJobsResponse; -import com.huaweicloud.sdk.moderation.v2.model.RunImageBatchModerationRequest; -import com.huaweicloud.sdk.moderation.v2.model.RunImageBatchModerationResponse; -import com.huaweicloud.sdk.moderation.v2.model.RunImageModerationRequest; -import com.huaweicloud.sdk.moderation.v2.model.RunImageModerationResponse; -import com.huaweicloud.sdk.moderation.v2.model.RunModerationAudioRequest; -import com.huaweicloud.sdk.moderation.v2.model.RunModerationAudioRequestBody; -import com.huaweicloud.sdk.moderation.v2.model.RunModerationAudioResponse; -import com.huaweicloud.sdk.moderation.v2.model.RunTaskSumbitRequest; -import com.huaweicloud.sdk.moderation.v2.model.RunTaskSumbitResponse; -import com.huaweicloud.sdk.moderation.v2.model.RunTextModerationRequest; -import com.huaweicloud.sdk.moderation.v2.model.RunTextModerationResponse; -import com.huaweicloud.sdk.moderation.v2.model.TaskSumbitReq; -import com.huaweicloud.sdk.moderation.v2.model.TextDetectionReq; - -@SuppressWarnings("unchecked") -public class ModerationMeta { - - public static final HttpRequestDef runCheckResult = - genForRunCheckResult(); - - private static HttpRequestDef genForRunCheckResult() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.GET, RunCheckResultRequest.class, RunCheckResultResponse.class) - .withName("RunCheckResult") - .withUri("/v2/{project_id}/moderation/image/batch") - .withContentType("application/json"); - - // requests - builder.withRequestField("job_id", - LocationType.Query, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(RunCheckResultRequest::getJobId, RunCheckResultRequest::setJobId)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef runCheckTaskJobs = - genForRunCheckTaskJobs(); - - private static HttpRequestDef genForRunCheckTaskJobs() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.GET, RunCheckTaskJobsRequest.class, RunCheckTaskJobsResponse.class) - .withName("RunCheckTaskJobs") - .withUri("/v2/{project_id}/moderation/image/batch/jobs") - .withContentType("application/json"); - - // requests - builder.withRequestField("status", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(RunCheckTaskJobsRequest.StatusEnum.class), - f -> f.withMarshaller(RunCheckTaskJobsRequest::getStatus, RunCheckTaskJobsRequest::setStatus)); - builder.withRequestField("offset", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Integer.class), - f -> f.withMarshaller(RunCheckTaskJobsRequest::getOffset, RunCheckTaskJobsRequest::setOffset)); - builder.withRequestField("limit", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Integer.class), - f -> f.withMarshaller(RunCheckTaskJobsRequest::getLimit, RunCheckTaskJobsRequest::setLimit)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef runImageBatchModeration = - genForRunImageBatchModeration(); - - private static HttpRequestDef genForRunImageBatchModeration() { - // basic - HttpRequestDef.Builder builder = HttpRequestDef - .builder(HttpMethod.POST, RunImageBatchModerationRequest.class, RunImageBatchModerationResponse.class) - .withName("RunImageBatchModeration") - .withUri("/v2/{project_id}/moderation/image/batch") - .withContentType("application/json;charset=UTF-8"); - - // requests - builder.withRequestField("body", - LocationType.Body, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(ImageBatchModerationReq.class), - f -> f.withMarshaller(RunImageBatchModerationRequest::getBody, RunImageBatchModerationRequest::setBody)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef runImageModeration = - genForRunImageModeration(); - - private static HttpRequestDef genForRunImageModeration() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.POST, RunImageModerationRequest.class, RunImageModerationResponse.class) - .withName("RunImageModeration") - .withUri("/v2/{project_id}/moderation/image") - .withContentType("application/json;charset=UTF-8"); - - // requests - builder.withRequestField("body", - LocationType.Body, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(ImageDetectionReq.class), - f -> f.withMarshaller(RunImageModerationRequest::getBody, RunImageModerationRequest::setBody)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef runModerationAudio = - genForRunModerationAudio(); - - private static HttpRequestDef genForRunModerationAudio() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.POST, RunModerationAudioRequest.class, RunModerationAudioResponse.class) - .withName("RunModerationAudio") - .withUri("/v2/{project_id}/moderation/voice") - .withContentType("application/json;charset=UTF-8"); - - // requests - builder.withRequestField("body", - LocationType.Body, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(RunModerationAudioRequestBody.class), - f -> f.withMarshaller(RunModerationAudioRequest::getBody, RunModerationAudioRequest::setBody)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef runTaskSumbit = - genForRunTaskSumbit(); - - private static HttpRequestDef genForRunTaskSumbit() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.POST, RunTaskSumbitRequest.class, RunTaskSumbitResponse.class) - .withName("RunTaskSumbit") - .withUri("/v2/{project_id}/moderation/image/batch/jobs") - .withContentType("application/json;charset=UTF-8"); - - // requests - builder.withRequestField("body", - LocationType.Body, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(TaskSumbitReq.class), - f -> f.withMarshaller(RunTaskSumbitRequest::getBody, RunTaskSumbitRequest::setBody)); - - // response - - return builder.build(); - } - - public static final HttpRequestDef runTextModeration = - genForRunTextModeration(); - - private static HttpRequestDef genForRunTextModeration() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.POST, RunTextModerationRequest.class, RunTextModerationResponse.class) - .withName("RunTextModeration") - .withUri("/v2/{project_id}/moderation/text") - .withContentType("application/json;charset=UTF-8"); - - // requests - builder.withRequestField("body", - LocationType.Body, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(TextDetectionReq.class), - f -> f.withMarshaller(RunTextModerationRequest::getBody, RunTextModerationRequest::setBody)); - - // response - - return builder.build(); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/CheckResultItemsBody.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/CheckResultItemsBody.java deleted file mode 100644 index 2fceb222df..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/CheckResultItemsBody.java +++ /dev/null @@ -1,242 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * - */ -public class CheckResultItemsBody { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "url") - - private String url; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "suggestion") - - private String suggestion; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "detail") - - private ImageDetectionResultDetail detail; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "category_suggestions") - - private Map categorySuggestions = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "ocr_text") - - private String ocrText; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "error_code") - - private String errorCode; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "error_msg") - - private String errorMsg; - - public CheckResultItemsBody withUrl(String url) { - this.url = url; - return this; - } - - /** - * 图片的URL路径。 - * @return url - */ - public String getUrl() { - return url; - } - - public void setUrl(String url) { - this.url = url; - } - - public CheckResultItemsBody withSuggestion(String suggestion) { - this.suggestion = suggestion; - return this; - } - - /** - * 检测结果是否通过。 - block:包含敏感信息,不通过 - pass:不包含敏感信息,通过 - review:需要人工复检 > 当同时检测多个场景时,suggestion的值以最可能包含敏感信息的场景为准。即任一场景出现了block则总的suggestion为block,所有场景都pass时suggestion为pass,这两种情况之外则一定有场景需要review,此时suggestion为review。 - * @return suggestion - */ - public String getSuggestion() { - return suggestion; - } - - public void setSuggestion(String suggestion) { - this.suggestion = suggestion; - } - - public CheckResultItemsBody withDetail(ImageDetectionResultDetail detail) { - this.detail = detail; - return this; - } - - public CheckResultItemsBody withDetail(Consumer detailSetter) { - if (this.detail == null) { - this.detail = new ImageDetectionResultDetail(); - detailSetter.accept(this.detail); - } - - return this; - } - - /** - * Get detail - * @return detail - */ - public ImageDetectionResultDetail getDetail() { - return detail; - } - - public void setDetail(ImageDetectionResultDetail detail) { - this.detail = detail; - } - - public CheckResultItemsBody withCategorySuggestions(Map categorySuggestions) { - this.categorySuggestions = categorySuggestions; - return this; - } - - public CheckResultItemsBody putCategorySuggestionsItem(String key, String categorySuggestionsItem) { - if (this.categorySuggestions == null) { - this.categorySuggestions = new HashMap<>(); - } - this.categorySuggestions.put(key, categorySuggestionsItem); - return this; - } - - public CheckResultItemsBody withCategorySuggestions(Consumer> categorySuggestionsSetter) { - if (this.categorySuggestions == null) { - this.categorySuggestions = new HashMap<>(); - } - categorySuggestionsSetter.accept(this.categorySuggestions); - return this; - } - - /** - * 具体每个场景的检测结果。 block:包含敏感信息,不通过 pass:不包含敏感信息,通过 review:需要人工复检 - * @return categorySuggestions - */ - public Map getCategorySuggestions() { - return categorySuggestions; - } - - public void setCategorySuggestions(Map categorySuggestions) { - this.categorySuggestions = categorySuggestions; - } - - public CheckResultItemsBody withOcrText(String ocrText) { - this.ocrText = ocrText; - return this; - } - - /** - * ocr识别结果。 - * @return ocrText - */ - public String getOcrText() { - return ocrText; - } - - public void setOcrText(String ocrText) { - this.ocrText = ocrText; - } - - public CheckResultItemsBody withErrorCode(String errorCode) { - this.errorCode = errorCode; - return this; - } - - /** - * 图像审核失败时错误码 - * @return errorCode - */ - public String getErrorCode() { - return errorCode; - } - - public void setErrorCode(String errorCode) { - this.errorCode = errorCode; - } - - public CheckResultItemsBody withErrorMsg(String errorMsg) { - this.errorMsg = errorMsg; - return this; - } - - /** - * 图像审核失败时错误信息 - * @return errorMsg - */ - public String getErrorMsg() { - return errorMsg; - } - - public void setErrorMsg(String errorMsg) { - this.errorMsg = errorMsg; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - CheckResultItemsBody that = (CheckResultItemsBody) obj; - return Objects.equals(this.url, that.url) && Objects.equals(this.suggestion, that.suggestion) - && Objects.equals(this.detail, that.detail) - && Objects.equals(this.categorySuggestions, that.categorySuggestions) - && Objects.equals(this.ocrText, that.ocrText) && Objects.equals(this.errorCode, that.errorCode) - && Objects.equals(this.errorMsg, that.errorMsg); - } - - @Override - public int hashCode() { - return Objects.hash(url, suggestion, detail, categorySuggestions, ocrText, errorCode, errorMsg); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CheckResultItemsBody {\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); - sb.append(" suggestion: ").append(toIndentedString(suggestion)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); - sb.append(" categorySuggestions: ").append(toIndentedString(categorySuggestions)).append("\n"); - sb.append(" ocrText: ").append(toIndentedString(ocrText)).append("\n"); - sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); - sb.append(" errorMsg: ").append(toIndentedString(errorMsg)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/CheckResultResultBody.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/CheckResultResultBody.java deleted file mode 100644 index 08a62151d6..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/CheckResultResultBody.java +++ /dev/null @@ -1,185 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * - */ -public class CheckResultResultBody { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "job_id") - - private String jobId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "status") - - private String status; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "create_time") - - private String createTime; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "update_time") - - private String updateTime; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "items") - - private List items = null; - - public CheckResultResultBody withJobId(String jobId) { - this.jobId = jobId; - return this; - } - - /** - * 任务标识。 - * @return jobId - */ - public String getJobId() { - return jobId; - } - - public void setJobId(String jobId) { - this.jobId = jobId; - } - - public CheckResultResultBody withStatus(String status) { - this.status = status; - return this; - } - - /** - * 任务状态。 created:已创建 running:正在处理 finish:已完成 failed:处理失败 - * @return status - */ - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public CheckResultResultBody withCreateTime(String createTime) { - this.createTime = createTime; - return this; - } - - /** - * 任务创建的时间。例如:2018-01-02T15:03:04Z - * @return createTime - */ - public String getCreateTime() { - return createTime; - } - - public void setCreateTime(String createTime) { - this.createTime = createTime; - } - - public CheckResultResultBody withUpdateTime(String updateTime) { - this.updateTime = updateTime; - return this; - } - - /** - * 任务最近更新的时间。例如:2018-01-02T15:03:04Z - * @return updateTime - */ - public String getUpdateTime() { - return updateTime; - } - - public void setUpdateTime(String updateTime) { - this.updateTime = updateTime; - } - - public CheckResultResultBody withItems(List items) { - this.items = items; - return this; - } - - public CheckResultResultBody addItemsItem(CheckResultItemsBody itemsItem) { - if (this.items == null) { - this.items = new ArrayList<>(); - } - this.items.add(itemsItem); - return this; - } - - public CheckResultResultBody withItems(Consumer> itemsSetter) { - if (this.items == null) { - this.items = new ArrayList<>(); - } - itemsSetter.accept(this.items); - return this; - } - - /** - * 图片内容检测的结果列表。 - * @return items - */ - public List getItems() { - return items; - } - - public void setItems(List items) { - this.items = items; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - CheckResultResultBody that = (CheckResultResultBody) obj; - return Objects.equals(this.jobId, that.jobId) && Objects.equals(this.status, that.status) - && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) - && Objects.equals(this.items, that.items); - } - - @Override - public int hashCode() { - return Objects.hash(jobId, status, createTime, updateTime, items); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CheckResultResultBody {\n"); - sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); - sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); - sb.append(" items: ").append(toIndentedString(items)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/CheckTaskJobsItemsBody.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/CheckTaskJobsItemsBody.java deleted file mode 100644 index f99505b55d..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/CheckTaskJobsItemsBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * CheckTaskJobsItemsBody - */ -public class CheckTaskJobsItemsBody { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "job_id") - - private String jobId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "status") - - private String status; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "create_time") - - private String createTime; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "update_time") - - private String updateTime; - - public CheckTaskJobsItemsBody withJobId(String jobId) { - this.jobId = jobId; - return this; - } - - /** - * 任务标识。 - * @return jobId - */ - public String getJobId() { - return jobId; - } - - public void setJobId(String jobId) { - this.jobId = jobId; - } - - public CheckTaskJobsItemsBody withStatus(String status) { - this.status = status; - return this; - } - - /** - * 任务状态如下: - created 已创建 - running 正在处理 - finish 已完成 - failed 处理失败 - * @return status - */ - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public CheckTaskJobsItemsBody withCreateTime(String createTime) { - this.createTime = createTime; - return this; - } - - /** - * 任务创建的时间。例如:2018-01-02T15:03:04Z - * @return createTime - */ - public String getCreateTime() { - return createTime; - } - - public void setCreateTime(String createTime) { - this.createTime = createTime; - } - - public CheckTaskJobsItemsBody withUpdateTime(String updateTime) { - this.updateTime = updateTime; - return this; - } - - /** - * 任务最近更新的时间。例如:2018-01-02T15:03:04Z - * @return updateTime - */ - public String getUpdateTime() { - return updateTime; - } - - public void setUpdateTime(String updateTime) { - this.updateTime = updateTime; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - CheckTaskJobsItemsBody that = (CheckTaskJobsItemsBody) obj; - return Objects.equals(this.jobId, that.jobId) && Objects.equals(this.status, that.status) - && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime); - } - - @Override - public int hashCode() { - return Objects.hash(jobId, status, createTime, updateTime); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CheckTaskJobsItemsBody {\n"); - sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); - sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageBatchModerationReq.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageBatchModerationReq.java deleted file mode 100644 index 8591b16f49..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageBatchModerationReq.java +++ /dev/null @@ -1,335 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonValue; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * - */ -public class ImageBatchModerationReq { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "urls") - - private List urls = null; - - /** - * Gets or Sets categories - */ - public static final class CategoriesEnum { - - /** - * Enum POLITICS for value: "politics" - */ - public static final CategoriesEnum POLITICS = new CategoriesEnum("politics"); - - /** - * Enum TERRORISM for value: "terrorism" - */ - public static final CategoriesEnum TERRORISM = new CategoriesEnum("terrorism"); - - /** - * Enum PORN for value: "porn" - */ - public static final CategoriesEnum PORN = new CategoriesEnum("porn"); - - /** - * Enum AD for value: "ad" - */ - public static final CategoriesEnum AD = new CategoriesEnum("ad"); - - /** - * Enum ALL for value: "all" - */ - public static final CategoriesEnum ALL = new CategoriesEnum("all"); - - private static final Map STATIC_FIELDS = createStaticFields(); - - private static Map createStaticFields() { - Map map = new HashMap<>(); - map.put("politics", POLITICS); - map.put("terrorism", TERRORISM); - map.put("porn", PORN); - map.put("ad", AD); - map.put("all", ALL); - return Collections.unmodifiableMap(map); - } - - private String value; - - CategoriesEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static CategoriesEnum fromValue(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new CategoriesEnum(value)); - } - - public static CategoriesEnum valueOf(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) - .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); - } - - @Override - public boolean equals(Object obj) { - if (obj instanceof CategoriesEnum) { - return this.value.equals(((CategoriesEnum) obj).value); - } - return false; - } - - @Override - public int hashCode() { - return this.value.hashCode(); - } - } - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "categories") - - private List categories = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "threshold") - - private Double threshold; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "moderation_rule") - - private String moderationRule; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "ad_categories") - - private List adCategories = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "show_ocr_text") - - private Boolean showOcrText; - - public ImageBatchModerationReq withUrls(List urls) { - this.urls = urls; - return this; - } - - public ImageBatchModerationReq addUrlsItem(String urlsItem) { - if (this.urls == null) { - this.urls = new ArrayList<>(); - } - this.urls.add(urlsItem); - return this; - } - - public ImageBatchModerationReq withUrls(Consumer> urlsSetter) { - if (this.urls == null) { - this.urls = new ArrayList<>(); - } - urlsSetter.accept(this.urls); - return this; - } - - /** - * 图片的URL路径,目前支持: - 公网HTTP/HTTPS URL - 华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[配置OBS访问权限](https://support.huaweicloud.com/api-moderation/moderation_03_0020.html)。 > 图片的URL路径列表最多支持10个URL地址。接口响应时间依赖图片的下载时间,如果图片下载时间过长,会返回接口调用失败。请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。 - * @return urls - */ - public List getUrls() { - return urls; - } - - public void setUrls(List urls) { - this.urls = urls; - } - - public ImageBatchModerationReq withCategories(List categories) { - this.categories = categories; - return this; - } - - public ImageBatchModerationReq addCategoriesItem(CategoriesEnum categoriesItem) { - if (this.categories == null) { - this.categories = new ArrayList<>(); - } - this.categories.add(categoriesItem); - return this; - } - - public ImageBatchModerationReq withCategories(Consumer> categoriesSetter) { - if (this.categories == null) { - this.categories = new ArrayList<>(); - } - categoriesSetter.accept(this.categories); - return this; - } - - /** - * 检测场景: - politics:是否涉及政治人物的检测。 - terrorism:是否包含涉政暴恐元素的检测。 - porn:是否包含涉黄内容元素的检测。 - ad:是否包含广告的检测(公测特性)。 - all:包含politics、terrorism和porn三种场景的检测。 可通过配置上述场景,来完对应场景元素的检测。 为空或无此参数表示politics和terrorism都检测,但不包含porn场景。 > 每个检测场景的检测次数会分类统计。 - * @return categories - */ - public List getCategories() { - return categories; - } - - public void setCategories(List categories) { - this.categories = categories; - } - - public ImageBatchModerationReq withThreshold(Double threshold) { - this.threshold = threshold; - return this; - } - - /** - * - 结果过滤门限,只有置信度不低于此门限的结果才会呈现在detail的列表中,取值范围 0-1,当未设置此值时各个检测场景会使用各自的默认值。 - politics检测场景的默认值为0.95。 - terrorism检测场景的默认值为0。 - ad检测场景的默认值为0。 - 无特殊需求直接不传此参数或像示例中一样值设为空字符串即可。 > - 如果检测场景中的最高置信度也未达到threshold,则结果列表为空;反之threshold过小,则会使结果列表中内容过多。 > - threshold参数不支持porn场景筛选。 > - threshold参数不会影响响应中的suggestion。 - * @return threshold - */ - public Double getThreshold() { - return threshold; - } - - public void setThreshold(Double threshold) { - this.threshold = threshold; - } - - public ImageBatchModerationReq withModerationRule(String moderationRule) { - this.moderationRule = moderationRule; - return this; - } - - /** - * 图像审核规则名称,默认使用default规则。 审核规则的创建和使用请参见[配置审核规则](https://support.huaweicloud.com/api-moderation/moderation_03_0063.html)。 - * @return moderationRule - */ - public String getModerationRule() { - return moderationRule; - } - - public void setModerationRule(String moderationRule) { - this.moderationRule = moderationRule; - } - - public ImageBatchModerationReq withAdCategories(List adCategories) { - this.adCategories = adCategories; - return this; - } - - public ImageBatchModerationReq addAdCategoriesItem(String adCategoriesItem) { - if (this.adCategories == null) { - this.adCategories = new ArrayList<>(); - } - this.adCategories.add(adCategoriesItem); - return this; - } - - public ImageBatchModerationReq withAdCategories(Consumer> adCategoriesSetter) { - if (this.adCategories == null) { - this.adCategories = new ArrayList<>(); - } - adCategoriesSetter.accept(this.adCategories); - return this; - } - - /** - * 图文审核检测场景。当categories包含ad时,该参数生效。 当前支持的场景有系统场景和用户自定义场景: - 系统场景为: - qr_code:二维码 - politics:涉政 - porn:涉黄 - ad:广告 - abuse:辱骂 - contraband:违禁品 - 用户自定义场景为:自定义黑名单词库。 自定义词库的创建和使用请参见[配置自定义词库](https://support.huaweicloud.com/api-moderation/moderation_03_0027.html)。 - * @return adCategories - */ - public List getAdCategories() { - return adCategories; - } - - public void setAdCategories(List adCategories) { - this.adCategories = adCategories; - } - - public ImageBatchModerationReq withShowOcrText(Boolean showOcrText) { - this.showOcrText = showOcrText; - return this; - } - - /** - * 是否返回ocr识别的结果。 - * @return showOcrText - */ - public Boolean getShowOcrText() { - return showOcrText; - } - - public void setShowOcrText(Boolean showOcrText) { - this.showOcrText = showOcrText; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ImageBatchModerationReq that = (ImageBatchModerationReq) obj; - return Objects.equals(this.urls, that.urls) && Objects.equals(this.categories, that.categories) - && Objects.equals(this.threshold, that.threshold) - && Objects.equals(this.moderationRule, that.moderationRule) - && Objects.equals(this.adCategories, that.adCategories) - && Objects.equals(this.showOcrText, that.showOcrText); - } - - @Override - public int hashCode() { - return Objects.hash(urls, categories, threshold, moderationRule, adCategories, showOcrText); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ImageBatchModerationReq {\n"); - sb.append(" urls: ").append(toIndentedString(urls)).append("\n"); - sb.append(" categories: ").append(toIndentedString(categories)).append("\n"); - sb.append(" threshold: ").append(toIndentedString(threshold)).append("\n"); - sb.append(" moderationRule: ").append(toIndentedString(moderationRule)).append("\n"); - sb.append(" adCategories: ").append(toIndentedString(adCategories)).append("\n"); - sb.append(" showOcrText: ").append(toIndentedString(showOcrText)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageBatchModerationResultBody.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageBatchModerationResultBody.java deleted file mode 100644 index 5d40fbcff1..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageBatchModerationResultBody.java +++ /dev/null @@ -1,224 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; -import java.util.function.Consumer; - -/** - * ImageBatchModerationResultBody - */ -public class ImageBatchModerationResultBody { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "url") - - private String url; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "suggestion") - - private String suggestion; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "detail") - - private ImageDetectionResultDetail detail; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "category_suggestions") - - private Object categorySuggestions; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "ocr_text") - - private String ocrText; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "error_code") - - private String errorCode; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "error_msg") - - private String errorMsg; - - public ImageBatchModerationResultBody withUrl(String url) { - this.url = url; - return this; - } - - /** - * 图片的URL路径。 - * @return url - */ - public String getUrl() { - return url; - } - - public void setUrl(String url) { - this.url = url; - } - - public ImageBatchModerationResultBody withSuggestion(String suggestion) { - this.suggestion = suggestion; - return this; - } - - /** - * 检测结果是否通过。 - block:包含敏感信息,不通过 - pass:不包含敏感信息,通过 - review:需要人工复检 > 当同时检测多个场景时,suggestion的值以最可能包含敏感信息的场景为准。即任一场景出现了block则总的suggestion为block,所有场景都pass时suggestion为pass,这两种情况之外则一定有场景需要review,此时suggestion为review。 - * @return suggestion - */ - public String getSuggestion() { - return suggestion; - } - - public void setSuggestion(String suggestion) { - this.suggestion = suggestion; - } - - public ImageBatchModerationResultBody withDetail(ImageDetectionResultDetail detail) { - this.detail = detail; - return this; - } - - public ImageBatchModerationResultBody withDetail(Consumer detailSetter) { - if (this.detail == null) { - this.detail = new ImageDetectionResultDetail(); - detailSetter.accept(this.detail); - } - - return this; - } - - /** - * Get detail - * @return detail - */ - public ImageDetectionResultDetail getDetail() { - return detail; - } - - public void setDetail(ImageDetectionResultDetail detail) { - this.detail = detail; - } - - public ImageBatchModerationResultBody withCategorySuggestions(Object categorySuggestions) { - this.categorySuggestions = categorySuggestions; - return this; - } - - /** - * 具体每个场景的检测结果。 block:包含敏感信息,不通过 pass:不包含敏感信息,通过 review:需要人工复检 - * @return categorySuggestions - */ - public Object getCategorySuggestions() { - return categorySuggestions; - } - - public void setCategorySuggestions(Object categorySuggestions) { - this.categorySuggestions = categorySuggestions; - } - - public ImageBatchModerationResultBody withOcrText(String ocrText) { - this.ocrText = ocrText; - return this; - } - - /** - * ocr识别结果。 - * @return ocrText - */ - public String getOcrText() { - return ocrText; - } - - public void setOcrText(String ocrText) { - this.ocrText = ocrText; - } - - public ImageBatchModerationResultBody withErrorCode(String errorCode) { - this.errorCode = errorCode; - return this; - } - - /** - * 图像审核失败时错误码 - * @return errorCode - */ - public String getErrorCode() { - return errorCode; - } - - public void setErrorCode(String errorCode) { - this.errorCode = errorCode; - } - - public ImageBatchModerationResultBody withErrorMsg(String errorMsg) { - this.errorMsg = errorMsg; - return this; - } - - /** - * 图像审核失败时错误信息 - * @return errorMsg - */ - public String getErrorMsg() { - return errorMsg; - } - - public void setErrorMsg(String errorMsg) { - this.errorMsg = errorMsg; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ImageBatchModerationResultBody that = (ImageBatchModerationResultBody) obj; - return Objects.equals(this.url, that.url) && Objects.equals(this.suggestion, that.suggestion) - && Objects.equals(this.detail, that.detail) - && Objects.equals(this.categorySuggestions, that.categorySuggestions) - && Objects.equals(this.ocrText, that.ocrText) && Objects.equals(this.errorCode, that.errorCode) - && Objects.equals(this.errorMsg, that.errorMsg); - } - - @Override - public int hashCode() { - return Objects.hash(url, suggestion, detail, categorySuggestions, ocrText, errorCode, errorMsg); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ImageBatchModerationResultBody {\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); - sb.append(" suggestion: ").append(toIndentedString(suggestion)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); - sb.append(" categorySuggestions: ").append(toIndentedString(categorySuggestions)).append("\n"); - sb.append(" ocrText: ").append(toIndentedString(ocrText)).append("\n"); - sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); - sb.append(" errorMsg: ").append(toIndentedString(errorMsg)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageDetectionReq.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageDetectionReq.java deleted file mode 100644 index 0b9e1c34f1..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageDetectionReq.java +++ /dev/null @@ -1,341 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonValue; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * - */ -public class ImageDetectionReq { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "url") - - private String url; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "image") - - private String image; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "moderation_rule") - - private String moderationRule; - - /** - * Gets or Sets categories - */ - public static final class CategoriesEnum { - - /** - * Enum POLITICS for value: "politics" - */ - public static final CategoriesEnum POLITICS = new CategoriesEnum("politics"); - - /** - * Enum TERRORISM for value: "terrorism" - */ - public static final CategoriesEnum TERRORISM = new CategoriesEnum("terrorism"); - - /** - * Enum PORN for value: "porn" - */ - public static final CategoriesEnum PORN = new CategoriesEnum("porn"); - - /** - * Enum AD for value: "ad" - */ - public static final CategoriesEnum AD = new CategoriesEnum("ad"); - - /** - * Enum ALL for value: "all" - */ - public static final CategoriesEnum ALL = new CategoriesEnum("all"); - - private static final Map STATIC_FIELDS = createStaticFields(); - - private static Map createStaticFields() { - Map map = new HashMap<>(); - map.put("politics", POLITICS); - map.put("terrorism", TERRORISM); - map.put("porn", PORN); - map.put("ad", AD); - map.put("all", ALL); - return Collections.unmodifiableMap(map); - } - - private String value; - - CategoriesEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static CategoriesEnum fromValue(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new CategoriesEnum(value)); - } - - public static CategoriesEnum valueOf(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) - .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); - } - - @Override - public boolean equals(Object obj) { - if (obj instanceof CategoriesEnum) { - return this.value.equals(((CategoriesEnum) obj).value); - } - return false; - } - - @Override - public int hashCode() { - return this.value.hashCode(); - } - } - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "categories") - - private List categories = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "ad_categories") - - private List adCategories = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "threshold") - - private Float threshold; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "show_ocr_text") - - private Boolean showOcrText; - - public ImageDetectionReq withUrl(String url) { - this.url = url; - return this; - } - - /** - * 与image二选一 图片的URL路径,目前支持: - 公网HTTP/HTTPS URL - 华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[配置OBS访问权限](https://support.huaweicloud.com/api-moderation/moderation_03_0020.html)。 > - 接口响应时间依赖图片的下载时间,如果图片下载时间过长,会返回接口调用失败。请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。 - * @return url - */ - public String getUrl() { - return url; - } - - public void setUrl(String url) { - this.url = url; - } - - public ImageDetectionReq withImage(String image) { - this.image = image; - return this; - } - - /** - * 与url二选一 图片文件Base64编码字符串。要求base64编码后大小不超过10M。 政治人物检测人脸部分不小于50*50像素。 支持JPEG/PNG/BMP/WEBP/GIF格式。 - * @return image - */ - public String getImage() { - return image; - } - - public void setImage(String image) { - this.image = image; - } - - public ImageDetectionReq withModerationRule(String moderationRule) { - this.moderationRule = moderationRule; - return this; - } - - /** - * 图像审核规则名称,默认使用default规则。 > 审核规则的创建和使用请参见[配置审核规则](https://support.huaweicloud.com/api-moderation/moderation_03_0063.html) - * @return moderationRule - */ - public String getModerationRule() { - return moderationRule; - } - - public void setModerationRule(String moderationRule) { - this.moderationRule = moderationRule; - } - - public ImageDetectionReq withCategories(List categories) { - this.categories = categories; - return this; - } - - public ImageDetectionReq addCategoriesItem(CategoriesEnum categoriesItem) { - if (this.categories == null) { - this.categories = new ArrayList<>(); - } - this.categories.add(categoriesItem); - return this; - } - - public ImageDetectionReq withCategories(Consumer> categoriesSetter) { - if (this.categories == null) { - this.categories = new ArrayList<>(); - } - categoriesSetter.accept(this.categories); - return this; - } - - /** - * 检测场景: - politics:是否涉及政治人物的检测。 - terrorism:是否包含涉政暴恐元素的检测。 - porn:是否包含涉黄内容元素的检测。 - ad:是否包含广告的检测(公测特性)。 - all:包含politics、terrorism和porn三种场景的检测。 可通过配置上述场景,来完对应场景元素的检测。 为空或无此参数表示politics和terrorism都检测,但不包含porn场景。 > 每个检测场景的检测次数会分类统计。 - * @return categories - */ - public List getCategories() { - return categories; - } - - public void setCategories(List categories) { - this.categories = categories; - } - - public ImageDetectionReq withAdCategories(List adCategories) { - this.adCategories = adCategories; - return this; - } - - public ImageDetectionReq addAdCategoriesItem(String adCategoriesItem) { - if (this.adCategories == null) { - this.adCategories = new ArrayList<>(); - } - this.adCategories.add(adCategoriesItem); - return this; - } - - public ImageDetectionReq withAdCategories(Consumer> adCategoriesSetter) { - if (this.adCategories == null) { - this.adCategories = new ArrayList<>(); - } - adCategoriesSetter.accept(this.adCategories); - return this; - } - - /** - * 图文审核检测场景。当categories包含ad时,该参数生效。 当前支持的场景有系统场景和用户自定义场景: - 系统场景为: - qr_code:二维码 - politics:涉政 - porn:涉黄 - ad:广告 - abuse:辱骂 - contraband:违禁品 - 用户自定义场景为:自定义黑名单词库。 > 自定义词库的创建和使用请参见[配置自定义词库](https://support.huaweicloud.com/api-moderation/moderation_03_0020.html)。 - * @return adCategories - */ - public List getAdCategories() { - return adCategories; - } - - public void setAdCategories(List adCategories) { - this.adCategories = adCategories; - } - - public ImageDetectionReq withThreshold(Float threshold) { - this.threshold = threshold; - return this; - } - - /** - * - 结果过滤门限,只有置信度不低于此门限的结果才会呈现在detail的列表中,取值范围 0-1,当未设置此值时各个检测场景会使用各自的默认值。 - politics检测场景的默认值为0.95。 - terrorism检测场景的默认值为0。 - ad检测场景的默认值为0。 - 无特殊需求直接不传此参数或像示例中一样值设为空字符串即可。 > - 如果检测场景中的最高置信度也未达到threshold,则结果列表为空;反之threshold过小,则会使结果列表中内容过多。 > - threshold参数不支持porn场景筛选。 > - threshold参数不会影响响应中的suggestion。 - * @return threshold - */ - public Float getThreshold() { - return threshold; - } - - public void setThreshold(Float threshold) { - this.threshold = threshold; - } - - public ImageDetectionReq withShowOcrText(Boolean showOcrText) { - this.showOcrText = showOcrText; - return this; - } - - /** - * 是否返回ocr识别结果,默认为false。 - * @return showOcrText - */ - public Boolean getShowOcrText() { - return showOcrText; - } - - public void setShowOcrText(Boolean showOcrText) { - this.showOcrText = showOcrText; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ImageDetectionReq that = (ImageDetectionReq) obj; - return Objects.equals(this.url, that.url) && Objects.equals(this.image, that.image) - && Objects.equals(this.moderationRule, that.moderationRule) - && Objects.equals(this.categories, that.categories) && Objects.equals(this.adCategories, that.adCategories) - && Objects.equals(this.threshold, that.threshold) && Objects.equals(this.showOcrText, that.showOcrText); - } - - @Override - public int hashCode() { - return Objects.hash(url, image, moderationRule, categories, adCategories, threshold, showOcrText); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ImageDetectionReq {\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); - sb.append(" image: ").append(toIndentedString(image)).append("\n"); - sb.append(" moderationRule: ").append(toIndentedString(moderationRule)).append("\n"); - sb.append(" categories: ").append(toIndentedString(categories)).append("\n"); - sb.append(" adCategories: ").append(toIndentedString(adCategories)).append("\n"); - sb.append(" threshold: ").append(toIndentedString(threshold)).append("\n"); - sb.append(" showOcrText: ").append(toIndentedString(showOcrText)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageDetectionResultAdDetail.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageDetectionResultAdDetail.java deleted file mode 100644 index 1563bff97d..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageDetectionResultAdDetail.java +++ /dev/null @@ -1,138 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * 广告检测详情 - */ -public class ImageDetectionResultAdDetail { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "confidence") - - private Float confidence; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "label") - - private String label; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "hit_contexts") - - private List hitContexts = null; - - public ImageDetectionResultAdDetail withConfidence(Float confidence) { - this.confidence = confidence; - return this; - } - - /** - * 置信度,取值范围 0-1。 - * @return confidence - */ - public Float getConfidence() { - return confidence; - } - - public void setConfidence(Float confidence) { - this.confidence = confidence; - } - - public ImageDetectionResultAdDetail withLabel(String label) { - this.label = label; - return this; - } - - /** - * ad:label为对应的广告识别结果信息 - 广告场景当前支持label列表如下: - normal:正常 - ad:广告 - 图文审核场景当前支持label列表如下: - normal:正常 - qr_code:二维 - politics:涉政 - porn:涉黄 - ad:广告 - abuse:辱骂 - contraband:违禁品 - 其他自定义黑库名称 - * @return label - */ - public String getLabel() { - return label; - } - - public void setLabel(String label) { - this.label = label; - } - - public ImageDetectionResultAdDetail withHitContexts(List hitContexts) { - this.hitContexts = hitContexts; - return this; - } - - public ImageDetectionResultAdDetail addHitContextsItem(String hitContextsItem) { - if (this.hitContexts == null) { - this.hitContexts = new ArrayList<>(); - } - this.hitContexts.add(hitContextsItem); - return this; - } - - public ImageDetectionResultAdDetail withHitContexts(Consumer> hitContextsSetter) { - if (this.hitContexts == null) { - this.hitContexts = new ArrayList<>(); - } - hitContextsSetter.accept(this.hitContexts); - return this; - } - - /** - * 图文审核场景命中的文本列表。 - * @return hitContexts - */ - public List getHitContexts() { - return hitContexts; - } - - public void setHitContexts(List hitContexts) { - this.hitContexts = hitContexts; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ImageDetectionResultAdDetail that = (ImageDetectionResultAdDetail) obj; - return Objects.equals(this.confidence, that.confidence) && Objects.equals(this.label, that.label) - && Objects.equals(this.hitContexts, that.hitContexts); - } - - @Override - public int hashCode() { - return Objects.hash(confidence, label, hitContexts); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ImageDetectionResultAdDetail {\n"); - sb.append(" confidence: ").append(toIndentedString(confidence)).append("\n"); - sb.append(" label: ").append(toIndentedString(label)).append("\n"); - sb.append(" hitContexts: ").append(toIndentedString(hitContexts)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageDetectionResultBody.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageDetectionResultBody.java deleted file mode 100644 index 09864cd4c9..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageDetectionResultBody.java +++ /dev/null @@ -1,171 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * - */ -public class ImageDetectionResultBody { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "detail") - - private ImageDetectionResultDetail detail; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "suggestion") - - private String suggestion; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "category_suggestions") - - private Map categorySuggestions = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "ocr_text") - - private String ocrText; - - public ImageDetectionResultBody withDetail(ImageDetectionResultDetail detail) { - this.detail = detail; - return this; - } - - public ImageDetectionResultBody withDetail(Consumer detailSetter) { - if (this.detail == null) { - this.detail = new ImageDetectionResultDetail(); - detailSetter.accept(this.detail); - } - - return this; - } - - /** - * Get detail - * @return detail - */ - public ImageDetectionResultDetail getDetail() { - return detail; - } - - public void setDetail(ImageDetectionResultDetail detail) { - this.detail = detail; - } - - public ImageDetectionResultBody withSuggestion(String suggestion) { - this.suggestion = suggestion; - return this; - } - - /** - * 检测结果是否通过。 - block:包含敏感信息,不通过 - pass:不包含敏感信息,通过 - review:需要人工复检 > 当同时检测多个场景时,suggestion的值以最可能包含敏感信息的场景为准。即任一场景出现了block则总的suggestion为block,所有场景都pass时suggestion为pass,这两种情况之外则一定有场景需要review,此时suggestion为review。 - * @return suggestion - */ - public String getSuggestion() { - return suggestion; - } - - public void setSuggestion(String suggestion) { - this.suggestion = suggestion; - } - - public ImageDetectionResultBody withCategorySuggestions(Map categorySuggestions) { - this.categorySuggestions = categorySuggestions; - return this; - } - - public ImageDetectionResultBody putCategorySuggestionsItem(String key, String categorySuggestionsItem) { - if (this.categorySuggestions == null) { - this.categorySuggestions = new HashMap<>(); - } - this.categorySuggestions.put(key, categorySuggestionsItem); - return this; - } - - public ImageDetectionResultBody withCategorySuggestions(Consumer> categorySuggestionsSetter) { - if (this.categorySuggestions == null) { - this.categorySuggestions = new HashMap<>(); - } - categorySuggestionsSetter.accept(this.categorySuggestions); - return this; - } - - /** - * 具体每个场景的检测结果。 block:包含敏感信息,不通过 pass:不包含敏感信息,通过 review:需要人工复检 - * @return categorySuggestions - */ - public Map getCategorySuggestions() { - return categorySuggestions; - } - - public void setCategorySuggestions(Map categorySuggestions) { - this.categorySuggestions = categorySuggestions; - } - - public ImageDetectionResultBody withOcrText(String ocrText) { - this.ocrText = ocrText; - return this; - } - - /** - * 文本结果 - * @return ocrText - */ - public String getOcrText() { - return ocrText; - } - - public void setOcrText(String ocrText) { - this.ocrText = ocrText; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ImageDetectionResultBody that = (ImageDetectionResultBody) obj; - return Objects.equals(this.detail, that.detail) && Objects.equals(this.suggestion, that.suggestion) - && Objects.equals(this.categorySuggestions, that.categorySuggestions) - && Objects.equals(this.ocrText, that.ocrText); - } - - @Override - public int hashCode() { - return Objects.hash(detail, suggestion, categorySuggestions, ocrText); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ImageDetectionResultBody {\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); - sb.append(" suggestion: ").append(toIndentedString(suggestion)).append("\n"); - sb.append(" categorySuggestions: ").append(toIndentedString(categorySuggestions)).append("\n"); - sb.append(" ocrText: ").append(toIndentedString(ocrText)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageDetectionResultDetail.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageDetectionResultDetail.java deleted file mode 100644 index f371e3cf48..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageDetectionResultDetail.java +++ /dev/null @@ -1,209 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * - */ -public class ImageDetectionResultDetail { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "politics") - - private List politics = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "porn") - - private List porn = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "terrorism") - - private List terrorism = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "ad") - - private List ad = null; - - public ImageDetectionResultDetail withPolitics(List politics) { - this.politics = politics; - return this; - } - - public ImageDetectionResultDetail addPoliticsItem(ImageDetectionResultDetailPolitics politicsItem) { - if (this.politics == null) { - this.politics = new ArrayList<>(); - } - this.politics.add(politicsItem); - return this; - } - - public ImageDetectionResultDetail withPolitics(Consumer> politicsSetter) { - if (this.politics == null) { - this.politics = new ArrayList<>(); - } - politicsSetter.accept(this.politics); - return this; - } - - /** - * 涉政敏感人物检测结果。 - * @return politics - */ - public List getPolitics() { - return politics; - } - - public void setPolitics(List politics) { - this.politics = politics; - } - - public ImageDetectionResultDetail withPorn(List porn) { - this.porn = porn; - return this; - } - - public ImageDetectionResultDetail addPornItem(ImageDetectionResultSimpleDetail pornItem) { - if (this.porn == null) { - this.porn = new ArrayList<>(); - } - this.porn.add(pornItem); - return this; - } - - public ImageDetectionResultDetail withPorn(Consumer> pornSetter) { - if (this.porn == null) { - this.porn = new ArrayList<>(); - } - pornSetter.accept(this.porn); - return this; - } - - /** - * 涉黄检测结果。 - * @return porn - */ - public List getPorn() { - return porn; - } - - public void setPorn(List porn) { - this.porn = porn; - } - - public ImageDetectionResultDetail withTerrorism(List terrorism) { - this.terrorism = terrorism; - return this; - } - - public ImageDetectionResultDetail addTerrorismItem(ImageDetectionResultSimpleDetail terrorismItem) { - if (this.terrorism == null) { - this.terrorism = new ArrayList<>(); - } - this.terrorism.add(terrorismItem); - return this; - } - - public ImageDetectionResultDetail withTerrorism(Consumer> terrorismSetter) { - if (this.terrorism == null) { - this.terrorism = new ArrayList<>(); - } - terrorismSetter.accept(this.terrorism); - return this; - } - - /** - * 涉政、暴恐检测结果。 - * @return terrorism - */ - public List getTerrorism() { - return terrorism; - } - - public void setTerrorism(List terrorism) { - this.terrorism = terrorism; - } - - public ImageDetectionResultDetail withAd(List ad) { - this.ad = ad; - return this; - } - - public ImageDetectionResultDetail addAdItem(ImageDetectionResultAdDetail adItem) { - if (this.ad == null) { - this.ad = new ArrayList<>(); - } - this.ad.add(adItem); - return this; - } - - public ImageDetectionResultDetail withAd(Consumer> adSetter) { - if (this.ad == null) { - this.ad = new ArrayList<>(); - } - adSetter.accept(this.ad); - return this; - } - - /** - * 广告检测结果。 - * @return ad - */ - public List getAd() { - return ad; - } - - public void setAd(List ad) { - this.ad = ad; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ImageDetectionResultDetail that = (ImageDetectionResultDetail) obj; - return Objects.equals(this.politics, that.politics) && Objects.equals(this.porn, that.porn) - && Objects.equals(this.terrorism, that.terrorism) && Objects.equals(this.ad, that.ad); - } - - @Override - public int hashCode() { - return Objects.hash(politics, porn, terrorism, ad); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ImageDetectionResultDetail {\n"); - sb.append(" politics: ").append(toIndentedString(politics)).append("\n"); - sb.append(" porn: ").append(toIndentedString(porn)).append("\n"); - sb.append(" terrorism: ").append(toIndentedString(terrorism)).append("\n"); - sb.append(" ad: ").append(toIndentedString(ad)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageDetectionResultDetailFaceDetail.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageDetectionResultDetailFaceDetail.java deleted file mode 100644 index e22343a2d6..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageDetectionResultDetailFaceDetail.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * 涉政场景中的人物面部信息。 - */ -public class ImageDetectionResultDetailFaceDetail { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "h") - - private Integer h; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "w") - - private Integer w; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "x") - - private Integer x; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "y") - - private Integer y; - - public ImageDetectionResultDetailFaceDetail withH(Integer h) { - this.h = h; - return this; - } - - /** - * 人脸区域高度。 - * @return h - */ - public Integer getH() { - return h; - } - - public void setH(Integer h) { - this.h = h; - } - - public ImageDetectionResultDetailFaceDetail withW(Integer w) { - this.w = w; - return this; - } - - /** - * 人脸区域宽度。 - * @return w - */ - public Integer getW() { - return w; - } - - public void setW(Integer w) { - this.w = w; - } - - public ImageDetectionResultDetailFaceDetail withX(Integer x) { - this.x = x; - return this; - } - - /** - * 人脸区域左上角到y轴距离。 - * @return x - */ - public Integer getX() { - return x; - } - - public void setX(Integer x) { - this.x = x; - } - - public ImageDetectionResultDetailFaceDetail withY(Integer y) { - this.y = y; - return this; - } - - /** - * 人脸区域左上角到x轴距离。 - * @return y - */ - public Integer getY() { - return y; - } - - public void setY(Integer y) { - this.y = y; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ImageDetectionResultDetailFaceDetail that = (ImageDetectionResultDetailFaceDetail) obj; - return Objects.equals(this.h, that.h) && Objects.equals(this.w, that.w) && Objects.equals(this.x, that.x) - && Objects.equals(this.y, that.y); - } - - @Override - public int hashCode() { - return Objects.hash(h, w, x, y); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ImageDetectionResultDetailFaceDetail {\n"); - sb.append(" h: ").append(toIndentedString(h)).append("\n"); - sb.append(" w: ").append(toIndentedString(w)).append("\n"); - sb.append(" x: ").append(toIndentedString(x)).append("\n"); - sb.append(" y: ").append(toIndentedString(y)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageDetectionResultDetailPolitics.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageDetectionResultDetailPolitics.java deleted file mode 100644 index 83e0feeb79..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageDetectionResultDetailPolitics.java +++ /dev/null @@ -1,130 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; -import java.util.function.Consumer; - -/** - * ImageDetectionResultDetailPolitics - */ -public class ImageDetectionResultDetailPolitics { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "confidence") - - private Float confidence; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "label") - - private String label; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "face_detail") - - private ImageDetectionResultDetailFaceDetail faceDetail; - - public ImageDetectionResultDetailPolitics withConfidence(Float confidence) { - this.confidence = confidence; - return this; - } - - /** - * 置信度,取值范围 0-1。 - * @return confidence - */ - public Float getConfidence() { - return confidence; - } - - public void setConfidence(Float confidence) { - this.confidence = confidence; - } - - public ImageDetectionResultDetailPolitics withLabel(String label) { - this.label = label; - return this; - } - - /** - * 对应的政治人物信息。 - * @return label - */ - public String getLabel() { - return label; - } - - public void setLabel(String label) { - this.label = label; - } - - public ImageDetectionResultDetailPolitics withFaceDetail(ImageDetectionResultDetailFaceDetail faceDetail) { - this.faceDetail = faceDetail; - return this; - } - - public ImageDetectionResultDetailPolitics withFaceDetail( - Consumer faceDetailSetter) { - if (this.faceDetail == null) { - this.faceDetail = new ImageDetectionResultDetailFaceDetail(); - faceDetailSetter.accept(this.faceDetail); - } - - return this; - } - - /** - * Get faceDetail - * @return faceDetail - */ - public ImageDetectionResultDetailFaceDetail getFaceDetail() { - return faceDetail; - } - - public void setFaceDetail(ImageDetectionResultDetailFaceDetail faceDetail) { - this.faceDetail = faceDetail; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ImageDetectionResultDetailPolitics that = (ImageDetectionResultDetailPolitics) obj; - return Objects.equals(this.confidence, that.confidence) && Objects.equals(this.label, that.label) - && Objects.equals(this.faceDetail, that.faceDetail); - } - - @Override - public int hashCode() { - return Objects.hash(confidence, label, faceDetail); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ImageDetectionResultDetailPolitics {\n"); - sb.append(" confidence: ").append(toIndentedString(confidence)).append("\n"); - sb.append(" label: ").append(toIndentedString(label)).append("\n"); - sb.append(" faceDetail: ").append(toIndentedString(faceDetail)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageDetectionResultSimpleDetail.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageDetectionResultSimpleDetail.java deleted file mode 100644 index dd0a05ad59..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/ImageDetectionResultSimpleDetail.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * 反黄,暴恐检测详情 - */ -public class ImageDetectionResultSimpleDetail { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "confidence") - - private Float confidence; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "label") - - private String label; - - public ImageDetectionResultSimpleDetail withConfidence(Float confidence) { - this.confidence = confidence; - return this; - } - - /** - * 置信度,取值范围 0-1。 - * @return confidence - */ - public Float getConfidence() { - return confidence; - } - - public void setConfidence(Float confidence) { - this.confidence = confidence; - } - - public ImageDetectionResultSimpleDetail withLabel(String label) { - this.label = label; - return this; - } - - /** - * 每个检测结果的标签化说明: - terrorism:label为对应的涉政暴恐元素信息。 - 涉政暴恐场景当前支持label列表如下: - normal:正常 - knife:刀 - gun:枪 - fire:火灾 - bloody :血腥 - terrorist:暴恐组织及标志 - fascist:法西斯组织及标志 - cult:邪教组织及标志 - negative_politics :涉政负面组织及标志 - negative_political_events:涉政负面事件及标志 - special_characters :特殊文字 - kidnap:绑架 - corpse:尸体 - riot:暴乱事件 - parade :游行示威 - sensitive_landmarks:敏感地标 - military_weapon:军事武器 - army:警察部队 - positive_politics:涉政正面组织及标志 - crowd:人群聚集 - porn:label为对应的涉黄分类(涉黄、性感等)信息。 - 鉴黄场景当前支持label列表如下: - normal:正常 - porn:色情 - sexy:性感 - * @return label - */ - public String getLabel() { - return label; - } - - public void setLabel(String label) { - this.label = label; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ImageDetectionResultSimpleDetail that = (ImageDetectionResultSimpleDetail) obj; - return Objects.equals(this.confidence, that.confidence) && Objects.equals(this.label, that.label); - } - - @Override - public int hashCode() { - return Objects.hash(confidence, label); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ImageDetectionResultSimpleDetail {\n"); - sb.append(" confidence: ").append(toIndentedString(confidence)).append("\n"); - sb.append(" label: ").append(toIndentedString(label)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/PornModerationResultDetail.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/PornModerationResultDetail.java deleted file mode 100644 index 7a4132ea0a..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/PornModerationResultDetail.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.math.BigDecimal; -import java.util.Objects; - -/** - * 涉黄场景审核结果 - */ -public class PornModerationResultDetail { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "confidence") - - private BigDecimal confidence; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "label") - - private String label; - - public PornModerationResultDetail withConfidence(BigDecimal confidence) { - this.confidence = confidence; - return this; - } - - /** - * 置信度,取值范围 0-1。 - * @return confidence - */ - public BigDecimal getConfidence() { - return confidence; - } - - public void setConfidence(BigDecimal confidence) { - this.confidence = confidence; - } - - public PornModerationResultDetail withLabel(String label) { - this.label = label; - return this; - } - - /** - * 当前支持label列表如下: - normal:正常 - porn:色情 - * @return label - */ - public String getLabel() { - return label; - } - - public void setLabel(String label) { - this.label = label; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - PornModerationResultDetail that = (PornModerationResultDetail) obj; - return Objects.equals(this.confidence, that.confidence) && Objects.equals(this.label, that.label); - } - - @Override - public int hashCode() { - return Objects.hash(confidence, label); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PornModerationResultDetail {\n"); - sb.append(" confidence: ").append(toIndentedString(confidence)).append("\n"); - sb.append(" label: ").append(toIndentedString(label)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunCheckResultResponse.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunCheckResultResponse.java deleted file mode 100644 index 09f9ad94bf..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunCheckResultResponse.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.huaweicloud.sdk.core.SdkResponse; - -import java.util.Objects; -import java.util.function.Consumer; - -/** - * Response Object - */ -public class RunCheckResultResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "result") - - private CheckResultResultBody result; - - public RunCheckResultResponse withResult(CheckResultResultBody result) { - this.result = result; - return this; - } - - public RunCheckResultResponse withResult(Consumer resultSetter) { - if (this.result == null) { - this.result = new CheckResultResultBody(); - resultSetter.accept(this.result); - } - - return this; - } - - /** - * Get result - * @return result - */ - public CheckResultResultBody getResult() { - return result; - } - - public void setResult(CheckResultResultBody result) { - this.result = result; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - RunCheckResultResponse that = (RunCheckResultResponse) obj; - return Objects.equals(this.result, that.result); - } - - @Override - public int hashCode() { - return Objects.hash(result); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RunCheckResultResponse {\n"); - sb.append(" result: ").append(toIndentedString(result)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunCheckTaskJobsRequest.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunCheckTaskJobsRequest.java deleted file mode 100644 index 95f89c934b..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunCheckTaskJobsRequest.java +++ /dev/null @@ -1,206 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonValue; - -import java.util.Collections; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** - * Request Object - */ -public class RunCheckTaskJobsRequest { - - /** - * 图像内容审核任务处理状态如下: - created 已创建 - running 正在处理 - finish 已完成 - failed 处理失败 - */ - public static final class StatusEnum { - - /** - * Enum CREATED for value: "created" - */ - public static final StatusEnum CREATED = new StatusEnum("created"); - - /** - * Enum RUNNING for value: "running" - */ - public static final StatusEnum RUNNING = new StatusEnum("running"); - - /** - * Enum FINISH for value: "finish" - */ - public static final StatusEnum FINISH = new StatusEnum("finish"); - - /** - * Enum FAILED for value: "failed" - */ - public static final StatusEnum FAILED = new StatusEnum("failed"); - - private static final Map STATIC_FIELDS = createStaticFields(); - - private static Map createStaticFields() { - Map map = new HashMap<>(); - map.put("created", CREATED); - map.put("running", RUNNING); - map.put("finish", FINISH); - map.put("failed", FAILED); - return Collections.unmodifiableMap(map); - } - - private String value; - - StatusEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static StatusEnum fromValue(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new StatusEnum(value)); - } - - public static StatusEnum valueOf(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) - .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); - } - - @Override - public boolean equals(Object obj) { - if (obj instanceof StatusEnum) { - return this.value.equals(((StatusEnum) obj).value); - } - return false; - } - - @Override - public int hashCode() { - return this.value.hashCode(); - } - } - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "status") - - private StatusEnum status; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "offset") - - private Integer offset; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "limit") - - private Integer limit; - - public RunCheckTaskJobsRequest withStatus(StatusEnum status) { - this.status = status; - return this; - } - - /** - * 图像内容审核任务处理状态如下: - created 已创建 - running 正在处理 - finish 已完成 - failed 处理失败 - * @return status - */ - public StatusEnum getStatus() { - return status; - } - - public void setStatus(StatusEnum status) { - this.status = status; - } - - public RunCheckTaskJobsRequest withOffset(Integer offset) { - this.offset = offset; - return this; - } - - /** - * 偏移量, 默认为0。 - * @return offset - */ - public Integer getOffset() { - return offset; - } - - public void setOffset(Integer offset) { - this.offset = offset; - } - - public RunCheckTaskJobsRequest withLimit(Integer limit) { - this.limit = limit; - return this; - } - - /** - * 指定每一页返回的最大条目数,默认为符合查询条件的总任务数量。 - * @return limit - */ - public Integer getLimit() { - return limit; - } - - public void setLimit(Integer limit) { - this.limit = limit; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - RunCheckTaskJobsRequest that = (RunCheckTaskJobsRequest) obj; - return Objects.equals(this.status, that.status) && Objects.equals(this.offset, that.offset) - && Objects.equals(this.limit, that.limit); - } - - @Override - public int hashCode() { - return Objects.hash(status, offset, limit); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RunCheckTaskJobsRequest {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); - sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunCheckTaskJobsResponse.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunCheckTaskJobsResponse.java deleted file mode 100644 index c3cd40e817..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunCheckTaskJobsResponse.java +++ /dev/null @@ -1,115 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.huaweicloud.sdk.core.SdkResponse; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * Response Object - */ -public class RunCheckTaskJobsResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "result") - - private List result = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "count") - - private Integer count; - - public RunCheckTaskJobsResponse withResult(List result) { - this.result = result; - return this; - } - - public RunCheckTaskJobsResponse addResultItem(CheckTaskJobsItemsBody resultItem) { - if (this.result == null) { - this.result = new ArrayList<>(); - } - this.result.add(resultItem); - return this; - } - - public RunCheckTaskJobsResponse withResult(Consumer> resultSetter) { - if (this.result == null) { - this.result = new ArrayList<>(); - } - resultSetter.accept(this.result); - return this; - } - - /** - * 调用成功时表示调用结果。 调用失败时无此字段。 - * @return result - */ - public List getResult() { - return result; - } - - public void setResult(List result) { - this.result = result; - } - - public RunCheckTaskJobsResponse withCount(Integer count) { - this.count = count; - return this; - } - - /** - * 符合查询条件的总任务数量。 - * @return count - */ - public Integer getCount() { - return count; - } - - public void setCount(Integer count) { - this.count = count; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - RunCheckTaskJobsResponse that = (RunCheckTaskJobsResponse) obj; - return Objects.equals(this.result, that.result) && Objects.equals(this.count, that.count); - } - - @Override - public int hashCode() { - return Objects.hash(result, count); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RunCheckTaskJobsResponse {\n"); - sb.append(" result: ").append(toIndentedString(result)).append("\n"); - sb.append(" count: ").append(toIndentedString(count)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunImageBatchModerationResponse.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunImageBatchModerationResponse.java deleted file mode 100644 index 8ff0974ab4..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunImageBatchModerationResponse.java +++ /dev/null @@ -1,92 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.huaweicloud.sdk.core.SdkResponse; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * Response Object - */ -public class RunImageBatchModerationResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "result") - - private List result = null; - - public RunImageBatchModerationResponse withResult(List result) { - this.result = result; - return this; - } - - public RunImageBatchModerationResponse addResultItem(ImageBatchModerationResultBody resultItem) { - if (this.result == null) { - this.result = new ArrayList<>(); - } - this.result.add(resultItem); - return this; - } - - public RunImageBatchModerationResponse withResult(Consumer> resultSetter) { - if (this.result == null) { - this.result = new ArrayList<>(); - } - resultSetter.accept(this.result); - return this; - } - - /** - * 调用成功时表示调用结果。 调用失败时无此字段。 - * @return result - */ - public List getResult() { - return result; - } - - public void setResult(List result) { - this.result = result; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - RunImageBatchModerationResponse that = (RunImageBatchModerationResponse) obj; - return Objects.equals(this.result, that.result); - } - - @Override - public int hashCode() { - return Objects.hash(result); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RunImageBatchModerationResponse {\n"); - sb.append(" result: ").append(toIndentedString(result)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunImageModerationResponse.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunImageModerationResponse.java deleted file mode 100644 index d84d8e2814..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunImageModerationResponse.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.huaweicloud.sdk.core.SdkResponse; - -import java.util.Objects; -import java.util.function.Consumer; - -/** - * Response Object - */ -public class RunImageModerationResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "result") - - private ImageDetectionResultBody result; - - public RunImageModerationResponse withResult(ImageDetectionResultBody result) { - this.result = result; - return this; - } - - public RunImageModerationResponse withResult(Consumer resultSetter) { - if (this.result == null) { - this.result = new ImageDetectionResultBody(); - resultSetter.accept(this.result); - } - - return this; - } - - /** - * Get result - * @return result - */ - public ImageDetectionResultBody getResult() { - return result; - } - - public void setResult(ImageDetectionResultBody result) { - this.result = result; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - RunImageModerationResponse that = (RunImageModerationResponse) obj; - return Objects.equals(this.result, that.result); - } - - @Override - public int hashCode() { - return Objects.hash(result); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RunImageModerationResponse {\n"); - sb.append(" result: ").append(toIndentedString(result)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunModerationAudioRequest.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunModerationAudioRequest.java deleted file mode 100644 index e90c44f154..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunModerationAudioRequest.java +++ /dev/null @@ -1,82 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; -import java.util.function.Consumer; - -/** - * Request Object - */ -public class RunModerationAudioRequest { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "body") - - private RunModerationAudioRequestBody body; - - public RunModerationAudioRequest withBody(RunModerationAudioRequestBody body) { - this.body = body; - return this; - } - - public RunModerationAudioRequest withBody(Consumer bodySetter) { - if (this.body == null) { - this.body = new RunModerationAudioRequestBody(); - bodySetter.accept(this.body); - } - - return this; - } - - /** - * Get body - * @return body - */ - public RunModerationAudioRequestBody getBody() { - return body; - } - - public void setBody(RunModerationAudioRequestBody body) { - this.body = body; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - RunModerationAudioRequest that = (RunModerationAudioRequest) obj; - return Objects.equals(this.body, that.body); - } - - @Override - public int hashCode() { - return Objects.hash(body); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RunModerationAudioRequest {\n"); - sb.append(" body: ").append(toIndentedString(body)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunModerationAudioRequestBody.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunModerationAudioRequestBody.java deleted file mode 100644 index d164a9a1f4..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunModerationAudioRequestBody.java +++ /dev/null @@ -1,170 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * 请求体 - */ -public class RunModerationAudioRequestBody { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "data") - - private String data; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "url") - - private String url; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "config") - - private RunModerationAudioRequestBodyConfig config; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "categories") - - private List categories = null; - - public RunModerationAudioRequestBody withData(String data) { - this.data = data; - return this; - } - - /** - * 与url二选一 语音文件Base64编码字符串。要求base64编码后大小不超过4M。语音时长不超过1分钟。 - * @return data - */ - public String getData() { - return data; - } - - public void setData(String data) { - this.data = data; - } - - public RunModerationAudioRequestBody withUrl(String url) { - this.url = url; - return this; - } - - /** - * 与data二选一 语音的URL路径,目前支持对服务授权访问华为云上OBS的URL,华为云上OBS提供的临时授权访问的URL和匿名公开授权的URL。 OBS服务的访问权限设置请参见配置OBS访问权限。 出于安全的考虑,当前服务不支持从公网上任意URL读取数据。 - * @return url - */ - public String getUrl() { - return url; - } - - public void setUrl(String url) { - this.url = url; - } - - public RunModerationAudioRequestBody withConfig(RunModerationAudioRequestBodyConfig config) { - this.config = config; - return this; - } - - public RunModerationAudioRequestBody withConfig(Consumer configSetter) { - if (this.config == null) { - this.config = new RunModerationAudioRequestBodyConfig(); - configSetter.accept(this.config); - } - - return this; - } - - /** - * Get config - * @return config - */ - public RunModerationAudioRequestBodyConfig getConfig() { - return config; - } - - public void setConfig(RunModerationAudioRequestBodyConfig config) { - this.config = config; - } - - public RunModerationAudioRequestBody withCategories(List categories) { - this.categories = categories; - return this; - } - - public RunModerationAudioRequestBody addCategoriesItem(String categoriesItem) { - if (this.categories == null) { - this.categories = new ArrayList<>(); - } - this.categories.add(categoriesItem); - return this; - } - - public RunModerationAudioRequestBody withCategories(Consumer> categoriesSetter) { - if (this.categories == null) { - this.categories = new ArrayList<>(); - } - categoriesSetter.accept(this.categories); - return this; - } - - /** - * 审核场景。 当前支持的场景有默认场景和用户自定义场景: ● 默认场景为: – politics:涉政 – porn:涉黄 – ad:广告 – abuse:辱骂 – contraband:违禁品 ● 用户自定义场景为:自定义词库。 说明 自定义词库的创建和使用请参见配置自定义词库。 - * @return categories - */ - public List getCategories() { - return categories; - } - - public void setCategories(List categories) { - this.categories = categories; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - RunModerationAudioRequestBody that = (RunModerationAudioRequestBody) obj; - return Objects.equals(this.data, that.data) && Objects.equals(this.url, that.url) - && Objects.equals(this.config, that.config) && Objects.equals(this.categories, that.categories); - } - - @Override - public int hashCode() { - return Objects.hash(data, url, config, categories); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RunModerationAudioRequestBody {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); - sb.append(" config: ").append(toIndentedString(config)).append("\n"); - sb.append(" categories: ").append(toIndentedString(categories)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunModerationAudioRequestBodyConfig.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunModerationAudioRequestBodyConfig.java deleted file mode 100644 index 9f7933d985..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunModerationAudioRequestBodyConfig.java +++ /dev/null @@ -1,294 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonValue; - -import java.util.Collections; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** - * 语音文件配置信息 - */ -public class RunModerationAudioRequestBodyConfig { - - /** - * 支持的语音格式。 枚举值: - pcm16k16bit - pcm8k16bit - ulaw16k8bit - ulaw8k8bit - alaw16k8bit - alaw8k8bit - mp3 - aac - wav - amr - amrwb - */ - public static final class FormatEnum { - - /** - * Enum PCM16K16BIT for value: "pcm16k16bit" - */ - public static final FormatEnum PCM16K16BIT = new FormatEnum("pcm16k16bit"); - - /** - * Enum PCM8K16BIT for value: "pcm8k16bit" - */ - public static final FormatEnum PCM8K16BIT = new FormatEnum("pcm8k16bit"); - - /** - * Enum ULAW16K8BIT for value: "ulaw16k8bit" - */ - public static final FormatEnum ULAW16K8BIT = new FormatEnum("ulaw16k8bit"); - - /** - * Enum ULAW8K8BIT for value: "ulaw8k8bit" - */ - public static final FormatEnum ULAW8K8BIT = new FormatEnum("ulaw8k8bit"); - - /** - * Enum ALAW16K8BIT for value: "alaw16k8bit" - */ - public static final FormatEnum ALAW16K8BIT = new FormatEnum("alaw16k8bit"); - - /** - * Enum ALAW8K8BIT for value: "alaw8k8bit" - */ - public static final FormatEnum ALAW8K8BIT = new FormatEnum("alaw8k8bit"); - - /** - * Enum MP3 for value: "mp3" - */ - public static final FormatEnum MP3 = new FormatEnum("mp3"); - - /** - * Enum AAC for value: "aac" - */ - public static final FormatEnum AAC = new FormatEnum("aac"); - - /** - * Enum WAV for value: "wav" - */ - public static final FormatEnum WAV = new FormatEnum("wav"); - - /** - * Enum AMR for value: "amr" - */ - public static final FormatEnum AMR = new FormatEnum("amr"); - - /** - * Enum AMRWB for value: "amrwb" - */ - public static final FormatEnum AMRWB = new FormatEnum("amrwb"); - - private static final Map STATIC_FIELDS = createStaticFields(); - - private static Map createStaticFields() { - Map map = new HashMap<>(); - map.put("pcm16k16bit", PCM16K16BIT); - map.put("pcm8k16bit", PCM8K16BIT); - map.put("ulaw16k8bit", ULAW16K8BIT); - map.put("ulaw8k8bit", ULAW8K8BIT); - map.put("alaw16k8bit", ALAW16K8BIT); - map.put("alaw8k8bit", ALAW8K8BIT); - map.put("mp3", MP3); - map.put("aac", AAC); - map.put("wav", WAV); - map.put("amr", AMR); - map.put("amrwb", AMRWB); - return Collections.unmodifiableMap(map); - } - - private String value; - - FormatEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static FormatEnum fromValue(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new FormatEnum(value)); - } - - public static FormatEnum valueOf(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) - .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); - } - - @Override - public boolean equals(Object obj) { - if (obj instanceof FormatEnum) { - return this.value.equals(((FormatEnum) obj).value); - } - return false; - } - - @Override - public int hashCode() { - return this.value.hashCode(); - } - } - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "format") - - private FormatEnum format; - - /** - * 所使用的模型特征串。通常是 “语种_采样率_领域”的形式。 采样率需要与音频采样率保持一致。 当前支持如下模型特征串: chinese_8k_common chinese_16k_common - */ - public static final class PropertyEnum { - - /** - * Enum CHINESE_8K_COMMON for value: "chinese_8k_common" - */ - public static final PropertyEnum CHINESE_8K_COMMON = new PropertyEnum("chinese_8k_common"); - - /** - * Enum CHINESE_16K_COMMON for value: "chinese_16k_common" - */ - public static final PropertyEnum CHINESE_16K_COMMON = new PropertyEnum("chinese_16k_common"); - - private static final Map STATIC_FIELDS = createStaticFields(); - - private static Map createStaticFields() { - Map map = new HashMap<>(); - map.put("chinese_8k_common", CHINESE_8K_COMMON); - map.put("chinese_16k_common", CHINESE_16K_COMMON); - return Collections.unmodifiableMap(map); - } - - private String value; - - PropertyEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static PropertyEnum fromValue(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new PropertyEnum(value)); - } - - public static PropertyEnum valueOf(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) - .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); - } - - @Override - public boolean equals(Object obj) { - if (obj instanceof PropertyEnum) { - return this.value.equals(((PropertyEnum) obj).value); - } - return false; - } - - @Override - public int hashCode() { - return this.value.hashCode(); - } - } - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "property") - - private PropertyEnum property; - - public RunModerationAudioRequestBodyConfig withFormat(FormatEnum format) { - this.format = format; - return this; - } - - /** - * 支持的语音格式。 枚举值: - pcm16k16bit - pcm8k16bit - ulaw16k8bit - ulaw8k8bit - alaw16k8bit - alaw8k8bit - mp3 - aac - wav - amr - amrwb - * @return format - */ - public FormatEnum getFormat() { - return format; - } - - public void setFormat(FormatEnum format) { - this.format = format; - } - - public RunModerationAudioRequestBodyConfig withProperty(PropertyEnum property) { - this.property = property; - return this; - } - - /** - * 所使用的模型特征串。通常是 “语种_采样率_领域”的形式。 采样率需要与音频采样率保持一致。 当前支持如下模型特征串: chinese_8k_common chinese_16k_common - * @return property - */ - public PropertyEnum getProperty() { - return property; - } - - public void setProperty(PropertyEnum property) { - this.property = property; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - RunModerationAudioRequestBodyConfig that = (RunModerationAudioRequestBodyConfig) obj; - return Objects.equals(this.format, that.format) && Objects.equals(this.property, that.property); - } - - @Override - public int hashCode() { - return Objects.hash(format, property); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RunModerationAudioRequestBodyConfig {\n"); - sb.append(" format: ").append(toIndentedString(format)).append("\n"); - sb.append(" property: ").append(toIndentedString(property)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunModerationAudioResponse.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunModerationAudioResponse.java deleted file mode 100644 index 84c0ca0e0b..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunModerationAudioResponse.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.huaweicloud.sdk.core.SdkResponse; - -import java.util.Objects; -import java.util.function.Consumer; - -/** - * Response Object - */ -public class RunModerationAudioResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "result") - - private RunModerationAudioResponseBodyResult result; - - public RunModerationAudioResponse withResult(RunModerationAudioResponseBodyResult result) { - this.result = result; - return this; - } - - public RunModerationAudioResponse withResult(Consumer resultSetter) { - if (this.result == null) { - this.result = new RunModerationAudioResponseBodyResult(); - resultSetter.accept(this.result); - } - - return this; - } - - /** - * Get result - * @return result - */ - public RunModerationAudioResponseBodyResult getResult() { - return result; - } - - public void setResult(RunModerationAudioResponseBodyResult result) { - this.result = result; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - RunModerationAudioResponse that = (RunModerationAudioResponse) obj; - return Objects.equals(this.result, that.result); - } - - @Override - public int hashCode() { - return Objects.hash(result); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RunModerationAudioResponse {\n"); - sb.append(" result: ").append(toIndentedString(result)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunModerationAudioResponseBodyResult.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunModerationAudioResponseBodyResult.java deleted file mode 100644 index cecde37c5f..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunModerationAudioResponseBodyResult.java +++ /dev/null @@ -1,106 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; -import java.util.function.Consumer; - -/** - * 调用成功时表示调用结果。 调用失败时无此字段。 - */ -public class RunModerationAudioResponseBodyResult { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "detail") - - private RunModerationAudioResponseBodyResultDetail detail; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "suggestion") - - private String suggestion; - - public RunModerationAudioResponseBodyResult withDetail(RunModerationAudioResponseBodyResultDetail detail) { - this.detail = detail; - return this; - } - - public RunModerationAudioResponseBodyResult withDetail( - Consumer detailSetter) { - if (this.detail == null) { - this.detail = new RunModerationAudioResponseBodyResultDetail(); - detailSetter.accept(this.detail); - } - - return this; - } - - /** - * Get detail - * @return detail - */ - public RunModerationAudioResponseBodyResultDetail getDetail() { - return detail; - } - - public void setDetail(RunModerationAudioResponseBodyResultDetail detail) { - this.detail = detail; - } - - public RunModerationAudioResponseBodyResult withSuggestion(String suggestion) { - this.suggestion = suggestion; - return this; - } - - /** - * 检测结果是否通过。 block:包含敏感信息,不通过。 pass:不包含敏感信息,通过。 review:需要人工复查 - * @return suggestion - */ - public String getSuggestion() { - return suggestion; - } - - public void setSuggestion(String suggestion) { - this.suggestion = suggestion; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - RunModerationAudioResponseBodyResult that = (RunModerationAudioResponseBodyResult) obj; - return Objects.equals(this.detail, that.detail) && Objects.equals(this.suggestion, that.suggestion); - } - - @Override - public int hashCode() { - return Objects.hash(detail, suggestion); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RunModerationAudioResponseBodyResult {\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); - sb.append(" suggestion: ").append(toIndentedString(suggestion)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunModerationAudioResponseBodyResultDetail.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunModerationAudioResponseBodyResultDetail.java deleted file mode 100644 index f1a90760fb..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunModerationAudioResponseBodyResultDetail.java +++ /dev/null @@ -1,106 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; -import java.util.function.Consumer; - -/** - * 审核结果列表,text为语音转文本后审核结果,audio为音频审核结果。 - */ -public class RunModerationAudioResponseBodyResultDetail { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "text") - - private Object text; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "audio") - - private RunModerationAudioResponseBodyResultDetailAudio audio; - - public RunModerationAudioResponseBodyResultDetail withText(Object text) { - this.text = text; - return this; - } - - /** - * 返回的语音转文本后审核结果详细信息: ● politics:涉政敏感词列表。 ● porn:涉黄敏感词列表。 ● ad:广告敏感词列表。 ● abuse:辱骂敏感词列表。 ● contraband:违禁品敏感词列表 - * @return text - */ - public Object getText() { - return text; - } - - public void setText(Object text) { - this.text = text; - } - - public RunModerationAudioResponseBodyResultDetail withAudio(RunModerationAudioResponseBodyResultDetailAudio audio) { - this.audio = audio; - return this; - } - - public RunModerationAudioResponseBodyResultDetail withAudio( - Consumer audioSetter) { - if (this.audio == null) { - this.audio = new RunModerationAudioResponseBodyResultDetailAudio(); - audioSetter.accept(this.audio); - } - - return this; - } - - /** - * Get audio - * @return audio - */ - public RunModerationAudioResponseBodyResultDetailAudio getAudio() { - return audio; - } - - public void setAudio(RunModerationAudioResponseBodyResultDetailAudio audio) { - this.audio = audio; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - RunModerationAudioResponseBodyResultDetail that = (RunModerationAudioResponseBodyResultDetail) obj; - return Objects.equals(this.text, that.text) && Objects.equals(this.audio, that.audio); - } - - @Override - public int hashCode() { - return Objects.hash(text, audio); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RunModerationAudioResponseBodyResultDetail {\n"); - sb.append(" text: ").append(toIndentedString(text)).append("\n"); - sb.append(" audio: ").append(toIndentedString(audio)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunModerationAudioResponseBodyResultDetailAudio.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunModerationAudioResponseBodyResultDetailAudio.java deleted file mode 100644 index 71ab53ffea..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunModerationAudioResponseBodyResultDetailAudio.java +++ /dev/null @@ -1,92 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * 返回的音频审核结果列表,porn为涉黄场景审核结果; 当前仅支持porn场景。 - */ -public class RunModerationAudioResponseBodyResultDetailAudio { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "porn") - - private List porn = null; - - public RunModerationAudioResponseBodyResultDetailAudio withPorn(List porn) { - this.porn = porn; - return this; - } - - public RunModerationAudioResponseBodyResultDetailAudio addPornItem(PornModerationResultDetail pornItem) { - if (this.porn == null) { - this.porn = new ArrayList<>(); - } - this.porn.add(pornItem); - return this; - } - - public RunModerationAudioResponseBodyResultDetailAudio withPorn( - Consumer> pornSetter) { - if (this.porn == null) { - this.porn = new ArrayList<>(); - } - pornSetter.accept(this.porn); - return this; - } - - /** - * 涉黄场景审核结果 - * @return porn - */ - public List getPorn() { - return porn; - } - - public void setPorn(List porn) { - this.porn = porn; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - RunModerationAudioResponseBodyResultDetailAudio that = (RunModerationAudioResponseBodyResultDetailAudio) obj; - return Objects.equals(this.porn, that.porn); - } - - @Override - public int hashCode() { - return Objects.hash(porn); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RunModerationAudioResponseBodyResultDetailAudio {\n"); - sb.append(" porn: ").append(toIndentedString(porn)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunTaskSumbitResponse.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunTaskSumbitResponse.java deleted file mode 100644 index 55e72bcc99..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunTaskSumbitResponse.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.huaweicloud.sdk.core.SdkResponse; - -import java.util.Objects; -import java.util.function.Consumer; - -/** - * Response Object - */ -public class RunTaskSumbitResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "result") - - private TaskSumbitResponseResult result; - - public RunTaskSumbitResponse withResult(TaskSumbitResponseResult result) { - this.result = result; - return this; - } - - public RunTaskSumbitResponse withResult(Consumer resultSetter) { - if (this.result == null) { - this.result = new TaskSumbitResponseResult(); - resultSetter.accept(this.result); - } - - return this; - } - - /** - * Get result - * @return result - */ - public TaskSumbitResponseResult getResult() { - return result; - } - - public void setResult(TaskSumbitResponseResult result) { - this.result = result; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - RunTaskSumbitResponse that = (RunTaskSumbitResponse) obj; - return Objects.equals(this.result, that.result); - } - - @Override - public int hashCode() { - return Objects.hash(result); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RunTaskSumbitResponse {\n"); - sb.append(" result: ").append(toIndentedString(result)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunTextModerationResponse.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunTextModerationResponse.java deleted file mode 100644 index 80b193e11d..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/RunTextModerationResponse.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.huaweicloud.sdk.core.SdkResponse; - -import java.util.Objects; -import java.util.function.Consumer; - -/** - * Response Object - */ -public class RunTextModerationResponse extends SdkResponse { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "result") - - private TextDetectionResponseResult result; - - public RunTextModerationResponse withResult(TextDetectionResponseResult result) { - this.result = result; - return this; - } - - public RunTextModerationResponse withResult(Consumer resultSetter) { - if (this.result == null) { - this.result = new TextDetectionResponseResult(); - resultSetter.accept(this.result); - } - - return this; - } - - /** - * Get result - * @return result - */ - public TextDetectionResponseResult getResult() { - return result; - } - - public void setResult(TextDetectionResponseResult result) { - this.result = result; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - RunTextModerationResponse that = (RunTextModerationResponse) obj; - return Objects.equals(this.result, that.result); - } - - @Override - public int hashCode() { - return Objects.hash(result); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RunTextModerationResponse {\n"); - sb.append(" result: ").append(toIndentedString(result)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/TaskSumbitReq.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/TaskSumbitReq.java deleted file mode 100644 index bc87309d71..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/TaskSumbitReq.java +++ /dev/null @@ -1,299 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonValue; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * - */ -public class TaskSumbitReq { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "urls") - - private List urls = null; - - /** - * Gets or Sets categories - */ - public static final class CategoriesEnum { - - /** - * Enum POLITICS for value: "politics" - */ - public static final CategoriesEnum POLITICS = new CategoriesEnum("politics"); - - /** - * Enum PORN for value: "porn" - */ - public static final CategoriesEnum PORN = new CategoriesEnum("porn"); - - /** - * Enum TERRORISM for value: "terrorism" - */ - public static final CategoriesEnum TERRORISM = new CategoriesEnum("terrorism"); - - private static final Map STATIC_FIELDS = createStaticFields(); - - private static Map createStaticFields() { - Map map = new HashMap<>(); - map.put("politics", POLITICS); - map.put("porn", PORN); - map.put("terrorism", TERRORISM); - return Collections.unmodifiableMap(map); - } - - private String value; - - CategoriesEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static CategoriesEnum fromValue(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new CategoriesEnum(value)); - } - - public static CategoriesEnum valueOf(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) - .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); - } - - @Override - public boolean equals(Object obj) { - if (obj instanceof CategoriesEnum) { - return this.value.equals(((CategoriesEnum) obj).value); - } - return false; - } - - @Override - public int hashCode() { - return this.value.hashCode(); - } - } - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "categories") - - private List categories = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "moderation_rule") - - private String moderationRule; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "ad_categories") - - private List adCategories = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "show_ocr_text") - - private Boolean showOcrText; - - public TaskSumbitReq withUrls(List urls) { - this.urls = urls; - return this; - } - - public TaskSumbitReq addUrlsItem(String urlsItem) { - if (this.urls == null) { - this.urls = new ArrayList<>(); - } - this.urls.add(urlsItem); - return this; - } - - public TaskSumbitReq withUrls(Consumer> urlsSetter) { - if (this.urls == null) { - this.urls = new ArrayList<>(); - } - urlsSetter.accept(this.urls); - return this; - } - - /** - * 图片的URL路径,目前支持: - 公网HTTP/HTTPS URL - 华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[配置OBS访问权限](https://support.huaweicloud.com/api-moderation/moderation_03_0020.html)。 > 图片的URL路径列表最多支持500个URL地址。接口响应时间依赖图片的下载时间,如果图片下载时间过长,会返回接口调用失败。请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。 - * @return urls - */ - public List getUrls() { - return urls; - } - - public void setUrls(List urls) { - this.urls = urls; - } - - public TaskSumbitReq withCategories(List categories) { - this.categories = categories; - return this; - } - - public TaskSumbitReq addCategoriesItem(CategoriesEnum categoriesItem) { - if (this.categories == null) { - this.categories = new ArrayList<>(); - } - this.categories.add(categoriesItem); - return this; - } - - public TaskSumbitReq withCategories(Consumer> categoriesSetter) { - if (this.categories == null) { - this.categories = new ArrayList<>(); - } - categoriesSetter.accept(this.categories); - return this; - } - - /** - * 检测场景。 - politics:是否涉及政治人物的检测。 - terrorism:是否包含涉政敏感人物、涉政暴恐元素的检测。 - porn:是否包含涉黄内容元素的检测。 可通过配置上述场景,来完成对应场景元素的检测。 为空或无此参数时默认检测politics和terrorism(不包含porn)。 - * @return categories - */ - public List getCategories() { - return categories; - } - - public void setCategories(List categories) { - this.categories = categories; - } - - public TaskSumbitReq withModerationRule(String moderationRule) { - this.moderationRule = moderationRule; - return this; - } - - /** - * 图像审核规则名称,默认使用default规则。 审核规则的创建和使用请参见[配置审核规则](https://support.huaweicloud.com/api-moderation/moderation_03_0063.html)。 - * @return moderationRule - */ - public String getModerationRule() { - return moderationRule; - } - - public void setModerationRule(String moderationRule) { - this.moderationRule = moderationRule; - } - - public TaskSumbitReq withAdCategories(List adCategories) { - this.adCategories = adCategories; - return this; - } - - public TaskSumbitReq addAdCategoriesItem(String adCategoriesItem) { - if (this.adCategories == null) { - this.adCategories = new ArrayList<>(); - } - this.adCategories.add(adCategoriesItem); - return this; - } - - public TaskSumbitReq withAdCategories(Consumer> adCategoriesSetter) { - if (this.adCategories == null) { - this.adCategories = new ArrayList<>(); - } - adCategoriesSetter.accept(this.adCategories); - return this; - } - - /** - * 图文审核检测场景。当categories包含ad时,该参数生效。 当前支持的场景有系统场景和用户自定义场景: - 系统场景为: - qr_code:二维码 - politics:涉政 - porn:涉黄 - ad:广告 - abuse:辱骂 - contraband:违禁品 - 用户自定义场景为:自定义黑名单词库。 自定义词库的创建和使用请参见[配置自定义词库](https://support.huaweicloud.com/api-moderation/moderation_03_0027.html)。 - * @return adCategories - */ - public List getAdCategories() { - return adCategories; - } - - public void setAdCategories(List adCategories) { - this.adCategories = adCategories; - } - - public TaskSumbitReq withShowOcrText(Boolean showOcrText) { - this.showOcrText = showOcrText; - return this; - } - - /** - * 是否返回ocr识别的结果。 - * @return showOcrText - */ - public Boolean getShowOcrText() { - return showOcrText; - } - - public void setShowOcrText(Boolean showOcrText) { - this.showOcrText = showOcrText; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - TaskSumbitReq that = (TaskSumbitReq) obj; - return Objects.equals(this.urls, that.urls) && Objects.equals(this.categories, that.categories) - && Objects.equals(this.moderationRule, that.moderationRule) - && Objects.equals(this.adCategories, that.adCategories) - && Objects.equals(this.showOcrText, that.showOcrText); - } - - @Override - public int hashCode() { - return Objects.hash(urls, categories, moderationRule, adCategories, showOcrText); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TaskSumbitReq {\n"); - sb.append(" urls: ").append(toIndentedString(urls)).append("\n"); - sb.append(" categories: ").append(toIndentedString(categories)).append("\n"); - sb.append(" moderationRule: ").append(toIndentedString(moderationRule)).append("\n"); - sb.append(" adCategories: ").append(toIndentedString(adCategories)).append("\n"); - sb.append(" showOcrText: ").append(toIndentedString(showOcrText)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/TextDetectionItemsReq.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/TextDetectionItemsReq.java deleted file mode 100644 index f4c70d4fbd..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/TextDetectionItemsReq.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * - */ -public class TextDetectionItemsReq { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "text") - - private String text; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "type") - - private String type; - - public TextDetectionItemsReq withText(String text) { - this.text = text; - return this; - } - - /** - * 待检测文本,编码格式为“utf-8”,限定5000个字符以内,文本长度超过5000个字符时,只检测前5000个字符。 - * @return text - */ - public String getText() { - return text; - } - - public void setText(String text) { - this.text = text; - } - - public TextDetectionItemsReq withType(String type) { - this.type = type; - return this; - } - - /** - * 文本类型,默认为“content”,即正文内容,当前只支持“content”类型,未来会扩大支持类型范围。 - * @return type - */ - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - TextDetectionItemsReq that = (TextDetectionItemsReq) obj; - return Objects.equals(this.text, that.text) && Objects.equals(this.type, that.type); - } - - @Override - public int hashCode() { - return Objects.hash(text, type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TextDetectionItemsReq {\n"); - sb.append(" text: ").append(toIndentedString(text)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/TextDetectionReq.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/TextDetectionReq.java deleted file mode 100644 index bd449e5533..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/TextDetectionReq.java +++ /dev/null @@ -1,170 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * - */ -public class TextDetectionReq { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "categories") - - private List categories = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "white_glossaries") - - private List whiteGlossaries = null; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "items") - - private List items = null; - - public TextDetectionReq withCategories(List categories) { - this.categories = categories; - return this; - } - - public TextDetectionReq addCategoriesItem(String categoriesItem) { - if (this.categories == null) { - this.categories = new ArrayList<>(); - } - this.categories.add(categoriesItem); - return this; - } - - public TextDetectionReq withCategories(Consumer> categoriesSetter) { - if (this.categories == null) { - this.categories = new ArrayList<>(); - } - categoriesSetter.accept(this.categories); - return this; - } - - /** - * 检测场景。 当前支持的场景有默认场景和用户自定义场景: - 默认场景为: * politics:涉政 * porn:涉黄 * ad:广告 * abuse:辱骂 * contraband:违禁品 * flood:灌水 - 用户自定义场景为:自定义黑名单词库。 > - 自定义词库的创建和使用请参见[配置自定义词库](https://support.huaweicloud.com/api-moderation/moderation_03_0027.html)。 > - flood场景不支持使用自定义白名单词库。 - * @return categories - */ - public List getCategories() { - return categories; - } - - public void setCategories(List categories) { - this.categories = categories; - } - - public TextDetectionReq withWhiteGlossaries(List whiteGlossaries) { - this.whiteGlossaries = whiteGlossaries; - return this; - } - - public TextDetectionReq addWhiteGlossariesItem(String whiteGlossariesItem) { - if (this.whiteGlossaries == null) { - this.whiteGlossaries = new ArrayList<>(); - } - this.whiteGlossaries.add(whiteGlossariesItem); - return this; - } - - public TextDetectionReq withWhiteGlossaries(Consumer> whiteGlossariesSetter) { - if (this.whiteGlossaries == null) { - this.whiteGlossaries = new ArrayList<>(); - } - whiteGlossariesSetter.accept(this.whiteGlossaries); - return this; - } - - /** - * 启用的白名单列表 当前白名单使用规则为: - 不传参数\"white_glossaries\": * 表示默认使用2022-09-02 16:00:00之前创建的白名单词库 - 传参数\"white_glossaries\": * 参数为空时不使用任何白名单词库 * 参数不为空时使用传入的白名单词库 > - 自定义词库的创建和使用请参见[[配置自定义词库](https://support.huaweicloud.com/api-moderation/moderation_03_0027.html)](tag:hc)。 - * @return whiteGlossaries - */ - public List getWhiteGlossaries() { - return whiteGlossaries; - } - - public void setWhiteGlossaries(List whiteGlossaries) { - this.whiteGlossaries = whiteGlossaries; - } - - public TextDetectionReq withItems(List items) { - this.items = items; - return this; - } - - public TextDetectionReq addItemsItem(TextDetectionItemsReq itemsItem) { - if (this.items == null) { - this.items = new ArrayList<>(); - } - this.items.add(itemsItem); - return this; - } - - public TextDetectionReq withItems(Consumer> itemsSetter) { - if (this.items == null) { - this.items = new ArrayList<>(); - } - itemsSetter.accept(this.items); - return this; - } - - /** - * 待检测的文本列表,目前暂时每次只支持传一个item。 - * @return items - */ - public List getItems() { - return items; - } - - public void setItems(List items) { - this.items = items; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - TextDetectionReq that = (TextDetectionReq) obj; - return Objects.equals(this.categories, that.categories) - && Objects.equals(this.whiteGlossaries, that.whiteGlossaries) && Objects.equals(this.items, that.items); - } - - @Override - public int hashCode() { - return Objects.hash(categories, whiteGlossaries, items); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TextDetectionReq {\n"); - sb.append(" categories: ").append(toIndentedString(categories)).append("\n"); - sb.append(" whiteGlossaries: ").append(toIndentedString(whiteGlossaries)).append("\n"); - sb.append(" items: ").append(toIndentedString(items)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/TextDetectionResponseResult.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/TextDetectionResponseResult.java deleted file mode 100644 index 4468dd0f04..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/model/TextDetectionResponseResult.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * 调用成功时表示调用结果。 调用失败时无此字段。 - */ -public class TextDetectionResponseResult { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "suggestion") - - private String suggestion; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "detail") - - private Object detail; - - public TextDetectionResponseResult withSuggestion(String suggestion) { - this.suggestion = suggestion; - return this; - } - - /** - * 检测结果是否通过。 block:包含敏感信息,不通过。 pass:不包含敏感信息,通过。 review:需要人工复查。 - * @return suggestion - */ - public String getSuggestion() { - return suggestion; - } - - public void setSuggestion(String suggestion) { - this.suggestion = suggestion; - } - - public TextDetectionResponseResult withDetail(Object detail) { - this.detail = detail; - return this; - } - - /** - * 返回的相关检测结果详细信息: - politics:涉政敏感词列表。 - porn:涉黄敏感词列表。 - ad:广告敏感词列表。 - abuse:辱骂敏感词列表。 - contraband:违禁品敏感词列表。 - flood:灌水文本。 > - 灌水文本最多显示200个字符。 > - 每个场景的返回结果的详细信息是指命中词,不是返回全部文本。 - * @return detail - */ - public Object getDetail() { - return detail; - } - - public void setDetail(Object detail) { - this.detail = detail; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - TextDetectionResponseResult that = (TextDetectionResponseResult) obj; - return Objects.equals(this.suggestion, that.suggestion) && Objects.equals(this.detail, that.detail); - } - - @Override - public int hashCode() { - return Objects.hash(suggestion, detail); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TextDetectionResponseResult {\n"); - sb.append(" suggestion: ").append(toIndentedString(suggestion)).append("\n"); - sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/region/ModerationRegion.java b/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/region/ModerationRegion.java deleted file mode 100644 index 7f1c1036e5..0000000000 --- a/services/moderation/src/main/java/com/huaweicloud/sdk/moderation/v2/region/ModerationRegion.java +++ /dev/null @@ -1,66 +0,0 @@ -package com.huaweicloud.sdk.moderation.v2.region; - -import com.huaweicloud.sdk.core.region.IRegionProvider; -import com.huaweicloud.sdk.core.region.Region; -import com.huaweicloud.sdk.core.region.RegionProviderChain; -import com.huaweicloud.sdk.core.utils.StringUtils; - -import java.util.Collections; -import java.util.HashMap; -import java.util.Locale; -import java.util.Map; -import java.util.Objects; -import java.util.stream.Collectors; - -public class ModerationRegion { - - public static final Region CN_NORTH_4 = new Region("cn-north-4", "https://moderation.cn-north-4.myhuaweicloud.com", - "https://moderation.cn-north-4.myhuaweicloud.cn"); - - public static final Region CN_NORTH_1 = new Region("cn-north-1", "https://moderation.cn-north-1.myhuaweicloud.com", - "https://moderation.cn-north-1.myhuaweicloud.cn"); - - public static final Region CN_EAST_3 = new Region("cn-east-3", "https://moderation.cn-east-3.myhuaweicloud.com", - "https://moderation.cn-east-3.myhuaweicloud.cn"); - - public static final Region AP_SOUTHEAST_1 = new Region("ap-southeast-1", - "https://moderation.ap-southeast-1.myhuaweicloud.com", "https://moderation.ap-southeast-1.myhuaweicloud.cn"); - - public static final Region AP_SOUTHEAST_3 = new Region("ap-southeast-3", - "https://moderation.ap-southeast-3.myhuaweicloud.com", "https://moderation.ap-southeast-3.myhuaweicloud.cn"); - - private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("MODERATION"); - - private static final Map STATIC_FIELDS = createStaticFields(); - - private static Map createStaticFields() { - Map map = new HashMap<>(); - map.put("cn-north-4", CN_NORTH_4); - map.put("cn-north-1", CN_NORTH_1); - map.put("cn-east-3", CN_EAST_3); - map.put("ap-southeast-1", AP_SOUTHEAST_1); - map.put("ap-southeast-3", AP_SOUTHEAST_3); - return Collections.unmodifiableMap(map); - } - - public static Region valueOf(String regionId) { - if (StringUtils.isEmpty(regionId)) { - throw new IllegalArgumentException("Unexpected empty parameter: regionId."); - } - - Region result = PROVIDER.getRegion(regionId); - if (Objects.nonNull(result)) { - return result; - } - - result = STATIC_FIELDS.get(regionId); - if (Objects.nonNull(result)) { - return result; - } - - throw new IllegalArgumentException(String.format(Locale.ROOT, - "region id '%s' is not in the following supported regions of service Moderation: [%s]", - regionId, - STATIC_FIELDS.keySet().stream().sorted().collect(Collectors.joining(", ")))); - } -} diff --git a/services/mpc/pom.xml b/services/mpc/pom.xml index c9079a6556..6f53bd9097 100644 --- a/services/mpc/pom.xml +++ b/services/mpc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-mpc - 3.1.121 + 3.1.122 Huawei Cloud SDK for MPC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/mrs/pom.xml b/services/mrs/pom.xml index d2c4694da6..8bdebe33e3 100644 --- a/services/mrs/pom.xml +++ b/services/mrs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-mrs - 3.1.121 + 3.1.122 Huawei Cloud SDK for MRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/msgsms/pom.xml b/services/msgsms/pom.xml index 1231e246ae..5ff1d98082 100644 --- a/services/msgsms/pom.xml +++ b/services/msgsms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-msgsms - 3.1.121 + 3.1.122 Huawei Cloud SDK for MSGSMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/mssi/pom.xml b/services/mssi/pom.xml index db6032b0f4..87d84810f8 100644 --- a/services/mssi/pom.xml +++ b/services/mssi/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-mssi - 3.1.121 + 3.1.122 Huawei Cloud SDK for MSSI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/nat/pom.xml b/services/nat/pom.xml index 24362a3f34..e087546855 100644 --- a/services/nat/pom.xml +++ b/services/nat/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-nat - 3.1.121 + 3.1.122 Huawei Cloud SDK for NAT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/nlp/pom.xml b/services/nlp/pom.xml index 3999cca719..4e550044e6 100644 --- a/services/nlp/pom.xml +++ b/services/nlp/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-nlp - 3.1.121 + 3.1.122 Huawei Cloud SDK for NLP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/oa/pom.xml b/services/oa/pom.xml index 546759074e..2047ea822d 100644 --- a/services/oa/pom.xml +++ b/services/oa/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-oa - 3.1.121 + 3.1.122 Huawei Cloud SDK for OA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/obs/pom.xml b/services/obs/pom.xml index e8af360b22..2462f5a0a3 100644 --- a/services/obs/pom.xml +++ b/services/obs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-obs - 3.1.121 + 3.1.122 Huawei Cloud SDK for OBS 4.0.0 @@ -17,12 +17,12 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 com.huaweicloud.sdk huaweicloud-sdk-core-xml - 3.1.121 + 3.1.122 diff --git a/services/ocr/pom.xml b/services/ocr/pom.xml index 70ed0692c1..505c89815e 100644 --- a/services/ocr/pom.xml +++ b/services/ocr/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-ocr - 3.1.121 + 3.1.122 Huawei Cloud SDK for OCR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/oms/pom.xml b/services/oms/pom.xml index 1438583b9f..cc45697bba 100644 --- a/services/oms/pom.xml +++ b/services/oms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-oms - 3.1.121 + 3.1.122 Huawei Cloud SDK for OMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/optverse/pom.xml b/services/optverse/pom.xml index a2bc413cd1..7cc4f85168 100644 --- a/services/optverse/pom.xml +++ b/services/optverse/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-optverse - 3.1.121 + 3.1.122 Huawei Cloud SDK for OPTVERSE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/organizations/pom.xml b/services/organizations/pom.xml index 1e5df5cc84..4ad2939c0e 100644 --- a/services/organizations/pom.xml +++ b/services/organizations/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-organizations - 3.1.121 + 3.1.122 Huawei Cloud SDK for ORGANIZATIONS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/orgid/pom.xml b/services/orgid/pom.xml index 091038b243..61b03744d9 100644 --- a/services/orgid/pom.xml +++ b/services/orgid/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-orgid - 3.1.121 + 3.1.122 Huawei Cloud SDK for ORGID 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/oroas/pom.xml b/services/oroas/pom.xml index af52e7c35a..47f609059f 100644 --- a/services/oroas/pom.xml +++ b/services/oroas/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-oroas - 3.1.121 + 3.1.122 Huawei Cloud SDK for OROAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/osm/pom.xml b/services/osm/pom.xml index 38f52bc5b3..716d2fde6d 100644 --- a/services/osm/pom.xml +++ b/services/osm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-osm - 3.1.121 + 3.1.122 Huawei Cloud SDK for OSM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/pangulargemodels/pom.xml b/services/pangulargemodels/pom.xml index 96e7b4d26a..81a2282c99 100644 --- a/services/pangulargemodels/pom.xml +++ b/services/pangulargemodels/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-pangulargemodels - 3.1.121 + 3.1.122 Huawei Cloud SDK for PANGULARGEMODELS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 org.springframework.boot diff --git a/services/pom.xml b/services/pom.xml index 87823d0286..b4165ba124 100644 --- a/services/pom.xml +++ b/services/pom.xml @@ -6,192 +6,192 @@ com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk com.huaweicloud.sdk huaweicloud-sdk-services - 3.1.121 + 3.1.122 pom Huawei Cloud SDK for Java Services Services code for Huawei Cloud SDK for Java https://github.com/huaweicloud/huaweicloud-sdk-java-v3 - meeting - idme - aom - sdrs - koomap - evs - bssintl - vpn - ocr - rabbitmq - drs - cbr - sa - tms - as + er sts - iec - sfsturbo - oa - gsl - live - iotedge - swr - cpts - functiongraph - codehub - oroas - cse - vias - imagesearch - dris - waf - moderation - asm - vpc - res - mpc - codeartsartifact mrs - dli + bss + codeartsinspector + nat + cgs deh - rocketmq - ram - cae - dns - kps - er - mapds - ccm + dc + scm + ief + gsl + evs + iotdm + ivs + campusgo + gaussdbfornosql + as + vpcep + identitycenterstore + cbs bms - bss iamaccessanalyzer - dataartsfabricep + workspaceapp + codeartsdeploy cloudpond - cdm - cbh - css - koophone - dataartsfabric - identitycenterstore - ec + dli + mas + vcm + vpc + expert + ugo + vas + dss + rds + moderation + rgc + mssi + ocr + vod + iotedge + idmeclassicapi + kps aos - dbss - osm - cbs + mapds + oms + cdm + metastudio cce - dis - pangulargemodels - ges - vpcep - kvs - orgid - gaussdbforopengauss - vas + sa + dataartsfabric + hss bcs - csms - cloudtable - gaussdbfornosql - ecs - ddm - workspaceapp + eihealth + cloudtest + dwr + ccm + asm + antiddos codeartsgovernance - iam - dlf - dataartsinsight - metastudio - eps - apig - hilens - dataartsstudio - obs - cgs + iotanalytics + ddm + idme eds + dataartsinsight + dris + tics + ims + cloudtable + live + cdn + osm cms - ivs - kafka - cloudtest - coc - dss - ugo + gaussdb + cloudrtc organizations + vias eip - ga - classroom - das - antiddos - scm - iotdm - mas - rgc - optverse - mssi - ief - iotda - dwr + cpts + codeartsartifact + bssintl + mpc + drs + cbr + cse + iec + dataartsstudio + roma + oroas + sfsturbo + hilens + lts cloudide - eihealth - eg + devstar + dataartsfabricep + secmaster + dlf + csms + ec + cts codecraft - kms + ram + tms + config + dis + eg + msgsms lakeformation + smn + cbh codeartspipeline - tics - rds - cdn - geip - cfw - cts - projectman + frs + gaussdbforopengauss + dsc + imagesearch + coc + swr + iotda + koomessage + classroom + aom + meeting + ges + apm + identitycenter + eps + nlp + codeartscheck image - lts + dws + codehub + cae + ecs + css + das + koomap + dcs + kms sms - codeartsinspector - cc - identitycenter - msgsms - codeartsdeploy - codeartsbuild - campusgo - edgesec - dds + geip + orgid + obs + ga + rocketmq + dbss + optverse + iam + koophone + pangulargemodels rms - koomessage - expert + cph workspace - roma - smn - iotanalytics - nat - apm - servicestage - codeartscheck - vod + functiongraph + dgc + waf + oa + res + codeartsbuild + ces + vpn + dds + projectman + dns sis - dsc - cph + sdrs + cfw + cc + rabbitmq + apig + servicestage + edgesec aad - hss - dc - ces - idmeclassicapi - config - nlp + kvs elb - vcm - gaussdb - dcs - devstar - dgc - oms - dws - ims - frs - secmaster - cloudrtc + kafka diff --git a/services/projectman/pom.xml b/services/projectman/pom.xml index 710738d2bb..804b869311 100644 --- a/services/projectman/pom.xml +++ b/services/projectman/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-projectman - 3.1.121 + 3.1.122 Huawei Cloud SDK for PROJECTMAN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/rabbitmq/pom.xml b/services/rabbitmq/pom.xml index 2dda054975..6d09e3344d 100644 --- a/services/rabbitmq/pom.xml +++ b/services/rabbitmq/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-rabbitmq - 3.1.121 + 3.1.122 Huawei Cloud SDK for RABBITMQ 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/ram/pom.xml b/services/ram/pom.xml index 5ecfb0e983..fe21d0cbce 100644 --- a/services/ram/pom.xml +++ b/services/ram/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-ram - 3.1.121 + 3.1.122 Huawei Cloud SDK for RAM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/rds/pom.xml b/services/rds/pom.xml index aa72367bac..9e16cc14a0 100644 --- a/services/rds/pom.xml +++ b/services/rds/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-rds - 3.1.121 + 3.1.122 Huawei Cloud SDK for RDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/res/pom.xml b/services/res/pom.xml index 46b48243dc..774680f83d 100644 --- a/services/res/pom.xml +++ b/services/res/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-res - 3.1.121 + 3.1.122 Huawei Cloud SDK for RES 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/rgc/pom.xml b/services/rgc/pom.xml index 7c93c8a92c..f60c2c9cda 100644 --- a/services/rgc/pom.xml +++ b/services/rgc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-rgc - 3.1.121 + 3.1.122 Huawei Cloud SDK for RGC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/rms/pom.xml b/services/rms/pom.xml index 7a23d2ca29..1972aa09a7 100644 --- a/services/rms/pom.xml +++ b/services/rms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-rms - 3.1.121 + 3.1.122 Huawei Cloud SDK for RMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/rocketmq/pom.xml b/services/rocketmq/pom.xml index ff93e14cec..d5cf02ff98 100644 --- a/services/rocketmq/pom.xml +++ b/services/rocketmq/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-rocketmq - 3.1.121 + 3.1.122 Huawei Cloud SDK for ROCKETMQ 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/roma/pom.xml b/services/roma/pom.xml index 715eb5fd90..12195ff05d 100644 --- a/services/roma/pom.xml +++ b/services/roma/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-roma - 3.1.121 + 3.1.122 Huawei Cloud SDK for ROMA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/sa/pom.xml b/services/sa/pom.xml index c4f74049ce..8757ef4c67 100644 --- a/services/sa/pom.xml +++ b/services/sa/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-sa - 3.1.121 + 3.1.122 Huawei Cloud SDK for SA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/scm/pom.xml b/services/scm/pom.xml index be2c84a144..e4b44a9e42 100644 --- a/services/scm/pom.xml +++ b/services/scm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-scm - 3.1.121 + 3.1.122 Huawei Cloud SDK for SCM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/sdrs/pom.xml b/services/sdrs/pom.xml index 8b28671370..442381e03d 100644 --- a/services/sdrs/pom.xml +++ b/services/sdrs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-sdrs - 3.1.121 + 3.1.122 Huawei Cloud SDK for SDRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/secmaster/pom.xml b/services/secmaster/pom.xml index db9f4a1e34..eb863e1c25 100644 --- a/services/secmaster/pom.xml +++ b/services/secmaster/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-secmaster - 3.1.121 + 3.1.122 Huawei Cloud SDK for SECMASTER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/servicestage/pom.xml b/services/servicestage/pom.xml index 9f75982e9d..1ff8a376f4 100644 --- a/services/servicestage/pom.xml +++ b/services/servicestage/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-servicestage - 3.1.121 + 3.1.122 Huawei Cloud SDK for SERVICESTAGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/sfsturbo/pom.xml b/services/sfsturbo/pom.xml index 06bec59de2..c217462db5 100644 --- a/services/sfsturbo/pom.xml +++ b/services/sfsturbo/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-sfsturbo - 3.1.121 + 3.1.122 Huawei Cloud SDK for SFSTURBO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/SFSTurboAsyncClient.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/SFSTurboAsyncClient.java index 2b8e7c08fa..327406bd95 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/SFSTurboAsyncClient.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/SFSTurboAsyncClient.java @@ -35,6 +35,8 @@ import com.huaweicloud.sdk.sfsturbo.v1.model.DeleteFsDirResponse; import com.huaweicloud.sdk.sfsturbo.v1.model.DeleteFsTaskRequest; import com.huaweicloud.sdk.sfsturbo.v1.model.DeleteFsTaskResponse; +import com.huaweicloud.sdk.sfsturbo.v1.model.DeleteHpcCacheTaskRequest; +import com.huaweicloud.sdk.sfsturbo.v1.model.DeleteHpcCacheTaskResponse; import com.huaweicloud.sdk.sfsturbo.v1.model.DeleteLdapConfigRequest; import com.huaweicloud.sdk.sfsturbo.v1.model.DeleteLdapConfigResponse; import com.huaweicloud.sdk.sfsturbo.v1.model.DeletePermRuleRequest; @@ -87,6 +89,10 @@ import com.huaweicloud.sdk.sfsturbo.v1.model.UpdateHpcShareResponse; import com.huaweicloud.sdk.sfsturbo.v1.model.UpdateLdapConfigRequest; import com.huaweicloud.sdk.sfsturbo.v1.model.UpdateLdapConfigResponse; +import com.huaweicloud.sdk.sfsturbo.v1.model.UpdateObsTargetAttributesRequest; +import com.huaweicloud.sdk.sfsturbo.v1.model.UpdateObsTargetAttributesResponse; +import com.huaweicloud.sdk.sfsturbo.v1.model.UpdateObsTargetPolicyRequest; +import com.huaweicloud.sdk.sfsturbo.v1.model.UpdateObsTargetPolicyResponse; import com.huaweicloud.sdk.sfsturbo.v1.model.UpdatePermRuleRequest; import com.huaweicloud.sdk.sfsturbo.v1.model.UpdatePermRuleResponse; @@ -110,7 +116,7 @@ public static ClientBuilder newBuilder() { * * 指定共享批量添加标签。 * - * 一个共享上最多有10个标签。 + * 一个共享上最多有20个标签。 * 一个共享上的多个标签的key不允许重复。 * 此接口为幂等接口:如果要添加的key在共享上已存在,则覆盖更新标签。 * @@ -128,7 +134,7 @@ public CompletableFuture batchAddSharedTagsAsync(Bat * * 指定共享批量添加标签。 * - * 一个共享上最多有10个标签。 + * 一个共享上最多有20个标签。 * 一个共享上的多个标签的key不允许重复。 * 此接口为幂等接口:如果要添加的key在共享上已存在,则覆盖更新标签。 * @@ -203,7 +209,7 @@ public AsyncInvoker changeShare /** * 绑定后端存储 * - * 为SFS Turbo HPC型文件系统绑定后端存储 + * 为SFS Turbo 文件系统绑定后端存储 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -217,7 +223,7 @@ public CompletableFuture createBackendTargetAsync(C /** * 绑定后端存储 * - * 为SFS Turbo HPC型文件系统绑定后端存储 + * 为SFS Turbo 文件系统绑定后端存储 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -289,7 +295,7 @@ public AsyncInvoker createFsD /** * 创建文件系统异步任务 * - * 创建文件系统异步任务 + * 创建文件系统异步任务,仅支持异步查询目录资源使用情况,API请求路径的feature取值为dir-usage,以下简称为DU任务。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -303,7 +309,7 @@ public CompletableFuture createFsTaskAsync(CreateFsTaskReq /** * 创建文件系统异步任务 * - * 创建文件系统异步任务 + * 创建文件系统异步任务,仅支持异步查询目录资源使用情况,API请求路径的feature取值为dir-usage,以下简称为DU任务。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -347,7 +353,11 @@ public AsyncInvoker creat /** * 创建并绑定ldap配置 * - * 创建并绑定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. * @@ -361,7 +371,11 @@ public CompletableFuture createLdapConfigAsync(CreateL /** * 创建并绑定ldap配置 * - * 创建并绑定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. * @@ -434,7 +448,7 @@ public AsyncInvoker createShareAsyncInv * 创建共享标签 * * 指定共享添加一个标签。 - * 一个共享上最多有10个标签。 + * 一个共享上最多有20个标签。 * 一个共享上的多个标签的key不允许重复。 * 此接口为幂等接口:如果要添加的key在共享上已存在,则覆盖更新标签。 * @@ -451,7 +465,7 @@ public CompletableFuture createSharedTagAsync(CreateSha * 创建共享标签 * * 指定共享添加一个标签。 - * 一个共享上最多有10个标签。 + * 一个共享上最多有20个标签。 * 一个共享上的多个标签的key不允许重复。 * 此接口为幂等接口:如果要添加的key在共享上已存在,则覆盖更新标签。 * @@ -554,7 +568,7 @@ public AsyncInvoker deleteFsD /** * 取消/删除文件系统异步任务 * - * 如果异步任务正在执行,则取消并删除任务;否则,删除任务。 + * 如果异步任务正在执行,则取消并删除任务;否则,删除任务。仅支持删除目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -568,7 +582,7 @@ public CompletableFuture deleteFsTaskAsync(DeleteFsTaskReq /** * 取消/删除文件系统异步任务 * - * 如果异步任务正在执行,则取消并删除任务;否则,删除任务。 + * 如果异步任务正在执行,则取消并删除任务;否则,删除任务。仅支持删除目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -581,9 +595,42 @@ public AsyncInvoker deleteFsTaskAsync } /** - * 删除ldap配置 + * 删除数据导入导出任务 + * + * 删除数据导入导出任务 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteHpcCacheTaskRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteHpcCacheTaskAsync(DeleteHpcCacheTaskRequest request) { + return hcClient.asyncInvokeHttp(request, SFSTurboMeta.deleteHpcCacheTask); + } + + /** + * 删除数据导入导出任务 + * + * 删除数据导入导出任务 + * + * Please refer to HUAWEI cloud API Explorer for details. * + * @param request DeleteHpcCacheTaskRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteHpcCacheTaskAsyncInvoker( + DeleteHpcCacheTaskRequest request) { + return new AsyncInvoker<>(request, SFSTurboMeta.deleteHpcCacheTask, hcClient); + } + + /** * 删除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. * @@ -597,7 +644,11 @@ public CompletableFuture deleteLdapConfigAsync(DeleteL /** * 删除ldap配置 * - * 删除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. * @@ -755,7 +806,7 @@ public AsyncInvoker listB /** * 获取文件系统异步任务列表 * - * 获取文件系统异步任务列表 + * 获取文件系统异步任务列表。仅支持查询目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -769,7 +820,7 @@ public CompletableFuture listFsTasksAsync(ListFsTasksReques /** * 获取文件系统异步任务列表 * - * 获取文件系统异步任务列表 + * 获取文件系统异步任务列表。仅支持查询目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -985,7 +1036,7 @@ public AsyncInvoker showFsDirAsyncInvoker(S /** * 查询目标文件夹quota * - * 查询目标文件夹quota + * 查询目标文件夹quota。查询的used_capacity、used_inode数据可能有延迟。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -999,7 +1050,7 @@ public CompletableFuture showFsDirQuotaAsync(ShowFsDirQu /** * 查询目标文件夹quota * - * 查询目标文件夹quota + * 查询目标文件夹quota。查询的used_capacity、used_inode数据可能有延迟。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1043,7 +1094,7 @@ public AsyncInvoker showFsDirUsag /** * 获取文件系统异步任务详情 * - * 获取文件系统异步任务详情 + * 获取文件系统异步任务详情。仅支持查询目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1057,7 +1108,7 @@ public CompletableFuture showFsTaskAsync(ShowFsTaskRequest r /** * 获取文件系统异步任务详情 * - * 获取文件系统异步任务详情 + * 获取文件系统异步任务详情。仅支持查询目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1100,7 +1151,7 @@ public AsyncInvoker showHpcCa /** * 查询job的状态详情 * - * 查询job的执行状态。 可用于查询SFS Turbo异步API的执行状态。 + * 查询job的执行状态。 可用于查询SFS Turbo异步API的执行状态。例如:可使用调用创建并绑定ldap配置接口时返回的jobId,通过该接口查询job的执行状态。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1114,7 +1165,7 @@ public CompletableFuture showJobDetailAsync(ShowJobDetail /** * 查询job的状态详情 * - * 查询job的执行状态。 可用于查询SFS Turbo异步API的执行状态。 + * 查询job的执行状态。 可用于查询SFS Turbo异步API的执行状态。例如:可使用调用创建并绑定ldap配置接口时返回的jobId,通过该接口查询job的执行状态。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1129,7 +1180,11 @@ public AsyncInvoker showJobDetailAs /** * 查询Ldap的配置 * - * 查询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. * @@ -1143,7 +1198,11 @@ public CompletableFuture showLdapConfigAsync(ShowLdapCon /** * 查询Ldap的配置 * - * 查询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. * @@ -1302,7 +1361,11 @@ public AsyncInvoker updateHpcShar /** * 修改ldap配置 * - * 修改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. * @@ -1316,7 +1379,11 @@ public CompletableFuture updateLdapConfigAsync(UpdateL /** * 修改ldap配置 * - * 修改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. * @@ -1328,6 +1395,66 @@ public AsyncInvoker updateLda return new AsyncInvoker<>(request, SFSTurboMeta.updateLdapConfig, hcClient); } + /** + * 更新后端存储属性 + * + * 更新后端存储属性 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateObsTargetAttributesRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateObsTargetAttributesAsync( + UpdateObsTargetAttributesRequest request) { + return hcClient.asyncInvokeHttp(request, SFSTurboMeta.updateObsTargetAttributes); + } + + /** + * 更新后端存储属性 + * + * 更新后端存储属性 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateObsTargetAttributesRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateObsTargetAttributesAsyncInvoker( + UpdateObsTargetAttributesRequest request) { + return new AsyncInvoker<>(request, SFSTurboMeta.updateObsTargetAttributes, hcClient); + } + + /** + * 更新后端存储自动同步策略 + * + * 更新后端存储自动同步策略 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateObsTargetPolicyRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateObsTargetPolicyAsync( + UpdateObsTargetPolicyRequest request) { + return hcClient.asyncInvokeHttp(request, SFSTurboMeta.updateObsTargetPolicy); + } + + /** + * 更新后端存储自动同步策略 + * + * 更新后端存储自动同步策略 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateObsTargetPolicyRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateObsTargetPolicyAsyncInvoker( + UpdateObsTargetPolicyRequest request) { + return new AsyncInvoker<>(request, SFSTurboMeta.updateObsTargetPolicy, hcClient); + } + /** * 修改权限规则 * diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/SFSTurboClient.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/SFSTurboClient.java index f736de951d..4db309f016 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/SFSTurboClient.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/SFSTurboClient.java @@ -35,6 +35,8 @@ import com.huaweicloud.sdk.sfsturbo.v1.model.DeleteFsDirResponse; import com.huaweicloud.sdk.sfsturbo.v1.model.DeleteFsTaskRequest; import com.huaweicloud.sdk.sfsturbo.v1.model.DeleteFsTaskResponse; +import com.huaweicloud.sdk.sfsturbo.v1.model.DeleteHpcCacheTaskRequest; +import com.huaweicloud.sdk.sfsturbo.v1.model.DeleteHpcCacheTaskResponse; import com.huaweicloud.sdk.sfsturbo.v1.model.DeleteLdapConfigRequest; import com.huaweicloud.sdk.sfsturbo.v1.model.DeleteLdapConfigResponse; import com.huaweicloud.sdk.sfsturbo.v1.model.DeletePermRuleRequest; @@ -87,6 +89,10 @@ import com.huaweicloud.sdk.sfsturbo.v1.model.UpdateHpcShareResponse; import com.huaweicloud.sdk.sfsturbo.v1.model.UpdateLdapConfigRequest; import com.huaweicloud.sdk.sfsturbo.v1.model.UpdateLdapConfigResponse; +import com.huaweicloud.sdk.sfsturbo.v1.model.UpdateObsTargetAttributesRequest; +import com.huaweicloud.sdk.sfsturbo.v1.model.UpdateObsTargetAttributesResponse; +import com.huaweicloud.sdk.sfsturbo.v1.model.UpdateObsTargetPolicyRequest; +import com.huaweicloud.sdk.sfsturbo.v1.model.UpdateObsTargetPolicyResponse; import com.huaweicloud.sdk.sfsturbo.v1.model.UpdatePermRuleRequest; import com.huaweicloud.sdk.sfsturbo.v1.model.UpdatePermRuleResponse; @@ -108,7 +114,7 @@ public static ClientBuilder newBuilder() { * * 指定共享批量添加标签。 * - * 一个共享上最多有10个标签。 + * 一个共享上最多有20个标签。 * 一个共享上的多个标签的key不允许重复。 * 此接口为幂等接口:如果要添加的key在共享上已存在,则覆盖更新标签。 * @@ -126,7 +132,7 @@ public BatchAddSharedTagsResponse batchAddSharedTags(BatchAddSharedTagsRequest r * * 指定共享批量添加标签。 * - * 一个共享上最多有10个标签。 + * 一个共享上最多有20个标签。 * 一个共享上的多个标签的key不允许重复。 * 此接口为幂等接口:如果要添加的key在共享上已存在,则覆盖更新标签。 * @@ -201,7 +207,7 @@ public SyncInvoker changeShareN /** * 绑定后端存储 * - * 为SFS Turbo HPC型文件系统绑定后端存储 + * 为SFS Turbo 文件系统绑定后端存储 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -215,7 +221,7 @@ public CreateBackendTargetResponse createBackendTarget(CreateBackendTargetReques /** * 绑定后端存储 * - * 为SFS Turbo HPC型文件系统绑定后端存储 + * 为SFS Turbo 文件系统绑定后端存储 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -287,7 +293,7 @@ public SyncInvoker createFsDi /** * 创建文件系统异步任务 * - * 创建文件系统异步任务 + * 创建文件系统异步任务,仅支持异步查询目录资源使用情况,API请求路径的feature取值为dir-usage,以下简称为DU任务。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -301,7 +307,7 @@ public CreateFsTaskResponse createFsTask(CreateFsTaskRequest request) { /** * 创建文件系统异步任务 * - * 创建文件系统异步任务 + * 创建文件系统异步任务,仅支持异步查询目录资源使用情况,API请求路径的feature取值为dir-usage,以下简称为DU任务。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -344,7 +350,11 @@ public SyncInvoker create /** * 创建并绑定ldap配置 * - * 创建并绑定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. * @@ -358,7 +368,11 @@ public CreateLdapConfigResponse createLdapConfig(CreateLdapConfigRequest request /** * 创建并绑定ldap配置 * - * 创建并绑定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. * @@ -431,7 +445,7 @@ public SyncInvoker createShareInvoker(C * 创建共享标签 * * 指定共享添加一个标签。 - * 一个共享上最多有10个标签。 + * 一个共享上最多有20个标签。 * 一个共享上的多个标签的key不允许重复。 * 此接口为幂等接口:如果要添加的key在共享上已存在,则覆盖更新标签。 * @@ -448,7 +462,7 @@ public CreateSharedTagResponse createSharedTag(CreateSharedTagRequest request) { * 创建共享标签 * * 指定共享添加一个标签。 - * 一个共享上最多有10个标签。 + * 一个共享上最多有20个标签。 * 一个共享上的多个标签的key不允许重复。 * 此接口为幂等接口:如果要添加的key在共享上已存在,则覆盖更新标签。 * @@ -551,7 +565,7 @@ public SyncInvoker deleteFsDi /** * 取消/删除文件系统异步任务 * - * 如果异步任务正在执行,则取消并删除任务;否则,删除任务。 + * 如果异步任务正在执行,则取消并删除任务;否则,删除任务。仅支持删除目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -565,7 +579,7 @@ public DeleteFsTaskResponse deleteFsTask(DeleteFsTaskRequest request) { /** * 取消/删除文件系统异步任务 * - * 如果异步任务正在执行,则取消并删除任务;否则,删除任务。 + * 如果异步任务正在执行,则取消并删除任务;否则,删除任务。仅支持删除目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -577,9 +591,42 @@ public SyncInvoker deleteFsTaskInvoke } /** - * 删除ldap配置 + * 删除数据导入导出任务 + * + * 删除数据导入导出任务 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteHpcCacheTaskRequest 请求对象 + * @return DeleteHpcCacheTaskResponse + */ + public DeleteHpcCacheTaskResponse deleteHpcCacheTask(DeleteHpcCacheTaskRequest request) { + return hcClient.syncInvokeHttp(request, SFSTurboMeta.deleteHpcCacheTask); + } + + /** + * 删除数据导入导出任务 + * + * 删除数据导入导出任务 + * + * Please refer to HUAWEI cloud API Explorer for details. * + * @param request DeleteHpcCacheTaskRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteHpcCacheTaskInvoker( + DeleteHpcCacheTaskRequest request) { + return new SyncInvoker<>(request, SFSTurboMeta.deleteHpcCacheTask, hcClient); + } + + /** * 删除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. * @@ -593,7 +640,11 @@ public DeleteLdapConfigResponse deleteLdapConfig(DeleteLdapConfigRequest request /** * 删除ldap配置 * - * 删除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. * @@ -751,7 +802,7 @@ public SyncInvoker listBa /** * 获取文件系统异步任务列表 * - * 获取文件系统异步任务列表 + * 获取文件系统异步任务列表。仅支持查询目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -765,7 +816,7 @@ public ListFsTasksResponse listFsTasks(ListFsTasksRequest request) { /** * 获取文件系统异步任务列表 * - * 获取文件系统异步任务列表 + * 获取文件系统异步任务列表。仅支持查询目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -979,7 +1030,7 @@ public SyncInvoker showFsDirInvoker(ShowFsD /** * 查询目标文件夹quota * - * 查询目标文件夹quota + * 查询目标文件夹quota。查询的used_capacity、used_inode数据可能有延迟。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -993,7 +1044,7 @@ public ShowFsDirQuotaResponse showFsDirQuota(ShowFsDirQuotaRequest request) { /** * 查询目标文件夹quota * - * 查询目标文件夹quota + * 查询目标文件夹quota。查询的used_capacity、used_inode数据可能有延迟。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1037,7 +1088,7 @@ public SyncInvoker showFsDirUsage /** * 获取文件系统异步任务详情 * - * 获取文件系统异步任务详情 + * 获取文件系统异步任务详情。仅支持查询目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1051,7 +1102,7 @@ public ShowFsTaskResponse showFsTask(ShowFsTaskRequest request) { /** * 获取文件系统异步任务详情 * - * 获取文件系统异步任务详情 + * 获取文件系统异步任务详情。仅支持查询目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1094,7 +1145,7 @@ public SyncInvoker showHpcCac /** * 查询job的状态详情 * - * 查询job的执行状态。 可用于查询SFS Turbo异步API的执行状态。 + * 查询job的执行状态。 可用于查询SFS Turbo异步API的执行状态。例如:可使用调用创建并绑定ldap配置接口时返回的jobId,通过该接口查询job的执行状态。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1108,7 +1159,7 @@ public ShowJobDetailResponse showJobDetail(ShowJobDetailRequest request) { /** * 查询job的状态详情 * - * 查询job的执行状态。 可用于查询SFS Turbo异步API的执行状态。 + * 查询job的执行状态。 可用于查询SFS Turbo异步API的执行状态。例如:可使用调用创建并绑定ldap配置接口时返回的jobId,通过该接口查询job的执行状态。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1122,7 +1173,11 @@ public SyncInvoker showJobDetailInv /** * 查询Ldap的配置 * - * 查询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. * @@ -1136,7 +1191,11 @@ public ShowLdapConfigResponse showLdapConfig(ShowLdapConfigRequest request) { /** * 查询Ldap的配置 * - * 查询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. * @@ -1294,7 +1353,11 @@ public SyncInvoker updateHpcShare /** * 修改ldap配置 * - * 修改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. * @@ -1308,7 +1371,11 @@ public UpdateLdapConfigResponse updateLdapConfig(UpdateLdapConfigRequest request /** * 修改ldap配置 * - * 修改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. * @@ -1320,6 +1387,64 @@ public SyncInvoker updateLdap return new SyncInvoker<>(request, SFSTurboMeta.updateLdapConfig, hcClient); } + /** + * 更新后端存储属性 + * + * 更新后端存储属性 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateObsTargetAttributesRequest 请求对象 + * @return UpdateObsTargetAttributesResponse + */ + public UpdateObsTargetAttributesResponse updateObsTargetAttributes(UpdateObsTargetAttributesRequest request) { + return hcClient.syncInvokeHttp(request, SFSTurboMeta.updateObsTargetAttributes); + } + + /** + * 更新后端存储属性 + * + * 更新后端存储属性 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateObsTargetAttributesRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateObsTargetAttributesInvoker( + UpdateObsTargetAttributesRequest request) { + return new SyncInvoker<>(request, SFSTurboMeta.updateObsTargetAttributes, hcClient); + } + + /** + * 更新后端存储自动同步策略 + * + * 更新后端存储自动同步策略 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateObsTargetPolicyRequest 请求对象 + * @return UpdateObsTargetPolicyResponse + */ + public UpdateObsTargetPolicyResponse updateObsTargetPolicy(UpdateObsTargetPolicyRequest request) { + return hcClient.syncInvokeHttp(request, SFSTurboMeta.updateObsTargetPolicy); + } + + /** + * 更新后端存储自动同步策略 + * + * 更新后端存储自动同步策略 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateObsTargetPolicyRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateObsTargetPolicyInvoker( + UpdateObsTargetPolicyRequest request) { + return new SyncInvoker<>(request, SFSTurboMeta.updateObsTargetPolicy, hcClient); + } + /** * 修改权限规则 * diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/SFSTurboMeta.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/SFSTurboMeta.java index 4352008b27..a8915784cb 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/SFSTurboMeta.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/SFSTurboMeta.java @@ -50,6 +50,8 @@ import com.huaweicloud.sdk.sfsturbo.v1.model.DeleteFsDirResponse; import com.huaweicloud.sdk.sfsturbo.v1.model.DeleteFsTaskRequest; import com.huaweicloud.sdk.sfsturbo.v1.model.DeleteFsTaskResponse; +import com.huaweicloud.sdk.sfsturbo.v1.model.DeleteHpcCacheTaskRequest; +import com.huaweicloud.sdk.sfsturbo.v1.model.DeleteHpcCacheTaskResponse; import com.huaweicloud.sdk.sfsturbo.v1.model.DeleteLdapConfigRequest; import com.huaweicloud.sdk.sfsturbo.v1.model.DeleteLdapConfigResponse; import com.huaweicloud.sdk.sfsturbo.v1.model.DeletePermRuleRequest; @@ -109,6 +111,12 @@ import com.huaweicloud.sdk.sfsturbo.v1.model.UpdateLdapConfigRequest; import com.huaweicloud.sdk.sfsturbo.v1.model.UpdateLdapConfigRequestBody; import com.huaweicloud.sdk.sfsturbo.v1.model.UpdateLdapConfigResponse; +import com.huaweicloud.sdk.sfsturbo.v1.model.UpdateObsTargetAttributesRequest; +import com.huaweicloud.sdk.sfsturbo.v1.model.UpdateObsTargetAttributesRequestBody; +import com.huaweicloud.sdk.sfsturbo.v1.model.UpdateObsTargetAttributesResponse; +import com.huaweicloud.sdk.sfsturbo.v1.model.UpdateObsTargetPolicyRequest; +import com.huaweicloud.sdk.sfsturbo.v1.model.UpdateObsTargetPolicyRequestBody; +import com.huaweicloud.sdk.sfsturbo.v1.model.UpdateObsTargetPolicyResponse; import com.huaweicloud.sdk.sfsturbo.v1.model.UpdatePermRuleRequest; import com.huaweicloud.sdk.sfsturbo.v1.model.UpdatePermRuleResponse; @@ -587,6 +595,40 @@ private static HttpRequestDef genForD return builder.build(); } + public static final HttpRequestDef deleteHpcCacheTask = + genForDeleteHpcCacheTask(); + + private static HttpRequestDef genForDeleteHpcCacheTask() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.DELETE, DeleteHpcCacheTaskRequest.class, DeleteHpcCacheTaskResponse.class) + .withName("DeleteHpcCacheTask") + .withUri("/v1/{project_id}/sfs-turbo/{share_id}/hpc-cache/task/{task_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("share_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteHpcCacheTaskRequest::getShareId, DeleteHpcCacheTaskRequest::setShareId)); + builder.withRequestField("task_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteHpcCacheTaskRequest::getTaskId, DeleteHpcCacheTaskRequest::setTaskId)); + + // response + + builder.withResponseField("X-request-id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(DeleteHpcCacheTaskResponse::getXRequestId, + DeleteHpcCacheTaskResponse::setXRequestId)); + return builder.build(); + } + public static final HttpRequestDef deleteLdapConfig = genForDeleteLdapConfig(); @@ -828,6 +870,16 @@ private static HttpRequestDef f.withMarshaller(ListHpcCacheTasksRequest::getLimit, ListHpcCacheTasksRequest::setLimit)); + builder.withRequestField("start_time", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListHpcCacheTasksRequest::getStartTime, ListHpcCacheTasksRequest::setStartTime)); + builder.withRequestField("end_time", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListHpcCacheTasksRequest::getEndTime, ListHpcCacheTasksRequest::setEndTime)); // response @@ -856,6 +908,16 @@ private static HttpRequestDef genFo FieldExistence.NON_NULL_NON_EMPTY, TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(ListPermRulesRequest::getShareId, ListPermRulesRequest::setShareId)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Long.class), + f -> f.withMarshaller(ListPermRulesRequest::getLimit, ListPermRulesRequest::setLimit)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Long.class), + f -> f.withMarshaller(ListPermRulesRequest::getOffset, ListPermRulesRequest::setOffset)); // response @@ -874,6 +936,16 @@ private static HttpRequestDef gen .withContentType("application/json"); // requests + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListSharedTagsRequest::getLimit, ListSharedTagsRequest::setLimit)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListSharedTagsRequest::getOffset, ListSharedTagsRequest::setOffset)); // response @@ -1341,6 +1413,91 @@ private static HttpRequestDef return builder.build(); } + public static final HttpRequestDef updateObsTargetAttributes = + genForUpdateObsTargetAttributes(); + + private static HttpRequestDef genForUpdateObsTargetAttributes() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.PUT, + UpdateObsTargetAttributesRequest.class, + UpdateObsTargetAttributesResponse.class) + .withName("UpdateObsTargetAttributes") + .withUri("/v1/{project_id}/sfs-turbo/shares/{share_id}/targets/{target_id}/attributes") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("share_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateObsTargetAttributesRequest::getShareId, + UpdateObsTargetAttributesRequest::setShareId)); + builder.withRequestField("target_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateObsTargetAttributesRequest::getTargetId, + UpdateObsTargetAttributesRequest::setTargetId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateObsTargetAttributesRequestBody.class), + f -> f.withMarshaller(UpdateObsTargetAttributesRequest::getBody, + UpdateObsTargetAttributesRequest::setBody)); + + // response + + builder.withResponseField("X-request-id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(UpdateObsTargetAttributesResponse::getXRequestId, + UpdateObsTargetAttributesResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef updateObsTargetPolicy = + genForUpdateObsTargetPolicy(); + + private static HttpRequestDef genForUpdateObsTargetPolicy() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.PUT, UpdateObsTargetPolicyRequest.class, UpdateObsTargetPolicyResponse.class) + .withName("UpdateObsTargetPolicy") + .withUri("/v1/{project_id}/sfs-turbo/shares/{share_id}/targets/{target_id}/policy") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("share_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateObsTargetPolicyRequest::getShareId, UpdateObsTargetPolicyRequest::setShareId)); + builder.withRequestField("target_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateObsTargetPolicyRequest::getTargetId, + UpdateObsTargetPolicyRequest::setTargetId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateObsTargetPolicyRequestBody.class), + f -> f.withMarshaller(UpdateObsTargetPolicyRequest::getBody, UpdateObsTargetPolicyRequest::setBody)); + + // response + + builder.withResponseField("X-request-id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(UpdateObsTargetPolicyResponse::getXRequestId, + UpdateObsTargetPolicyResponse::setXRequestId)); + return builder.build(); + } + public static final HttpRequestDef updatePermRule = genForUpdatePermRule(); diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/AutoExportPolicy.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/AutoExportPolicy.java new file mode 100644 index 0000000000..46abcdf398 --- /dev/null +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/AutoExportPolicy.java @@ -0,0 +1,172 @@ +package com.huaweicloud.sdk.sfsturbo.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 后端存储自动导出策略,SFS Turbo会以异步方式导出到OBS。 + */ +public class AutoExportPolicy { + + /** + * 后端存储自动导出到OBS桶的数据更新类型。 + */ + public static final class EventsEnum { + + /** + * Enum NEW for value: "NEW" + */ + public static final EventsEnum NEW = new EventsEnum("NEW"); + + /** + * Enum CHANGED for value: "CHANGED" + */ + public static final EventsEnum CHANGED = new EventsEnum("CHANGED"); + + /** + * Enum DELETED for value: "DELETED" + */ + public static final EventsEnum DELETED = new EventsEnum("DELETED"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("NEW", NEW); + map.put("CHANGED", CHANGED); + map.put("DELETED", DELETED); + return Collections.unmodifiableMap(map); + } + + private String value; + + EventsEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static EventsEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new EventsEnum(value)); + } + + public static EventsEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof EventsEnum) { + return this.value.equals(((EventsEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "events") + + private List events = null; + + public AutoExportPolicy withEvents(List events) { + this.events = events; + return this; + } + + public AutoExportPolicy addEventsItem(EventsEnum eventsItem) { + if (this.events == null) { + this.events = new ArrayList<>(); + } + this.events.add(eventsItem); + return this; + } + + public AutoExportPolicy withEvents(Consumer> eventsSetter) { + if (this.events == null) { + this.events = new ArrayList<>(); + } + eventsSetter.accept(this.events); + return this; + } + + /** + * 后端存储自动导出到OBS桶的数据更新类型。 - NEW:表示新增数据,SFS Turbo联动目录下创建的文件,及之后对这些文件进行的元数据和数据修改,会被自动同步到OBS桶里。 - CHANGED:表示修改数据,从OBS桶里导入到SFS Turbo联动目录下的文件,在SFS Turbo上对这些文件所进行的数据和元数据的修改,会被自动同步到OBS桶里。 - DELETED:表示删除数据,在SFS Turbo联动目录下删除文件,OBS桶对应的对象也会被删除,只有被SFS Turbo写入的OBS对象才会被删除。 + * @return events + */ + public List getEvents() { + return events; + } + + public void setEvents(List events) { + this.events = events; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AutoExportPolicy that = (AutoExportPolicy) obj; + return Objects.equals(this.events, that.events); + } + + @Override + public int hashCode() { + return Objects.hash(events); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AutoExportPolicy {\n"); + sb.append(" events: ").append(toIndentedString(events)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ConfigObsTarget.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ConfigObsTarget.java deleted file mode 100644 index 52d9a68be2..0000000000 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ConfigObsTarget.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.huaweicloud.sdk.sfsturbo.v1.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Objects; - -/** - * 配置 obs 后端信息 - */ -public class ConfigObsTarget { - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "name") - - private String name; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "type") - - private String type; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "url") - - private String url; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "bucket") - - private String bucket; - - public ConfigObsTarget withName(String name) { - this.name = name; - return this; - } - - /** - * obs 配置名 - * @return name - */ - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public ConfigObsTarget withType(String type) { - this.type = type; - return this; - } - - /** - * obs 配置协议类型 - * @return type - */ - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public ConfigObsTarget withUrl(String url) { - this.url = url; - return this; - } - - /** - * obs 桶 endpoint - * @return url - */ - public String getUrl() { - return url; - } - - public void setUrl(String url) { - this.url = url; - } - - public ConfigObsTarget withBucket(String bucket) { - this.bucket = bucket; - return this; - } - - /** - * obs 桶名 - * @return bucket - */ - public String getBucket() { - return bucket; - } - - public void setBucket(String bucket) { - this.bucket = bucket; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - ConfigObsTarget that = (ConfigObsTarget) obj; - return Objects.equals(this.name, that.name) && Objects.equals(this.type, that.type) - && Objects.equals(this.url, that.url) && Objects.equals(this.bucket, that.bucket); - } - - @Override - public int hashCode() { - return Objects.hash(name, type, url, bucket); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ConfigObsTarget {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); - sb.append(" bucket: ").append(toIndentedString(bucket)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateBackendTargetRequestBody.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateBackendTargetRequestBody.java index 6039c93ced..46edecfe5e 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateBackendTargetRequestBody.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateBackendTargetRequestBody.java @@ -7,7 +7,7 @@ import java.util.function.Consumer; /** - * 创建文件系统后端存储库请求体 + * 创建文件系统后端存储请求体 */ public class CreateBackendTargetRequestBody { @@ -27,7 +27,7 @@ public CreateBackendTargetRequestBody withFileSystemPath(String fileSystemPath) } /** - * 联动目录名称,SFS Turbo会在文件系统根目录下以该名称创建一个子目录,该目录用于绑定后端存储。子目录名称不能重复,长度不能超过255个字符,子目录名称不能是“.”或“..”。不支持多层目录,不能包含字符'/'。 + * 联动目录名称,SFS Turbo会在文件系统根目录下以该名称创建一个子目录,该目录用于绑定后端存储。 必须是文件系统根目录下不存在的目录名,长度不能超过63个字符,子目录名称不能是“.”或“..”。 不支持多层目录,不能包含字符'/'。 * @return fileSystemPath */ public String getFileSystemPath() { diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateBackendTargetResponse.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateBackendTargetResponse.java index e210bbbec1..0ee47bf3aa 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateBackendTargetResponse.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateBackendTargetResponse.java @@ -38,7 +38,7 @@ public class CreateBackendTargetResponse extends SdkResponse { private String fileSystemPath; /** - * 绑定状态。如果返回状态为CREATING,您需要通过获取后端存储详细信息接口去轮询绑定完成状态。 如果返回状态为AVAILABLE,代表绑定后端存储成功。如果返回状态MISCONFIGURED,代表绑定后端存储失败。DELETING 状态暂不支持。 + * 绑定状态。 如果返回状态为CREATING,您需要通过获取后端存储详细信息接口去轮询绑定完成状态。 如果返回状态为AVAILABLE,代表绑定后端存储成功。 如果返回状态MISCONFIGURED,代表绑定后端存储失败。DELETING 状态暂不支持。 */ public static final class LifecycleEnum { @@ -217,7 +217,7 @@ public CreateBackendTargetResponse withLifecycle(LifecycleEnum lifecycle) { } /** - * 绑定状态。如果返回状态为CREATING,您需要通过获取后端存储详细信息接口去轮询绑定完成状态。 如果返回状态为AVAILABLE,代表绑定后端存储成功。如果返回状态MISCONFIGURED,代表绑定后端存储失败。DELETING 状态暂不支持。 + * 绑定状态。 如果返回状态为CREATING,您需要通过获取后端存储详细信息接口去轮询绑定完成状态。 如果返回状态为AVAILABLE,代表绑定后端存储成功。 如果返回状态MISCONFIGURED,代表绑定后端存储失败。DELETING 状态暂不支持。 * @return lifecycle */ public LifecycleEnum getLifecycle() { diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateFsDirQuotaRequestBody.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateFsDirQuotaRequestBody.java index 6fd2922aaf..a46bee01ab 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateFsDirQuotaRequestBody.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateFsDirQuotaRequestBody.java @@ -48,7 +48,7 @@ public CreateFsDirQuotaRequestBody withCapacity(Integer capacity) { } /** - * 目录的容量大小,单位:MB + * 目录的容量大小,单位:MB; 设置为0会导致数据无法写入目录; capacity和quota至少二选一 * @return capacity */ public Integer getCapacity() { @@ -65,7 +65,7 @@ public CreateFsDirQuotaRequestBody withInode(Integer inode) { } /** - * 目录的inode数量限制 + * 目录的inode数量限制; 设置为0会导致数据无法写入目录; capacity和quota至少二选一 * @return inode */ public Integer getInode() { diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateFsDirQuotaResponse.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateFsDirQuotaResponse.java index cbcc8b0f2b..018ac847d7 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateFsDirQuotaResponse.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateFsDirQuotaResponse.java @@ -93,7 +93,7 @@ public CreateFsDirQuotaResponse withUsedCapacity(Integer usedCapacity) { } /** - * 目录已使用的容量大小,单位:MB。仅SFSTurbo HPC型返回该字段 + * 目录已使用的容量大小,单位:MB。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段 * @return usedCapacity */ public Integer getUsedCapacity() { @@ -110,7 +110,7 @@ public CreateFsDirQuotaResponse withUsedInode(Integer usedInode) { } /** - * 目录的已使用的inode数量。仅SFSTurbo HPC型返回该字段 + * 目录的已使用的inode数量。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段 * @return usedInode */ public Integer getUsedInode() { diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateFsDirRequestBody.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateFsDirRequestBody.java index a93d4f6d9e..b4caa5ba9a 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateFsDirRequestBody.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateFsDirRequestBody.java @@ -53,7 +53,7 @@ public CreateFsDirRequestBody withMode(Long mode) { } /** - * 目录权限,默认值是755,取值范围是0到777。第一位表示目录所有者的权限,第二位表示目录所属用户组的权限,第三位表示其他用户的权限。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。例如:755中第一位7代表该目录所有者对该目录具有读、写、执行权限;第二位5代表该目录所属用户组对该目录具有读、执行权限;第三位5代表其他用户对该目录具有读、执行权限。 + * 目录权限,默认值是755,取值范围是0到777。第一位表示目录所有者的权限,取值范围是0到7;第二位表示目录所属用户组的权限,取值范围是0到7;第三位表示其他用户的权限,取值范围是0到7。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。例如:755中第一位7代表该目录所有者对该目录具有读、写、执行权限;第二位5代表该目录所属用户组对该目录具有读、执行权限;第三位5代表其他用户对该目录具有读、执行权限。 * minimum: 0 * @return mode */ diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateFsTaskRequest.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateFsTaskRequest.java index b98a5ea620..45d3fb2fd9 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateFsTaskRequest.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateFsTaskRequest.java @@ -49,7 +49,7 @@ public CreateFsTaskRequest withFeature(String feature) { } /** - * 任务类型。例,DU任务取值为dir-usage + * 任务类型。当前仅支持取值\"dir-usage\"。 * @return feature */ public String getFeature() { diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateHpcCacheTaskReq.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateHpcCacheTaskReq.java index e89c91afcf..468d53f885 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateHpcCacheTaskReq.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateHpcCacheTaskReq.java @@ -9,6 +9,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import java.util.function.Consumer; /** * hpc cache 联动任务请求 @@ -16,7 +17,7 @@ public class CreateHpcCacheTaskReq { /** - * 任务类型,当前支持import(附加元数据导入),import_metadata(快速导入),preload(数据预热),export(导出)。 附加元数据导入方式会导入OBS对象的元数据(名称、大小、最后修改时间)以及来源于SFS Turbo HPC型导出时的附加元数据(如uid、gid、mode)。 快速导入方式仅会导入OBS对象的元数据(名称、大小、最后修改时间),不会导入其它附加元数据(如uid、gid、mode),SFS Turbo会生成默认的附加元数据(uid:0、gid:0、目录权限:755、文件权限:644)。 数据预热功能会同时导入元数据和数据内容,数据预热中的元数据导入采用快速导入方式,不会导入其它附加元数据(如uid、gid、mode)。 数据导出功能会将您在联动目录里创建的文件,以及对从OBS导入后又做过修改的文件导出存储到OBS桶里。 + * 任务类型,当前支持import(附加元数据导入),import_metadata(快速导入),preload(数据预热),export(导出)。 附加元数据导入方式会导入OBS对象的元数据(名称、大小、最后修改时间)以及来源于SFS Turbo 导出时的附加元数据(如uid、gid、mode)。 快速导入方式仅会导入OBS对象的元数据(名称、大小、最后修改时间),不会导入其它附加元数据(如uid、gid、mode),SFS Turbo会生成默认的附加元数据。 数据预热功能会同时导入元数据和数据内容,数据预热中的元数据导入采用快速导入方式,不会导入其它附加元数据(如uid、gid、mode)。 数据导出功能会将您在联动目录里创建的文件,以及对从OBS导入后又做过修改的文件导出存储到OBS桶里。 */ public static final class TypeEnum { @@ -122,13 +123,18 @@ public int hashCode() { private String destPrefix; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "attributes") + + private ObsTargetAttributes attributes; + public CreateHpcCacheTaskReq withType(TypeEnum type) { this.type = type; return this; } /** - * 任务类型,当前支持import(附加元数据导入),import_metadata(快速导入),preload(数据预热),export(导出)。 附加元数据导入方式会导入OBS对象的元数据(名称、大小、最后修改时间)以及来源于SFS Turbo HPC型导出时的附加元数据(如uid、gid、mode)。 快速导入方式仅会导入OBS对象的元数据(名称、大小、最后修改时间),不会导入其它附加元数据(如uid、gid、mode),SFS Turbo会生成默认的附加元数据(uid:0、gid:0、目录权限:755、文件权限:644)。 数据预热功能会同时导入元数据和数据内容,数据预热中的元数据导入采用快速导入方式,不会导入其它附加元数据(如uid、gid、mode)。 数据导出功能会将您在联动目录里创建的文件,以及对从OBS导入后又做过修改的文件导出存储到OBS桶里。 + * 任务类型,当前支持import(附加元数据导入),import_metadata(快速导入),preload(数据预热),export(导出)。 附加元数据导入方式会导入OBS对象的元数据(名称、大小、最后修改时间)以及来源于SFS Turbo 导出时的附加元数据(如uid、gid、mode)。 快速导入方式仅会导入OBS对象的元数据(名称、大小、最后修改时间),不会导入其它附加元数据(如uid、gid、mode),SFS Turbo会生成默认的附加元数据。 数据预热功能会同时导入元数据和数据内容,数据预热中的元数据导入采用快速导入方式,不会导入其它附加元数据(如uid、gid、mode)。 数据导出功能会将您在联动目录里创建的文件,以及对从OBS导入后又做过修改的文件导出存储到OBS桶里。 * @return type */ public TypeEnum getType() { @@ -162,7 +168,7 @@ public CreateHpcCacheTaskReq withSrcPrefix(String srcPrefix) { } /** - * 导入导出任务的源端路径前缀,导入时不需要包含OBS桶名,导出时不需要包含联动目录名称。 对于数据预热导入,携带源端路径前缀时必须是以“/”结尾的目录或具体到某个对象。 如果不带该字段,导入时会导入绑定OBS桶内的所有对象,导出时会导出联动目录下的所有文件。 + * 导入导出任务的源端路径前缀,导入时不需要包含OBS桶名,导出时不需要包含联动目录名称。 对于数据预热导入,携带源端路径前缀时必须是以“/”结尾的目录或具体到某个对象。 如果不带该字段,导入时会导入绑定OBS桶内的所有对象,导出时会导出联动目录下的所有文件。 * @return srcPrefix */ public String getSrcPrefix() { @@ -207,6 +213,32 @@ public void setDestPrefix(String destPrefix) { this.destPrefix = destPrefix; } + public CreateHpcCacheTaskReq withAttributes(ObsTargetAttributes attributes) { + this.attributes = attributes; + return this; + } + + public CreateHpcCacheTaskReq withAttributes(Consumer attributesSetter) { + if (this.attributes == null) { + this.attributes = new ObsTargetAttributes(); + attributesSetter.accept(this.attributes); + } + + return this; + } + + /** + * Get attributes + * @return attributes + */ + public ObsTargetAttributes getAttributes() { + return attributes; + } + + public void setAttributes(ObsTargetAttributes attributes) { + this.attributes = attributes; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -218,12 +250,12 @@ public boolean equals(java.lang.Object obj) { CreateHpcCacheTaskReq that = (CreateHpcCacheTaskReq) obj; return Objects.equals(this.type, that.type) && Objects.equals(this.srcTarget, that.srcTarget) && Objects.equals(this.srcPrefix, that.srcPrefix) && Objects.equals(this.destTarget, that.destTarget) - && Objects.equals(this.destPrefix, that.destPrefix); + && Objects.equals(this.destPrefix, that.destPrefix) && Objects.equals(this.attributes, that.attributes); } @Override public int hashCode() { - return Objects.hash(type, srcTarget, srcPrefix, destTarget, destPrefix); + return Objects.hash(type, srcTarget, srcPrefix, destTarget, destPrefix, attributes); } @Override @@ -235,6 +267,7 @@ public String toString() { sb.append(" srcPrefix: ").append(toIndentedString(srcPrefix)).append("\n"); sb.append(" destTarget: ").append(toIndentedString(destTarget)).append("\n"); sb.append(" destPrefix: ").append(toIndentedString(destPrefix)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateLdapConfigRequestBody.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateLdapConfigRequestBody.java index d079f06a51..f61f96ba2c 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateLdapConfigRequestBody.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateLdapConfigRequestBody.java @@ -1,8 +1,13 @@ package com.huaweicloud.sdk.sfsturbo.v1.model; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -40,13 +45,103 @@ public class CreateLdapConfigRequestBody { private String filterCondition; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "backup_url") + + private String backupUrl; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schema") + + private String schema; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "search_timeout") + + private Integer searchTimeout; + + /** + * 访问ldap服务器失败后是否允许使用本地用户鉴权 + */ + public static final class AllowLocalUserEnum { + + /** + * Enum YES for value: "Yes" + */ + public static final AllowLocalUserEnum YES = new AllowLocalUserEnum("Yes"); + + /** + * Enum NO for value: "No" + */ + public static final AllowLocalUserEnum NO = new AllowLocalUserEnum("No"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("Yes", YES); + map.put("No", NO); + return Collections.unmodifiableMap(map); + } + + private String value; + + AllowLocalUserEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AllowLocalUserEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new AllowLocalUserEnum(value)); + } + + public static AllowLocalUserEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof AllowLocalUserEnum) { + return this.value.equals(((AllowLocalUserEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "allow_local_user") + + private AllowLocalUserEnum allowLocalUser; + public CreateLdapConfigRequestBody withUrl(String url) { this.url = url; return this; } /** - * ldap服务器的url + * ldap服务器的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000 * @return url */ public String getUrl() { @@ -142,6 +237,74 @@ public void setFilterCondition(String filterCondition) { this.filterCondition = filterCondition; } + public CreateLdapConfigRequestBody withBackupUrl(String backupUrl) { + this.backupUrl = backupUrl; + return this; + } + + /** + * ldap备节点的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000 + * @return backupUrl + */ + public String getBackupUrl() { + return backupUrl; + } + + public void setBackupUrl(String backupUrl) { + this.backupUrl = backupUrl; + } + + public CreateLdapConfigRequestBody withSchema(String schema) { + this.schema = schema; + return this; + } + + /** + * ldap的schema,不填写则默认为RFC2307 + * @return schema + */ + public String getSchema() { + return schema; + } + + public void setSchema(String schema) { + this.schema = schema; + } + + public CreateLdapConfigRequestBody withSearchTimeout(Integer searchTimeout) { + this.searchTimeout = searchTimeout; + return this; + } + + /** + * ldap搜索的超时时间,单位为秒。不填写则默认为3秒 + * @return searchTimeout + */ + public Integer getSearchTimeout() { + return searchTimeout; + } + + public void setSearchTimeout(Integer searchTimeout) { + this.searchTimeout = searchTimeout; + } + + public CreateLdapConfigRequestBody withAllowLocalUser(AllowLocalUserEnum allowLocalUser) { + this.allowLocalUser = allowLocalUser; + return this; + } + + /** + * 访问ldap服务器失败后是否允许使用本地用户鉴权 + * @return allowLocalUser + */ + public AllowLocalUserEnum getAllowLocalUser() { + return allowLocalUser; + } + + public void setAllowLocalUser(AllowLocalUserEnum allowLocalUser) { + this.allowLocalUser = allowLocalUser; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -153,12 +316,24 @@ public boolean equals(java.lang.Object obj) { CreateLdapConfigRequestBody that = (CreateLdapConfigRequestBody) obj; return Objects.equals(this.url, that.url) && Objects.equals(this.baseDn, that.baseDn) && Objects.equals(this.userDn, that.userDn) && Objects.equals(this.password, that.password) - && Objects.equals(this.vpcId, that.vpcId) && Objects.equals(this.filterCondition, that.filterCondition); + && Objects.equals(this.vpcId, that.vpcId) && Objects.equals(this.filterCondition, that.filterCondition) + && Objects.equals(this.backupUrl, that.backupUrl) && Objects.equals(this.schema, that.schema) + && Objects.equals(this.searchTimeout, that.searchTimeout) + && Objects.equals(this.allowLocalUser, that.allowLocalUser); } @Override public int hashCode() { - return Objects.hash(url, baseDn, userDn, password, vpcId, filterCondition); + return Objects.hash(url, + baseDn, + userDn, + password, + vpcId, + filterCondition, + backupUrl, + schema, + searchTimeout, + allowLocalUser); } @Override @@ -171,6 +346,10 @@ public String toString() { sb.append(" password: ").append(toIndentedString(password)).append("\n"); sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n"); sb.append(" filterCondition: ").append(toIndentedString(filterCondition)).append("\n"); + sb.append(" backupUrl: ").append(toIndentedString(backupUrl)).append("\n"); + sb.append(" schema: ").append(toIndentedString(schema)).append("\n"); + sb.append(" searchTimeout: ").append(toIndentedString(searchTimeout)).append("\n"); + sb.append(" allowLocalUser: ").append(toIndentedString(allowLocalUser)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateLdapConfigResponse.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateLdapConfigResponse.java index 1033e37fcd..c957862735 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateLdapConfigResponse.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/CreateLdapConfigResponse.java @@ -22,7 +22,7 @@ public CreateLdapConfigResponse withJobId(String jobId) { } /** - * 创建ldap异步任务的id + * ldap异步任务的id。可通过查询job的状态详情接口查询job的执行状态。 * @return jobId */ public String getJobId() { diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/DeleteHpcCacheTaskRequest.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/DeleteHpcCacheTaskRequest.java new file mode 100644 index 0000000000..4e1e13c5a8 --- /dev/null +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/DeleteHpcCacheTaskRequest.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.sfsturbo.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class DeleteHpcCacheTaskRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "share_id") + + private String shareId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_id") + + private String taskId; + + public DeleteHpcCacheTaskRequest withShareId(String shareId) { + this.shareId = shareId; + return this; + } + + /** + * 文件系统ID + * @return shareId + */ + public String getShareId() { + return shareId; + } + + public void setShareId(String shareId) { + this.shareId = shareId; + } + + public DeleteHpcCacheTaskRequest withTaskId(String taskId) { + this.taskId = taskId; + return this; + } + + /** + * 任务ID + * @return taskId + */ + public String getTaskId() { + return taskId; + } + + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteHpcCacheTaskRequest that = (DeleteHpcCacheTaskRequest) obj; + return Objects.equals(this.shareId, that.shareId) && Objects.equals(this.taskId, that.taskId); + } + + @Override + public int hashCode() { + return Objects.hash(shareId, taskId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteHpcCacheTaskRequest {\n"); + sb.append(" shareId: ").append(toIndentedString(shareId)).append("\n"); + sb.append(" taskId: ").append(toIndentedString(taskId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/DeleteHpcCacheTaskResponse.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/DeleteHpcCacheTaskResponse.java new file mode 100644 index 0000000000..6a30dbd427 --- /dev/null +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/DeleteHpcCacheTaskResponse.java @@ -0,0 +1,75 @@ +package com.huaweicloud.sdk.sfsturbo.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeleteHpcCacheTaskResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-request-id") + + private String xRequestId; + + public DeleteHpcCacheTaskResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-request-id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteHpcCacheTaskResponse that = (DeleteHpcCacheTaskResponse) obj; + return Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteHpcCacheTaskResponse {\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/DeleteLdapConfigResponse.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/DeleteLdapConfigResponse.java index 7c070627f6..9c13b53427 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/DeleteLdapConfigResponse.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/DeleteLdapConfigResponse.java @@ -22,7 +22,7 @@ public DeleteLdapConfigResponse withJobId(String jobId) { } /** - * 创建ldap异步任务的id + * ldap异步任务的id。可通过查询job的状态详情接口查询job的执行状态。 * @return jobId */ public String getJobId() { diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/DeleteSharedTagRequest.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/DeleteSharedTagRequest.java index 9d2daf5648..fe76753823 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/DeleteSharedTagRequest.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/DeleteSharedTagRequest.java @@ -43,7 +43,7 @@ public DeleteSharedTagRequest withKey(String key) { } /** - * 标签的键,最大长度36个字符。 key不能为空,不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 说明:调用删除共享标签接口删除标签时,如果标签的键中存在不被URL直接解析的特殊字符,需要对标签的键进行URL转义处理。 + * 标签的键,最大长度128个字符。 key不能为空,不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 说明:调用删除共享标签接口删除标签时,如果标签的键中存在不被URL直接解析的特殊字符,需要对标签的键进行URL转义处理。 * @return key */ public String getKey() { diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/Extend.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/Extend.java index d7e54f7f10..296272a0ed 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/Extend.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/Extend.java @@ -32,7 +32,7 @@ public Extend withNewSize(Integer newSize) { } /** - * 扩容后文件系统的新容量,以GiB为单位。 通用型-标准型和性能型,取值范围500~32768 GiB,扩容步长大于等于100 GiB。 通用型-标准型增强版和性能型增强版。容量范围是10240~327680 GiB。扩容步长大于等于100 GiB。 HPC型文件系统,容量范围是3686~1048576 GiB。HPC型文件系统的容量必须为1.2TiB的倍数,扩容步长需要大于等于1.2TiB,需要将目标容量换算为GiB后需要向下取整。如4.8TiB->4915GiB,8.4TiB->8601GiB。 HPC缓存型文件系统,容量范围是4096~1048576 GiB。扩容步长均为1TiB。需要将目标容量换算为GiB。 + * 扩容后文件系统的新容量,以GiB为单位。 SFS Turbo上一代文件系统规格类型-标准型和性能型,取值范围500~32768 GiB,扩容步长大于等于100 GiB。 SFS Turbo上一代文件系统规格类型-标准型增强版和性能型增强版。容量范围是10240~327680 GiB。扩容步长大于等于100 GiB。 20MB/s/TiB,容量范围是3686~1048576 GiB。容量必须为1.2TiB的倍数,扩容步长需要大于等于1.2TiB,需要将目标容量换算为GiB后需要向下取整。如4.8TiB->4915GiB,8.4TiB->8601GiB。 40MB/s/TiB,容量范围是1228~1048576 GiB。容量必须为1.2TiB的倍数,扩容步长需要大于等于1.2TiB,需要将目标容量换算为GiB后需要向下取整。如4.8TiB->4915GiB,8.4TiB->8601GiB。 125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB与40MB/s/TiB的容量范围,扩容步长相同。 HPC缓存型文件系统,容量范围是4096~1048576 GiB。扩容步长均为1TiB。需要将目标容量换算为GiB。 * minimum: 500 * maximum: 1048576 * @return newSize diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ListHpcCacheTasksRequest.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ListHpcCacheTasksRequest.java index 0e1173cd52..d636078cf3 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ListHpcCacheTasksRequest.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ListHpcCacheTasksRequest.java @@ -35,6 +35,16 @@ public class ListHpcCacheTasksRequest { private Long limit; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "start_time") + + private String startTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "end_time") + + private String endTime; + public ListHpcCacheTasksRequest withShareId(String shareId) { this.shareId = shareId; return this; @@ -120,6 +130,40 @@ public void setLimit(Long limit) { this.limit = limit; } + public ListHpcCacheTasksRequest withStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * start_time + * @return startTime + */ + public String getStartTime() { + return startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public ListHpcCacheTasksRequest withEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * end_time + * @return endTime + */ + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -131,12 +175,13 @@ public boolean equals(java.lang.Object obj) { ListHpcCacheTasksRequest that = (ListHpcCacheTasksRequest) obj; return Objects.equals(this.shareId, that.shareId) && Objects.equals(this.type, that.type) && Objects.equals(this.status, that.status) && Objects.equals(this.offset, that.offset) - && Objects.equals(this.limit, that.limit); + && Objects.equals(this.limit, that.limit) && Objects.equals(this.startTime, that.startTime) + && Objects.equals(this.endTime, that.endTime); } @Override public int hashCode() { - return Objects.hash(shareId, type, status, offset, limit); + return Objects.hash(shareId, type, status, offset, limit, startTime, endTime); } @Override @@ -148,6 +193,8 @@ public String toString() { sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ListPermRulesRequest.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ListPermRulesRequest.java index f724c1fe4d..282d6ed04d 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ListPermRulesRequest.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ListPermRulesRequest.java @@ -15,6 +15,16 @@ public class ListPermRulesRequest { private String shareId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Long limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Long offset; + public ListPermRulesRequest withShareId(String shareId) { this.shareId = shareId; return this; @@ -32,6 +42,43 @@ public void setShareId(String shareId) { this.shareId = shareId; } + public ListPermRulesRequest withLimit(Long limit) { + this.limit = limit; + return this; + } + + /** + * 返回的权限规则个数 + * minimum: 0 + * maximum: 64 + * @return limit + */ + public Long getLimit() { + return limit; + } + + public void setLimit(Long limit) { + this.limit = limit; + } + + public ListPermRulesRequest withOffset(Long offset) { + this.offset = offset; + return this; + } + + /** + * 返回的权限规则的偏移量 + * minimum: 0 + * @return offset + */ + public Long getOffset() { + return offset; + } + + public void setOffset(Long offset) { + this.offset = offset; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -41,12 +88,13 @@ public boolean equals(java.lang.Object obj) { return false; } ListPermRulesRequest that = (ListPermRulesRequest) obj; - return Objects.equals(this.shareId, that.shareId); + return Objects.equals(this.shareId, that.shareId) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.offset, that.offset); } @Override public int hashCode() { - return Objects.hash(shareId); + return Objects.hash(shareId, limit, offset); } @Override @@ -54,6 +102,8 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListPermRulesRequest {\n"); sb.append(" shareId: ").append(toIndentedString(shareId)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ListSharedTagsRequest.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ListSharedTagsRequest.java index 12c0a90791..1d8a7943e6 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ListSharedTagsRequest.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ListSharedTagsRequest.java @@ -1,5 +1,8 @@ package com.huaweicloud.sdk.sfsturbo.v1.model; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.Objects; /** @@ -7,6 +10,53 @@ */ public class ListSharedTagsRequest { + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + public ListSharedTagsRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 返回的标签个数 + * minimum: 0 + * maximum: 1000 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListSharedTagsRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 标签查询个数的偏移量 + * minimum: 0 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -15,20 +65,34 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - return true; + ListSharedTagsRequest that = (ListSharedTagsRequest) obj; + return Objects.equals(this.limit, that.limit) && Objects.equals(this.offset, that.offset); } @Override public int hashCode() { - return Objects.hash(); + return Objects.hash(limit, offset); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListSharedTagsRequest {\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); sb.append("}"); return sb.toString(); } + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + } diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ListSharesRequest.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ListSharesRequest.java index fbafa7a024..025551038d 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ListSharesRequest.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ListSharesRequest.java @@ -26,7 +26,7 @@ public ListSharesRequest withLimit(Long limit) { } /** - * 返回的文件系统个数,最大值为200。 + * 设置返回的文件系统个数的最大值,不填默认为1000个 * minimum: 0 * maximum: 200 * @return limit @@ -45,7 +45,7 @@ public ListSharesRequest withOffset(Long offset) { } /** - * 文件系统查询个数的偏移量。 + * 设置返回的文件系统的偏移量。 * minimum: 0 * @return offset */ diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/Metadata.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/Metadata.java index 98bb6d9c24..4bb6c1a232 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/Metadata.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/Metadata.java @@ -92,7 +92,7 @@ public Metadata withExpandType(String expandType) { } /** - * 扩展类型。创建增强型/HPC型/HPC缓存型文件系统时,该参数必填。 创建增强型的文件系统,包括标准型-增强版和性能型-增强版,需要填写\"bandwidth\"。 创建HPC型文件系统,需要填写\"hpc\"。 创建HPC缓存型,需要填写\"hpc_cache\"。 + * 扩展类型;当文件系统正在创建时,该字段不返回。 - 创建增强型、20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统时,该参数必填。 - 创建增强型的文件系统,包括标准型-增强版和性能型-增强版,需要填写\"bandwidth\"。 - 创建20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB文件系统,需要填写\"hpc\"。 - 创建HPC缓存型,需要填写\"hpc_cache\"。 * @return expandType */ public String getExpandType() { @@ -109,7 +109,7 @@ public Metadata withHpcBw(String hpcBw) { } /** - * 文件系统的带宽规格。创建HPC型/HPC缓存型文件系统时,该参数必填。 HPC型,可以填写\"20M\"、\"40M\"、\"125M\"、\"250M\"、\"500M\"、\"1000M\"。 HPC缓存型,可以填写\"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"、\"48G\"。 + * 文件系统的带宽规格。 创建20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统时,该参数必填。 20MB/s/TiB,填写\"20M\"。 40MB/s/TiB,填写\"40M\"。 125MB/s/TiB,填写\"125M\"。 250MB/s/TiB,填写\"250M\"。 500MB/s/TiB,填写\"500M\"。 1000MB/s/TiB,填写\"1000M\"。 HPC缓存型,填写\"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"或\"48G\"。 * @return hpcBw */ public String getHpcBw() { diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ObsDataRepository.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ObsDataRepository.java index f666dc89fe..b4761e5a71 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ObsDataRepository.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ObsDataRepository.java @@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Objects; +import java.util.function.Consumer; /** * OBS类型后端存储 @@ -20,6 +21,16 @@ public class ObsDataRepository { private String endpoint; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "policy") + + private ObsDataRepositoryPolicy policy; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "attributes") + + private ObsTargetAttributes attributes; + public ObsDataRepository withBucket(String bucket) { this.bucket = bucket; return this; @@ -54,6 +65,58 @@ public void setEndpoint(String endpoint) { this.endpoint = endpoint; } + public ObsDataRepository withPolicy(ObsDataRepositoryPolicy policy) { + this.policy = policy; + return this; + } + + public ObsDataRepository withPolicy(Consumer policySetter) { + if (this.policy == null) { + this.policy = new ObsDataRepositoryPolicy(); + policySetter.accept(this.policy); + } + + return this; + } + + /** + * Get policy + * @return policy + */ + public ObsDataRepositoryPolicy getPolicy() { + return policy; + } + + public void setPolicy(ObsDataRepositoryPolicy policy) { + this.policy = policy; + } + + public ObsDataRepository withAttributes(ObsTargetAttributes attributes) { + this.attributes = attributes; + return this; + } + + public ObsDataRepository withAttributes(Consumer attributesSetter) { + if (this.attributes == null) { + this.attributes = new ObsTargetAttributes(); + attributesSetter.accept(this.attributes); + } + + return this; + } + + /** + * Get attributes + * @return attributes + */ + public ObsTargetAttributes getAttributes() { + return attributes; + } + + public void setAttributes(ObsTargetAttributes attributes) { + this.attributes = attributes; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -63,12 +126,13 @@ public boolean equals(java.lang.Object obj) { return false; } ObsDataRepository that = (ObsDataRepository) obj; - return Objects.equals(this.bucket, that.bucket) && Objects.equals(this.endpoint, that.endpoint); + return Objects.equals(this.bucket, that.bucket) && Objects.equals(this.endpoint, that.endpoint) + && Objects.equals(this.policy, that.policy) && Objects.equals(this.attributes, that.attributes); } @Override public int hashCode() { - return Objects.hash(bucket, endpoint); + return Objects.hash(bucket, endpoint, policy, attributes); } @Override @@ -77,6 +141,8 @@ public String toString() { sb.append("class ObsDataRepository {\n"); sb.append(" bucket: ").append(toIndentedString(bucket)).append("\n"); sb.append(" endpoint: ").append(toIndentedString(endpoint)).append("\n"); + sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ObsDataRepositoryPolicy.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ObsDataRepositoryPolicy.java new file mode 100644 index 0000000000..00303bb192 --- /dev/null +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ObsDataRepositoryPolicy.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.sfsturbo.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 后端存储自动同步策略 + */ +public class ObsDataRepositoryPolicy { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "auto_export_policy") + + private AutoExportPolicy autoExportPolicy; + + public ObsDataRepositoryPolicy withAutoExportPolicy(AutoExportPolicy autoExportPolicy) { + this.autoExportPolicy = autoExportPolicy; + return this; + } + + public ObsDataRepositoryPolicy withAutoExportPolicy(Consumer autoExportPolicySetter) { + if (this.autoExportPolicy == null) { + this.autoExportPolicy = new AutoExportPolicy(); + autoExportPolicySetter.accept(this.autoExportPolicy); + } + + return this; + } + + /** + * Get autoExportPolicy + * @return autoExportPolicy + */ + public AutoExportPolicy getAutoExportPolicy() { + return autoExportPolicy; + } + + public void setAutoExportPolicy(AutoExportPolicy autoExportPolicy) { + this.autoExportPolicy = autoExportPolicy; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ObsDataRepositoryPolicy that = (ObsDataRepositoryPolicy) obj; + return Objects.equals(this.autoExportPolicy, that.autoExportPolicy); + } + + @Override + public int hashCode() { + return Objects.hash(autoExportPolicy); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ObsDataRepositoryPolicy {\n"); + sb.append(" autoExportPolicy: ").append(toIndentedString(autoExportPolicy)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ObsTargetAttributes.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ObsTargetAttributes.java new file mode 100644 index 0000000000..a7119db14b --- /dev/null +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ObsTargetAttributes.java @@ -0,0 +1,142 @@ +package com.huaweicloud.sdk.sfsturbo.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 后端存储属性 + */ +public class ObsTargetAttributes { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "file_mode") + + private Integer fileMode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dir_mode") + + private Integer dirMode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "uid") + + private Integer uid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "gid") + + private Integer gid; + + public ObsTargetAttributes withFileMode(Integer fileMode) { + this.fileMode = fileMode; + return this; + } + + /** + * 导入的文件权限。取值范围是0到777。 第一位表示文件所有者的权限,取值范围是0到7;第二位表示文件所属用户组的权限,取值范围是0到7;第三位表示其他用户的权限,取值范围是0到7。文件所有者由uid指定,文件所属用户组由gid指定,不是文件所有者且不在文件所属用户组的用户为其他用户。 数字4、2、1分别表示读、写、执行权限,这些数字相加,即可得到所需的权限组合。例如:750中第一位7代表该文件所有者对该文件具有读、写、执行权限;第二位5代表该文件所属用户组对该文件具有读、执行权限;第三位0代表其他用户对该文件无权限。 + * @return fileMode + */ + public Integer getFileMode() { + return fileMode; + } + + public void setFileMode(Integer fileMode) { + this.fileMode = fileMode; + } + + public ObsTargetAttributes withDirMode(Integer dirMode) { + this.dirMode = dirMode; + return this; + } + + /** + * 导入的目录权限。取值范围是0到777。 第一位表示目录所有者的权限,取值范围是0到7;第二位表示目录所属用户组的权限,取值范围是0到7;第三位表示其他用户的权限,取值范围是0到7。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。 数字4、2、1分别表示读、写、执行权限,这些数字相加,即可得到所需的权限组合。例如:750中第一位7代表该目录所有者对该目录具有读、写、执行权限;第二位5代表该目录所属用户组对该目录具有读、执行权限;第三位0代表其他用户对该文件无权限。 + * @return dirMode + */ + public Integer getDirMode() { + return dirMode; + } + + public void setDirMode(Integer dirMode) { + this.dirMode = dirMode; + } + + public ObsTargetAttributes withUid(Integer uid) { + this.uid = uid; + return this; + } + + /** + * 导入对象所有者的用户id,默认值是0,取值范围是0到4,294,967,294(即2^32-2)。 + * @return uid + */ + public Integer getUid() { + return uid; + } + + public void setUid(Integer uid) { + this.uid = uid; + } + + public ObsTargetAttributes withGid(Integer gid) { + this.gid = gid; + return this; + } + + /** + * 导入对象所属用户组id,默认值是0,取值范围是0到4,294,967,294(即2^32-2)。 + * @return gid + */ + public Integer getGid() { + return gid; + } + + public void setGid(Integer gid) { + this.gid = gid; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ObsTargetAttributes that = (ObsTargetAttributes) obj; + return Objects.equals(this.fileMode, that.fileMode) && Objects.equals(this.dirMode, that.dirMode) + && Objects.equals(this.uid, that.uid) && Objects.equals(this.gid, that.gid); + } + + @Override + public int hashCode() { + return Objects.hash(fileMode, dirMode, uid, gid); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ObsTargetAttributes {\n"); + sb.append(" fileMode: ").append(toIndentedString(fileMode)).append("\n"); + sb.append(" dirMode: ").append(toIndentedString(dirMode)).append("\n"); + sb.append(" uid: ").append(toIndentedString(uid)).append("\n"); + sb.append(" gid: ").append(toIndentedString(gid)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/OneHpcCacheTaskInfoResp.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/OneHpcCacheTaskInfoResp.java index 8feddfd8ec..e3c6a85890 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/OneHpcCacheTaskInfoResp.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/OneHpcCacheTaskInfoResp.java @@ -1,8 +1,13 @@ package com.huaweicloud.sdk.sfsturbo.v1.model; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -20,10 +25,86 @@ public class OneHpcCacheTaskInfoResp { private String type; + /** + * 任务状态 + */ + public static final class StatusEnum { + + /** + * Enum SUCCESS for value: "SUCCESS" + */ + public static final StatusEnum SUCCESS = new StatusEnum("SUCCESS"); + + /** + * Enum DOING for value: "DOING" + */ + public static final StatusEnum DOING = new StatusEnum("DOING"); + + /** + * Enum FAIL for value: "FAIL" + */ + public static final StatusEnum FAIL = new StatusEnum("FAIL"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("SUCCESS", SUCCESS); + map.put("DOING", DOING); + map.put("FAIL", FAIL); + return Collections.unmodifiableMap(map); + } + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StatusEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new StatusEnum(value)); + } + + public static StatusEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof StatusEnum) { + return this.value.equals(((StatusEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "status") - private String status; + private StatusEnum status; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "src_target") @@ -94,7 +175,7 @@ public void setType(String type) { this.type = type; } - public OneHpcCacheTaskInfoResp withStatus(String status) { + public OneHpcCacheTaskInfoResp withStatus(StatusEnum status) { this.status = status; return this; } @@ -103,11 +184,11 @@ public OneHpcCacheTaskInfoResp withStatus(String status) { * 任务状态 * @return status */ - public String getStatus() { + public StatusEnum getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(StatusEnum status) { this.status = status; } diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/OnePermRuleRequestInfo.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/OnePermRuleRequestInfo.java index 42cca7176e..38b9a65320 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/OnePermRuleRequestInfo.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/OnePermRuleRequestInfo.java @@ -48,7 +48,7 @@ public OnePermRuleRequestInfo withRwType(String rwType) { } /** - * -| 授权对象的读写权限 rw:默认选项,以读写的方式共享 ro:以只读的方式共享 + * 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限 * @return rwType */ public String getRwType() { @@ -65,7 +65,7 @@ public OnePermRuleRequestInfo withUserType(String userType) { } /** - * -| 授权对象的系统用户对文件系统的访问权限。取值如下: no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。 + * 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:默认选项。客户端使用包括root用户在内的任何用户,NFS服务器都保持客户端使用的用户,不做映射。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。客户端使用非root用户时,NFS服务器保持客户端使用的用户,不做映射。 - all_squash:所有访问NFS服务器的客户端的用户都映射为匿名用户。 * @return userType */ public String getUserType() { diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/OnePermRuleResponseInfo.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/OnePermRuleResponseInfo.java index 32a10b0a69..c9762570a0 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/OnePermRuleResponseInfo.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/OnePermRuleResponseInfo.java @@ -70,7 +70,7 @@ public OnePermRuleResponseInfo withRwType(String rwType) { } /** - * -| 授权对象的读写权限 rw:默认选项,以读写的方式共享 ro:以只读的方式共享 + * 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限 * @return rwType */ public String getRwType() { @@ -87,7 +87,7 @@ public OnePermRuleResponseInfo withUserType(String userType) { } /** - * -| 授权对象的系统用户对文件系统的访问权限。取值如下: no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。 + * 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。' * @return userType */ public String getUserType() { diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ReqUpdateHpcCacheData.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ReqUpdateHpcCacheData.java index 5362dd2ca0..11549f051a 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ReqUpdateHpcCacheData.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ReqUpdateHpcCacheData.java @@ -28,11 +28,6 @@ public class ReqUpdateHpcCacheData { private List nas = null; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "obs") - - private List obs = null; - public ReqUpdateHpcCacheData withGcTime(Long gcTime) { this.gcTime = gcTime; return this; @@ -89,7 +84,7 @@ public ReqUpdateHpcCacheData withNas(Consumer> nasSetter) } /** - * 配置 nas 后端的信息, 和 obs 字段为二选一的关系 + * 配置 nas 后端的信息 * @return nas */ public List getNas() { @@ -100,39 +95,6 @@ public void setNas(List nas) { this.nas = nas; } - public ReqUpdateHpcCacheData withObs(List obs) { - this.obs = obs; - return this; - } - - public ReqUpdateHpcCacheData addObsItem(ConfigObsTarget obsItem) { - if (this.obs == null) { - this.obs = new ArrayList<>(); - } - this.obs.add(obsItem); - return this; - } - - public ReqUpdateHpcCacheData withObs(Consumer> obsSetter) { - if (this.obs == null) { - this.obs = new ArrayList<>(); - } - obsSetter.accept(this.obs); - return this; - } - - /** - * 配置 obs 后端的信息, 和 nas 字段为二选一的关系 - * @return obs - */ - public List getObs() { - return obs; - } - - public void setObs(List obs) { - this.obs = obs; - } - @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -143,12 +105,12 @@ public boolean equals(java.lang.Object obj) { } ReqUpdateHpcCacheData that = (ReqUpdateHpcCacheData) obj; return Objects.equals(this.gcTime, that.gcTime) && Objects.equals(this.ckTime, that.ckTime) - && Objects.equals(this.nas, that.nas) && Objects.equals(this.obs, that.obs); + && Objects.equals(this.nas, that.nas); } @Override public int hashCode() { - return Objects.hash(gcTime, ckTime, nas, obs); + return Objects.hash(gcTime, ckTime, nas); } @Override @@ -158,7 +120,6 @@ public String toString() { sb.append(" gcTime: ").append(toIndentedString(gcTime)).append("\n"); sb.append(" ckTime: ").append(toIndentedString(ckTime)).append("\n"); sb.append(" nas: ").append(toIndentedString(nas)).append("\n"); - sb.append(" obs: ").append(toIndentedString(obs)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ResourceTag.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ResourceTag.java index ef54850324..5563c0f51a 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ResourceTag.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ResourceTag.java @@ -26,7 +26,7 @@ public ResourceTag withKey(String key) { } /** - * 标签的键。 最大长度36个字符。 key不能为空,不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 + * 标签的键。 最大长度128个字符。 key不能为空,不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 * @return key */ public String getKey() { @@ -43,7 +43,7 @@ public ResourceTag withValue(String value) { } /** - * 标签的值。 每个值最大长度43个字符,可以为空字符串。 不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 + * 标签的值。 每个值最大长度255个字符,可以为空字符串。 不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 * @return value */ public String getValue() { diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/Share.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/Share.java index f8cda299d6..3743e67703 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/Share.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/Share.java @@ -84,7 +84,7 @@ public Share withAvailabilityZone(String availabilityZone) { } /** - * 文件系统所在可用区(az)的编码 + * 文件系统所在可用区(az)的编码 * @return availabilityZone */ public String getAvailabilityZone() { @@ -178,7 +178,7 @@ public Share withSecurityGroupId(String securityGroupId) { } /** - * 用户在某一区域下的安全组ID。 + * 用户在某一区域下的安全组ID。 * @return securityGroupId */ public String getSecurityGroupId() { @@ -212,7 +212,7 @@ public Share withShareType(String shareType) { } /** - * 文件系统类型,有效值为STANDARD或者PERFORMANCE。 通用型:标准型和标准型增强版填写STANDARD,性能型和性能型增强版填写PERFORMANCE。 HPC型:不校验该字段,可填写STANDARD或者PERFORMANCE。 HPC缓存型:不校验该字段,可填写STANDARD或者PERFORMANCE。 + * 文件系统类型,有效值为STANDARD或者PERFORMANCE。当文件系统正在创建时,该字段不返回。 - SFS Turbo上一代文件系统规格类型:标准型和标准型增强版填写STANDARD,性能型和性能型增强版填写PERFORMANCE。 - 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/TiB:不校验该字段,填写STANDARD或者PERFORMANCE。 - HPC缓存型:不校验该字段,填写STANDARD或者PERFORMANCE。 * @return shareType */ public String getShareType() { @@ -229,9 +229,7 @@ public Share withSize(Integer size) { } /** - * 通用型-普通文件系统容量,取值范围500~32768,单位GB。 通用型-增强版文件系统,即在“metadata”字段中设置了expand_type=\"bandwidth\",则容量范围是10240~327680,单位GiB。 HPC型文件系统,即在“metadata”字段中设置了expand_type=\"hpc\",则容量范围是3686(或1228)~1048576,单位GiB。对于20MB/s/TiB的规格,起步容量为3686GiB;对于HPC其他规格,起步容量为1228GiB。HPC型文件系统的容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 HPC缓存型文件系统,即在“metadata”字段中设置了expand_type=\"hpc_cache\",则容量范围是4096~1048576,单位GiB。不同带宽,起步容量不一样,步长均为1TiB。如2GB/s带宽,起步容量为4TiB,即4096GiB;4GB/s带宽,起步容量为8TiB,即8192GiB;8GB/s带宽,起步容量为16TiB,即16384GiB。 - * minimum: 500 - * maximum: 1048576 + * - SFS Turbo上一代文件系统规格类型-文件系统容量:取值范围为500~32768,单位为GiB。 - SFS Turbo上一代文件系统规格类型-增强版文件系统:在“metadata”字段中设置了expand_type=\"bandwidth\",则容量范围为10240~327680,单位为GiB。 - 20MB/s/TiB:在“metadata”字段中设置了expand_type=\"hpc\"、hpc_bw=\"20M\",则容量范围为3686~1048576,单位为GiB。容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 - 40MB/s/TiB:在“metadata”字段中设置了expand_type=\"hpc\"、hpc_bw=\"40M\",则容量范围为1228~1048576,单位为GiB。容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 - 125MB/s/TiB:在“metadata”字段中设置了expand_type=\"hpc\"、hpc_bw=\"125M\",则容量范围为1228~1048576,单位为GiB。容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 - 250MB/s/TiB:在“metadata”字段中设置了expand_type=\"hpc\"、hpc_bw=\"250M\",则容量范围为1228~1048576,单位为GiB。容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 - 500MB/s/TiB:在“metadata”字段中设置了expand_type=\"hpc\"、hpc_bw=\"500M\",则容量范围为1228~1048576,单位为GiB。容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 - 1000MB/s/TiB:在“metadata”字段中设置了expand_type=\"hpc\"、hpc_bw=\"1000M\",则容量范围为1228~1048576,单位为GiB。容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 - HPC缓存型文件系统:在“metadata”字段中设置了expand_type=\"hpc_cache\",则容量范围为4096~1048576,单位为GiB。不同带宽,起步容量不一样,步长均为1TiB。如2GB/s带宽,起步容量为4TiB,即4096GiB;4GB/s带宽,起步容量为8TiB,即8192GiB;8GB/s带宽,起步容量为16TiB,即16384GiB。 * @return size */ public Integer getSize() { @@ -248,7 +246,7 @@ public Share withSubnetId(String subnetId) { } /** - * 用户在VPC下面的子网的网络ID。 + * 用户在VPC下面的子网的网络ID。 * @return subnetId */ public String getSubnetId() { @@ -265,7 +263,7 @@ public Share withVpcId(String vpcId) { } /** - * 用户在某一区域下的VPC ID。 + * 用户在某一区域下的VPC ID。 * @return vpcId */ public String getVpcId() { diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShareInfo.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShareInfo.java index 18b80c4332..51003cbb6a 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShareInfo.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShareInfo.java @@ -75,7 +75,7 @@ public class ShareInfo { private String name; /** - * SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'代表包周期计费。 + * SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'代表包周期计费。如果文件系统正在创建,该字段不返回。 */ public static final class PayModelEnum { @@ -204,6 +204,36 @@ public int hashCode() { private List tags = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "optional_endpoint") + + private String optionalEndpoint; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hpc_bw") + + private String hpcBw; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instanceId") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instanceType") + + private String instanceType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "statusDetail") + + private String statusDetail; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "features") + + private ShareInfoFeatures features; + public ShareInfo withActionProgress(ActionProgress actionProgress) { this.actionProgress = actionProgress; return this; @@ -338,7 +368,7 @@ public ShareInfo withExpandType(String expandType) { } /** - * 如果是增强型文件系统,该字段返回bandwidth,否则不返回。 + * 如果是增强版文件系统,该字段返回bandwidth;如果是20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB,该字段返回hpc;否则不返回。 * @return expandType */ public String getExpandType() { @@ -355,7 +385,7 @@ public ShareInfo withExportLocation(String exportLocation) { } /** - * SFS Turbo文件系统的挂载端点。 + * SFS Turbo文件系统的挂载端点。例如\"192.168.0.90:/\"。如果文件系统正在创建,该字段不返回。 * @return exportLocation */ public String getExportLocation() { @@ -406,7 +436,7 @@ public ShareInfo withPayModel(PayModelEnum payModel) { } /** - * SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'代表包周期计费。 + * SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'代表包周期计费。如果文件系统正在创建,该字段不返回。 * @return payModel */ public PayModelEnum getPayModel() { @@ -525,7 +555,7 @@ public ShareInfo withSubStatus(String subStatus) { } /** - * SFS Turbo文件系统的子状态。 '121'表示扩容中;'132'表示修改安全组中;'137'表示添加VPC中;'138'表示删除VPC中;'150'表示配置联动后端中;'151'表示删除联动后端配置中; '221'表示扩容成功;'232'表示修改安全组成功;'237'表示添加VPC成功;'238'表示删除VPC成功;'250'表示配置联动后端成功;'251'表示删除联动后端配置成功; '321'表示扩容失败;'332'表示修改安全组失败;'337'表示添加VPC失败;'338'表示删除VPC失败;'350'表示配置联动后端失败;'351'表示删除联动后端配置失败; + * SFS Turbo文件系统的子状态。当用户未对文件系统有修改类操作时,该字段不返回。 '121'表示扩容中;'132'表示修改安全组中;'137'表示添加VPC中;'138'表示删除VPC中;'150'表示配置联动后端中;'151'表示删除联动后端配置中。 '221'表示扩容成功;'232'表示修改安全组成功;'237'表示添加VPC成功;'238'表示删除VPC成功;'250'表示配置联动后端成功;'251'表示删除联动后端配置成功。 '321'表示扩容失败;'332'表示修改安全组失败;'337'表示添加VPC失败;'338'表示删除VPC失败;'350'表示配置联动后端失败;'351'表示删除联动后端配置失败。 * @return subStatus */ public String getSubStatus() { @@ -620,6 +650,117 @@ public void setTags(List tags) { this.tags = tags; } + public ShareInfo withOptionalEndpoint(String optionalEndpoint) { + this.optionalEndpoint = optionalEndpoint; + return this; + } + + /** + * 可选的挂载IP地址。上一代文件系统规格类型不返回该字段。 + * @return optionalEndpoint + */ + public String getOptionalEndpoint() { + return optionalEndpoint; + } + + public void setOptionalEndpoint(String optionalEndpoint) { + this.optionalEndpoint = optionalEndpoint; + } + + public ShareInfo withHpcBw(String hpcBw) { + this.hpcBw = hpcBw; + return this; + } + + /** + * 文件系统的带宽规格。 - \"20M\"表示20MB/s/TiB - \"40M\"表示40MB/s/TiB - \"125M\"表示125MB/s/TiB - \"250M\"表示250MB/s/TiB - \"500M\"表示500MB/s/TiB - \"1000M\"表示1000MB/s/TiB - \"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"或\"48G\"表示HPC缓存型的带宽规格。 + * @return hpcBw + */ + public String getHpcBw() { + return hpcBw; + } + + public void setHpcBw(String hpcBw) { + this.hpcBw = hpcBw; + } + + public ShareInfo withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 文件系统规格的节点id,为预留字段,不具备实际含义。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ShareInfo withInstanceType(String instanceType) { + this.instanceType = instanceType; + return this; + } + + /** + * 文件系统规格的节点类型,为预留字段,不具备实际含义。 + * @return instanceType + */ + public String getInstanceType() { + return instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public ShareInfo withStatusDetail(String statusDetail) { + this.statusDetail = statusDetail; + return this; + } + + /** + * 文件系统的请求ID,为预留字段,不具备实际含义。 + * @return statusDetail + */ + public String getStatusDetail() { + return statusDetail; + } + + public void setStatusDetail(String statusDetail) { + this.statusDetail = statusDetail; + } + + public ShareInfo withFeatures(ShareInfoFeatures features) { + this.features = features; + return this; + } + + public ShareInfo withFeatures(Consumer featuresSetter) { + if (this.features == null) { + this.features = new ShareInfoFeatures(); + featuresSetter.accept(this.features); + } + + return this; + } + + /** + * Get features + * @return features + */ + public ShareInfoFeatures getFeatures() { + return features; + } + + public void setFeatures(ShareInfoFeatures features) { + this.features = features; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -642,7 +783,10 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.subStatus, that.subStatus) && Objects.equals(this.subnetId, that.subnetId) && Objects.equals(this.vpcId, that.vpcId) && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) - && Objects.equals(this.tags, that.tags); + && Objects.equals(this.tags, that.tags) && Objects.equals(this.optionalEndpoint, that.optionalEndpoint) + && Objects.equals(this.hpcBw, that.hpcBw) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.instanceType, that.instanceType) + && Objects.equals(this.statusDetail, that.statusDetail) && Objects.equals(this.features, that.features); } @Override @@ -669,7 +813,13 @@ public int hashCode() { subnetId, vpcId, enterpriseProjectId, - tags); + tags, + optionalEndpoint, + hpcBw, + instanceId, + instanceType, + statusDetail, + features); } @Override @@ -699,6 +849,12 @@ public String toString() { sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n"); sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" optionalEndpoint: ").append(toIndentedString(optionalEndpoint)).append("\n"); + sb.append(" hpcBw: ").append(toIndentedString(hpcBw)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" instanceType: ").append(toIndentedString(instanceType)).append("\n"); + sb.append(" statusDetail: ").append(toIndentedString(statusDetail)).append("\n"); + sb.append(" features: ").append(toIndentedString(features)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShareInfoFeature.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShareInfoFeature.java new file mode 100644 index 0000000000..164e0207b1 --- /dev/null +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShareInfoFeature.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.sfsturbo.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 文件系统的特性支持情况。 + */ +public class ShareInfoFeature { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_support") + + private Boolean isSupport; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "message") + + private String message; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "msg_code") + + private String msgCode; + + public ShareInfoFeature withIsSupport(Boolean isSupport) { + this.isSupport = isSupport; + return this; + } + + /** + * 文件系统是否支持该特性 + * @return isSupport + */ + public Boolean getIsSupport() { + return isSupport; + } + + public void setIsSupport(Boolean isSupport) { + this.isSupport = isSupport; + } + + public ShareInfoFeature withMessage(String message) { + this.message = message; + return this; + } + + /** + * 文件系统是否支持该特性的详细信息 + * @return message + */ + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ShareInfoFeature withMsgCode(String msgCode) { + this.msgCode = msgCode; + return this; + } + + /** + * 文件系统是否支持该特性的详细信息 + * @return msgCode + */ + public String getMsgCode() { + return msgCode; + } + + public void setMsgCode(String msgCode) { + this.msgCode = msgCode; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShareInfoFeature that = (ShareInfoFeature) obj; + return Objects.equals(this.isSupport, that.isSupport) && Objects.equals(this.message, that.message) + && Objects.equals(this.msgCode, that.msgCode); + } + + @Override + public int hashCode() { + return Objects.hash(isSupport, message, msgCode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShareInfoFeature {\n"); + sb.append(" isSupport: ").append(toIndentedString(isSupport)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" msgCode: ").append(toIndentedString(msgCode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShareInfoFeatures.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShareInfoFeatures.java new file mode 100644 index 0000000000..f41daa2541 --- /dev/null +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShareInfoFeatures.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.sfsturbo.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 文件系统的特性支持情况。 + */ +public class ShareInfoFeatures { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "backup") + + private ShareInfoFeature backup; + + public ShareInfoFeatures withBackup(ShareInfoFeature backup) { + this.backup = backup; + return this; + } + + public ShareInfoFeatures withBackup(Consumer backupSetter) { + if (this.backup == null) { + this.backup = new ShareInfoFeature(); + backupSetter.accept(this.backup); + } + + return this; + } + + /** + * Get backup + * @return backup + */ + public ShareInfoFeature getBackup() { + return backup; + } + + public void setBackup(ShareInfoFeature backup) { + this.backup = backup; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShareInfoFeatures that = (ShareInfoFeatures) obj; + return Objects.equals(this.backup, that.backup); + } + + @Override + public int hashCode() { + return Objects.hash(backup); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShareInfoFeatures {\n"); + sb.append(" backup: ").append(toIndentedString(backup)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowBackendTargetInfoResponseBody.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowBackendTargetInfoResponseBody.java index 108553f514..1d2c563685 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowBackendTargetInfoResponseBody.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowBackendTargetInfoResponseBody.java @@ -12,7 +12,7 @@ import java.util.function.Consumer; /** - * 查询文件系统后端存储库详情返回体 + * 查询文件系统后端存储详情返回体 */ public class ShowBackendTargetInfoResponseBody { diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowFsDirQuotaResponse.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowFsDirQuotaResponse.java index 0bc5d5b3ec..5075edadf8 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowFsDirQuotaResponse.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowFsDirQuotaResponse.java @@ -93,7 +93,7 @@ public ShowFsDirQuotaResponse withUsedCapacity(Integer usedCapacity) { } /** - * 目录已使用的容量大小,单位:MB。仅SFSTurbo HPC型返回该字段 + * 目录已使用的容量大小,单位:MB。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段。数据可能有延迟。 * @return usedCapacity */ public Integer getUsedCapacity() { @@ -110,7 +110,7 @@ public ShowFsDirQuotaResponse withUsedInode(Integer usedInode) { } /** - * 目录的已使用的inode数量。仅SFSTurbo HPC型返回该字段 + * 目录的已使用的inode数量。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段。数据可能有延迟。 * @return usedInode */ public Integer getUsedInode() { diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowFsDirResponse.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowFsDirResponse.java index 5bf855018c..52d9394a39 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowFsDirResponse.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowFsDirResponse.java @@ -54,7 +54,7 @@ public ShowFsDirResponse withMode(Long mode) { } /** - * 目录权限,仅HPC型、缓存型文件系统返回该字段。第三位表示目录所有者的权限,第四位表示目录所属用户组的权限,第五位表示其他用户的权限。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。例如:40755中第三位7代表目录所有者对该目录具有读、写、执行权限;第四位5代表目录所属用户组对该目录具有读、执行权限;第五位5代表其他用户对该目录具有读、执行权限。 + * 目录权限,仅20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统返回该字段。第三位表示目录所有者的权限,第四位表示目录所属用户组的权限,第五位表示其他用户的权限。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。例如:40755中第三位7代表目录所有者对该目录具有读、写、执行权限;第四位5代表目录所属用户组对该目录具有读、执行权限;第五位5代表其他用户对该目录具有读、执行权限。 * minimum: 0 * @return mode */ @@ -72,7 +72,7 @@ public ShowFsDirResponse withUid(Long uid) { } /** - * 目录所有者的用户id,仅HPC型、缓存型文件系统返回该字段。 + * 目录所有者的用户id,仅20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统返回该字段。 * minimum: 0 * @return uid */ @@ -90,7 +90,7 @@ public ShowFsDirResponse withGid(Long gid) { } /** - * 目录所属用户组id,仅HPC型、缓存型文件系统返回该字段。 + * 目录所属用户组id,仅20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统返回该字段。 * minimum: 0 * @return gid */ diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowHpcCacheTaskResponse.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowHpcCacheTaskResponse.java index 81e3ca463b..921e119e3b 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowHpcCacheTaskResponse.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowHpcCacheTaskResponse.java @@ -1,9 +1,14 @@ package com.huaweicloud.sdk.sfsturbo.v1.model; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; import com.huaweicloud.sdk.core.SdkResponse; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -21,10 +26,86 @@ public class ShowHpcCacheTaskResponse extends SdkResponse { private String type; + /** + * 任务状态 + */ + public static final class StatusEnum { + + /** + * Enum SUCCESS for value: "SUCCESS" + */ + public static final StatusEnum SUCCESS = new StatusEnum("SUCCESS"); + + /** + * Enum DOING for value: "DOING" + */ + public static final StatusEnum DOING = new StatusEnum("DOING"); + + /** + * Enum FAIL for value: "FAIL" + */ + public static final StatusEnum FAIL = new StatusEnum("FAIL"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("SUCCESS", SUCCESS); + map.put("DOING", DOING); + map.put("FAIL", FAIL); + return Collections.unmodifiableMap(map); + } + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StatusEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new StatusEnum(value)); + } + + public static StatusEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof StatusEnum) { + return this.value.equals(((StatusEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "status") - private String status; + private StatusEnum status; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "src_target") @@ -100,7 +181,7 @@ public void setType(String type) { this.type = type; } - public ShowHpcCacheTaskResponse withStatus(String status) { + public ShowHpcCacheTaskResponse withStatus(StatusEnum status) { this.status = status; return this; } @@ -109,11 +190,11 @@ public ShowHpcCacheTaskResponse withStatus(String status) { * 任务状态 * @return status */ - public String getStatus() { + public StatusEnum getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(StatusEnum status) { this.status = status; } diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowJobDetailResponse.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowJobDetailResponse.java index 7135814c20..5f5084e85d 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowJobDetailResponse.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowJobDetailResponse.java @@ -1,11 +1,16 @@ package com.huaweicloud.sdk.sfsturbo.v1.model; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; import com.huaweicloud.sdk.core.SdkResponse; import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Consumer; @@ -14,10 +19,92 @@ */ public class ShowJobDetailResponse extends SdkResponse { + /** + * job的状态。success:成功。running:运行中。failed:失败。waiting:等待执行 + */ + public static final class StatusEnum { + + /** + * Enum SUCCESS for value: "success" + */ + public static final StatusEnum SUCCESS = new StatusEnum("success"); + + /** + * Enum FAILED for value: "failed" + */ + public static final StatusEnum FAILED = new StatusEnum("failed"); + + /** + * Enum WAITING for value: "waiting" + */ + public static final StatusEnum WAITING = new StatusEnum("waiting"); + + /** + * Enum RUNNING for value: "running" + */ + public static final StatusEnum RUNNING = new StatusEnum("running"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("success", SUCCESS); + map.put("failed", FAILED); + map.put("waiting", WAITING); + map.put("running", RUNNING); + return Collections.unmodifiableMap(map); + } + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StatusEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new StatusEnum(value)); + } + + public static StatusEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof StatusEnum) { + return this.value.equals(((StatusEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "status") - private String status; + private StatusEnum status; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "job_id") @@ -59,7 +146,7 @@ public class ShowJobDetailResponse extends SdkResponse { private String xRequestId; - public ShowJobDetailResponse withStatus(String status) { + public ShowJobDetailResponse withStatus(StatusEnum status) { this.status = status; return this; } @@ -68,11 +155,11 @@ public ShowJobDetailResponse withStatus(String status) { * job的状态。success:成功。running:运行中。failed:失败。waiting:等待执行 * @return status */ - public String getStatus() { + public StatusEnum getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(StatusEnum status) { this.status = status; } diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowLdapConfigResponse.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowLdapConfigResponse.java index 4dfb873587..f9bea641f5 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowLdapConfigResponse.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowLdapConfigResponse.java @@ -31,6 +31,26 @@ public class ShowLdapConfigResponse extends SdkResponse { private String filterCondition; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "backup_url") + + private String backupUrl; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schema") + + private String schema; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "search_timeout") + + private Integer searchTimeout; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "allow_local_user") + + private String allowLocalUser; + public ShowLdapConfigResponse withUrl(String url) { this.url = url; return this; @@ -99,6 +119,74 @@ public void setFilterCondition(String filterCondition) { this.filterCondition = filterCondition; } + public ShowLdapConfigResponse withBackupUrl(String backupUrl) { + this.backupUrl = backupUrl; + return this; + } + + /** + * ldap备节点的url + * @return backupUrl + */ + public String getBackupUrl() { + return backupUrl; + } + + public void setBackupUrl(String backupUrl) { + this.backupUrl = backupUrl; + } + + public ShowLdapConfigResponse withSchema(String schema) { + this.schema = schema; + return this; + } + + /** + * ldap的schema,不填写则默认为RFC2307 + * @return schema + */ + public String getSchema() { + return schema; + } + + public void setSchema(String schema) { + this.schema = schema; + } + + public ShowLdapConfigResponse withSearchTimeout(Integer searchTimeout) { + this.searchTimeout = searchTimeout; + return this; + } + + /** + * ldap搜索的超时时间,单位为秒。不填写则默认为3秒 + * @return searchTimeout + */ + public Integer getSearchTimeout() { + return searchTimeout; + } + + public void setSearchTimeout(Integer searchTimeout) { + this.searchTimeout = searchTimeout; + } + + public ShowLdapConfigResponse withAllowLocalUser(String allowLocalUser) { + this.allowLocalUser = allowLocalUser; + return this; + } + + /** + * 访问ldap服务器失败后是否允许使用本地用户鉴权 + * @return allowLocalUser + */ + public String getAllowLocalUser() { + return allowLocalUser; + } + + public void setAllowLocalUser(String allowLocalUser) { + this.allowLocalUser = allowLocalUser; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -109,12 +197,15 @@ public boolean equals(java.lang.Object obj) { } ShowLdapConfigResponse that = (ShowLdapConfigResponse) obj; return Objects.equals(this.url, that.url) && Objects.equals(this.baseDn, that.baseDn) - && Objects.equals(this.userDn, that.userDn) && Objects.equals(this.filterCondition, that.filterCondition); + && Objects.equals(this.userDn, that.userDn) && Objects.equals(this.filterCondition, that.filterCondition) + && Objects.equals(this.backupUrl, that.backupUrl) && Objects.equals(this.schema, that.schema) + && Objects.equals(this.searchTimeout, that.searchTimeout) + && Objects.equals(this.allowLocalUser, that.allowLocalUser); } @Override public int hashCode() { - return Objects.hash(url, baseDn, userDn, filterCondition); + return Objects.hash(url, baseDn, userDn, filterCondition, backupUrl, schema, searchTimeout, allowLocalUser); } @Override @@ -125,6 +216,10 @@ public String toString() { sb.append(" baseDn: ").append(toIndentedString(baseDn)).append("\n"); sb.append(" userDn: ").append(toIndentedString(userDn)).append("\n"); sb.append(" filterCondition: ").append(toIndentedString(filterCondition)).append("\n"); + sb.append(" backupUrl: ").append(toIndentedString(backupUrl)).append("\n"); + sb.append(" schema: ").append(toIndentedString(schema)).append("\n"); + sb.append(" searchTimeout: ").append(toIndentedString(searchTimeout)).append("\n"); + sb.append(" allowLocalUser: ").append(toIndentedString(allowLocalUser)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowPermRuleResponse.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowPermRuleResponse.java index ca555b3c4c..d69e948aec 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowPermRuleResponse.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowPermRuleResponse.java @@ -71,7 +71,7 @@ public ShowPermRuleResponse withRwType(String rwType) { } /** - * -| 授权对象的读写权限 rw:默认选项,以读写的方式共享 ro:以只读的方式共享 + * 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限 * @return rwType */ public String getRwType() { @@ -88,7 +88,7 @@ public ShowPermRuleResponse withUserType(String userType) { } /** - * -| 授权对象的系统用户对文件系统的访问权限。取值如下: no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。 + * 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。' * @return userType */ public String getUserType() { diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowShareResponse.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowShareResponse.java index d50b256542..9bfe358f0d 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowShareResponse.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/ShowShareResponse.java @@ -76,7 +76,7 @@ public class ShowShareResponse extends SdkResponse { private String name; /** - * SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'代表包周期计费。 + * SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'代表包周期计费。如果文件系统正在创建,该字段不返回。 */ public static final class PayModelEnum { @@ -205,6 +205,36 @@ public int hashCode() { private List tags = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "optional_endpoint") + + private String optionalEndpoint; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hpc_bw") + + private String hpcBw; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instanceId") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instanceType") + + private String instanceType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "statusDetail") + + private String statusDetail; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "features") + + private ShareInfoFeatures features; + public ShowShareResponse withActionProgress(ActionProgress actionProgress) { this.actionProgress = actionProgress; return this; @@ -339,7 +369,7 @@ public ShowShareResponse withExpandType(String expandType) { } /** - * 如果是增强型文件系统,该字段返回bandwidth,否则不返回。 + * 如果是增强版文件系统,该字段返回bandwidth;如果是20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB,该字段返回hpc;否则不返回。 * @return expandType */ public String getExpandType() { @@ -356,7 +386,7 @@ public ShowShareResponse withExportLocation(String exportLocation) { } /** - * SFS Turbo文件系统的挂载端点。 + * SFS Turbo文件系统的挂载端点。例如\"192.168.0.90:/\"。如果文件系统正在创建,该字段不返回。 * @return exportLocation */ public String getExportLocation() { @@ -407,7 +437,7 @@ public ShowShareResponse withPayModel(PayModelEnum payModel) { } /** - * SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'代表包周期计费。 + * SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'代表包周期计费。如果文件系统正在创建,该字段不返回。 * @return payModel */ public PayModelEnum getPayModel() { @@ -526,7 +556,7 @@ public ShowShareResponse withSubStatus(String subStatus) { } /** - * SFS Turbo文件系统的子状态。 '121'表示扩容中;'132'表示修改安全组中;'137'表示添加VPC中;'138'表示删除VPC中;'150'表示配置联动后端中;'151'表示删除联动后端配置中; '221'表示扩容成功;'232'表示修改安全组成功;'237'表示添加VPC成功;'238'表示删除VPC成功;'250'表示配置联动后端成功;'251'表示删除联动后端配置成功; '321'表示扩容失败;'332'表示修改安全组失败;'337'表示添加VPC失败;'338'表示删除VPC失败;'350'表示配置联动后端失败;'351'表示删除联动后端配置失败; + * SFS Turbo文件系统的子状态。当用户未对文件系统有修改类操作时,该字段不返回。 '121'表示扩容中;'132'表示修改安全组中;'137'表示添加VPC中;'138'表示删除VPC中;'150'表示配置联动后端中;'151'表示删除联动后端配置中。 '221'表示扩容成功;'232'表示修改安全组成功;'237'表示添加VPC成功;'238'表示删除VPC成功;'250'表示配置联动后端成功;'251'表示删除联动后端配置成功。 '321'表示扩容失败;'332'表示修改安全组失败;'337'表示添加VPC失败;'338'表示删除VPC失败;'350'表示配置联动后端失败;'351'表示删除联动后端配置失败。 * @return subStatus */ public String getSubStatus() { @@ -621,6 +651,117 @@ public void setTags(List tags) { this.tags = tags; } + public ShowShareResponse withOptionalEndpoint(String optionalEndpoint) { + this.optionalEndpoint = optionalEndpoint; + return this; + } + + /** + * 可选的挂载IP地址。上一代文件系统规格类型不返回该字段。 + * @return optionalEndpoint + */ + public String getOptionalEndpoint() { + return optionalEndpoint; + } + + public void setOptionalEndpoint(String optionalEndpoint) { + this.optionalEndpoint = optionalEndpoint; + } + + public ShowShareResponse withHpcBw(String hpcBw) { + this.hpcBw = hpcBw; + return this; + } + + /** + * 文件系统的带宽规格。 - \"20M\"表示20MB/s/TiB - \"40M\"表示40MB/s/TiB - \"125M\"表示125MB/s/TiB - \"250M\"表示250MB/s/TiB - \"500M\"表示500MB/s/TiB - \"1000M\"表示1000MB/s/TiB - \"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"或\"48G\"表示HPC缓存型的带宽规格。 + * @return hpcBw + */ + public String getHpcBw() { + return hpcBw; + } + + public void setHpcBw(String hpcBw) { + this.hpcBw = hpcBw; + } + + public ShowShareResponse withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 文件系统规格的节点id,为预留字段,不具备实际含义。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ShowShareResponse withInstanceType(String instanceType) { + this.instanceType = instanceType; + return this; + } + + /** + * 文件系统规格的节点类型,为预留字段,不具备实际含义。 + * @return instanceType + */ + public String getInstanceType() { + return instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public ShowShareResponse withStatusDetail(String statusDetail) { + this.statusDetail = statusDetail; + return this; + } + + /** + * 文件系统的请求ID,为预留字段,不具备实际含义。 + * @return statusDetail + */ + public String getStatusDetail() { + return statusDetail; + } + + public void setStatusDetail(String statusDetail) { + this.statusDetail = statusDetail; + } + + public ShowShareResponse withFeatures(ShareInfoFeatures features) { + this.features = features; + return this; + } + + public ShowShareResponse withFeatures(Consumer featuresSetter) { + if (this.features == null) { + this.features = new ShareInfoFeatures(); + featuresSetter.accept(this.features); + } + + return this; + } + + /** + * Get features + * @return features + */ + public ShareInfoFeatures getFeatures() { + return features; + } + + public void setFeatures(ShareInfoFeatures features) { + this.features = features; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -643,7 +784,10 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.subStatus, that.subStatus) && Objects.equals(this.subnetId, that.subnetId) && Objects.equals(this.vpcId, that.vpcId) && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) - && Objects.equals(this.tags, that.tags); + && Objects.equals(this.tags, that.tags) && Objects.equals(this.optionalEndpoint, that.optionalEndpoint) + && Objects.equals(this.hpcBw, that.hpcBw) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.instanceType, that.instanceType) + && Objects.equals(this.statusDetail, that.statusDetail) && Objects.equals(this.features, that.features); } @Override @@ -670,7 +814,13 @@ public int hashCode() { subnetId, vpcId, enterpriseProjectId, - tags); + tags, + optionalEndpoint, + hpcBw, + instanceId, + instanceType, + statusDetail, + features); } @Override @@ -700,6 +850,12 @@ public String toString() { sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n"); sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" optionalEndpoint: ").append(toIndentedString(optionalEndpoint)).append("\n"); + sb.append(" hpcBw: ").append(toIndentedString(hpcBw)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" instanceType: ").append(toIndentedString(instanceType)).append("\n"); + sb.append(" statusDetail: ").append(toIndentedString(statusDetail)).append("\n"); + sb.append(" features: ").append(toIndentedString(features)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/Tag.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/Tag.java index 5e7a9bc839..f924a1c0f6 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/Tag.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/Tag.java @@ -29,7 +29,7 @@ public Tag withKey(String key) { } /** - * 标签的键。 最大长度127个字符。 key不能为空。 + * 标签的键。 最大长度128个字符。 key不能为空。 * @return key */ public String getKey() { diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateFsDirQuotaRequestBody.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateFsDirQuotaRequestBody.java index 62e34e1377..f25f55bee5 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateFsDirQuotaRequestBody.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateFsDirQuotaRequestBody.java @@ -48,7 +48,7 @@ public UpdateFsDirQuotaRequestBody withCapacity(Integer capacity) { } /** - * 目录的容量大小,单位:MB + * 目录的容量大小,单位:MB; 设置为0会导致数据无法写入目录; capacity和quota至少二选一 * @return capacity */ public Integer getCapacity() { @@ -65,7 +65,7 @@ public UpdateFsDirQuotaRequestBody withInode(Integer inode) { } /** - * 目录的inode数量限制 + * 目录的inode数量限制; 设置为0会导致数据无法写入目录; capacity和quota至少二选一 * @return inode */ public Integer getInode() { diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateFsDirQuotaResponse.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateFsDirQuotaResponse.java index b48ac99446..5aa8edc707 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateFsDirQuotaResponse.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateFsDirQuotaResponse.java @@ -93,7 +93,7 @@ public UpdateFsDirQuotaResponse withUsedCapacity(Integer usedCapacity) { } /** - * 目录已使用的容量大小,单位:MB。仅SFSTurbo HPC型返回该字段 + * 目录已使用的容量大小,单位:MB。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段 * @return usedCapacity */ public Integer getUsedCapacity() { @@ -110,7 +110,7 @@ public UpdateFsDirQuotaResponse withUsedInode(Integer usedInode) { } /** - * 目录的已使用的inode数量。仅SFSTurbo HPC型返回该字段 + * 目录的已使用的inode数量。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段 * @return usedInode */ public Integer getUsedInode() { diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateHpcShareRequestBody.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateHpcShareRequestBody.java index 5d60f6bfe5..6026b48697 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateHpcShareRequestBody.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateHpcShareRequestBody.java @@ -6,7 +6,7 @@ import java.util.Objects; /** - * 更新 HPC 型文件系统请求体 + * 更新文件系统请求体 */ public class UpdateHpcShareRequestBody { @@ -26,7 +26,7 @@ public UpdateHpcShareRequestBody withAction(String action) { } /** - * 更新 HPC 型文件系统的操作类型。当前仅支持取值 config_gc_time + * 更新文件系统的操作类型。当前仅支持取值 config_gc_time * @return action */ public String getAction() { diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateLdapConfigRequestBody.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateLdapConfigRequestBody.java index 194c0c75e0..54d8926963 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateLdapConfigRequestBody.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateLdapConfigRequestBody.java @@ -1,8 +1,13 @@ package com.huaweicloud.sdk.sfsturbo.v1.model; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; /** @@ -40,13 +45,103 @@ public class UpdateLdapConfigRequestBody { private String filterCondition; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "backup_url") + + private String backupUrl; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schema") + + private String schema; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "search_timeout") + + private Integer searchTimeout; + + /** + * 访问ldap服务器失败后是否允许使用本地用户鉴权 + */ + public static final class AllowLocalUserEnum { + + /** + * Enum YES for value: "Yes" + */ + public static final AllowLocalUserEnum YES = new AllowLocalUserEnum("Yes"); + + /** + * Enum NO for value: "No" + */ + public static final AllowLocalUserEnum NO = new AllowLocalUserEnum("No"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("Yes", YES); + map.put("No", NO); + return Collections.unmodifiableMap(map); + } + + private String value; + + AllowLocalUserEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AllowLocalUserEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new AllowLocalUserEnum(value)); + } + + public static AllowLocalUserEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof AllowLocalUserEnum) { + return this.value.equals(((AllowLocalUserEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "allow_local_user") + + private AllowLocalUserEnum allowLocalUser; + public UpdateLdapConfigRequestBody withUrl(String url) { this.url = url; return this; } /** - * ldap服务器的url + * ldap服务器的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000 * @return url */ public String getUrl() { @@ -142,6 +237,74 @@ public void setFilterCondition(String filterCondition) { this.filterCondition = filterCondition; } + public UpdateLdapConfigRequestBody withBackupUrl(String backupUrl) { + this.backupUrl = backupUrl; + return this; + } + + /** + * ldap备节点的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000 + * @return backupUrl + */ + public String getBackupUrl() { + return backupUrl; + } + + public void setBackupUrl(String backupUrl) { + this.backupUrl = backupUrl; + } + + public UpdateLdapConfigRequestBody withSchema(String schema) { + this.schema = schema; + return this; + } + + /** + * ldap的schema,不填写则默认为RFC2307 + * @return schema + */ + public String getSchema() { + return schema; + } + + public void setSchema(String schema) { + this.schema = schema; + } + + public UpdateLdapConfigRequestBody withSearchTimeout(Integer searchTimeout) { + this.searchTimeout = searchTimeout; + return this; + } + + /** + * ldap搜索的超时时间,单位为秒。不填写则默认为3秒 + * @return searchTimeout + */ + public Integer getSearchTimeout() { + return searchTimeout; + } + + public void setSearchTimeout(Integer searchTimeout) { + this.searchTimeout = searchTimeout; + } + + public UpdateLdapConfigRequestBody withAllowLocalUser(AllowLocalUserEnum allowLocalUser) { + this.allowLocalUser = allowLocalUser; + return this; + } + + /** + * 访问ldap服务器失败后是否允许使用本地用户鉴权 + * @return allowLocalUser + */ + public AllowLocalUserEnum getAllowLocalUser() { + return allowLocalUser; + } + + public void setAllowLocalUser(AllowLocalUserEnum allowLocalUser) { + this.allowLocalUser = allowLocalUser; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -153,12 +316,24 @@ public boolean equals(java.lang.Object obj) { UpdateLdapConfigRequestBody that = (UpdateLdapConfigRequestBody) obj; return Objects.equals(this.url, that.url) && Objects.equals(this.baseDn, that.baseDn) && Objects.equals(this.userDn, that.userDn) && Objects.equals(this.password, that.password) - && Objects.equals(this.vpcId, that.vpcId) && Objects.equals(this.filterCondition, that.filterCondition); + && Objects.equals(this.vpcId, that.vpcId) && Objects.equals(this.filterCondition, that.filterCondition) + && Objects.equals(this.backupUrl, that.backupUrl) && Objects.equals(this.schema, that.schema) + && Objects.equals(this.searchTimeout, that.searchTimeout) + && Objects.equals(this.allowLocalUser, that.allowLocalUser); } @Override public int hashCode() { - return Objects.hash(url, baseDn, userDn, password, vpcId, filterCondition); + return Objects.hash(url, + baseDn, + userDn, + password, + vpcId, + filterCondition, + backupUrl, + schema, + searchTimeout, + allowLocalUser); } @Override @@ -171,6 +346,10 @@ public String toString() { sb.append(" password: ").append(toIndentedString(password)).append("\n"); sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n"); sb.append(" filterCondition: ").append(toIndentedString(filterCondition)).append("\n"); + sb.append(" backupUrl: ").append(toIndentedString(backupUrl)).append("\n"); + sb.append(" schema: ").append(toIndentedString(schema)).append("\n"); + sb.append(" searchTimeout: ").append(toIndentedString(searchTimeout)).append("\n"); + sb.append(" allowLocalUser: ").append(toIndentedString(allowLocalUser)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateLdapConfigResponse.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateLdapConfigResponse.java index 45b02a76a7..ce3d350371 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateLdapConfigResponse.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateLdapConfigResponse.java @@ -22,7 +22,7 @@ public UpdateLdapConfigResponse withJobId(String jobId) { } /** - * 创建ldap异步任务的id + * ldap异步任务的id。可通过查询job的状态详情接口查询job的执行状态。 * @return jobId */ public String getJobId() { diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateObsTargetAttributesRequest.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateObsTargetAttributesRequest.java new file mode 100644 index 0000000000..95854c71d4 --- /dev/null +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateObsTargetAttributesRequest.java @@ -0,0 +1,129 @@ +package com.huaweicloud.sdk.sfsturbo.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class UpdateObsTargetAttributesRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "share_id") + + private String shareId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_id") + + private String targetId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdateObsTargetAttributesRequestBody body; + + public UpdateObsTargetAttributesRequest withShareId(String shareId) { + this.shareId = shareId; + return this; + } + + /** + * 文件系统id + * @return shareId + */ + public String getShareId() { + return shareId; + } + + public void setShareId(String shareId) { + this.shareId = shareId; + } + + public UpdateObsTargetAttributesRequest withTargetId(String targetId) { + this.targetId = targetId; + return this; + } + + /** + * 绑定关系id + * @return targetId + */ + public String getTargetId() { + return targetId; + } + + public void setTargetId(String targetId) { + this.targetId = targetId; + } + + public UpdateObsTargetAttributesRequest withBody(UpdateObsTargetAttributesRequestBody body) { + this.body = body; + return this; + } + + public UpdateObsTargetAttributesRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdateObsTargetAttributesRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdateObsTargetAttributesRequestBody getBody() { + return body; + } + + public void setBody(UpdateObsTargetAttributesRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateObsTargetAttributesRequest that = (UpdateObsTargetAttributesRequest) obj; + return Objects.equals(this.shareId, that.shareId) && Objects.equals(this.targetId, that.targetId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(shareId, targetId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateObsTargetAttributesRequest {\n"); + sb.append(" shareId: ").append(toIndentedString(shareId)).append("\n"); + sb.append(" targetId: ").append(toIndentedString(targetId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateObsTargetAttributesRequestBody.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateObsTargetAttributesRequestBody.java new file mode 100644 index 0000000000..efb9574ec0 --- /dev/null +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateObsTargetAttributesRequestBody.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.sfsturbo.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 更新后端存储属性请求体 + */ +public class UpdateObsTargetAttributesRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "attributes") + + private ObsTargetAttributes attributes; + + public UpdateObsTargetAttributesRequestBody withAttributes(ObsTargetAttributes attributes) { + this.attributes = attributes; + return this; + } + + public UpdateObsTargetAttributesRequestBody withAttributes(Consumer attributesSetter) { + if (this.attributes == null) { + this.attributes = new ObsTargetAttributes(); + attributesSetter.accept(this.attributes); + } + + return this; + } + + /** + * Get attributes + * @return attributes + */ + public ObsTargetAttributes getAttributes() { + return attributes; + } + + public void setAttributes(ObsTargetAttributes attributes) { + this.attributes = attributes; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateObsTargetAttributesRequestBody that = (UpdateObsTargetAttributesRequestBody) obj; + return Objects.equals(this.attributes, that.attributes); + } + + @Override + public int hashCode() { + return Objects.hash(attributes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateObsTargetAttributesRequestBody {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateObsTargetAttributesResponse.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateObsTargetAttributesResponse.java new file mode 100644 index 0000000000..9bcee87dcd --- /dev/null +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateObsTargetAttributesResponse.java @@ -0,0 +1,132 @@ +package com.huaweicloud.sdk.sfsturbo.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class UpdateObsTargetAttributesResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_id") + + private String targetId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "attributes") + + private ObsTargetAttributes attributes; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-request-id") + + private String xRequestId; + + public UpdateObsTargetAttributesResponse withTargetId(String targetId) { + this.targetId = targetId; + return this; + } + + /** + * 绑定关系Id + * @return targetId + */ + public String getTargetId() { + return targetId; + } + + public void setTargetId(String targetId) { + this.targetId = targetId; + } + + public UpdateObsTargetAttributesResponse withAttributes(ObsTargetAttributes attributes) { + this.attributes = attributes; + return this; + } + + public UpdateObsTargetAttributesResponse withAttributes(Consumer attributesSetter) { + if (this.attributes == null) { + this.attributes = new ObsTargetAttributes(); + attributesSetter.accept(this.attributes); + } + + return this; + } + + /** + * Get attributes + * @return attributes + */ + public ObsTargetAttributes getAttributes() { + return attributes; + } + + public void setAttributes(ObsTargetAttributes attributes) { + this.attributes = attributes; + } + + public UpdateObsTargetAttributesResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-request-id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateObsTargetAttributesResponse that = (UpdateObsTargetAttributesResponse) obj; + return Objects.equals(this.targetId, that.targetId) && Objects.equals(this.attributes, that.attributes) + && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(targetId, attributes, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateObsTargetAttributesResponse {\n"); + sb.append(" targetId: ").append(toIndentedString(targetId)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateObsTargetPolicyRequest.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateObsTargetPolicyRequest.java new file mode 100644 index 0000000000..91975cbf21 --- /dev/null +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateObsTargetPolicyRequest.java @@ -0,0 +1,129 @@ +package com.huaweicloud.sdk.sfsturbo.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class UpdateObsTargetPolicyRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "share_id") + + private String shareId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_id") + + private String targetId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdateObsTargetPolicyRequestBody body; + + public UpdateObsTargetPolicyRequest withShareId(String shareId) { + this.shareId = shareId; + return this; + } + + /** + * 文件系统id + * @return shareId + */ + public String getShareId() { + return shareId; + } + + public void setShareId(String shareId) { + this.shareId = shareId; + } + + public UpdateObsTargetPolicyRequest withTargetId(String targetId) { + this.targetId = targetId; + return this; + } + + /** + * 绑定关系id + * @return targetId + */ + public String getTargetId() { + return targetId; + } + + public void setTargetId(String targetId) { + this.targetId = targetId; + } + + public UpdateObsTargetPolicyRequest withBody(UpdateObsTargetPolicyRequestBody body) { + this.body = body; + return this; + } + + public UpdateObsTargetPolicyRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdateObsTargetPolicyRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdateObsTargetPolicyRequestBody getBody() { + return body; + } + + public void setBody(UpdateObsTargetPolicyRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateObsTargetPolicyRequest that = (UpdateObsTargetPolicyRequest) obj; + return Objects.equals(this.shareId, that.shareId) && Objects.equals(this.targetId, that.targetId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(shareId, targetId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateObsTargetPolicyRequest {\n"); + sb.append(" shareId: ").append(toIndentedString(shareId)).append("\n"); + sb.append(" targetId: ").append(toIndentedString(targetId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateObsTargetPolicyRequestBody.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateObsTargetPolicyRequestBody.java new file mode 100644 index 0000000000..27f238c1aa --- /dev/null +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateObsTargetPolicyRequestBody.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.sfsturbo.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 更新后端存储自动同步策略请求体 + */ +public class UpdateObsTargetPolicyRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "policy") + + private ObsDataRepositoryPolicy policy; + + public UpdateObsTargetPolicyRequestBody withPolicy(ObsDataRepositoryPolicy policy) { + this.policy = policy; + return this; + } + + public UpdateObsTargetPolicyRequestBody withPolicy(Consumer policySetter) { + if (this.policy == null) { + this.policy = new ObsDataRepositoryPolicy(); + policySetter.accept(this.policy); + } + + return this; + } + + /** + * Get policy + * @return policy + */ + public ObsDataRepositoryPolicy getPolicy() { + return policy; + } + + public void setPolicy(ObsDataRepositoryPolicy policy) { + this.policy = policy; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateObsTargetPolicyRequestBody that = (UpdateObsTargetPolicyRequestBody) obj; + return Objects.equals(this.policy, that.policy); + } + + @Override + public int hashCode() { + return Objects.hash(policy); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateObsTargetPolicyRequestBody {\n"); + sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/model/ShowUrlAuthResponse.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateObsTargetPolicyResponse.java similarity index 50% rename from services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/model/ShowUrlAuthResponse.java rename to services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateObsTargetPolicyResponse.java index 1b16ae64a5..5d86142e5f 100644 --- a/services/cloudrtc/src/main/java/com/huaweicloud/sdk/cloudrtc/v2/model/ShowUrlAuthResponse.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdateObsTargetPolicyResponse.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.cloudrtc.v2.model; +package com.huaweicloud.sdk.sfsturbo.v1.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -10,67 +10,67 @@ /** * Response Object */ -public class ShowUrlAuthResponse extends SdkResponse { +public class UpdateObsTargetPolicyResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "app_id") + @JsonProperty(value = "target_id") - private String appId; + private String targetId; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "authentication") + @JsonProperty(value = "policy") - private AppAuth authentication; + private ObsDataRepositoryPolicy policy; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-request-Id") + @JsonProperty(value = "X-request-id") private String xRequestId; - public ShowUrlAuthResponse withAppId(String appId) { - this.appId = appId; + public UpdateObsTargetPolicyResponse withTargetId(String targetId) { + this.targetId = targetId; return this; } /** - * 应用id - * @return appId + * 绑定关系id + * @return targetId */ - public String getAppId() { - return appId; + public String getTargetId() { + return targetId; } - public void setAppId(String appId) { - this.appId = appId; + public void setTargetId(String targetId) { + this.targetId = targetId; } - public ShowUrlAuthResponse withAuthentication(AppAuth authentication) { - this.authentication = authentication; + public UpdateObsTargetPolicyResponse withPolicy(ObsDataRepositoryPolicy policy) { + this.policy = policy; return this; } - public ShowUrlAuthResponse withAuthentication(Consumer authenticationSetter) { - if (this.authentication == null) { - this.authentication = new AppAuth(); - authenticationSetter.accept(this.authentication); + public UpdateObsTargetPolicyResponse withPolicy(Consumer policySetter) { + if (this.policy == null) { + this.policy = new ObsDataRepositoryPolicy(); + policySetter.accept(this.policy); } return this; } /** - * Get authentication - * @return authentication + * Get policy + * @return policy */ - public AppAuth getAuthentication() { - return authentication; + public ObsDataRepositoryPolicy getPolicy() { + return policy; } - public void setAuthentication(AppAuth authentication) { - this.authentication = authentication; + public void setPolicy(ObsDataRepositoryPolicy policy) { + this.policy = policy; } - public ShowUrlAuthResponse withXRequestId(String xRequestId) { + public UpdateObsTargetPolicyResponse withXRequestId(String xRequestId) { this.xRequestId = xRequestId; return this; } @@ -80,7 +80,7 @@ public ShowUrlAuthResponse withXRequestId(String xRequestId) { * @return xRequestId */ @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "X-request-Id") + @JsonProperty(value = "X-request-id") public String getXRequestId() { return xRequestId; } @@ -97,22 +97,22 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - ShowUrlAuthResponse that = (ShowUrlAuthResponse) obj; - return Objects.equals(this.appId, that.appId) && Objects.equals(this.authentication, that.authentication) + UpdateObsTargetPolicyResponse that = (UpdateObsTargetPolicyResponse) obj; + return Objects.equals(this.targetId, that.targetId) && Objects.equals(this.policy, that.policy) && Objects.equals(this.xRequestId, that.xRequestId); } @Override public int hashCode() { - return Objects.hash(appId, authentication, xRequestId); + return Objects.hash(targetId, policy, xRequestId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ShowUrlAuthResponse {\n"); - sb.append(" appId: ").append(toIndentedString(appId)).append("\n"); - sb.append(" authentication: ").append(toIndentedString(authentication)).append("\n"); + sb.append("class UpdateObsTargetPolicyResponse {\n"); + sb.append(" targetId: ").append(toIndentedString(targetId)).append("\n"); + sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdatePermRuleResponse.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdatePermRuleResponse.java index 6deccd1c3b..bef888b2c9 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdatePermRuleResponse.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/model/UpdatePermRuleResponse.java @@ -71,7 +71,7 @@ public UpdatePermRuleResponse withRwType(String rwType) { } /** - * -| 授权对象的读写权限 rw:默认选项,以读写的方式共享 ro:以只读的方式共享 + * 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限 * @return rwType */ public String getRwType() { @@ -88,7 +88,7 @@ public UpdatePermRuleResponse withUserType(String userType) { } /** - * -| 授权对象的系统用户对文件系统的访问权限。取值如下: no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。 + * 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。' * @return userType */ public String getUserType() { diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/region/SFSTurboRegion.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/region/SFSTurboRegion.java index 06c2f3a9bb..a7f6099170 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/region/SFSTurboRegion.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/region/SFSTurboRegion.java @@ -78,6 +78,11 @@ public class SFSTurboRegion { public static final Region AE_AD_1 = new Region("ae-ad-1", "https://sfs-turbo.ae-ad-1.myhuaweicloud.com"); + public static final Region CN_NORTH_11 = + new Region("cn-north-11", "https://sfs-turbo.cn-north-11.myhuaweicloud.com"); + + public static final Region AF_NORTH_1 = new Region("af-north-1", "https://sfs-turbo.af-north-1.myhuaweicloud.com"); + private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("SFSTURBO"); private static final Map STATIC_FIELDS = createStaticFields(); @@ -111,6 +116,8 @@ private static Map createStaticFields() { map.put("my-kualalumpur-1", MY_KUALALUMPUR_1); map.put("cn-east-4", CN_EAST_4); map.put("ae-ad-1", AE_AD_1); + map.put("cn-north-11", CN_NORTH_11); + map.put("af-north-1", AF_NORTH_1); return Collections.unmodifiableMap(map); } diff --git a/services/sis/pom.xml b/services/sis/pom.xml index 473532528b..b4b4ef01d5 100644 --- a/services/sis/pom.xml +++ b/services/sis/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-sis - 3.1.121 + 3.1.122 Huawei Cloud SDK for SIS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/smn/pom.xml b/services/smn/pom.xml index 9e91d54e91..cc910bd4b4 100644 --- a/services/smn/pom.xml +++ b/services/smn/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-smn - 3.1.121 + 3.1.122 Huawei Cloud SDK for SMN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/sms/pom.xml b/services/sms/pom.xml index 9d18405b80..eadfe80449 100644 --- a/services/sms/pom.xml +++ b/services/sms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-sms - 3.1.121 + 3.1.122 Huawei Cloud SDK for SMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/sts/pom.xml b/services/sts/pom.xml index 51e9c512e7..4482ff3613 100644 --- a/services/sts/pom.xml +++ b/services/sts/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-sts - 3.1.121 + 3.1.122 Huawei Cloud SDK for STS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/swr/pom.xml b/services/swr/pom.xml index 377d9e3e26..21bfba3a67 100644 --- a/services/swr/pom.xml +++ b/services/swr/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-swr - 3.1.121 + 3.1.122 Huawei Cloud SDK for SWR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/tics/pom.xml b/services/tics/pom.xml index f54dc11248..ceea0b6484 100644 --- a/services/tics/pom.xml +++ b/services/tics/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-tics - 3.1.121 + 3.1.122 Huawei Cloud SDK for TICS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/tms/pom.xml b/services/tms/pom.xml index b64f23fd91..d3e5aee01b 100644 --- a/services/tms/pom.xml +++ b/services/tms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-tms - 3.1.121 + 3.1.122 Huawei Cloud SDK for TMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/tms/src/main/java/com/huaweicloud/sdk/tms/v1/model/ListProvidersRequest.java b/services/tms/src/main/java/com/huaweicloud/sdk/tms/v1/model/ListProvidersRequest.java index 670d1acf57..548c39b3fe 100644 --- a/services/tms/src/main/java/com/huaweicloud/sdk/tms/v1/model/ListProvidersRequest.java +++ b/services/tms/src/main/java/com/huaweicloud/sdk/tms/v1/model/ListProvidersRequest.java @@ -128,7 +128,7 @@ public ListProvidersRequest withLimit(Integer limit) { } /** - * 查询记录数默认为200,limit最多为200,最小值为1。 + * 查询记录数默认为10,limit最多为200,最小值为1。 * @return limit */ public Integer getLimit() { diff --git a/services/ugo/pom.xml b/services/ugo/pom.xml index 4237415416..8d4279c321 100644 --- a/services/ugo/pom.xml +++ b/services/ugo/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-ugo - 3.1.121 + 3.1.122 Huawei Cloud SDK for UGO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/vas/pom.xml b/services/vas/pom.xml index ea327cc8e1..e061cbe681 100644 --- a/services/vas/pom.xml +++ b/services/vas/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-vas - 3.1.121 + 3.1.122 Huawei Cloud SDK for VAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/vcm/pom.xml b/services/vcm/pom.xml index 3831ab6939..2c04ba198e 100644 --- a/services/vcm/pom.xml +++ b/services/vcm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-vcm - 3.1.121 + 3.1.122 Huawei Cloud SDK for VCM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/vias/pom.xml b/services/vias/pom.xml index b2d293d7d5..8f4141b338 100644 --- a/services/vias/pom.xml +++ b/services/vias/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-vias - 3.1.121 + 3.1.122 Huawei Cloud SDK for VIAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/vod/pom.xml b/services/vod/pom.xml index 2848ba98ee..cbbaa97d29 100644 --- a/services/vod/pom.xml +++ b/services/vod/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-vod - 3.1.121 + 3.1.122 Huawei Cloud SDK for VOD 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/vpc/pom.xml b/services/vpc/pom.xml index 139fa1adae..cd0018c399 100644 --- a/services/vpc/pom.xml +++ b/services/vpc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-vpc - 3.1.121 + 3.1.122 Huawei Cloud SDK for VPC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/vpcep/pom.xml b/services/vpcep/pom.xml index c759f1807c..a3704f6e3f 100644 --- a/services/vpcep/pom.xml +++ b/services/vpcep/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-vpcep - 3.1.121 + 3.1.122 Huawei Cloud SDK for VPCEP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/vpn/pom.xml b/services/vpn/pom.xml index 8802e577a0..3d38437aa3 100644 --- a/services/vpn/pom.xml +++ b/services/vpn/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-vpn - 3.1.121 + 3.1.122 Huawei Cloud SDK for VPN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/waf/pom.xml b/services/waf/pom.xml index 8e42a11fbe..1290ef0db5 100644 --- a/services/waf/pom.xml +++ b/services/waf/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-waf - 3.1.121 + 3.1.122 Huawei Cloud SDK for WAF 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/workspace/pom.xml b/services/workspace/pom.xml index 7c9a3cc091..8f17c68437 100644 --- a/services/workspace/pom.xml +++ b/services/workspace/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-workspace - 3.1.121 + 3.1.122 Huawei Cloud SDK for WORKSPACE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122 diff --git a/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/WorkspaceAsyncClient.java b/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/WorkspaceAsyncClient.java index e7a2192120..b25c93fc2d 100644 --- a/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/WorkspaceAsyncClient.java +++ b/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/WorkspaceAsyncClient.java @@ -1295,7 +1295,7 @@ public AsyncInvoker listUnusedDesktopsAsync(Lis /** * 查询在指定时间段未使用的桌面 * - * 查询在指定时间段未使用的桌面。 + * 查询在指定时间段未使用的桌面。已废弃,不推荐使用。统计数据推荐使用[查询桌面使用情况统计数据接口](https://console.huaweicloud.com/apiexplorer/#/openapi/Workspace/doc?api=ListDesktopUsageMetric)和[查询用户使用统计数据接口](https://console.huaweicloud.com/apiexplorer/#/openapi/Workspace/doc?api=ListUserUsageMetric)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1324,7 +1324,7 @@ public AsyncInvoker listU /** * 查询使用桌面的时长 * - * 查询使用桌面的时长。 + * 查询使用桌面的时长。已废弃,不推荐使用。统计数据推荐使用[查询桌面使用情况统计数据接口](https://console.huaweicloud.com/apiexplorer/#/openapi/Workspace/doc?api=ListDesktopUsageMetric)和[查询用户使用统计数据接口](https://console.huaweicloud.com/apiexplorer/#/openapi/Workspace/doc?api=ListUserUsageMetric)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1338,7 +1338,7 @@ public CompletableFuture listUsedDesktopInfoAsync(L /** * 查询使用桌面的时长 * - * 查询使用桌面的时长。 + * 查询使用桌面的时长。已废弃,不推荐使用。统计数据推荐使用[查询桌面使用情况统计数据接口](https://console.huaweicloud.com/apiexplorer/#/openapi/Workspace/doc?api=ListDesktopUsageMetric)和[查询用户使用统计数据接口](https://console.huaweicloud.com/apiexplorer/#/openapi/Workspace/doc?api=ListUserUsageMetric)。 * * Please refer to HUAWEI cloud API Explorer for details. * diff --git a/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/WorkspaceClient.java b/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/WorkspaceClient.java index a9584120ae..e2cb866f68 100644 --- a/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/WorkspaceClient.java +++ b/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/WorkspaceClient.java @@ -1273,7 +1273,7 @@ public SyncInvoker listUn /** * 查询使用桌面的时长 * - * 查询使用桌面的时长。 + * 查询使用桌面的时长。已废弃,不推荐使用。统计数据推荐使用[查询桌面使用情况统计数据接口](https://console.huaweicloud.com/apiexplorer/#/openapi/Workspace/doc?api=ListDesktopUsageMetric)和[查询用户使用统计数据接口](https://console.huaweicloud.com/apiexplorer/#/openapi/Workspace/doc?api=ListUserUsageMetric)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1316,7 +1316,7 @@ public ListUsedDesktopInfoResponse listUsedDesktopInfo(ListUsedDesktopInfoReques /** * 查询使用桌面的时长 * - * 查询使用桌面的时长。 + * 查询使用桌面的时长。已废弃,不推荐使用。统计数据推荐使用[查询桌面使用情况统计数据接口](https://console.huaweicloud.com/apiexplorer/#/openapi/Workspace/doc?api=ListDesktopUsageMetric)和[查询用户使用统计数据接口](https://console.huaweicloud.com/apiexplorer/#/openapi/Workspace/doc?api=ListUserUsageMetric)。 * * Please refer to HUAWEI cloud API Explorer for details. * diff --git a/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/ListUsedDesktopInfoReq.java b/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/ListUsedDesktopInfoReq.java index 99186a0969..f028bec2cb 100644 --- a/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/ListUsedDesktopInfoReq.java +++ b/services/workspace/src/main/java/com/huaweicloud/sdk/workspace/v2/model/ListUsedDesktopInfoReq.java @@ -230,9 +230,9 @@ public ListUsedDesktopInfoReq withOffset(Integer offset) { } /** - * 从查询结果中的第几条数据开始返回,用于分页查询,取值范围0-2000,默认从0开始。 + * 从查询结果中的第几条数据开始返回,用于分页查询,取值范围0-2147483647,默认从0开始。 * minimum: 0 - * maximum: 2000 + * maximum: 2147483647 * @return offset */ public Integer getOffset() { diff --git a/services/workspaceapp/pom.xml b/services/workspaceapp/pom.xml index 51c63e19b9..00ceeac67b 100644 --- a/services/workspaceapp/pom.xml +++ b/services/workspaceapp/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.121 + 3.1.122 huaweicloud-sdk-services .. huaweicloud-sdk-workspaceapp - 3.1.121 + 3.1.122 Huawei Cloud SDK for WORKSPACEAPP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.121 + 3.1.122